2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sntp 4.2.8p8.
5 # Report bugs to <http://bugs.ntp.org./>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.ntp.org./ about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
592 PACKAGE_TARNAME='sntp'
593 PACKAGE_VERSION='4.2.8p8'
594 PACKAGE_STRING='sntp 4.2.8p8'
595 PACKAGE_BUGREPORT='http://bugs.ntp.org./'
596 PACKAGE_URL='http://www.ntp.org./'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
635 enable_option_checking=no
636 ac_subst_vars='am__EXEEXT_FALSE
639 BUILD_TEST_KODFILE_FALSE
640 BUILD_TEST_KODFILE_TRUE
641 BUILD_TEST_KODDATABASE_FALSE
642 BUILD_TEST_KODDATABASE_TRUE
643 GTEST_AVAILABLE_FALSE
657 UNITYBUILD_AVAILABLE_FALSE
658 UNITYBUILD_AVAILABLE_TRUE
669 NTP_FORCE_LIBEVENT_DIST
675 INSTALL_LIBOPTS_FALSE
678 GL_GENERATE_STDNORETURN_H_FALSE
679 GL_GENERATE_STDNORETURN_H_TRUE
702 LIBISC_PTHREADS_NOTHREADS
715 NTP_CROSSCOMPILE_FALSE
716 NTP_CROSSCOMPILE_TRUE
719 INSTALL_UPDATE_LEAP_FALSE
720 INSTALL_UPDATE_LEAP_TRUE
761 INSTALL_NTPSWEEP_FALSE
762 INSTALL_NTPSWEEP_TRUE
804 WANT_CALC_TICKADJ_MS_FALSE
805 WANT_CALC_TICKADJ_MS_TRUE
850 INSTALL_STRIP_PROGRAM
892 program_transform_name
905 enable_option_checking
907 enable_dependency_tracking
912 enable_thread_support
928 enable_libopts_install
935 enable_local_libevent
946 ac_precious_vars='build_alias
959 ac_subdirs_all='libevent'
961 # Initialize some variables set by options.
963 ac_init_version=false
964 ac_unrecognized_opts=
966 # The variables have the same names as the options, with
967 # dashes changed to underlines.
975 program_transform_name=s,x,x,
983 # Installation directory options.
984 # These are left unexpanded so users can "make install exec_prefix=/foo"
985 # and all the variables that are supposed to be based on exec_prefix
986 # by default will actually change.
987 # Use braces instead of parens because sh, perl, etc. also accept them.
988 # (The list follows the same order as the GNU Coding Standards.)
989 bindir='${exec_prefix}/bin'
990 sbindir='${exec_prefix}/sbin'
991 libexecdir='${exec_prefix}/libexec'
992 datarootdir='${prefix}/share'
993 datadir='${datarootdir}'
994 sysconfdir='${prefix}/etc'
995 sharedstatedir='${prefix}/com'
996 localstatedir='${prefix}/var'
997 includedir='${prefix}/include'
998 oldincludedir='/usr/include'
999 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000 infodir='${datarootdir}/info'
1005 libdir='${exec_prefix}/lib'
1006 localedir='${datarootdir}/locale'
1007 mandir='${datarootdir}/man'
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
1015 eval $ac_prev=\$ac_option
1021 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026 # Accept the important Cygnus configure options, so we can diagnose typos.
1028 case $ac_dashdash$ac_option in
1032 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035 bindir=$ac_optarg ;;
1037 -build | --build | --buil | --bui | --bu)
1038 ac_prev=build_alias ;;
1039 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040 build_alias=$ac_optarg ;;
1042 -cache-file | --cache-file | --cache-fil | --cache-fi \
1043 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044 ac_prev=cache_file ;;
1045 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047 cache_file=$ac_optarg ;;
1049 --config-cache | -C)
1050 cache_file=config.cache ;;
1052 -datadir | --datadir | --datadi | --datad)
1054 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1055 datadir=$ac_optarg ;;
1057 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058 | --dataroo | --dataro | --datar)
1059 ac_prev=datarootdir ;;
1060 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062 datarootdir=$ac_optarg ;;
1064 -disable-* | --disable-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 as_fn_error $? "invalid feature name: $ac_useropt"
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1073 "enable_$ac_useropt"
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1078 eval enable_$ac_useropt=no ;;
1080 -docdir | --docdir | --docdi | --doc | --do)
1082 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083 docdir=$ac_optarg ;;
1085 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088 dvidir=$ac_optarg ;;
1090 -enable-* | --enable-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error $? "invalid feature name: $ac_useropt"
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1099 "enable_$ac_useropt"
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1104 eval enable_$ac_useropt=\$ac_optarg ;;
1106 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1107 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1108 | --exec | --exe | --ex)
1109 ac_prev=exec_prefix ;;
1110 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1111 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1112 | --exec=* | --exe=* | --ex=*)
1113 exec_prefix=$ac_optarg ;;
1115 -gas | --gas | --ga | --g)
1116 # Obsolete; use --with-gas.
1119 -help | --help | --hel | --he | -h)
1120 ac_init_help=long ;;
1121 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1122 ac_init_help=recursive ;;
1123 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1124 ac_init_help=short ;;
1126 -host | --host | --hos | --ho)
1127 ac_prev=host_alias ;;
1128 -host=* | --host=* | --hos=* | --ho=*)
1129 host_alias=$ac_optarg ;;
1131 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135 htmldir=$ac_optarg ;;
1137 -includedir | --includedir | --includedi | --included | --include \
1138 | --includ | --inclu | --incl | --inc)
1139 ac_prev=includedir ;;
1140 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1141 | --includ=* | --inclu=* | --incl=* | --inc=*)
1142 includedir=$ac_optarg ;;
1144 -infodir | --infodir | --infodi | --infod | --info | --inf)
1146 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1147 infodir=$ac_optarg ;;
1149 -libdir | --libdir | --libdi | --libd)
1151 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1152 libdir=$ac_optarg ;;
1154 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1155 | --libexe | --libex | --libe)
1156 ac_prev=libexecdir ;;
1157 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1158 | --libexe=* | --libex=* | --libe=*)
1159 libexecdir=$ac_optarg ;;
1161 -localedir | --localedir | --localedi | --localed | --locale)
1162 ac_prev=localedir ;;
1163 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1164 localedir=$ac_optarg ;;
1166 -localstatedir | --localstatedir | --localstatedi | --localstated \
1167 | --localstate | --localstat | --localsta | --localst | --locals)
1168 ac_prev=localstatedir ;;
1169 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1170 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1171 localstatedir=$ac_optarg ;;
1173 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1176 mandir=$ac_optarg ;;
1178 -nfp | --nfp | --nf)
1179 # Obsolete; use --without-fp.
1182 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1183 | --no-cr | --no-c | -n)
1186 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1187 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1190 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1191 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1192 | --oldin | --oldi | --old | --ol | --o)
1193 ac_prev=oldincludedir ;;
1194 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1195 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1196 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1197 oldincludedir=$ac_optarg ;;
1199 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1202 prefix=$ac_optarg ;;
1204 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1205 | --program-pre | --program-pr | --program-p)
1206 ac_prev=program_prefix ;;
1207 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1208 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1209 program_prefix=$ac_optarg ;;
1211 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1212 | --program-suf | --program-su | --program-s)
1213 ac_prev=program_suffix ;;
1214 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1215 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1216 program_suffix=$ac_optarg ;;
1218 -program-transform-name | --program-transform-name \
1219 | --program-transform-nam | --program-transform-na \
1220 | --program-transform-n | --program-transform- \
1221 | --program-transform | --program-transfor \
1222 | --program-transfo | --program-transf \
1223 | --program-trans | --program-tran \
1224 | --progr-tra | --program-tr | --program-t)
1225 ac_prev=program_transform_name ;;
1226 -program-transform-name=* | --program-transform-name=* \
1227 | --program-transform-nam=* | --program-transform-na=* \
1228 | --program-transform-n=* | --program-transform-=* \
1229 | --program-transform=* | --program-transfor=* \
1230 | --program-transfo=* | --program-transf=* \
1231 | --program-trans=* | --program-tran=* \
1232 | --progr-tra=* | --program-tr=* | --program-t=*)
1233 program_transform_name=$ac_optarg ;;
1235 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1238 pdfdir=$ac_optarg ;;
1240 -psdir | --psdir | --psdi | --psd | --ps)
1242 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1249 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253 sbindir=$ac_optarg ;;
1255 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1256 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1257 | --sharedst | --shareds | --shared | --share | --shar \
1259 ac_prev=sharedstatedir ;;
1260 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1261 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1262 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264 sharedstatedir=$ac_optarg ;;
1266 -site | --site | --sit)
1268 -site=* | --site=* | --sit=*)
1271 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1274 srcdir=$ac_optarg ;;
1276 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1277 | --syscon | --sysco | --sysc | --sys | --sy)
1278 ac_prev=sysconfdir ;;
1279 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1280 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1281 sysconfdir=$ac_optarg ;;
1283 -target | --target | --targe | --targ | --tar | --ta | --t)
1284 ac_prev=target_alias ;;
1285 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1286 target_alias=$ac_optarg ;;
1288 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1291 -version | --version | --versio | --versi | --vers | -V)
1292 ac_init_version=: ;;
1295 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298 as_fn_error $? "invalid package name: $ac_useropt"
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1308 eval with_$ac_useropt=\$ac_optarg ;;
1310 -without-* | --without-*)
1311 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314 as_fn_error $? "invalid package name: $ac_useropt"
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1324 eval with_$ac_useropt=no ;;
1327 # Obsolete; use --with-x.
1330 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1331 | --x-incl | --x-inc | --x-in | --x-i)
1332 ac_prev=x_includes ;;
1333 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1334 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1335 x_includes=$ac_optarg ;;
1337 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1338 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1339 ac_prev=x_libraries ;;
1340 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1341 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1342 x_libraries=$ac_optarg ;;
1344 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1345 Try \`$0 --help' for more information"
1349 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1350 # Reject names that are not valid shell variable names.
1351 case $ac_envvar in #(
1352 '' | [0-9]* | *[!_$as_cr_alnum]* )
1353 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1355 eval $ac_envvar=\$ac_optarg
1356 export $ac_envvar ;;
1359 # FIXME: should be removed in autoconf 3.0.
1360 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1361 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1362 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1363 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1369 if test -n "$ac_prev"; then
1370 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1371 as_fn_error $? "missing argument to $ac_option"
1374 if test -n "$ac_unrecognized_opts"; then
1375 case $enable_option_checking in
1377 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1378 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382 # Check all directory arguments for consistency.
1383 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384 datadir sysconfdir sharedstatedir localstatedir includedir \
1385 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386 libdir localedir mandir
1388 eval ac_val=\$$ac_var
1389 # Remove trailing slashes.
1392 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393 eval $ac_var=\$ac_val;;
1395 # Be sure to have absolute directory names.
1397 [\\/$]* | ?:[\\/]* ) continue;;
1398 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1400 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1403 # There might be people who depend on the old broken behavior: `$host'
1404 # used to hold the argument of --host etc.
1405 # FIXME: To remove some day.
1408 target=$target_alias
1410 # FIXME: To remove some day.
1411 if test "x$host_alias" != x; then
1412 if test "x$build_alias" = x; then
1413 cross_compiling=maybe
1414 elif test "x$build_alias" != "x$host_alias"; then
1420 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1422 test "$silent" = yes && exec 6>/dev/null
1425 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426 ac_ls_di=`ls -di .` &&
1427 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1428 as_fn_error $? "working directory cannot be determined"
1429 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430 as_fn_error $? "pwd does not report name of working directory"
1433 # Find the source files, if location was not specified.
1434 if test -z "$srcdir"; then
1435 ac_srcdir_defaulted=yes
1436 # Try the directory containing this script, then the parent directory.
1437 ac_confdir=`$as_dirname -- "$as_myself" ||
1438 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439 X"$as_myself" : 'X\(//\)[^/]' \| \
1440 X"$as_myself" : 'X\(//\)$' \| \
1441 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442 $as_echo X"$as_myself" |
1443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1465 ac_srcdir_defaulted=no
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1469 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1471 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1473 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1475 # When building in place, set srcdir=.
1476 if test "$ac_abs_confdir" = "$ac_pwd"; then
1479 # Remove unnecessary trailing slashes from srcdir.
1480 # Double slashes in file names in object file debugging info
1481 # mess up M-x gdb in Emacs.
1483 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1485 for ac_var in $ac_precious_vars; do
1486 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_env_${ac_var}_value=\$${ac_var}
1488 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1493 # Report the --help message.
1495 if test "$ac_init_help" = "long"; then
1496 # Omit some internal or obsolete options to make the list less imposing.
1497 # This message is too long to be a string in the A/UX 3.1 sh.
1499 \`configure' configures sntp 4.2.8p8 to adapt to many kinds of systems.
1501 Usage: $0 [OPTION]... [VAR=VALUE]...
1503 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504 VAR=VALUE. See below for descriptions of some of the useful variables.
1506 Defaults for the options are specified in brackets.
1509 -h, --help display this help and exit
1510 --help=short display options specific to this package
1511 --help=recursive display the short help of all the included packages
1512 -V, --version display version information and exit
1513 -q, --quiet, --silent do not print \`checking ...' messages
1514 --cache-file=FILE cache test results in FILE [disabled]
1515 -C, --config-cache alias for \`--cache-file=config.cache'
1516 -n, --no-create do not create output files
1517 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1519 Installation directories:
1520 --prefix=PREFIX install architecture-independent files in PREFIX
1521 [$ac_default_prefix]
1522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1525 By default, \`make install' will install all the files in
1526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1527 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528 for instance \`--prefix=\$HOME'.
1530 For better control, use the options below.
1532 Fine tuning of the installation directories:
1533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1539 --libdir=DIR object code libraries [EPREFIX/lib]
1540 --includedir=DIR C header files [PREFIX/include]
1541 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1542 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1543 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1544 --infodir=DIR info documentation [DATAROOTDIR/info]
1545 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1546 --mandir=DIR man documentation [DATAROOTDIR/man]
1547 --docdir=DIR documentation root [DATAROOTDIR/doc/sntp]
1548 --htmldir=DIR html documentation [DOCDIR]
1549 --dvidir=DIR dvi documentation [DOCDIR]
1550 --pdfdir=DIR pdf documentation [DOCDIR]
1551 --psdir=DIR ps documentation [DOCDIR]
1557 --program-prefix=PREFIX prepend PREFIX to installed program names
1558 --program-suffix=SUFFIX append SUFFIX to installed program names
1559 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1562 --build=BUILD configure for building on BUILD [guessed]
1563 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1567 if test -n "$ac_init_help"; then
1568 case $ac_init_help in
1569 short | recursive ) echo "Configuration of sntp 4.2.8p8:";;
1574 --disable-option-checking ignore unrecognized --enable/--with options
1575 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1576 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1577 --enable-silent-rules less verbose build output (undo: "make V=1")
1578 --disable-silent-rules verbose build output (undo: "make V=0")
1579 --enable-dependency-tracking
1580 do not reject slow dependency extractors
1581 --disable-dependency-tracking
1582 speeds up one-time build
1583 defaults: + yes, - no, s system-specific
1584 --enable-debugging + include ntpd debugging code
1585 --enable-thread-support s use threads (+ if available)
1586 --enable-c99-snprintf s force replacement
1587 --enable-clockctl s Use /dev/clockctl for non-root clock control
1588 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1589 --enable-solarisprivs + Use Solaris privileges for non-root clock control
1590 --enable-shared[=PKGS] build shared libraries [default=no]
1591 --enable-static[=PKGS] build static libraries [default=yes]
1592 --enable-fast-install[=PKGS]
1593 optimize for fast installation [default=yes]
1594 --disable-libtool-lock avoid locking (might break parallel builds)
1595 --disable-nls disable nls support in libopts
1596 --enable-local-libopts Use the supplied libopts tearoff code
1597 --enable-libopts-install
1598 Install libopts with client installation
1599 --disable-optional-args not wanting optional option args
1600 --enable-local-libevent Force using the supplied libevent tearoff code
1601 --enable-ipv6 s use IPv6?
1603 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]].
1604 --enable-problem-tests + enable tests with undiagnosed problems
1607 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1608 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1609 --with-locfile=XXX os-specific or "legacy"
1610 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1611 --with-lineeditlibs edit,editline (readline may be specified if desired)
1612 --with-threads with threads [auto]
1613 --with-yielding-select with yielding select [auto]
1614 --with-pic try to use only PIC/non-PIC objects [default=use
1616 --with-sysroot=DIR Search for dependent libraries within DIR
1617 (or the compiler's sysroot if not specified).
1618 --without-sntp - disable building sntp and sntp/tests
1619 --with-autoopts-config specify the config-info script
1620 --with-regex-header a reg expr header is specified
1621 --with-libregex libregex installation prefix
1622 --with-libregex-cflags libregex compile flags
1623 --with-libregex-libs libregex link command arguments
1624 --with-crypto + =openssl,libcrypto
1626 --with-openssl-libdir + =/something/reasonable
1628 --with-openssl-incdir + =/something/reasonable
1630 --without-rpath s Disable auto-added -R linker paths
1632 --with-kame - =/usr/local/v6
1633 --with-gtest Use the gtest framework (Default: if it's available)
1635 Some influential environment variables:
1636 CC C compiler command
1637 CFLAGS C compiler flags
1638 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1639 nonstandard directory <lib dir>
1640 LIBS libraries to pass to the linker, e.g. -l<library>
1641 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1642 you have headers in a nonstandard directory <include dir>
1644 CXX C++ compiler command
1645 CXXFLAGS C++ compiler flags
1646 CXXCPP C++ preprocessor
1648 Use these variables to override the choices made by `configure' or to help
1649 it to find libraries and programs with nonstandard names/locations.
1651 Report bugs to <http://bugs.ntp.org./>.
1652 sntp home page: <http://www.ntp.org./>.
1657 if test "$ac_init_help" = "recursive"; then
1658 # If there are subdirs, report their specific --help.
1659 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1660 test -d "$ac_dir" ||
1661 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1669 # A ".." for each directory in $ac_dir_suffix.
1670 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1671 case $ac_top_builddir_sub in
1672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1676 ac_abs_top_builddir=$ac_pwd
1677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1678 # for backward compatibility:
1679 ac_top_builddir=$ac_top_build_prefix
1682 .) # We are building in place.
1684 ac_top_srcdir=$ac_top_builddir_sub
1685 ac_abs_top_srcdir=$ac_pwd ;;
1686 [\\/]* | ?:[\\/]* ) # Absolute name.
1687 ac_srcdir=$srcdir$ac_dir_suffix;
1688 ac_top_srcdir=$srcdir
1689 ac_abs_top_srcdir=$srcdir ;;
1691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1692 ac_top_srcdir=$ac_top_build_prefix$srcdir
1693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1697 cd "$ac_dir" || { ac_status=$?; continue; }
1698 # Check for guested configure.
1699 if test -f "$ac_srcdir/configure.gnu"; then
1701 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1702 elif test -f "$ac_srcdir/configure"; then
1704 $SHELL "$ac_srcdir/configure" --help=recursive
1706 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1708 cd "$ac_pwd" || { ac_status=$?; break; }
1712 test -n "$ac_init_help" && exit $ac_status
1713 if $ac_init_version; then
1715 sntp configure 4.2.8p8
1716 generated by GNU Autoconf 2.69
1718 Copyright (C) 2012 Free Software Foundation, Inc.
1719 This configure script is free software; the Free Software Foundation
1720 gives unlimited permission to copy, distribute and modify it.
1725 ## ------------------------ ##
1726 ## Autoconf initialization. ##
1727 ## ------------------------ ##
1729 # ac_fn_c_try_compile LINENO
1730 # --------------------------
1731 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_compile ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext
1736 if { { ac_try="$ac_compile"
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_compile") 2>conftest.err
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest.$ac_objext; then :
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1765 } # ac_fn_c_try_compile
1767 # ac_fn_c_try_cpp LINENO
1768 # ----------------------
1769 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 if { { ac_try="$ac_cpp conftest.$ac_ext"
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } > conftest.i && {
1789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1790 test ! -s conftest.err
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1804 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1807 # the include files in INCLUDES and setting the cache variable VAR
1809 ac_fn_c_check_header_mongrel ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if eval \${$3+:} false; then :
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816 $as_echo_n "(cached) " >&6
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1822 # Is the header compilable?
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1824 $as_echo_n "checking $2 usability... " >&6; }
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1830 if ac_fn_c_try_compile "$LINENO"; then :
1831 ac_header_compiler=yes
1833 ac_header_compiler=no
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1837 $as_echo "$ac_header_compiler" >&6; }
1839 # Is the header present?
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1841 $as_echo_n "checking $2 presence... " >&6; }
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1846 if ac_fn_c_try_cpp "$LINENO"; then :
1847 ac_header_preproc=yes
1849 ac_header_preproc=no
1851 rm -f conftest.err conftest.i conftest.$ac_ext
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1853 $as_echo "$ac_header_preproc" >&6; }
1855 # So? What about this header?
1856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1859 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1865 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1867 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1869 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1871 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874 ( $as_echo "## ------------------------------------ ##
1875 ## Report this to http://bugs.ntp.org./ ##
1876 ## ------------------------------------ ##"
1877 ) | sed "s/^/$as_me: WARNING: /" >&2
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883 $as_echo_n "(cached) " >&6
1885 eval "$3=\$ac_header_compiler"
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 } # ac_fn_c_check_header_mongrel
1895 # ac_fn_c_try_run LINENO
1896 # ----------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1898 # that executables *can* be run.
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 if { { ac_try="$ac_link"
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_link") 2>&5
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1913 { { case "(($ac_try" in
1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_try") 2>&5
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; }; }; then :
1925 $as_echo "$as_me: program exited with status $ac_status" >&5
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1929 ac_retval=$ac_status
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1937 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1938 # -------------------------------------------------------
1939 # Tests whether HEADER exists and can be compiled using the include files in
1940 # INCLUDES, setting the cache variable VAR accordingly.
1941 ac_fn_c_check_header_compile ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947 $as_echo_n "(cached) " >&6
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1954 if ac_fn_c_try_compile "$LINENO"; then :
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 } # ac_fn_c_check_header_compile
1968 # ac_fn_c_try_link LINENO
1969 # -----------------------
1970 # Try to link conftest.$ac_ext, and return whether this succeeded.
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 rm -f conftest.$ac_objext conftest$ac_exeext
1975 if { { ac_try="$ac_link"
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_link") 2>conftest.err
1984 if test -s conftest.err; then
1985 grep -v '^ *+' conftest.err >conftest.er1
1986 cat conftest.er1 >&5
1987 mv -f conftest.er1 conftest.err
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && {
1991 test -z "$ac_c_werror_flag" ||
1992 test ! -s conftest.err
1993 } && test -s conftest$ac_exeext && {
1994 test "$cross_compiling" = yes ||
1995 test -x conftest$ac_exeext
1999 $as_echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2004 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2005 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2006 # interfere with the next link command; also delete a directory that is
2007 # left behind by Apple's compiler. We do this before executing the actions.
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 as_fn_set_status $ac_retval
2012 } # ac_fn_c_try_link
2014 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2015 # -------------------------------------------
2016 # Tests whether TYPE exists after having included INCLUDES, setting cache
2017 # variable VAR accordingly.
2018 ac_fn_c_check_type ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2052 if ac_fn_c_try_compile "$LINENO"; then :
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066 } # ac_fn_c_check_type
2068 # ac_fn_c_check_func LINENO FUNC VAR
2069 # ----------------------------------
2070 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2071 ac_fn_c_check_func ()
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2075 $as_echo_n "checking for $2... " >&6; }
2076 if eval \${$3+:} false; then :
2077 $as_echo_n "(cached) " >&6
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2081 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2083 #define $2 innocuous_$2
2085 /* System header to define __stub macros and hopefully few prototypes,
2086 which can conflict with char $2 (); below.
2087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2088 <limits.h> exists even on freestanding compilers. */
2091 # include <limits.h>
2093 # include <assert.h>
2098 /* Override any GCC internal prototype to avoid an error.
2099 Use char because int might match the return type of a GCC
2100 builtin and then its argument prototype would still apply. */
2105 /* The GNU C library defines this for functions which it implements
2106 to always fail with ENOSYS. Some functions are actually named
2107 something starting with __ and the normal name is an alias. */
2108 #if defined __stub_$2 || defined __stub___$2
2120 if ac_fn_c_try_link "$LINENO"; then :
2125 rm -f core conftest.err conftest.$ac_objext \
2126 conftest$ac_exeext conftest.$ac_ext
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_func
2135 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2136 # ---------------------------------------------
2137 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2139 ac_fn_c_check_decl ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 as_decl_name=`echo $2|sed 's/ *(.*//'`
2143 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2145 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2146 if eval \${$3+:} false; then :
2147 $as_echo_n "(cached) " >&6
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2155 #ifndef $as_decl_name
2157 (void) $as_decl_use;
2159 (void) $as_decl_name;
2167 if ac_fn_c_try_compile "$LINENO"; then :
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2176 $as_echo "$ac_res" >&6; }
2177 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179 } # ac_fn_c_check_decl
2181 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2182 # --------------------------------------------
2183 # Tries to find the compile-time value of EXPR in a program that includes
2184 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2186 ac_fn_c_compute_int ()
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 if test "$cross_compiling" = yes; then
2190 # Depending upon the size, compute the lo and hi bounds.
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2197 static int test_array [1 - 2 * !(($2) >= 0)];
2199 return test_array [0];
2205 if ac_fn_c_try_compile "$LINENO"; then :
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2214 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2216 return test_array [0];
2222 if ac_fn_c_try_compile "$LINENO"; then :
2223 ac_hi=$ac_mid; break
2225 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2226 if test $ac_lo -le $ac_mid; then
2230 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2241 static int test_array [1 - 2 * !(($2) < 0)];
2243 return test_array [0];
2249 if ac_fn_c_try_compile "$LINENO"; then :
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2258 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2260 return test_array [0];
2266 if ac_fn_c_try_compile "$LINENO"; then :
2267 ac_lo=$ac_mid; break
2269 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2270 if test $ac_mid -le $ac_hi; then
2274 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 # Binary search between lo and hi bounds.
2285 while test "x$ac_lo" != "x$ac_hi"; do
2286 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2293 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2295 return test_array [0];
2301 if ac_fn_c_try_compile "$LINENO"; then :
2304 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2316 static long int longval () { return $2; }
2317 static unsigned long int ulongval () { return $2; }
2324 FILE *f = fopen ("conftest.val", "w");
2329 long int i = longval ();
2332 fprintf (f, "%ld", i);
2336 unsigned long int i = ulongval ();
2339 fprintf (f, "%lu", i);
2341 /* Do not output a trailing newline, as this causes \r\n confusion
2342 on some platforms. */
2343 return ferror (f) || fclose (f) != 0;
2349 if ac_fn_c_try_run "$LINENO"; then :
2350 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2355 conftest.$ac_objext conftest.beam conftest.$ac_ext
2359 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360 as_fn_set_status $ac_retval
2362 } # ac_fn_c_compute_int
2364 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2365 # ----------------------------------------------------
2366 # Tries to find if the field MEMBER exists in type AGGR, after including
2367 # INCLUDES, setting cache variable VAR accordingly.
2368 ac_fn_c_check_member ()
2370 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2372 $as_echo_n "checking for $2.$3... " >&6; }
2373 if eval \${$4+:} false; then :
2374 $as_echo_n "(cached) " >&6
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2389 if ac_fn_c_try_compile "$LINENO"; then :
2392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h. */
2399 if (sizeof ac_aggr.$3)
2405 if ac_fn_c_try_compile "$LINENO"; then :
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2416 $as_echo "$ac_res" >&6; }
2417 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2419 } # ac_fn_c_check_member
2421 # ac_fn_cxx_try_compile LINENO
2422 # ----------------------------
2423 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2424 ac_fn_cxx_try_compile ()
2426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2427 rm -f conftest.$ac_objext
2428 if { { ac_try="$ac_compile"
2430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431 *) ac_try_echo=$ac_try;;
2433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2434 $as_echo "$ac_try_echo"; } >&5
2435 (eval "$ac_compile") 2>conftest.err
2437 if test -s conftest.err; then
2438 grep -v '^ *+' conftest.err >conftest.er1
2439 cat conftest.er1 >&5
2440 mv -f conftest.er1 conftest.err
2442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2443 test $ac_status = 0; } && {
2444 test -z "$ac_cxx_werror_flag" ||
2445 test ! -s conftest.err
2446 } && test -s conftest.$ac_objext; then :
2449 $as_echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2454 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2455 as_fn_set_status $ac_retval
2457 } # ac_fn_cxx_try_compile
2459 # ac_fn_cxx_try_cpp LINENO
2460 # ------------------------
2461 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2462 ac_fn_cxx_try_cpp ()
2464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2465 if { { ac_try="$ac_cpp conftest.$ac_ext"
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2471 $as_echo "$ac_try_echo"; } >&5
2472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2474 if test -s conftest.err; then
2475 grep -v '^ *+' conftest.err >conftest.er1
2476 cat conftest.er1 >&5
2477 mv -f conftest.er1 conftest.err
2479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2480 test $ac_status = 0; } > conftest.i && {
2481 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2482 test ! -s conftest.err
2486 $as_echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2492 as_fn_set_status $ac_retval
2494 } # ac_fn_cxx_try_cpp
2496 # ac_fn_cxx_try_link LINENO
2497 # -------------------------
2498 # Try to link conftest.$ac_ext, and return whether this succeeded.
2499 ac_fn_cxx_try_link ()
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 rm -f conftest.$ac_objext conftest$ac_exeext
2503 if { { ac_try="$ac_link"
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2509 $as_echo "$ac_try_echo"; } >&5
2510 (eval "$ac_link") 2>conftest.err
2512 if test -s conftest.err; then
2513 grep -v '^ *+' conftest.err >conftest.er1
2514 cat conftest.er1 >&5
2515 mv -f conftest.er1 conftest.err
2517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2518 test $ac_status = 0; } && {
2519 test -z "$ac_cxx_werror_flag" ||
2520 test ! -s conftest.err
2521 } && test -s conftest$ac_exeext && {
2522 test "$cross_compiling" = yes ||
2523 test -x conftest$ac_exeext
2527 $as_echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2532 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2533 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2534 # interfere with the next link command; also delete a directory that is
2535 # left behind by Apple's compiler. We do this before executing the actions.
2536 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2537 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2538 as_fn_set_status $ac_retval
2540 } # ac_fn_cxx_try_link
2541 cat >config.log <<_ACEOF
2542 This file contains any messages produced by compilers while
2543 running configure, to aid debugging if configure makes a mistake.
2545 It was created by sntp $as_me 4.2.8p8, which was
2546 generated by GNU Autoconf 2.69. Invocation command line was
2558 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2559 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2560 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2561 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2562 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2564 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2565 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2567 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2568 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2569 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2570 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2571 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2572 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2573 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 test -z "$as_dir" && as_dir=.
2582 $as_echo "PATH: $as_dir"
2598 # Keep a trace of the command line.
2599 # Strip out --no-create and --no-recursion so they do not pile up.
2600 # Strip out --silent because we don't want to record it for future runs.
2601 # Also quote any args containing shell meta-characters.
2602 # Make two passes to allow for proper duplicate-argument suppression.
2606 ac_must_keep_next=false
2612 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2613 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2614 | -silent | --silent | --silen | --sile | --sil)
2617 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2620 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2622 as_fn_append ac_configure_args1 " '$ac_arg'"
2623 if test $ac_must_keep_next = true; then
2624 ac_must_keep_next=false # Got value, back to normal.
2627 *=* | --config-cache | -C | -disable-* | --disable-* \
2628 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2629 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2630 | -with-* | --with-* | -without-* | --without-* | --x)
2631 case "$ac_configure_args0 " in
2632 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2635 -* ) ac_must_keep_next=true ;;
2638 as_fn_append ac_configure_args " '$ac_arg'"
2643 { ac_configure_args0=; unset ac_configure_args0;}
2644 { ac_configure_args1=; unset ac_configure_args1;}
2646 # When interrupted or exit'd, cleanup temporary files, and complete
2647 # config.log. We remove comments because anyway the quotes in there
2648 # would cause problems or look ugly.
2649 # WARNING: Use '\'' to represent an apostrophe within the trap.
2650 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2651 trap 'exit_status=$?
2652 # Save into config.log some information that might help in debugging.
2656 $as_echo "## ---------------- ##
2657 ## Cache variables. ##
2658 ## ---------------- ##"
2660 # The following way of writing the cache mishandles newlines in values,
2662 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2663 eval ac_val=\$$ac_var
2667 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2668 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2671 _ | IFS | as_nl) ;; #(
2672 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2673 *) { eval $ac_var=; unset $ac_var;} ;;
2678 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2679 *${as_nl}ac_space=\ *)
2681 "s/'\''/'\''\\\\'\'''\''/g;
2682 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2685 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2692 $as_echo "## ----------------- ##
2693 ## Output variables. ##
2694 ## ----------------- ##"
2696 for ac_var in $ac_subst_vars
2698 eval ac_val=\$$ac_var
2700 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2702 $as_echo "$ac_var='\''$ac_val'\''"
2706 if test -n "$ac_subst_files"; then
2707 $as_echo "## ------------------- ##
2708 ## File substitutions. ##
2709 ## ------------------- ##"
2711 for ac_var in $ac_subst_files
2713 eval ac_val=\$$ac_var
2715 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2717 $as_echo "$ac_var='\''$ac_val'\''"
2722 if test -s confdefs.h; then
2723 $as_echo "## ----------- ##
2730 test "$ac_signal" != 0 &&
2731 $as_echo "$as_me: caught signal $ac_signal"
2732 $as_echo "$as_me: exit $exit_status"
2734 rm -f core *.core core.conftest.* &&
2735 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2738 for ac_signal in 1 2 13 15; do
2739 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2743 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2744 rm -f -r conftest* confdefs.h
2746 $as_echo "/* confdefs.h */" > confdefs.h
2748 # Predefined preprocessor variables.
2750 cat >>confdefs.h <<_ACEOF
2751 #define PACKAGE_NAME "$PACKAGE_NAME"
2754 cat >>confdefs.h <<_ACEOF
2755 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2758 cat >>confdefs.h <<_ACEOF
2759 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2762 cat >>confdefs.h <<_ACEOF
2763 #define PACKAGE_STRING "$PACKAGE_STRING"
2766 cat >>confdefs.h <<_ACEOF
2767 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2770 cat >>confdefs.h <<_ACEOF
2771 #define PACKAGE_URL "$PACKAGE_URL"
2775 # Let the site file select an alternate cache file if it wants to.
2776 # Prefer an explicitly selected file to automatically selected ones.
2779 if test -n "$CONFIG_SITE"; then
2780 # We do not want a PATH search for config.site.
2781 case $CONFIG_SITE in #((
2782 -*) ac_site_file1=./$CONFIG_SITE;;
2783 */*) ac_site_file1=$CONFIG_SITE;;
2784 *) ac_site_file1=./$CONFIG_SITE;;
2786 elif test "x$prefix" != xNONE; then
2787 ac_site_file1=$prefix/share/config.site
2788 ac_site_file2=$prefix/etc/config.site
2790 ac_site_file1=$ac_default_prefix/share/config.site
2791 ac_site_file2=$ac_default_prefix/etc/config.site
2793 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2795 test "x$ac_site_file" = xNONE && continue
2796 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2798 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2799 sed 's/^/| /' "$ac_site_file" >&5
2801 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2803 as_fn_error $? "failed to load site script $ac_site_file
2804 See \`config.log' for more details" "$LINENO" 5; }
2808 if test -r "$cache_file"; then
2809 # Some versions of bash will fail to source /dev/null (special files
2810 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2811 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2813 $as_echo "$as_me: loading cache $cache_file" >&6;}
2815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2816 *) . "./$cache_file";;
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2821 $as_echo "$as_me: creating cache $cache_file" >&6;}
2825 as_fn_append ac_header_list " stdarg.h"
2826 # Check that the precious variables saved in the cache have kept the same
2828 ac_cache_corrupted=false
2829 for ac_var in $ac_precious_vars; do
2830 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2831 eval ac_new_set=\$ac_env_${ac_var}_set
2832 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2833 eval ac_new_val=\$ac_env_${ac_var}_value
2834 case $ac_old_set,$ac_new_set in
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2837 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2838 ac_cache_corrupted=: ;;
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2841 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2842 ac_cache_corrupted=: ;;
2845 if test "x$ac_old_val" != "x$ac_new_val"; then
2846 # differences in whitespace do not lead to failure.
2847 ac_old_val_w=`echo x $ac_old_val`
2848 ac_new_val_w=`echo x $ac_new_val`
2849 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2851 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2852 ac_cache_corrupted=:
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2855 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2856 eval $ac_var=\$ac_old_val
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2859 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2861 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2864 # Pass precious variables to config.status.
2865 if test "$ac_new_set" = set; then
2867 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2868 *) ac_arg=$ac_var=$ac_new_val ;;
2870 case " $ac_configure_args " in
2871 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2872 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2876 if $ac_cache_corrupted; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2880 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2881 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2883 ## -------------------- ##
2884 ## Main body of script. ##
2885 ## -------------------- ##
2888 ac_cpp='$CPP $CPPFLAGS'
2889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2896 for ac_dir in libevent/build-aux "$srcdir"/libevent/build-aux; do
2897 if test -f "$ac_dir/install-sh"; then
2899 ac_install_sh="$ac_aux_dir/install-sh -c"
2901 elif test -f "$ac_dir/install.sh"; then
2903 ac_install_sh="$ac_aux_dir/install.sh -c"
2905 elif test -f "$ac_dir/shtool"; then
2907 ac_install_sh="$ac_aux_dir/shtool install -c"
2911 if test -z "$ac_aux_dir"; then
2912 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libevent/build-aux \"$srcdir\"/libevent/build-aux" "$LINENO" 5
2915 # These three variables are undocumented and unsupported,
2916 # and are intended to be withdrawn in a future Autoconf release.
2917 # They can cause serious problems if a builder's source tree is in a directory
2918 # whose full name contains unusual characters.
2919 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2920 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2921 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2925 ac_cpp='$CPP $CPPFLAGS'
2926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2931 # Bump sntp_configure_cache_version for each change to configure.ac or
2932 # .m4 files which invalidates cached values from previous configure
2935 # If the change affects cache variables used only by the main NTP
2936 # configure.ac, then only its version number should be bumped, while
2937 # the subdir configure.ac version numbers should be unchanged. The
2938 # same is true for a test/variable that is used only by one subdir
2939 # being changed incompatibly; only that subdir's cache version needs
2942 # If a change affects variables shared by all NTP configure scripts,
2943 # please bump the version numbers of each. If you are not sure, the
2944 # safe choice is to bump all on any cache-invalidating change.
2946 # In order to avoid the risk of version stamp collision between -stable
2947 # and -dev branches, do not simply increment the version, instead use
2948 # the date YYYYMMDD optionally with -HHMM if there is more than one
2951 sntp_configure_cache_version=20120806
2953 # When the version of config.cache and configure do not
2954 # match, NTP_CACHEVERSION will flush the cache.
2960 case "$ntp_cv_sntp_cache_version" in
2961 $sntp_configure_cache_version)
2962 # same version, good
2966 # No cache, predates ntp_cv_sntp_cache_version, or is empty.
2967 case "$cache_file" in
2972 case "$NTP_CACHEVERSION_PARENT" in
2974 # Do not clear the cache immediately after it is created
2975 # empty as it is noisy. Differentiate a newly-created
2976 # config.cache from one predating the cache version
2977 # mechanism by looking for the first cached variable set
2979 case "$ac_cv_path_install" in
2981 # empty config.cache file
2986 # Parent configure just created cache from empty,
2987 # flushing would be counterproductive.
2994 # configure cache version mismatches config.cache version
2998 case "$ntp_cache_flush" in
3000 c_version="${ntp_cv_sntp_cache_version:-(no version found)}"
3002 # Do we flush all variables or exclude others' version stamps?
3004 case "$NTP_CACHEVERSION_PARENT" in
3006 # Clear all *_cv_* variables including our child subdirs'
3007 # ntp_cv_*_cache_version variables. This prevents subdir
3008 # configure scripts from noticing a version mismatch just
3009 # after the top configure in the invocation cleared and
3010 # recreated the cache.
3012 c_varname_list=`set |
3013 sed -n -e 's/=.*$//' \
3018 # This is not the top configure this particular invocation.
3019 # Clear all *_cv_* variables sparing the version stamps
3020 # of other configure scripts, so we don't trigger
3021 # useless repeated clearings.
3023 c_varname_list=`set |
3024 sed -n -e 's/=.*$//' \
3025 -e '/ntp_cv_.*_cache_version/d' \
3030 for c_varname in $c_varname_list
3032 { eval $c_varname=; unset $c_varname; }
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3036 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $sntp_configure_cache_version" >&5
3038 $as_echo "$as_me: configure script cache version: $sntp_configure_cache_version" >&6;}
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3040 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
3041 { c_varname=; unset c_varname;}
3042 { c_varname_list=; unset c_varname_list;}
3043 { c_version=; unset c_version;}
3046 { ntp_cache_flush=; unset ntp_cache_flush;}
3048 # save configure version in config.cache for next time
3049 ntp_cv_sntp_cache_version="$sntp_configure_cache_version"
3051 # let any subdir configure.ac NTP_CACHEVERSION invocations
3052 # know they are not the top level.
3053 NTP_CACHEVERSION_PARENT='sntp' ; export NTP_CACHEVERSION_PARENT
3056 am__api_version='1.15'
3058 # Find a good install program. We prefer a C program (faster),
3059 # so one script is as good as another. But avoid the broken or
3060 # incompatible versions:
3061 # SysV /etc/install, /usr/sbin/install
3062 # SunOS /usr/etc/install
3063 # IRIX /sbin/install
3065 # AmigaOS /C/install, which installs bootblocks on floppy discs
3066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3069 # OS/2's system install, which has a completely different semantic
3070 # ./install, which can be erroneously created by make from ./install.sh.
3071 # Reject install programs that cannot install multiple files.
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3073 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3074 if test -z "$INSTALL"; then
3075 if ${ac_cv_path_install+:} false; then :
3076 $as_echo_n "(cached) " >&6
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 test -z "$as_dir" && as_dir=.
3083 # Account for people who put trailing slashes in PATH elements.
3084 case $as_dir/ in #((
3085 ./ | .// | /[cC]/* | \
3086 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3087 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3090 # OSF1 and SCO ODT 3.0 have their own names for install.
3091 # Don't use installbsd from OSF since it installs stuff as root
3093 for ac_prog in ginstall scoinst install; do
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3096 if test $ac_prog = install &&
3097 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098 # AIX install. It has an incompatible calling convention.
3100 elif test $ac_prog = install &&
3101 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3102 # program-specific install script used by HP pwplus--don't use.
3105 rm -rf conftest.one conftest.two conftest.dir
3106 echo one > conftest.one
3107 echo two > conftest.two
3109 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3110 test -s conftest.one && test -s conftest.two &&
3111 test -s conftest.dir/conftest.one &&
3112 test -s conftest.dir/conftest.two
3114 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3127 rm -rf conftest.one conftest.two conftest.dir
3130 if test "${ac_cv_path_install+set}" = set; then
3131 INSTALL=$ac_cv_path_install
3133 # As a last resort, use the slow shell script. Don't cache a
3134 # value for INSTALL within a source directory, because that will
3135 # break other packages using the cache if that directory is
3136 # removed, or if the value is a relative name.
3137 INSTALL=$ac_install_sh
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3141 $as_echo "$INSTALL" >&6; }
3143 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3144 # It thinks the first close brace ends the variable substitution.
3145 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3147 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3149 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3152 $as_echo_n "checking whether build environment is sane... " >&6; }
3153 # Reject unsafe characters in $srcdir or the absolute working directory
3154 # name. Accept space and tab only in the latter.
3158 *[\\\"\#\$\&\'\`$am_lf]*)
3159 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3162 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3163 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3166 # Do 'set' in a subshell so we don't clobber the current shell's
3167 # arguments. Must try -L first in case configure is actually a
3168 # symlink; some systems play weird games with the mod time of symlinks
3169 # (eg FreeBSD returns the mod time of the symlink's containing
3173 for am_try in 1 2; do
3174 echo "timestamp, slept: $am_has_slept" > conftest.file
3175 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3176 if test "$*" = "X"; then
3178 set X `ls -t "$srcdir/configure" conftest.file`
3180 if test "$*" != "X $srcdir/configure conftest.file" \
3181 && test "$*" != "X conftest.file $srcdir/configure"; then
3183 # If neither matched, then we have a broken ls. This can happen
3184 # if, for instance, CONFIG_SHELL is bash and it inherits a
3185 # broken ls alias from the environment. This has actually
3186 # happened. Such a system could not be considered "sane".
3187 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3188 alias in your environment" "$LINENO" 5
3190 if test "$2" = conftest.file || test $am_try -eq 2; then
3197 test "$2" = conftest.file
3203 as_fn_error $? "newly created file is older than distributed files!
3204 Check your system clock" "$LINENO" 5
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3207 $as_echo "yes" >&6; }
3208 # If we didn't sleep, we still need to ensure time stamps of config.status and
3209 # generated files are strictly newer.
3211 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3218 test "$program_prefix" != NONE &&
3219 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3220 # Use a double $ so make ignores it.
3221 test "$program_suffix" != NONE &&
3222 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3223 # Double any \ or $.
3224 # By default was `s,x,x', remove it if useless.
3225 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3226 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3228 # Expand $ac_aux_dir to an absolute path.
3229 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3231 if test x"${MISSING+set}" != xset; then
3234 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3236 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3239 # Use eval to expand $SHELL
3240 if eval "$MISSING --is-lightweight"; then
3241 am_missing_run="$MISSING "
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3245 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3248 if test x"${install_sh+set}" != xset; then
3251 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3253 install_sh="\${SHELL} $am_aux_dir/install-sh"
3257 # Installed binaries are usually stripped using 'strip' when the user
3258 # run "make install-strip". However 'strip' might not be the right
3259 # tool to use in cross-compilation environments, therefore Automake
3260 # will honor the 'STRIP' environment variable to overrule this program.
3261 if test "$cross_compiling" != no; then
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3264 set dummy ${ac_tool_prefix}strip; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_STRIP+:} false; then :
3268 $as_echo_n "(cached) " >&6
3270 if test -n "$STRIP"; then
3271 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 STRIP=$ac_cv_prog_STRIP
3291 if test -n "$STRIP"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3293 $as_echo "$STRIP" >&6; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3301 if test -z "$ac_cv_prog_STRIP"; then
3303 # Extract the first word of "strip", so it can be a program name with args.
3304 set dummy strip; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3308 $as_echo_n "(cached) " >&6
3310 if test -n "$ac_ct_STRIP"; then
3311 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320 ac_cv_prog_ac_ct_STRIP="strip"
3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3331 if test -n "$ac_ct_STRIP"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3333 $as_echo "$ac_ct_STRIP" >&6; }
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3339 if test "x$ac_ct_STRIP" = x; then
3342 case $cross_compiling:$ac_tool_warned in
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3346 ac_tool_warned=yes ;;
3351 STRIP="$ac_cv_prog_STRIP"
3355 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3358 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3359 if test -z "$MKDIR_P"; then
3360 if ${ac_cv_path_mkdir+:} false; then :
3361 $as_echo_n "(cached) " >&6
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3367 test -z "$as_dir" && as_dir=.
3368 for ac_prog in mkdir gmkdir; do
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3371 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3372 'mkdir (GNU coreutils) '* | \
3373 'mkdir (coreutils) '* | \
3374 'mkdir (fileutils) '4.1*)
3375 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3385 test -d ./--version && rmdir ./--version
3386 if test "${ac_cv_path_mkdir+set}" = set; then
3387 MKDIR_P="$ac_cv_path_mkdir -p"
3389 # As a last resort, use the slow shell script. Don't cache a
3390 # value for MKDIR_P within a source directory, because that will
3391 # break other packages using the cache if that directory is
3392 # removed, or if the value is a relative name.
3393 MKDIR_P="$ac_install_sh -d"
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3397 $as_echo "$MKDIR_P" >&6; }
3399 for ac_prog in gawk mawk nawk awk
3401 # Extract the first word of "$ac_prog", so it can be a program name with args.
3402 set dummy $ac_prog; ac_word=$2
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3404 $as_echo_n "checking for $ac_word... " >&6; }
3405 if ${ac_cv_prog_AWK+:} false; then :
3406 $as_echo_n "(cached) " >&6
3408 if test -n "$AWK"; then
3409 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 test -z "$as_dir" && as_dir=.
3416 for ac_exec_ext in '' $ac_executable_extensions; do
3417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3418 ac_cv_prog_AWK="$ac_prog"
3419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 if test -n "$AWK"; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3431 $as_echo "$AWK" >&6; }
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 $as_echo "no" >&6; }
3438 test -n "$AWK" && break
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3442 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3444 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3445 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3446 $as_echo_n "(cached) " >&6
3448 cat >conftest.make <<\_ACEOF
3451 @echo '@@@%%%=$(MAKE)=@@@%%%'
3453 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3454 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3456 eval ac_cv_prog_make_${ac_make}_set=yes;;
3458 eval ac_cv_prog_make_${ac_make}_set=no;;
3462 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3464 $as_echo "yes" >&6; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3469 SET_MAKE="MAKE=${MAKE-make}"
3472 rm -rf .tst 2>/dev/null
3473 mkdir .tst 2>/dev/null
3474 if test -d .tst; then
3479 rmdir .tst 2>/dev/null
3481 # Check whether --enable-silent-rules was given.
3482 if test "${enable_silent_rules+set}" = set; then :
3483 enableval=$enable_silent_rules;
3486 case $enable_silent_rules in # (((
3487 yes) AM_DEFAULT_VERBOSITY=0;;
3488 no) AM_DEFAULT_VERBOSITY=1;;
3489 *) AM_DEFAULT_VERBOSITY=1;;
3491 am_make=${MAKE-make}
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3493 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3494 if ${am_cv_make_support_nested_variables+:} false; then :
3495 $as_echo_n "(cached) " >&6
3497 if $as_echo 'TRUE=$(BAR$(V))
3503 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3504 am_cv_make_support_nested_variables=yes
3506 am_cv_make_support_nested_variables=no
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3510 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3511 if test $am_cv_make_support_nested_variables = yes; then
3513 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3515 AM_V=$AM_DEFAULT_VERBOSITY
3516 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3520 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3521 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3522 # is not polluted with repeated "-I."
3523 am__isrc=' -I$(srcdir)'
3524 # test to see if srcdir already configured
3525 if test -f $srcdir/config.status; then
3526 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3530 # test whether we have cygpath
3531 if test -z "$CYGPATH_W"; then
3532 if (cygpath --version) >/dev/null 2>/dev/null; then
3533 CYGPATH_W='cygpath -w'
3540 # Define the identity of the package.
3545 cat >>confdefs.h <<_ACEOF
3546 #define PACKAGE "$PACKAGE"
3550 cat >>confdefs.h <<_ACEOF
3551 #define VERSION "$VERSION"
3554 # Some tools Automake needs.
3556 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3559 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3562 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3565 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3568 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3570 # For better backward compatibility. To be removed once Automake 1.9.x
3571 # dies out for good. For more background, see:
3572 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3573 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3574 mkdir_p='$(MKDIR_P)'
3576 # We need awk for the "check" target (and possibly the TAP driver). The
3577 # system "awk" is bad on some platforms.
3578 # Always define AMTAR for backward compatibility. Yes, it's still used
3579 # in the wild :-( We should find a proper way to deprecate it ...
3583 # We'll loop over all known methods to create a tar archive until one works.
3584 _am_tools='gnutar pax cpio none'
3586 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3593 # POSIX will say in a future version that running "rm -f" with no argument
3594 # is OK; and we want to be able to make that assumption in our Makefile
3595 # recipes. So use an aggressive probe to check that the usage we want is
3596 # actually supported "in the wild" to an acceptable degree.
3597 # See automake bug#10828.
3598 # To make any issue more visible, cause the running configure to be aborted
3599 # by default if the 'rm' program in use doesn't match our expectations; the
3600 # user can still override this though.
3601 if rm -f && rm -fr && rm -rf; then : OK; else
3605 Your 'rm' program seems unable to run without file operands specified
3606 on the command line, even when the '-f' option is present. This is contrary
3607 to the behaviour of most rm programs out there, and not conforming with
3608 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3610 Please tell bug-automake@gnu.org about your system, including the value
3611 of your $PATH and any error possibly output before this message. This
3612 can help us improve future automake versions.
3615 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3616 echo 'Configuration will proceed anyway, since you have set the' >&2
3617 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3621 Aborting the configuration process, to ensure you take notice of the issue.
3623 You can download and install GNU coreutils to get an 'rm' implementation
3624 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3626 If you want to complete the configuration process using your problematic
3627 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3628 to "yes", and re-run configure.
3631 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3635 # Check whether --enable-silent-rules was given.
3636 if test "${enable_silent_rules+set}" = set; then :
3637 enableval=$enable_silent_rules;
3640 case $enable_silent_rules in # (((
3641 yes) AM_DEFAULT_VERBOSITY=0;;
3642 no) AM_DEFAULT_VERBOSITY=1;;
3643 *) AM_DEFAULT_VERBOSITY=0;;
3645 am_make=${MAKE-make}
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3647 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3648 if ${am_cv_make_support_nested_variables+:} false; then :
3649 $as_echo_n "(cached) " >&6
3651 if $as_echo 'TRUE=$(BAR$(V))
3657 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3658 am_cv_make_support_nested_variables=yes
3660 am_cv_make_support_nested_variables=no
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3664 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3665 if test $am_cv_make_support_nested_variables = yes; then
3667 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3669 AM_V=$AM_DEFAULT_VERBOSITY
3670 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3675 # Make sure we can run config.sub.
3676 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3677 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3680 $as_echo_n "checking build system type... " >&6; }
3681 if ${ac_cv_build+:} false; then :
3682 $as_echo_n "(cached) " >&6
3684 ac_build_alias=$build_alias
3685 test "x$ac_build_alias" = x &&
3686 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3687 test "x$ac_build_alias" = x &&
3688 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3689 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3690 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3694 $as_echo "$ac_cv_build" >&6; }
3695 case $ac_cv_build in
3697 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3700 ac_save_IFS=$IFS; IFS='-'
3706 # Remember, the first character of IFS is used to create $*,
3707 # except with old shells:
3710 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3714 $as_echo_n "checking host system type... " >&6; }
3715 if ${ac_cv_host+:} false; then :
3716 $as_echo_n "(cached) " >&6
3718 if test "x$host_alias" = x; then
3719 ac_cv_host=$ac_cv_build
3721 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3722 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3727 $as_echo "$ac_cv_host" >&6; }
3730 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3733 ac_save_IFS=$IFS; IFS='-'
3739 # Remember, the first character of IFS is used to create $*,
3740 # except with old shells:
3743 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3747 cat >>confdefs.h <<_ACEOF
3748 #define STR_SYSTEM "$host"
3751 ac_config_headers="$ac_config_headers config.h"
3754 DEPDIR="${am__leading_dot}deps"
3756 ac_config_commands="$ac_config_commands depfiles"
3759 am_make=${MAKE-make}
3760 cat > confinc << 'END'
3762 @echo this is the am__doit target
3765 # If we don't find an include directive, just comment out the code.
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3767 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3771 # First try GNU make style include.
3772 echo "include confinc" > confmf
3773 # Ignore all kinds of additional output from 'make'.
3774 case `$am_make -s -f confmf 2> /dev/null` in #(
3775 *the\ am__doit\ target*)
3781 # Now try BSD make style include.
3782 if test "$am__include" = "#"; then
3783 echo '.include "confinc"' > confmf
3784 case `$am_make -s -f confmf 2> /dev/null` in #(
3785 *the\ am__doit\ target*)
3786 am__include=.include
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3795 $as_echo "$_am_result" >&6; }
3796 rm -f confinc confmf
3798 # Check whether --enable-dependency-tracking was given.
3799 if test "${enable_dependency_tracking+set}" = set; then :
3800 enableval=$enable_dependency_tracking;
3803 if test "x$enable_dependency_tracking" != xno; then
3804 am_depcomp="$ac_aux_dir/depcomp"
3808 if test "x$enable_dependency_tracking" != xno; then
3818 ac_cpp='$CPP $CPPFLAGS'
3819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3822 if test -n "$ac_tool_prefix"; then
3823 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3824 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826 $as_echo_n "checking for $ac_word... " >&6; }
3827 if ${ac_cv_prog_CC+:} false; then :
3828 $as_echo_n "(cached) " >&6
3830 if test -n "$CC"; then
3831 ac_cv_prog_CC="$CC" # Let the user override the test.
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 if test -n "$CC"; then
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3853 $as_echo "$CC" >&6; }
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856 $as_echo "no" >&6; }
3861 if test -z "$ac_cv_prog_CC"; then
3863 # Extract the first word of "gcc", so it can be a program name with args.
3864 set dummy gcc; ac_word=$2
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866 $as_echo_n "checking for $ac_word... " >&6; }
3867 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3868 $as_echo_n "(cached) " >&6
3870 if test -n "$ac_ct_CC"; then
3871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3880 ac_cv_prog_ac_ct_CC="gcc"
3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3891 if test -n "$ac_ct_CC"; then
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3893 $as_echo "$ac_ct_CC" >&6; }
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 $as_echo "no" >&6; }
3899 if test "x$ac_ct_CC" = x; then
3902 case $cross_compiling:$ac_tool_warned in
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3906 ac_tool_warned=yes ;;
3914 if test -z "$CC"; then
3915 if test -n "$ac_tool_prefix"; then
3916 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3917 set dummy ${ac_tool_prefix}cc; ac_word=$2
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if ${ac_cv_prog_CC+:} false; then :
3921 $as_echo_n "(cached) " >&6
3923 if test -n "$CC"; then
3924 ac_cv_prog_CC="$CC" # Let the user override the test.
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933 ac_cv_prog_CC="${ac_tool_prefix}cc"
3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 if test -n "$CC"; then
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3946 $as_echo "$CC" >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 $as_echo "no" >&6; }
3955 if test -z "$CC"; then
3956 # Extract the first word of "cc", so it can be a program name with args.
3957 set dummy cc; ac_word=$2
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959 $as_echo_n "checking for $ac_word... " >&6; }
3960 if ${ac_cv_prog_CC+:} false; then :
3961 $as_echo_n "(cached) " >&6
3963 if test -n "$CC"; then
3964 ac_cv_prog_CC="$CC" # Let the user override the test.
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3975 ac_prog_rejected=yes
3979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 if test $ac_prog_rejected = yes; then
3987 # We found a bogon in the path, so make sure we never use it.
3988 set dummy $ac_cv_prog_CC
3990 if test $# != 0; then
3991 # We chose a different compiler from the bogus one.
3992 # However, it has the same basename, so the bogon will be chosen
3993 # first if we set CC to just the basename; use the full file name.
3995 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4001 if test -n "$CC"; then
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4003 $as_echo "$CC" >&6; }
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 $as_echo "no" >&6; }
4011 if test -z "$CC"; then
4012 if test -n "$ac_tool_prefix"; then
4013 for ac_prog in cl.exe
4015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018 $as_echo_n "checking for $ac_word... " >&6; }
4019 if ${ac_cv_prog_CC+:} false; then :
4020 $as_echo_n "(cached) " >&6
4022 if test -n "$CC"; then
4023 ac_cv_prog_CC="$CC" # Let the user override the test.
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4032 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 if test -n "$CC"; then
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4045 $as_echo "$CC" >&6; }
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 $as_echo "no" >&6; }
4052 test -n "$CC" && break
4055 if test -z "$CC"; then
4057 for ac_prog in cl.exe
4059 # Extract the first word of "$ac_prog", so it can be a program name with args.
4060 set dummy $ac_prog; ac_word=$2
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062 $as_echo_n "checking for $ac_word... " >&6; }
4063 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4064 $as_echo_n "(cached) " >&6
4066 if test -n "$ac_ct_CC"; then
4067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4076 ac_cv_prog_ac_ct_CC="$ac_prog"
4077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4087 if test -n "$ac_ct_CC"; then
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4089 $as_echo "$ac_ct_CC" >&6; }
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092 $as_echo "no" >&6; }
4096 test -n "$ac_ct_CC" && break
4099 if test "x$ac_ct_CC" = x; then
4102 case $cross_compiling:$ac_tool_warned in
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4106 ac_tool_warned=yes ;;
4115 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4117 as_fn_error $? "no acceptable C compiler found in \$PATH
4118 See \`config.log' for more details" "$LINENO" 5; }
4120 # Provide some information about the compiler.
4121 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4124 for ac_option in --version -v -V -qversion; do
4125 { { ac_try="$ac_compiler $ac_option >&5"
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4131 $as_echo "$ac_try_echo"; } >&5
4132 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4134 if test -s conftest.err; then
4136 ... rest of stderr output deleted ...
4137 10q' conftest.err >conftest.er1
4138 cat conftest.er1 >&5
4140 rm -f conftest.er1 conftest.err
4141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4142 test $ac_status = 0; }
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4156 ac_clean_files_save=$ac_clean_files
4157 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4158 # Try to create an executable without -o first, disregard a.out.
4159 # It will help us diagnose broken compilers, and finding out an intuition
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4162 $as_echo_n "checking whether the C compiler works... " >&6; }
4163 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4165 # The possible output files:
4166 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4169 for ac_file in $ac_files
4172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4173 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4178 if { { ac_try="$ac_link_default"
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4184 $as_echo "$ac_try_echo"; } >&5
4185 (eval "$ac_link_default") 2>&5
4187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4188 test $ac_status = 0; }; then :
4189 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4190 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4191 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4192 # so that the user can short-circuit this test for compilers unknown to
4194 for ac_file in $ac_files ''
4196 test -f "$ac_file" || continue
4198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4201 # We found the default executable, but exeext='' is most
4205 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4207 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4209 # We set ac_cv_exeext here because the later test for it is not
4210 # safe: cross compilers may not add the suffix if given an `-o'
4211 # argument, so we may need to know it at that point already.
4212 # Even if this section looks crufty: it has the advantage of
4219 test "$ac_cv_exeext" = no && ac_cv_exeext=
4224 if test -z "$ac_file"; then :
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226 $as_echo "no" >&6; }
4227 $as_echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4232 as_fn_error 77 "C compiler cannot create executables
4233 See \`config.log' for more details" "$LINENO" 5; }
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4236 $as_echo "yes" >&6; }
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4239 $as_echo_n "checking for C compiler default output file name... " >&6; }
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4241 $as_echo "$ac_file" >&6; }
4242 ac_exeext=$ac_cv_exeext
4244 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4245 ac_clean_files=$ac_clean_files_save
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4247 $as_echo_n "checking for suffix of executables... " >&6; }
4248 if { { ac_try="$ac_link"
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4254 $as_echo "$ac_try_echo"; } >&5
4255 (eval "$ac_link") 2>&5
4257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4258 test $ac_status = 0; }; then :
4259 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4260 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4261 # work properly (i.e., refer to `conftest.exe'), while it won't with
4263 for ac_file in conftest.exe conftest conftest.*; do
4264 test -f "$ac_file" || continue
4266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4267 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4275 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4276 See \`config.log' for more details" "$LINENO" 5; }
4278 rm -f conftest conftest$ac_cv_exeext
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4280 $as_echo "$ac_cv_exeext" >&6; }
4282 rm -f conftest.$ac_ext
4283 EXEEXT=$ac_cv_exeext
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4291 FILE *f = fopen ("conftest.out", "w");
4292 return ferror (f) || fclose (f) != 0;
4298 ac_clean_files="$ac_clean_files conftest.out"
4299 # Check that the compiler produces executables we can run. If not, either
4300 # the compiler is broken, or we cross compile.
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4302 $as_echo_n "checking whether we are cross compiling... " >&6; }
4303 if test "$cross_compiling" != yes; then
4304 { { ac_try="$ac_link"
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_link") 2>&5
4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; }
4315 if { ac_try='./conftest$ac_cv_exeext'
4316 { { case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321 $as_echo "$ac_try_echo"; } >&5
4322 (eval "$ac_try") 2>&5
4324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325 test $ac_status = 0; }; }; then
4328 if test "$cross_compiling" = maybe; then
4331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4333 as_fn_error $? "cannot run C compiled programs.
4334 If you meant to cross compile, use \`--host'.
4335 See \`config.log' for more details" "$LINENO" 5; }
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4340 $as_echo "$cross_compiling" >&6; }
4342 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4343 ac_clean_files=$ac_clean_files_save
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4345 $as_echo_n "checking for suffix of object files... " >&6; }
4346 if ${ac_cv_objext+:} false; then :
4347 $as_echo_n "(cached) " >&6
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4360 rm -f conftest.o conftest.obj
4361 if { { ac_try="$ac_compile"
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4367 $as_echo "$ac_try_echo"; } >&5
4368 (eval "$ac_compile") 2>&5
4370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371 test $ac_status = 0; }; then :
4372 for ac_file in conftest.o conftest.obj conftest.*; do
4373 test -f "$ac_file" || continue;
4375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4376 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4381 $as_echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4386 as_fn_error $? "cannot compute suffix of object files: cannot compile
4387 See \`config.log' for more details" "$LINENO" 5; }
4389 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4392 $as_echo "$ac_cv_objext" >&6; }
4393 OBJEXT=$ac_cv_objext
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4396 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4397 if ${ac_cv_c_compiler_gnu+:} false; then :
4398 $as_echo_n "(cached) " >&6
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4414 if ac_fn_c_try_compile "$LINENO"; then :
4419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4424 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4425 if test $ac_compiler_gnu = yes; then
4430 ac_test_CFLAGS=${CFLAGS+set}
4431 ac_save_CFLAGS=$CFLAGS
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4433 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4434 if ${ac_cv_prog_cc_g+:} false; then :
4435 $as_echo_n "(cached) " >&6
4437 ac_save_c_werror_flag=$ac_c_werror_flag
4438 ac_c_werror_flag=yes
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4452 if ac_fn_c_try_compile "$LINENO"; then :
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4467 if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_c_werror_flag=$ac_save_c_werror_flag
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4483 if ac_fn_c_try_compile "$LINENO"; then :
4486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491 ac_c_werror_flag=$ac_save_c_werror_flag
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4494 $as_echo "$ac_cv_prog_cc_g" >&6; }
4495 if test "$ac_test_CFLAGS" = set; then
4496 CFLAGS=$ac_save_CFLAGS
4497 elif test $ac_cv_prog_cc_g = yes; then
4498 if test "$GCC" = yes; then
4504 if test "$GCC" = yes; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4511 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4512 if ${ac_cv_prog_cc_c89+:} false; then :
4513 $as_echo_n "(cached) " >&6
4515 ac_cv_prog_cc_c89=no
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4522 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4523 struct buf { int x; };
4524 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4525 static char *e (p, i)
4531 static char *f (char * (*g) (char **, int), char **p, ...)
4536 s = g (p, va_arg (v,int));
4541 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4542 function prototypes and stuff, but not '\xHH' hex character constants.
4543 These don't provoke an error unfortunately, instead are silently treated
4544 as 'x'. The following induces an error, until -std is added to get
4545 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4546 array size at least. It's necessary to write '\x00'==0 to get something
4547 that's true only with -std. */
4548 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4550 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4551 inside strings and character constants. */
4553 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4555 int test (int i, double x);
4556 struct s1 {int (*f) (int a);};
4557 struct s2 {int (*f) (double a);};
4558 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4564 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4569 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4570 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4572 CC="$ac_save_CC $ac_arg"
4573 if ac_fn_c_try_compile "$LINENO"; then :
4574 ac_cv_prog_cc_c89=$ac_arg
4576 rm -f core conftest.err conftest.$ac_objext
4577 test "x$ac_cv_prog_cc_c89" != "xno" && break
4579 rm -f conftest.$ac_ext
4584 case "x$ac_cv_prog_cc_c89" in
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4587 $as_echo "none needed" >&6; } ;;
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4590 $as_echo "unsupported" >&6; } ;;
4592 CC="$CC $ac_cv_prog_cc_c89"
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4594 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4596 if test "x$ac_cv_prog_cc_c89" != xno; then :
4601 ac_cpp='$CPP $CPPFLAGS'
4602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4607 ac_cpp='$CPP $CPPFLAGS'
4608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4612 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4613 if ${am_cv_prog_cc_c_o+:} false; then :
4614 $as_echo_n "(cached) " >&6
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4627 # Make sure it works both with $CC and with simple cc.
4628 # Following AC_PROG_CC_C_O, we do the test twice because some
4629 # compilers refuse to overwrite an existing .o file with -o,
4630 # though they will create one.
4631 am_cv_prog_cc_c_o=yes
4633 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4634 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } \
4638 && test -f conftest2.$ac_objext; then
4641 am_cv_prog_cc_c_o=no
4645 rm -f core conftest*
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4649 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4650 if test "$am_cv_prog_cc_c_o" != yes; then
4651 # Losing compiler, so override with the script.
4652 # FIXME: It is wrong to rewrite CC.
4653 # But if we don't then we get into trouble of one sort or another.
4654 # A longer-term fix would be to have automake use am__CC in this case,
4655 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4656 CC="$am_aux_dir/compile $CC"
4659 ac_cpp='$CPP $CPPFLAGS'
4660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4665 depcc="$CC" am_compiler_list=
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4668 $as_echo_n "checking dependency style of $depcc... " >&6; }
4669 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4670 $as_echo_n "(cached) " >&6
4672 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4673 # We make a subdir and do the tests there. Otherwise we can end up
4674 # making bogus files that we don't know about and never remove. For
4675 # instance it was reported that on HP-UX the gcc test will end up
4676 # making a dummy file named 'D' -- because '-MD' means "put the output
4680 # Copy depcomp to subdir because otherwise we won't find it if we're
4681 # using a relative directory.
4682 cp "$am_depcomp" conftest.dir
4684 # We will build objects and dependencies in a subdirectory because
4685 # it helps to detect inapplicable dependency modes. For instance
4686 # both Tru64's cc and ICC support -MD to output dependencies as a
4687 # side effect of compilation, but ICC will put the dependencies in
4688 # the current directory while Tru64 will put them in the object
4692 am_cv_CC_dependencies_compiler_type=none
4693 if test "$am_compiler_list" = ""; then
4694 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4697 case " $depcc " in #(
4698 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4701 for depmode in $am_compiler_list; do
4702 # Setup a source with many dependencies, because some compilers
4703 # like to wrap large dependency lists on column 80 (with \), and
4704 # we should not choose a depcomp mode which is confused by this.
4706 # We need to recreate these files for each test, as the compiler may
4707 # overwrite some of them when testing with obscure command lines.
4708 # This happens at least with the AIX C compiler.
4710 for i in 1 2 3 4 5 6; do
4711 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4712 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4713 # Solaris 10 /bin/sh.
4714 echo '/* dummy */' > sub/conftst$i.h
4716 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4718 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4719 # mode. It turns out that the SunPro C++ compiler does not properly
4720 # handle '-M -o', and we need to detect this. Also, some Intel
4721 # versions had trouble with output in subdirs.
4722 am__obj=sub/conftest.${OBJEXT-o}
4723 am__minus_obj="-o $am__obj"
4726 # This depmode causes a compiler race in universal mode.
4727 test "$am__universal" = false || continue
4730 # After this tag, mechanisms are not by side-effect, so they'll
4731 # only be used when explicitly requested.
4732 if test "x$enable_dependency_tracking" = xyes; then
4738 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4739 # This compiler won't grok '-c -o', but also, the minuso test has
4740 # not run yet. These depmodes are late enough in the game, and
4741 # so weak that their functioning should not be impacted.
4742 am__obj=conftest.${OBJEXT-o}
4747 if depmode=$depmode \
4748 source=sub/conftest.c object=$am__obj \
4749 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4750 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4751 >/dev/null 2>conftest.err &&
4752 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4753 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4754 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4755 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4756 # icc doesn't choke on unknown options, it will just issue warnings
4757 # or remarks (even with -Werror). So we grep stderr for any message
4758 # that says an option was ignored or not supported.
4759 # When given -MP, icc 7.0 and 7.1 complain thusly:
4760 # icc: Command line warning: ignoring option '-M'; no argument required
4761 # The diagnosis changed in icc 8.0:
4762 # icc: Command line remark: option '-MP' not supported
4763 if (grep 'ignoring option' conftest.err ||
4764 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4765 am_cv_CC_dependencies_compiler_type=$depmode
4774 am_cv_CC_dependencies_compiler_type=none
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4779 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4780 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4783 test "x$enable_dependency_tracking" != xno \
4784 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4786 am__fastdepCC_FALSE='#'
4788 am__fastdepCC_TRUE='#'
4789 am__fastdepCC_FALSE=
4795 ac_cpp='$CPP $CPPFLAGS'
4796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4800 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4801 # On Suns, sometimes $CPP names a directory.
4802 if test -n "$CPP" && test -d "$CPP"; then
4805 if test -z "$CPP"; then
4806 if ${ac_cv_prog_CPP+:} false; then :
4807 $as_echo_n "(cached) " >&6
4809 # Double quotes because CPP needs to be expanded
4810 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4813 for ac_c_preproc_warn_flag in '' yes
4815 # Use a header file that comes with gcc, so configuring glibc
4816 # with a fresh cross-compiler works.
4817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4818 # <limits.h> exists even on freestanding compilers.
4819 # On the NeXT, cc -E runs the code through the compiler's parser,
4820 # not just through cpp. "Syntax error" is here to catch this case.
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h. */
4824 # include <limits.h>
4826 # include <assert.h>
4830 if ac_fn_c_try_cpp "$LINENO"; then :
4833 # Broken: fails on valid input.
4836 rm -f conftest.err conftest.i conftest.$ac_ext
4838 # OK, works on sane cases. Now check whether nonexistent headers
4839 # can be detected and how.
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4842 #include <ac_nonexistent.h>
4844 if ac_fn_c_try_cpp "$LINENO"; then :
4845 # Broken: success on invalid input.
4848 # Passes both tests.
4852 rm -f conftest.err conftest.i conftest.$ac_ext
4855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4856 rm -f conftest.i conftest.err conftest.$ac_ext
4857 if $ac_preproc_ok; then :
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4870 $as_echo "$CPP" >&6; }
4872 for ac_c_preproc_warn_flag in '' yes
4874 # Use a header file that comes with gcc, so configuring glibc
4875 # with a fresh cross-compiler works.
4876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4877 # <limits.h> exists even on freestanding compilers.
4878 # On the NeXT, cc -E runs the code through the compiler's parser,
4879 # not just through cpp. "Syntax error" is here to catch this case.
4880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881 /* end confdefs.h. */
4883 # include <limits.h>
4885 # include <assert.h>
4889 if ac_fn_c_try_cpp "$LINENO"; then :
4892 # Broken: fails on valid input.
4895 rm -f conftest.err conftest.i conftest.$ac_ext
4897 # OK, works on sane cases. Now check whether nonexistent headers
4898 # can be detected and how.
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4901 #include <ac_nonexistent.h>
4903 if ac_fn_c_try_cpp "$LINENO"; then :
4904 # Broken: success on invalid input.
4907 # Passes both tests.
4911 rm -f conftest.err conftest.i conftest.$ac_ext
4914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4915 rm -f conftest.i conftest.err conftest.$ac_ext
4916 if $ac_preproc_ok; then :
4919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4921 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4922 See \`config.log' for more details" "$LINENO" 5; }
4926 ac_cpp='$CPP $CPPFLAGS'
4927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4933 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4934 if ${ac_cv_path_GREP+:} false; then :
4935 $as_echo_n "(cached) " >&6
4937 if test -z "$GREP"; then
4938 ac_path_GREP_found=false
4939 # Loop through the user's path and test for each of PROGNAME-LIST
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4944 test -z "$as_dir" && as_dir=.
4945 for ac_prog in grep ggrep; do
4946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4948 as_fn_executable_p "$ac_path_GREP" || continue
4949 # Check for GNU ac_path_GREP and select it if it is found.
4950 # Check for GNU $ac_path_GREP
4951 case `"$ac_path_GREP" --version 2>&1` in
4953 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4956 $as_echo_n 0123456789 >"conftest.in"
4959 cat "conftest.in" "conftest.in" >"conftest.tmp"
4960 mv "conftest.tmp" "conftest.in"
4961 cp "conftest.in" "conftest.nl"
4962 $as_echo 'GREP' >> "conftest.nl"
4963 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4965 as_fn_arith $ac_count + 1 && ac_count=$as_val
4966 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4967 # Best one so far, save it but keep looking for a better one
4968 ac_cv_path_GREP="$ac_path_GREP"
4969 ac_path_GREP_max=$ac_count
4971 # 10*(2^10) chars as input seems more than enough
4972 test $ac_count -gt 10 && break
4974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4977 $ac_path_GREP_found && break 3
4982 if test -z "$ac_cv_path_GREP"; then
4983 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4986 ac_cv_path_GREP=$GREP
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4991 $as_echo "$ac_cv_path_GREP" >&6; }
4992 GREP="$ac_cv_path_GREP"
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4996 $as_echo_n "checking for egrep... " >&6; }
4997 if ${ac_cv_path_EGREP+:} false; then :
4998 $as_echo_n "(cached) " >&6
5000 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5001 then ac_cv_path_EGREP="$GREP -E"
5003 if test -z "$EGREP"; then
5004 ac_path_EGREP_found=false
5005 # Loop through the user's path and test for each of PROGNAME-LIST
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5010 test -z "$as_dir" && as_dir=.
5011 for ac_prog in egrep; do
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5014 as_fn_executable_p "$ac_path_EGREP" || continue
5015 # Check for GNU ac_path_EGREP and select it if it is found.
5016 # Check for GNU $ac_path_EGREP
5017 case `"$ac_path_EGREP" --version 2>&1` in
5019 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5022 $as_echo_n 0123456789 >"conftest.in"
5025 cat "conftest.in" "conftest.in" >"conftest.tmp"
5026 mv "conftest.tmp" "conftest.in"
5027 cp "conftest.in" "conftest.nl"
5028 $as_echo 'EGREP' >> "conftest.nl"
5029 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5031 as_fn_arith $ac_count + 1 && ac_count=$as_val
5032 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5033 # Best one so far, save it but keep looking for a better one
5034 ac_cv_path_EGREP="$ac_path_EGREP"
5035 ac_path_EGREP_max=$ac_count
5037 # 10*(2^10) chars as input seems more than enough
5038 test $ac_count -gt 10 && break
5040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5043 $ac_path_EGREP_found && break 3
5048 if test -z "$ac_cv_path_EGREP"; then
5049 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5052 ac_cv_path_EGREP=$EGREP
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5058 $as_echo "$ac_cv_path_EGREP" >&6; }
5059 EGREP="$ac_cv_path_EGREP"
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5063 $as_echo_n "checking for ANSI C header files... " >&6; }
5064 if ${ac_cv_header_stdc+:} false; then :
5065 $as_echo_n "(cached) " >&6
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5082 if ac_fn_c_try_compile "$LINENO"; then :
5083 ac_cv_header_stdc=yes
5085 ac_cv_header_stdc=no
5087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089 if test $ac_cv_header_stdc = yes; then
5090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5097 $EGREP "memchr" >/dev/null 2>&1; then :
5100 ac_cv_header_stdc=no
5106 if test $ac_cv_header_stdc = yes; then
5107 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5114 $EGREP "free" >/dev/null 2>&1; then :
5117 ac_cv_header_stdc=no
5123 if test $ac_cv_header_stdc = yes; then
5124 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5125 if test "$cross_compiling" = yes; then :
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5132 #if ((' ' & 0x0FF) == 0x020)
5133 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5134 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5136 # define ISLOWER(c) \
5137 (('a' <= (c) && (c) <= 'i') \
5138 || ('j' <= (c) && (c) <= 'r') \
5139 || ('s' <= (c) && (c) <= 'z'))
5140 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5143 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5148 for (i = 0; i < 256; i++)
5149 if (XOR (islower (i), ISLOWER (i))
5150 || toupper (i) != TOUPPER (i))
5155 if ac_fn_c_try_run "$LINENO"; then :
5158 ac_cv_header_stdc=no
5160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5161 conftest.$ac_objext conftest.beam conftest.$ac_ext
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5167 $as_echo "$ac_cv_header_stdc" >&6; }
5168 if test $ac_cv_header_stdc = yes; then
5170 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5174 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5175 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5176 inttypes.h stdint.h unistd.h
5178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5179 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5181 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5182 cat >>confdefs.h <<_ACEOF
5183 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5194 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5195 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5202 if test "$MINIX" = yes; then
5204 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5207 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5210 $as_echo "#define _MINIX 1" >>confdefs.h
5217 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5224 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5225 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5226 $as_echo_n "(cached) " >&6
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5231 # define __EXTENSIONS__ 1
5232 $ac_includes_default
5241 if ac_fn_c_try_compile "$LINENO"; then :
5242 ac_cv_safe_to_define___extensions__=yes
5244 ac_cv_safe_to_define___extensions__=no
5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5249 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5250 test $ac_cv_safe_to_define___extensions__ = yes &&
5251 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5253 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5255 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5257 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5259 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5264 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5265 if ${ac_cv_prog_cc_c89+:} false; then :
5266 $as_echo_n "(cached) " >&6
5268 ac_cv_prog_cc_c89=no
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5275 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5276 struct buf { int x; };
5277 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5278 static char *e (p, i)
5284 static char *f (char * (*g) (char **, int), char **p, ...)
5289 s = g (p, va_arg (v,int));
5294 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5295 function prototypes and stuff, but not '\xHH' hex character constants.
5296 These don't provoke an error unfortunately, instead are silently treated
5297 as 'x'. The following induces an error, until -std is added to get
5298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5299 array size at least. It's necessary to write '\x00'==0 to get something
5300 that's true only with -std. */
5301 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5303 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5304 inside strings and character constants. */
5306 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5308 int test (int i, double x);
5309 struct s1 {int (*f) (int a);};
5310 struct s2 {int (*f) (double a);};
5311 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5317 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5322 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5323 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5325 CC="$ac_save_CC $ac_arg"
5326 if ac_fn_c_try_compile "$LINENO"; then :
5327 ac_cv_prog_cc_c89=$ac_arg
5329 rm -f core conftest.err conftest.$ac_objext
5330 test "x$ac_cv_prog_cc_c89" != "xno" && break
5332 rm -f conftest.$ac_ext
5337 case "x$ac_cv_prog_cc_c89" in
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5340 $as_echo "none needed" >&6; } ;;
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5343 $as_echo "unsupported" >&6; } ;;
5345 CC="$CC $ac_cv_prog_cc_c89"
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5347 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5349 if test "x$ac_cv_prog_cc_c89" != xno; then :
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5355 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5356 if ${ac_cv_prog_cc_c99+:} false; then :
5357 $as_echo_n "(cached) " >&6
5359 ac_cv_prog_cc_c99=no
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5364 #include <stdbool.h>
5369 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5370 #define debug(...) fprintf (stderr, __VA_ARGS__)
5371 #define showlist(...) puts (#__VA_ARGS__)
5372 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5374 test_varargs_macros (void)
5379 debug ("X = %d\n", x);
5380 showlist (The first, second, and third items.);
5381 report (x>y, "x is %d but y is %d", x, y);
5384 // Check long long types.
5385 #define BIG64 18446744073709551615ull
5386 #define BIG32 4294967295ul
5387 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5389 your preprocessor is broken;
5393 your preprocessor is broken;
5395 static long long int bignum = -9223372036854775807LL;
5396 static unsigned long long int ubignum = BIG64;
5398 struct incomplete_array
5406 const wchar_t *name;
5410 typedef const char *ccp;
5413 test_restrict (ccp restrict text)
5415 // See if C++-style comments work.
5416 // Iterate through items via the restricted pointer.
5417 // Also check for declarations in for loops.
5418 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5423 // Check varargs and va_copy.
5425 test_varargs (const char *format, ...)
5428 va_start (args, format);
5430 va_copy (args_copy, args);
5441 str = va_arg (args_copy, const char *);
5444 number = va_arg (args_copy, int);
5447 fnumber = va_arg (args_copy, double);
5462 _Bool success = false;
5465 if (test_restrict ("String literal") == 0)
5467 char *restrict newvar = "Another string";
5470 test_varargs ("s, d' f .", "string", 65, 34.234);
5471 test_varargs_macros ();
5473 // Check flexible array members.
5474 struct incomplete_array *ia =
5475 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5477 for (int i = 0; i < ia->datasize; ++i)
5478 ia->data[i] = i * 1.234;
5480 // Check named initializers.
5481 struct named_init ni = {
5483 .name = L"Test wide string",
5484 .average = 543.34343,
5489 int dynamic_array[ni.number];
5490 dynamic_array[ni.number - 1] = 543;
5492 // work around unused variable warnings
5493 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5494 || dynamic_array[ni.number - 1] != 543);
5500 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5502 CC="$ac_save_CC $ac_arg"
5503 if ac_fn_c_try_compile "$LINENO"; then :
5504 ac_cv_prog_cc_c99=$ac_arg
5506 rm -f core conftest.err conftest.$ac_objext
5507 test "x$ac_cv_prog_cc_c99" != "xno" && break
5509 rm -f conftest.$ac_ext
5514 case "x$ac_cv_prog_cc_c99" in
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5517 $as_echo "none needed" >&6; } ;;
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5520 $as_echo "unsupported" >&6; } ;;
5522 CC="$CC $ac_cv_prog_cc_c99"
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5524 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5526 if test "x$ac_cv_prog_cc_c99" != xno; then :
5536 ac_cpp='$CPP $CPPFLAGS'
5537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5540 if test -n "$ac_tool_prefix"; then
5541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5542 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_prog_CC+:} false; then :
5546 $as_echo_n "(cached) " >&6
5548 if test -n "$CC"; then
5549 ac_cv_prog_CC="$CC" # Let the user override the test.
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5569 if test -n "$CC"; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5571 $as_echo "$CC" >&6; }
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5579 if test -z "$ac_cv_prog_CC"; then
5581 # Extract the first word of "gcc", so it can be a program name with args.
5582 set dummy gcc; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5586 $as_echo_n "(cached) " >&6
5588 if test -n "$ac_ct_CC"; then
5589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598 ac_cv_prog_ac_ct_CC="gcc"
5599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5609 if test -n "$ac_ct_CC"; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5611 $as_echo "$ac_ct_CC" >&6; }
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5617 if test "x$ac_ct_CC" = x; then
5620 case $cross_compiling:$ac_tool_warned in
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5624 ac_tool_warned=yes ;;
5632 if test -z "$CC"; then
5633 if test -n "$ac_tool_prefix"; then
5634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5635 set dummy ${ac_tool_prefix}cc; ac_word=$2
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5637 $as_echo_n "checking for $ac_word... " >&6; }
5638 if ${ac_cv_prog_CC+:} false; then :
5639 $as_echo_n "(cached) " >&6
5641 if test -n "$CC"; then
5642 ac_cv_prog_CC="$CC" # Let the user override the test.
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651 ac_cv_prog_CC="${ac_tool_prefix}cc"
5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 if test -n "$CC"; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5664 $as_echo "$CC" >&6; }
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }
5673 if test -z "$CC"; then
5674 # Extract the first word of "cc", so it can be a program name with args.
5675 set dummy cc; ac_word=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if ${ac_cv_prog_CC+:} false; then :
5679 $as_echo_n "(cached) " >&6
5681 if test -n "$CC"; then
5682 ac_cv_prog_CC="$CC" # Let the user override the test.
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5693 ac_prog_rejected=yes
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 if test $ac_prog_rejected = yes; then
5705 # We found a bogon in the path, so make sure we never use it.
5706 set dummy $ac_cv_prog_CC
5708 if test $# != 0; then
5709 # We chose a different compiler from the bogus one.
5710 # However, it has the same basename, so the bogon will be chosen
5711 # first if we set CC to just the basename; use the full file name.
5713 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5719 if test -n "$CC"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5721 $as_echo "$CC" >&6; }
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5729 if test -z "$CC"; then
5730 if test -n "$ac_tool_prefix"; then
5731 for ac_prog in cl.exe
5733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5736 $as_echo_n "checking for $ac_word... " >&6; }
5737 if ${ac_cv_prog_CC+:} false; then :
5738 $as_echo_n "(cached) " >&6
5740 if test -n "$CC"; then
5741 ac_cv_prog_CC="$CC" # Let the user override the test.
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 if test -n "$CC"; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5763 $as_echo "$CC" >&6; }
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 $as_echo "no" >&6; }
5770 test -n "$CC" && break
5773 if test -z "$CC"; then
5775 for ac_prog in cl.exe
5777 # Extract the first word of "$ac_prog", so it can be a program name with args.
5778 set dummy $ac_prog; ac_word=$2
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780 $as_echo_n "checking for $ac_word... " >&6; }
5781 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5782 $as_echo_n "(cached) " >&6
5784 if test -n "$ac_ct_CC"; then
5785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 test -z "$as_dir" && as_dir=.
5792 for ac_exec_ext in '' $ac_executable_extensions; do
5793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794 ac_cv_prog_ac_ct_CC="$ac_prog"
5795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5805 if test -n "$ac_ct_CC"; then
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5807 $as_echo "$ac_ct_CC" >&6; }
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5810 $as_echo "no" >&6; }
5814 test -n "$ac_ct_CC" && break
5817 if test "x$ac_ct_CC" = x; then
5820 case $cross_compiling:$ac_tool_warned in
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5824 ac_tool_warned=yes ;;
5833 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5835 as_fn_error $? "no acceptable C compiler found in \$PATH
5836 See \`config.log' for more details" "$LINENO" 5; }
5838 # Provide some information about the compiler.
5839 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5842 for ac_option in --version -v -V -qversion; do
5843 { { ac_try="$ac_compiler $ac_option >&5"
5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5849 $as_echo "$ac_try_echo"; } >&5
5850 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5852 if test -s conftest.err; then
5854 ... rest of stderr output deleted ...
5855 10q' conftest.err >conftest.er1
5856 cat conftest.er1 >&5
5858 rm -f conftest.er1 conftest.err
5859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5860 test $ac_status = 0; }
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5864 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5865 if ${ac_cv_c_compiler_gnu+:} false; then :
5866 $as_echo_n "(cached) " >&6
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5882 if ac_fn_c_try_compile "$LINENO"; then :
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5892 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5893 if test $ac_compiler_gnu = yes; then
5898 ac_test_CFLAGS=${CFLAGS+set}
5899 ac_save_CFLAGS=$CFLAGS
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5901 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5902 if ${ac_cv_prog_cc_g+:} false; then :
5903 $as_echo_n "(cached) " >&6
5905 ac_save_c_werror_flag=$ac_c_werror_flag
5906 ac_c_werror_flag=yes
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h. */
5920 if ac_fn_c_try_compile "$LINENO"; then :
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5935 if ac_fn_c_try_compile "$LINENO"; then :
5938 ac_c_werror_flag=$ac_save_c_werror_flag
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941 /* end confdefs.h. */
5951 if ac_fn_c_try_compile "$LINENO"; then :
5954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959 ac_c_werror_flag=$ac_save_c_werror_flag
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5962 $as_echo "$ac_cv_prog_cc_g" >&6; }
5963 if test "$ac_test_CFLAGS" = set; then
5964 CFLAGS=$ac_save_CFLAGS
5965 elif test $ac_cv_prog_cc_g = yes; then
5966 if test "$GCC" = yes; then
5972 if test "$GCC" = yes; then
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5979 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5980 if ${ac_cv_prog_cc_c89+:} false; then :
5981 $as_echo_n "(cached) " >&6
5983 ac_cv_prog_cc_c89=no
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5990 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5991 struct buf { int x; };
5992 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5993 static char *e (p, i)
5999 static char *f (char * (*g) (char **, int), char **p, ...)
6004 s = g (p, va_arg (v,int));
6009 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6010 function prototypes and stuff, but not '\xHH' hex character constants.
6011 These don't provoke an error unfortunately, instead are silently treated
6012 as 'x'. The following induces an error, until -std is added to get
6013 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6014 array size at least. It's necessary to write '\x00'==0 to get something
6015 that's true only with -std. */
6016 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6018 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6019 inside strings and character constants. */
6021 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6023 int test (int i, double x);
6024 struct s1 {int (*f) (int a);};
6025 struct s2 {int (*f) (double a);};
6026 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6032 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6037 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6038 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6040 CC="$ac_save_CC $ac_arg"
6041 if ac_fn_c_try_compile "$LINENO"; then :
6042 ac_cv_prog_cc_c89=$ac_arg
6044 rm -f core conftest.err conftest.$ac_objext
6045 test "x$ac_cv_prog_cc_c89" != "xno" && break
6047 rm -f conftest.$ac_ext
6052 case "x$ac_cv_prog_cc_c89" in
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6055 $as_echo "none needed" >&6; } ;;
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6058 $as_echo "unsupported" >&6; } ;;
6060 CC="$CC $ac_cv_prog_cc_c89"
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6062 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6064 if test "x$ac_cv_prog_cc_c89" != xno; then :
6069 ac_cpp='$CPP $CPPFLAGS'
6070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6075 ac_cpp='$CPP $CPPFLAGS'
6076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6080 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6081 if ${am_cv_prog_cc_c_o+:} false; then :
6082 $as_echo_n "(cached) " >&6
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6095 # Make sure it works both with $CC and with simple cc.
6096 # Following AC_PROG_CC_C_O, we do the test twice because some
6097 # compilers refuse to overwrite an existing .o file with -o,
6098 # though they will create one.
6099 am_cv_prog_cc_c_o=yes
6101 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6102 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } \
6106 && test -f conftest2.$ac_objext; then
6109 am_cv_prog_cc_c_o=no
6113 rm -f core conftest*
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6117 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6118 if test "$am_cv_prog_cc_c_o" != yes; then
6119 # Losing compiler, so override with the script.
6120 # FIXME: It is wrong to rewrite CC.
6121 # But if we don't then we get into trouble of one sort or another.
6122 # A longer-term fix would be to have automake use am__CC in this case,
6123 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6124 CC="$am_aux_dir/compile $CC"
6127 ac_cpp='$CPP $CPPFLAGS'
6128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6133 depcc="$CC" am_compiler_list=
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6136 $as_echo_n "checking dependency style of $depcc... " >&6; }
6137 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6138 $as_echo_n "(cached) " >&6
6140 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6141 # We make a subdir and do the tests there. Otherwise we can end up
6142 # making bogus files that we don't know about and never remove. For
6143 # instance it was reported that on HP-UX the gcc test will end up
6144 # making a dummy file named 'D' -- because '-MD' means "put the output
6148 # Copy depcomp to subdir because otherwise we won't find it if we're
6149 # using a relative directory.
6150 cp "$am_depcomp" conftest.dir
6152 # We will build objects and dependencies in a subdirectory because
6153 # it helps to detect inapplicable dependency modes. For instance
6154 # both Tru64's cc and ICC support -MD to output dependencies as a
6155 # side effect of compilation, but ICC will put the dependencies in
6156 # the current directory while Tru64 will put them in the object
6160 am_cv_CC_dependencies_compiler_type=none
6161 if test "$am_compiler_list" = ""; then
6162 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6165 case " $depcc " in #(
6166 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6169 for depmode in $am_compiler_list; do
6170 # Setup a source with many dependencies, because some compilers
6171 # like to wrap large dependency lists on column 80 (with \), and
6172 # we should not choose a depcomp mode which is confused by this.
6174 # We need to recreate these files for each test, as the compiler may
6175 # overwrite some of them when testing with obscure command lines.
6176 # This happens at least with the AIX C compiler.
6178 for i in 1 2 3 4 5 6; do
6179 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6180 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6181 # Solaris 10 /bin/sh.
6182 echo '/* dummy */' > sub/conftst$i.h
6184 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6186 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6187 # mode. It turns out that the SunPro C++ compiler does not properly
6188 # handle '-M -o', and we need to detect this. Also, some Intel
6189 # versions had trouble with output in subdirs.
6190 am__obj=sub/conftest.${OBJEXT-o}
6191 am__minus_obj="-o $am__obj"
6194 # This depmode causes a compiler race in universal mode.
6195 test "$am__universal" = false || continue
6198 # After this tag, mechanisms are not by side-effect, so they'll
6199 # only be used when explicitly requested.
6200 if test "x$enable_dependency_tracking" = xyes; then
6206 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6207 # This compiler won't grok '-c -o', but also, the minuso test has
6208 # not run yet. These depmodes are late enough in the game, and
6209 # so weak that their functioning should not be impacted.
6210 am__obj=conftest.${OBJEXT-o}
6215 if depmode=$depmode \
6216 source=sub/conftest.c object=$am__obj \
6217 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6218 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6219 >/dev/null 2>conftest.err &&
6220 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6221 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6222 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6223 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6224 # icc doesn't choke on unknown options, it will just issue warnings
6225 # or remarks (even with -Werror). So we grep stderr for any message
6226 # that says an option was ignored or not supported.
6227 # When given -MP, icc 7.0 and 7.1 complain thusly:
6228 # icc: Command line warning: ignoring option '-M'; no argument required
6229 # The diagnosis changed in icc 8.0:
6230 # icc: Command line remark: option '-MP' not supported
6231 if (grep 'ignoring option' conftest.err ||
6232 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6233 am_cv_CC_dependencies_compiler_type=$depmode
6242 am_cv_CC_dependencies_compiler_type=none
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6247 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6248 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6251 test "x$enable_dependency_tracking" != xno \
6252 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6254 am__fastdepCC_FALSE='#'
6256 am__fastdepCC_TRUE='#'
6257 am__fastdepCC_FALSE=
6261 # Ralf Wildenhues: With per-target flags we need CC_C_O
6262 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
6264 if test $ac_cv_c_compiler_gnu = yes; then
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6266 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6267 if ${ac_cv_prog_gcc_traditional+:} false; then :
6268 $as_echo_n "(cached) " >&6
6270 ac_pattern="Autoconf.*'x'"
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6277 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6278 ac_cv_prog_gcc_traditional=yes
6280 ac_cv_prog_gcc_traditional=no
6285 if test $ac_cv_prog_gcc_traditional = no; then
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6292 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6293 ac_cv_prog_gcc_traditional=yes
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6300 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6301 if test $ac_cv_prog_gcc_traditional = yes; then
6302 CC="$CC -traditional"
6319 case "$ac_cv_prog_cc_c89" in
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6322 version 4.2.5 and higher." >&5
6323 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6324 version 4.2.5 and higher." >&2;}
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
6329 $as_echo_n "checking if $CC can handle #warning... " >&6; }
6330 if ${ntp_cv_cpp_warning+:} false; then :
6331 $as_echo_n "(cached) " >&6
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h. */
6344 if ac_fn_c_try_compile "$LINENO"; then :
6345 ntp_cv_cpp_warning=yes
6347 ntp_cv_cpp_warning=no
6350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
6354 $as_echo "$ntp_cv_cpp_warning" >&6; }
6355 case "$ntp_cv_cpp_warning" in
6358 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
6363 $as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
6364 if ${ntp_cv_cc_attribute+:} false; then :
6365 $as_echo_n "(cached) " >&6
6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h. */
6373 void foo(void) __attribute__((__noreturn__));
6379 if ac_fn_c_try_compile "$LINENO"; then :
6380 ntp_cv_cc_attribute=yes
6382 ntp_cv_cc_attribute=no
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
6389 $as_echo "$ntp_cv_cc_attribute" >&6; }
6390 case "$ntp_cv_cc_attribute" in
6393 $as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
6400 SAVED_CFLAGS="$CFLAGS"
6401 CFLAGS="$CFLAGS -Wstrict-overflow"
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
6403 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
6404 if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
6405 $as_echo_n "(cached) " >&6
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6418 if ac_fn_c_try_compile "$LINENO"; then :
6419 ntp_cv_gcc_Wstrict_overflow=yes
6421 ntp_cv_gcc_Wstrict_overflow=no
6424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
6428 $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
6430 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
6433 CFLAGS="$SAVED_CFLAGS -Winit-self"
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
6435 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
6436 if ${ntp_cv_gcc_Winit_self+:} false; then :
6437 $as_echo_n "(cached) " >&6
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6451 if ac_fn_c_try_compile "$LINENO"; then :
6452 ntp_cv_gcc_Winit_self=yes
6454 ntp_cv_gcc_Winit_self=no
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
6462 $as_echo "$ntp_cv_gcc_Winit_self" >&6; }
6463 CFLAGS="$SAVED_CFLAGS"
6464 { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
6466 # $ntp_cv_gcc_Winit_self is tested later to add the
6467 # flag to CFLAGS_NTP.
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
6470 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
6471 if ${ntp_cv_gc_sections_runs+:} false; then :
6472 $as_echo_n "(cached) " >&6
6475 origCFLAGS="$CFLAGS"
6476 CFLAGS="$CFLAGS -Wl,--gc-sections"
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6490 int read_success_once;
6492 fpC = fopen("conftest.c", "r");
6496 cch = fread(buf, sizeof(buf), 1, fpC);
6497 read_success_once |= (0 != cch);
6499 if (!read_success_once)
6503 if (0 != fclose(fpC))
6513 if ac_fn_c_try_link "$LINENO"; then :
6515 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
6516 ntp_cv_gc_sections_runs=no
6518 ntp_cv_gc_sections_runs=no
6519 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
6523 ntp_cv_gc_sections_runs=no
6526 rm -f core conftest.err conftest.$ac_objext \
6527 conftest$ac_exeext conftest.$ac_ext
6528 CFLAGS="$origCFLAGS"
6529 { origCFLAGS=; unset origCFLAGS;}
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
6534 $as_echo "$ntp_cv_gc_sections_runs" >&6; }
6535 case "$ntp_cv_gc_sections_runs" in
6537 LDADD_LIBNTP="-Wl,--gc-sections"
6538 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
6544 CFLAGS_NTP="$CFLAGS_NTP -Wall"
6545 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
6546 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
6547 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
6548 # CFLAGS_NTP="$CFLAGS_NTP -Werror"
6549 # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
6550 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
6551 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
6552 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
6553 CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
6554 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
6555 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
6556 case "$ntp_cv_gcc_Winit_self" in
6558 CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
6560 case "$ntp_cv_gcc_Wstrict_overflow" in
6562 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
6564 # -W[no-]strict-prototypes might be added by NTP_OPENSSL
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6569 $as_echo_n "checking additional compiler flags... " >&6; }
6570 # allow ntp_os_cflags to be preset to skip this stuff
6571 case "${ntp_os_cflags+set}" in
6580 # turn on additional headers
6581 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6584 # avoid circular dependencies in yp headers, and more
6585 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
6586 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
6589 # XXX Only verified thru AIX6.
6590 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
6591 # avoid circular dependencies in yp headers
6592 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
6593 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
6594 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
6595 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
6596 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
6599 ntp_os_cflags="-DSYS_AMIGA"
6601 darwin*|macosx*|rhapsody*)
6602 ntp_os_cflags="-D_P1003_1B_VISIBLE"
6604 hpux10.*) # at least for hppa2.0-hp-hpux10.20
6609 # use Ansi compiler on HPUX, and some -Wp magic
6610 ntp_os_cflags="-Ae -Wp,-H18816"
6613 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6620 # use Ansi compiler on HPUX
6623 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6628 # do not use 64-bit compiler
6629 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
6633 ntp_os_cflags="-posix"
6635 solaris1*|solaris2.[0-5]|solaris2.5.*)
6637 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
6640 # turn on 64-bit file offset interface
6641 ntp_os_cflags="-D_LARGEFILE64_SOURCE"
6648 # Quick and dirty sanity check
6649 case "$VX_KERNEL" in
6651 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
6653 ntp_os_cflags="-DSYS_VXWORKS"
6658 case "$ntp_os_cflags" in
6660 ntp_os_cflags_msg="none needed"
6663 ntp_os_cflags_msg="$ntp_os_cflags"
6665 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
6667 $as_echo "$ntp_os_cflags_msg" >&6; }
6668 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
6671 $as_echo_n "checking additional linker flags... " >&6; }
6672 # HMS: The following might still need tweaking
6673 # allow ntp_os_ldflags to be preset to skip this stuff
6674 case "${ntp_os_ldflags+set}" in
6683 ntp_os_ldflags="-Wl,+allowdups"
6690 case "$ntp_os_ldflags" in
6692 ntp_os_ldflags_msg="none needed"
6695 ntp_os_ldflags_msg="$ntp_os_ldflags"
6697 LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
6699 $as_echo "$ntp_os_ldflags_msg" >&6; }
6700 { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6705 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6706 if ${ac_cv_c_bigendian+:} false; then :
6707 $as_echo_n "(cached) " >&6
6709 ac_cv_c_bigendian=unknown
6710 # See if we're dealing with a universal compiler.
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6713 #ifndef __APPLE_CC__
6714 not a universal capable compiler
6719 if ac_fn_c_try_compile "$LINENO"; then :
6721 # Check for potential -arch flags. It is not universal unless
6722 # there are at least two -arch flags with different values.
6725 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6726 if test -n "$ac_prev"; then
6728 i?86 | x86_64 | ppc | ppc64)
6729 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6732 ac_cv_c_bigendian=universal
6738 elif test "x$ac_word" = "x-arch"; then
6743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744 if test $ac_cv_c_bigendian = unknown; then
6745 # See if sys/param.h defines the BYTE_ORDER macro.
6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747 /* end confdefs.h. */
6748 #include <sys/types.h>
6749 #include <sys/param.h>
6754 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6755 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6764 if ac_fn_c_try_compile "$LINENO"; then :
6765 # It does; now see whether it defined to BIG_ENDIAN or not.
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6768 #include <sys/types.h>
6769 #include <sys/param.h>
6774 #if BYTE_ORDER != BIG_ENDIAN
6782 if ac_fn_c_try_compile "$LINENO"; then :
6783 ac_cv_c_bigendian=yes
6785 ac_cv_c_bigendian=no
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791 if test $ac_cv_c_bigendian = unknown; then
6792 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6800 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6808 if ac_fn_c_try_compile "$LINENO"; then :
6809 # It does; now see whether it defined to _BIG_ENDIAN or not.
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6825 if ac_fn_c_try_compile "$LINENO"; then :
6826 ac_cv_c_bigendian=yes
6828 ac_cv_c_bigendian=no
6830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6834 if test $ac_cv_c_bigendian = unknown; then
6835 # Compile a test program.
6836 if test "$cross_compiling" = yes; then :
6837 # Try to guess by grepping values from an object file.
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6840 short int ascii_mm[] =
6841 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6842 short int ascii_ii[] =
6843 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6844 int use_ascii (int i) {
6845 return ascii_mm[i] + ascii_ii[i];
6847 short int ebcdic_ii[] =
6848 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6849 short int ebcdic_mm[] =
6850 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6851 int use_ebcdic (int i) {
6852 return ebcdic_mm[i] + ebcdic_ii[i];
6859 return use_ascii (foo) == use_ebcdic (foo);
6864 if ac_fn_c_try_compile "$LINENO"; then :
6865 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6866 ac_cv_c_bigendian=yes
6868 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6869 if test "$ac_cv_c_bigendian" = unknown; then
6870 ac_cv_c_bigendian=no
6872 # finding both strings is unlikely to happen, but who knows?
6873 ac_cv_c_bigendian=unknown
6877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880 /* end confdefs.h. */
6881 $ac_includes_default
6886 /* Are we little or big endian? From Harbison&Steele. */
6890 char c[sizeof (long int)];
6893 return u.c[sizeof (long int) - 1] == 1;
6899 if ac_fn_c_try_run "$LINENO"; then :
6900 ac_cv_c_bigendian=no
6902 ac_cv_c_bigendian=yes
6904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6905 conftest.$ac_objext conftest.beam conftest.$ac_ext
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6911 $as_echo "$ac_cv_c_bigendian" >&6; }
6912 case $ac_cv_c_bigendian in #(
6914 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6920 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6924 as_fn_error $? "unknown endianness
6925 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6929 $as_echo_n "checking for working volatile... " >&6; }
6930 if ${ac_cv_c_volatile+:} false; then :
6931 $as_echo_n "(cached) " >&6
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6941 int * volatile y = (int *) 0;
6947 if ac_fn_c_try_compile "$LINENO"; then :
6948 ac_cv_c_volatile=yes
6952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6955 $as_echo "$ac_cv_c_volatile" >&6; }
6956 if test $ac_cv_c_volatile = no; then
6958 $as_echo "#define volatile /**/" >>confdefs.h
6963 ac_cpp='$CPP $CPPFLAGS'
6964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6968 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6969 # On Suns, sometimes $CPP names a directory.
6970 if test -n "$CPP" && test -d "$CPP"; then
6973 if test -z "$CPP"; then
6974 if ${ac_cv_prog_CPP+:} false; then :
6975 $as_echo_n "(cached) " >&6
6977 # Double quotes because CPP needs to be expanded
6978 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6981 for ac_c_preproc_warn_flag in '' yes
6983 # Use a header file that comes with gcc, so configuring glibc
6984 # with a fresh cross-compiler works.
6985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6986 # <limits.h> exists even on freestanding compilers.
6987 # On the NeXT, cc -E runs the code through the compiler's parser,
6988 # not just through cpp. "Syntax error" is here to catch this case.
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6992 # include <limits.h>
6994 # include <assert.h>
6998 if ac_fn_c_try_cpp "$LINENO"; then :
7001 # Broken: fails on valid input.
7004 rm -f conftest.err conftest.i conftest.$ac_ext
7006 # OK, works on sane cases. Now check whether nonexistent headers
7007 # can be detected and how.
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7010 #include <ac_nonexistent.h>
7012 if ac_fn_c_try_cpp "$LINENO"; then :
7013 # Broken: success on invalid input.
7016 # Passes both tests.
7020 rm -f conftest.err conftest.i conftest.$ac_ext
7023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7024 rm -f conftest.i conftest.err conftest.$ac_ext
7025 if $ac_preproc_ok; then :
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7038 $as_echo "$CPP" >&6; }
7040 for ac_c_preproc_warn_flag in '' yes
7042 # Use a header file that comes with gcc, so configuring glibc
7043 # with a fresh cross-compiler works.
7044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7045 # <limits.h> exists even on freestanding compilers.
7046 # On the NeXT, cc -E runs the code through the compiler's parser,
7047 # not just through cpp. "Syntax error" is here to catch this case.
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7051 # include <limits.h>
7053 # include <assert.h>
7057 if ac_fn_c_try_cpp "$LINENO"; then :
7060 # Broken: fails on valid input.
7063 rm -f conftest.err conftest.i conftest.$ac_ext
7065 # OK, works on sane cases. Now check whether nonexistent headers
7066 # can be detected and how.
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7069 #include <ac_nonexistent.h>
7071 if ac_fn_c_try_cpp "$LINENO"; then :
7072 # Broken: success on invalid input.
7075 # Passes both tests.
7079 rm -f conftest.err conftest.i conftest.$ac_ext
7082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7083 rm -f conftest.i conftest.err conftest.$ac_ext
7084 if $ac_preproc_ok; then :
7087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7089 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7090 See \`config.log' for more details" "$LINENO" 5; }
7094 ac_cpp='$CPP $CPPFLAGS'
7095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
7105 $as_echo_n "checking for install dir and man conventions... " >&6; }
7108 # Check whether --with-locfile was given.
7109 if test "${with_locfile+set}" = set; then :
7110 withval=$with_locfile;
7118 SENTINEL_DIR="$PWD" && \
7120 case "$with_locfile" in \
7122 scripts/genLocInfo -d "$SENTINEL_DIR" \
7125 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \
7128 ) > genLocInfo.i 2> genLocInfo.err
7131 case "$GENLOCINFO" in
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
7134 $as_echo "in file $GENLOCINFOFILE" >&6; }
7135 rm genLocInfo.err genLocInfo.i
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
7139 $as_echo "failed." >&6; }
7140 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
7144 if test "$CALC_TICKADJ_MS" ; then
7145 WANT_CALC_TICKADJ_MS_TRUE=
7146 WANT_CALC_TICKADJ_MS_FALSE='#'
7148 WANT_CALC_TICKADJ_MS_TRUE='#'
7149 WANT_CALC_TICKADJ_MS_FALSE=
7194 if test -z "$NTPSWEEP_NI" ; then
7195 INSTALL_NTPSWEEP_TRUE=
7196 INSTALL_NTPSWEEP_FALSE='#'
7198 INSTALL_NTPSWEEP_TRUE='#'
7199 INSTALL_NTPSWEEP_FALSE=
7242 if test -z "$UPDATE_LEAP_NI" ; then
7243 INSTALL_UPDATE_LEAP_TRUE=
7244 INSTALL_UPDATE_LEAP_FALSE='#'
7246 INSTALL_UPDATE_LEAP_TRUE='#'
7247 INSTALL_UPDATE_LEAP_FALSE=
7253 if test -n "$ac_tool_prefix"; then
7254 for ac_prog in ar lib "link -lib"
7256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259 $as_echo_n "checking for $ac_word... " >&6; }
7260 if ${ac_cv_prog_AR+:} false; then :
7261 $as_echo_n "(cached) " >&6
7263 if test -n "$AR"; then
7264 ac_cv_prog_AR="$AR" # Let the user override the test.
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 test -z "$as_dir" && as_dir=.
7271 for ac_exec_ext in '' $ac_executable_extensions; do
7272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 if test -n "$AR"; then
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7286 $as_echo "$AR" >&6; }
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289 $as_echo "no" >&6; }
7293 test -n "$AR" && break
7296 if test -z "$AR"; then
7298 for ac_prog in ar lib "link -lib"
7300 # Extract the first word of "$ac_prog", so it can be a program name with args.
7301 set dummy $ac_prog; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7305 $as_echo_n "(cached) " >&6
7307 if test -n "$ac_ct_AR"; then
7308 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_ac_ct_AR="$ac_prog"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7328 if test -n "$ac_ct_AR"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7330 $as_echo "$ac_ct_AR" >&6; }
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7337 test -n "$ac_ct_AR" && break
7340 if test "x$ac_ct_AR" = x; then
7343 case $cross_compiling:$ac_tool_warned in
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7347 ac_tool_warned=yes ;;
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7356 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
7357 if ${am_cv_ar_interface+:} false; then :
7358 $as_echo_n "(cached) " >&6
7361 ac_cpp='$CPP $CPPFLAGS'
7362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7366 am_cv_ar_interface=ar
7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368 /* end confdefs.h. */
7369 int some_variable = 0;
7371 if ac_fn_c_try_compile "$LINENO"; then :
7372 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7374 (eval $am_ar_try) 2>&5
7376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7377 test $ac_status = 0; }
7378 if test "$ac_status" -eq 0; then
7379 am_cv_ar_interface=ar
7381 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7383 (eval $am_ar_try) 2>&5
7385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7386 test $ac_status = 0; }
7387 if test "$ac_status" -eq 0; then
7388 am_cv_ar_interface=lib
7390 am_cv_ar_interface=unknown
7393 rm -f conftest.lib libconftest.a
7396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7398 ac_cpp='$CPP $CPPFLAGS'
7399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7405 $as_echo "$am_cv_ar_interface" >&6; }
7407 case $am_cv_ar_interface in
7411 # Microsoft lib, so override with the ar-lib wrapper script.
7412 # FIXME: It is wrong to rewrite AR.
7413 # But if we don't then we get into trouble of one sort or another.
7414 # A longer-term fix would be to have automake use am__AR in this case,
7415 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7417 AR="$am_aux_dir/ar-lib $AR"
7420 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7428 # Expose a cross-compilation indicator to makefiles
7429 if test $build != $host; then
7430 NTP_CROSSCOMPILE_TRUE=
7431 NTP_CROSSCOMPILE_FALSE='#'
7433 NTP_CROSSCOMPILE_TRUE='#'
7434 NTP_CROSSCOMPILE_FALSE=
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7440 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7441 if ${ac_cv_path_SED+:} false; then :
7442 $as_echo_n "(cached) " >&6
7444 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7445 for ac_i in 1 2 3 4 5 6 7; do
7446 ac_script="$ac_script$as_nl$ac_script"
7448 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7449 { ac_script=; unset ac_script;}
7450 if test -z "$SED"; then
7451 ac_path_SED_found=false
7452 # Loop through the user's path and test for each of PROGNAME-LIST
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 test -z "$as_dir" && as_dir=.
7458 for ac_prog in sed gsed; do
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7461 as_fn_executable_p "$ac_path_SED" || continue
7462 # Check for GNU ac_path_SED and select it if it is found.
7463 # Check for GNU $ac_path_SED
7464 case `"$ac_path_SED" --version 2>&1` in
7466 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7469 $as_echo_n 0123456789 >"conftest.in"
7472 cat "conftest.in" "conftest.in" >"conftest.tmp"
7473 mv "conftest.tmp" "conftest.in"
7474 cp "conftest.in" "conftest.nl"
7475 $as_echo '' >> "conftest.nl"
7476 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7478 as_fn_arith $ac_count + 1 && ac_count=$as_val
7479 if test $ac_count -gt ${ac_path_SED_max-0}; then
7480 # Best one so far, save it but keep looking for a better one
7481 ac_cv_path_SED="$ac_path_SED"
7482 ac_path_SED_max=$ac_count
7484 # 10*(2^10) chars as input seems more than enough
7485 test $ac_count -gt 10 && break
7487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7490 $ac_path_SED_found && break 3
7495 if test -z "$ac_cv_path_SED"; then
7496 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7504 $as_echo "$ac_cv_path_SED" >&6; }
7505 SED="$ac_cv_path_SED"
7508 test -z "$SED" && SED=sed
7509 Xsed="$SED -e 1s/^X//"
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7522 $as_echo_n "checking for fgrep... " >&6; }
7523 if ${ac_cv_path_FGREP+:} false; then :
7524 $as_echo_n "(cached) " >&6
7526 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7527 then ac_cv_path_FGREP="$GREP -F"
7529 if test -z "$FGREP"; then
7530 ac_path_FGREP_found=false
7531 # Loop through the user's path and test for each of PROGNAME-LIST
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7536 test -z "$as_dir" && as_dir=.
7537 for ac_prog in fgrep; do
7538 for ac_exec_ext in '' $ac_executable_extensions; do
7539 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7540 as_fn_executable_p "$ac_path_FGREP" || continue
7541 # Check for GNU ac_path_FGREP and select it if it is found.
7542 # Check for GNU $ac_path_FGREP
7543 case `"$ac_path_FGREP" --version 2>&1` in
7545 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7548 $as_echo_n 0123456789 >"conftest.in"
7551 cat "conftest.in" "conftest.in" >"conftest.tmp"
7552 mv "conftest.tmp" "conftest.in"
7553 cp "conftest.in" "conftest.nl"
7554 $as_echo 'FGREP' >> "conftest.nl"
7555 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7556 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7557 as_fn_arith $ac_count + 1 && ac_count=$as_val
7558 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7559 # Best one so far, save it but keep looking for a better one
7560 ac_cv_path_FGREP="$ac_path_FGREP"
7561 ac_path_FGREP_max=$ac_count
7563 # 10*(2^10) chars as input seems more than enough
7564 test $ac_count -gt 10 && break
7566 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7569 $ac_path_FGREP_found && break 3
7574 if test -z "$ac_cv_path_FGREP"; then
7575 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7578 ac_cv_path_FGREP=$FGREP
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7584 $as_echo "$ac_cv_path_FGREP" >&6; }
7585 FGREP="$ac_cv_path_FGREP"
7588 test -z "$GREP" && GREP=grep
7606 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7607 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7608 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7611 $as_echo_n "checking how to print strings... " >&6; }
7612 # Test print first, because it will be a builtin if present.
7613 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7614 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7616 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7619 # Use this function as a fallback that always works.
7620 func_fallback_echo ()
7622 eval 'cat <<_LTECHO_EOF
7626 ECHO='func_fallback_echo'
7629 # func_echo_all arg...
7630 # Invoke $ECHO with all args, space-separated.
7637 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7638 $as_echo "printf" >&6; } ;;
7639 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7640 $as_echo "print -r" >&6; } ;;
7641 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7642 $as_echo "cat" >&6; } ;;
7658 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7659 if test "x$ac_cv_type_pid_t" = xyes; then :
7663 cat >>confdefs.h <<_ACEOF
7669 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7670 if test "x$ac_cv_type_size_t" = xyes; then :
7674 cat >>confdefs.h <<_ACEOF
7675 #define size_t unsigned int
7681 # Check whether --enable-c99-snprintf was given.
7682 if test "${enable_c99_snprintf+set}" = set; then :
7683 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
7685 force_c99_snprintf=no
7689 case "$force_c99_snprintf" in
7691 hw_force_rpl_snprintf=yes
7692 hw_force_rpl_vsnprintf=yes
7700 for ac_header in $ac_header_list
7702 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7703 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7705 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7706 cat >>confdefs.h <<_ACEOF
7707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7721 $as_echo_n "checking for unsigned long long int... " >&6; }
7722 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7723 $as_echo_n "(cached) " >&6
7725 ac_cv_type_unsigned_long_long_int=yes
7726 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728 /* end confdefs.h. */
7730 /* For now, do not test the preprocessor; as of 2007 there are too many
7731 implementations with broken preprocessors. Perhaps this can
7732 be revisited in 2012. In the meantime, code should not expect
7733 #if to work with literals wider than 32 bits. */
7734 /* Test literals. */
7735 long long int ll = 9223372036854775807ll;
7736 long long int nll = -9223372036854775807LL;
7737 unsigned long long int ull = 18446744073709551615ULL;
7738 /* Test constant expressions. */
7739 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7741 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7747 /* Test availability of runtime routines for shift and division. */
7748 long long int llmax = 9223372036854775807ll;
7749 unsigned long long int ullmax = 18446744073709551615ull;
7750 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7751 | (llmax / ll) | (llmax % ll)
7752 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7753 | (ullmax / ull) | (ullmax % ull));
7759 if ac_fn_c_try_link "$LINENO"; then :
7762 ac_cv_type_unsigned_long_long_int=no
7764 rm -f core conftest.err conftest.$ac_objext \
7765 conftest$ac_exeext conftest.$ac_ext
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7769 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7770 if test $ac_cv_type_unsigned_long_long_int = yes; then
7772 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7777 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
7778 if test "x$ac_cv_func_vsnprintf" = xyes; then :
7779 hw_cv_func_vsnprintf=yes
7781 hw_cv_func_vsnprintf=no
7784 if test "$hw_cv_func_vsnprintf" = yes; then :
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
7786 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
7787 if ${hw_cv_func_vsnprintf_c99+:} false; then :
7788 $as_echo_n "(cached) " >&6
7790 if test "$cross_compiling" = yes; then :
7791 hw_cv_func_vsnprintf_c99=no
7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h. */
7799 static int testprintf(char *buf, size_t size, const char *format, ...)
7803 va_start(ap, format);
7804 result = vsnprintf(buf, size, format, ap);
7812 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
7813 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
7814 buf[0] != 'T' || buf[3] != '\0')
7820 if ac_fn_c_try_run "$LINENO"; then :
7821 hw_cv_func_vsnprintf_c99=yes
7823 hw_cv_func_vsnprintf_c99=no
7825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7826 conftest.$ac_objext conftest.beam conftest.$ac_ext
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
7831 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
7833 hw_cv_func_vsnprintf_c99=no
7836 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
7839 $as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
7840 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
7841 hw_use_rpl_vsnprintf=yes
7843 hw_use_rpl_vsnprintf=no
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
7846 $as_echo "$hw_use_rpl_vsnprintf" >&6; }
7847 if test "$hw_use_rpl_vsnprintf" = yes; then :
7849 $as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
7851 if test ${hw_nodef_vsnprintf=no} = no; then :
7853 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
7856 for ac_header in inttypes.h locale.h stddef.h stdint.h
7858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7859 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7860 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7861 cat >>confdefs.h <<_ACEOF
7862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7869 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
7871 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
7873 cat >>confdefs.h <<_ACEOF
7874 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
7879 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
7881 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
7883 cat >>confdefs.h <<_ACEOF
7884 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
7892 $as_echo_n "checking for long double... " >&6; }
7893 if ${ac_cv_type_long_double+:} false; then :
7894 $as_echo_n "(cached) " >&6
7896 if test "$GCC" = yes; then
7897 ac_cv_type_long_double=yes
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7901 /* The Stardent Vistra knows sizeof (long double), but does
7903 long double foo = 0.0L;
7907 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7908 sizeof (double) <= sizeof (long double))];
7910 return test_array [0];
7916 if ac_fn_c_try_compile "$LINENO"; then :
7917 ac_cv_type_long_double=yes
7919 ac_cv_type_long_double=no
7921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
7925 $as_echo "$ac_cv_type_long_double" >&6; }
7926 if test $ac_cv_type_long_double = yes; then
7928 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7935 $as_echo_n "checking for long long int... " >&6; }
7936 if ${ac_cv_type_long_long_int+:} false; then :
7937 $as_echo_n "(cached) " >&6
7939 ac_cv_type_long_long_int=yes
7940 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7941 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7942 if test $ac_cv_type_long_long_int = yes; then
7943 if test "$cross_compiling" = yes; then :
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h. */
7951 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7952 # define LLONG_MAX (HALF - 1 + HALF)
7957 long long int n = 1;
7961 long long int m = n << i;
7964 if (LLONG_MAX / 2 < m)
7972 if ac_fn_c_try_run "$LINENO"; then :
7975 ac_cv_type_long_long_int=no
7977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7978 conftest.$ac_objext conftest.beam conftest.$ac_ext
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7985 $as_echo "$ac_cv_type_long_long_int" >&6; }
7986 if test $ac_cv_type_long_long_int = yes; then
7988 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7994 $as_echo_n "checking for unsigned long long int... " >&6; }
7995 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7996 $as_echo_n "(cached) " >&6
7998 ac_cv_type_unsigned_long_long_int=yes
7999 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8003 /* For now, do not test the preprocessor; as of 2007 there are too many
8004 implementations with broken preprocessors. Perhaps this can
8005 be revisited in 2012. In the meantime, code should not expect
8006 #if to work with literals wider than 32 bits. */
8007 /* Test literals. */
8008 long long int ll = 9223372036854775807ll;
8009 long long int nll = -9223372036854775807LL;
8010 unsigned long long int ull = 18446744073709551615ULL;
8011 /* Test constant expressions. */
8012 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8014 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8020 /* Test availability of runtime routines for shift and division. */
8021 long long int llmax = 9223372036854775807ll;
8022 unsigned long long int ullmax = 18446744073709551615ull;
8023 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8024 | (llmax / ll) | (llmax % ll)
8025 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8026 | (ullmax / ull) | (ullmax % ull));
8032 if ac_fn_c_try_link "$LINENO"; then :
8035 ac_cv_type_unsigned_long_long_int=no
8037 rm -f core conftest.err conftest.$ac_objext \
8038 conftest$ac_exeext conftest.$ac_ext
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8042 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8043 if test $ac_cv_type_unsigned_long_long_int = yes; then
8045 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8049 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8050 if test "x$ac_cv_type_size_t" = xyes; then :
8054 cat >>confdefs.h <<_ACEOF
8055 #define size_t unsigned int
8062 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
8063 if test "x$ac_cv_type_intmax_t" = xyes; then :
8065 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
8068 test $ac_cv_type_long_long_int = yes \
8069 && ac_type='long long int' \
8070 || ac_type='long int'
8072 cat >>confdefs.h <<_ACEOF
8073 #define intmax_t $ac_type
8081 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
8082 if test "x$ac_cv_type_uintmax_t" = xyes; then :
8084 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
8087 test $ac_cv_type_unsigned_long_long_int = yes \
8088 && ac_type='unsigned long long int' \
8089 || ac_type='unsigned long int'
8091 cat >>confdefs.h <<_ACEOF
8092 #define uintmax_t $ac_type
8099 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
8100 if test "x$ac_cv_type_uintptr_t" = xyes; then :
8102 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
8105 for ac_type in 'unsigned int' 'unsigned long int' \
8106 'unsigned long long int'; do
8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8109 $ac_includes_default
8113 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
8115 return test_array [0];
8121 if ac_fn_c_try_compile "$LINENO"; then :
8123 cat >>confdefs.h <<_ACEOF
8124 #define uintptr_t $ac_type
8129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 test -z "$ac_type" && break
8135 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8136 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8138 cat >>confdefs.h <<_ACEOF
8139 #define HAVE_PTRDIFF_T 1
8145 for ac_func in localeconv
8147 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
8148 if test "x$ac_cv_func_localeconv" = xyes; then :
8149 cat >>confdefs.h <<_ACEOF
8150 #define HAVE_LOCALECONV 1
8157 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8159 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8160 if ${ac_cv_c_const+:} false; then :
8161 $as_echo_n "(cached) " >&6
8163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164 /* end confdefs.h. */
8171 /* Ultrix mips cc rejects this sort of thing. */
8172 typedef int charset[2];
8173 const charset cs = { 0, 0 };
8174 /* SunOS 4.1.1 cc rejects this. */
8175 char const *const *pcpcc;
8177 /* NEC SVR4.0.2 mips cc rejects this. */
8178 struct point {int x, y;};
8179 static struct point const zero = {0,0};
8180 /* AIX XL C 1.02.0.0 rejects this.
8181 It does not let you subtract one const X* pointer from another in
8182 an arm of an if-expression whose if-part is not a constant
8184 const char *g = "string";
8185 pcpcc = &g + (g ? g-g : 0);
8186 /* HPUX 7.0 cc rejects these. */
8188 ppc = (char**) pcpcc;
8189 pcpcc = (char const *const *) ppc;
8190 { /* SCO 3.2v4 cc rejects this sort of thing. */
8193 char const *s = 0 ? (char *) 0 : (char const *) 0;
8198 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8200 const int *foo = &x[0];
8203 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8204 typedef const int *iptr;
8208 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8209 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8210 struct s { int j; const int *ap[3]; } bx;
8211 struct s *b = &bx; b->j = 5;
8213 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8217 return !cs[0] && !zero.x;
8224 if ac_fn_c_try_compile "$LINENO"; then :
8229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8232 $as_echo "$ac_cv_c_const" >&6; }
8233 if test $ac_cv_c_const = no; then
8235 $as_echo "#define const /**/" >>confdefs.h
8242 case " $LIBOBJS " in
8243 *" snprintf.$ac_objext "* ) ;;
8244 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8248 _hw_cv_func_xprintf_replace_done=yes
8254 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
8255 if test "x$ac_cv_func_snprintf" = xyes; then :
8256 hw_cv_func_snprintf=yes
8258 hw_cv_func_snprintf=no
8261 if test "$hw_cv_func_snprintf" = yes; then :
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
8263 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
8264 if ${hw_cv_func_snprintf_c99+:} false; then :
8265 $as_echo_n "(cached) " >&6
8267 if test "$cross_compiling" = yes; then :
8268 hw_cv_func_snprintf_c99=no
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8277 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
8278 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
8279 buf[0] != 'T' || buf[3] != '\0')
8285 if ac_fn_c_try_run "$LINENO"; then :
8286 hw_cv_func_snprintf_c99=yes
8288 hw_cv_func_snprintf_c99=no
8290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8291 conftest.$ac_objext conftest.beam conftest.$ac_ext
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
8296 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
8298 hw_cv_func_snprintf_c99=no
8301 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
8304 $as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
8305 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
8306 hw_use_rpl_snprintf=yes
8308 hw_use_rpl_snprintf=no
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
8311 $as_echo "$hw_use_rpl_snprintf" >&6; }
8312 if test "$hw_use_rpl_snprintf" = yes; then :
8314 $as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
8316 if test ${hw_nodef_snprintf=no} = no; then :
8318 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
8322 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8324 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8325 if ${ac_cv_c_const+:} false; then :
8326 $as_echo_n "(cached) " >&6
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8336 /* Ultrix mips cc rejects this sort of thing. */
8337 typedef int charset[2];
8338 const charset cs = { 0, 0 };
8339 /* SunOS 4.1.1 cc rejects this. */
8340 char const *const *pcpcc;
8342 /* NEC SVR4.0.2 mips cc rejects this. */
8343 struct point {int x, y;};
8344 static struct point const zero = {0,0};
8345 /* AIX XL C 1.02.0.0 rejects this.
8346 It does not let you subtract one const X* pointer from another in
8347 an arm of an if-expression whose if-part is not a constant
8349 const char *g = "string";
8350 pcpcc = &g + (g ? g-g : 0);
8351 /* HPUX 7.0 cc rejects these. */
8353 ppc = (char**) pcpcc;
8354 pcpcc = (char const *const *) ppc;
8355 { /* SCO 3.2v4 cc rejects this sort of thing. */
8358 char const *s = 0 ? (char *) 0 : (char const *) 0;
8363 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8365 const int *foo = &x[0];
8368 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8369 typedef const int *iptr;
8373 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8374 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8375 struct s { int j; const int *ap[3]; } bx;
8376 struct s *b = &bx; b->j = 5;
8378 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8382 return !cs[0] && !zero.x;
8389 if ac_fn_c_try_compile "$LINENO"; then :
8394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8397 $as_echo "$ac_cv_c_const" >&6; }
8398 if test $ac_cv_c_const = no; then
8400 $as_echo "#define const /**/" >>confdefs.h
8407 case " $LIBOBJS " in
8408 *" snprintf.$ac_objext "* ) ;;
8409 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8413 _hw_cv_func_xprintf_replace_done=yes
8422 # HMS: Save $LIBS and empty it.
8423 # any LIBS we add here should go in to LDADD_LIBNTP
8430 # [Bug 2332] because we need to know if we are using GNU ld...
8433 # Check whether --with-gnu-ld was given.
8434 if test "${with_gnu_ld+set}" = set; then :
8435 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8441 if test "$GCC" = yes; then
8442 # Check if gcc -print-prog-name=ld gives a path.
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8444 $as_echo_n "checking for ld used by $CC... " >&6; }
8447 # gcc leaves a trailing carriage return which upsets mingw
8448 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8450 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8453 # Accept absolute paths.
8455 re_direlt='/[^/][^/]*/\.\./'
8456 # Canonicalize the pathname of ld
8457 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8458 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8459 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8461 test -z "$LD" && LD="$ac_prog"
8464 # If it fails, then pretend we aren't using GCC.
8468 # If it is relative, then search for the first ld in PATH.
8472 elif test "$with_gnu_ld" = yes; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8474 $as_echo_n "checking for GNU ld... " >&6; }
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8477 $as_echo_n "checking for non-GNU ld... " >&6; }
8479 if ${lt_cv_path_LD+:} false; then :
8480 $as_echo_n "(cached) " >&6
8482 if test -z "$LD"; then
8483 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8484 for ac_dir in $PATH; do
8486 test -z "$ac_dir" && ac_dir=.
8487 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8488 lt_cv_path_LD="$ac_dir/$ac_prog"
8489 # Check to see if the program is GNU ld. I'd rather use --version,
8490 # but apparently some variants of GNU ld only accept -v.
8491 # Break only if it was the GNU/non-GNU ld that we prefer.
8492 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8493 *GNU* | *'with BFD'*)
8494 test "$with_gnu_ld" != no && break
8497 test "$with_gnu_ld" != yes && break
8504 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8509 if test -n "$LD"; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8511 $as_echo "$LD" >&6; }
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514 $as_echo "no" >&6; }
8516 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8518 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8519 if ${lt_cv_prog_gnu_ld+:} false; then :
8520 $as_echo_n "(cached) " >&6
8522 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8523 case `$LD -v 2>&1 </dev/null` in
8524 *GNU* | *'with BFD'*)
8525 lt_cv_prog_gnu_ld=yes
8528 lt_cv_prog_gnu_ld=no
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8533 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8534 with_gnu_ld=$lt_cv_prog_gnu_ld
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
8547 $as_echo_n "checking for directory path separator... " >&6; }
8548 if ${ntp_cv_dir_sep+:} false; then :
8549 $as_echo_n "(cached) " >&6
8552 case "$ntp_cv_dir_sep" in
8555 *djgpp | *mingw32* | *emx*)
8556 ntp_cv_dir_sep="'\\'"
8559 ntp_cv_dir_sep="'/'"
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
8567 $as_echo "$ntp_cv_dir_sep" >&6; }
8569 cat >>confdefs.h <<_ACEOF
8570 #define DIR_SEP $ntp_cv_dir_sep
8575 NTP_ORIG_LIBS="$LIBS"
8577 # Check whether --with-lineeditlibs was given.
8578 if test "${with_lineeditlibs+set}" = set; then :
8579 withval=$with_lineeditlibs; use_lineeditlibs="$withval"
8581 use_lineeditlibs="edit,editline"
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
8586 $as_echo_n "checking line editing libraries... " >&6; }
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
8588 $as_echo "$use_lineeditlibs" >&6; }
8589 case "$use_lineeditlibs" in
8594 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
8595 for term_lib in "" termcap curses ncurses; do
8598 TRY_LIB="-l$lineedit_lib"
8601 TRY_LIB="-l$lineedit_lib -l$term_lib"
8604 LIBS="$NTP_ORIG_LIBS $TRY_LIB"
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
8606 $as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8610 /* Override any GCC internal prototype to avoid an error.
8611 Use char because int might match the return type of a GCC
8612 builtin and then its argument prototype would still apply. */
8625 if ac_fn_c_try_link "$LINENO"; then :
8626 ntp_lib_lineedit="$TRY_LIB"
8628 rm -f core conftest.err conftest.$ac_objext \
8629 conftest$ac_exeext conftest.$ac_ext
8630 case "$ntp_lib_lineedit" in
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633 $as_echo "no" >&6; }
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8638 $as_echo "yes" >&6; }
8643 # do not try el_gets without a terminal library
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
8647 $as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649 /* end confdefs.h. */
8651 /* Override any GCC internal prototype to avoid an error.
8652 Use char because int might match the return type of a GCC
8653 builtin and then its argument prototype would still apply. */
8666 if ac_fn_c_try_link "$LINENO"; then :
8667 ntp_lib_lineedit="$TRY_LIB"
8669 rm -f core conftest.err conftest.$ac_objext \
8670 conftest$ac_exeext conftest.$ac_ext
8671 case "$ntp_lib_lineedit" in
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8674 $as_echo "no" >&6; }
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8678 $as_echo "yes" >&6; }
8681 esac # $ntp_lib_lineedit
8684 case "$ntp_lib_lineedit" in
8692 LIBS="$NTP_ORIG_LIBS"
8694 esac # $use_lineeditlibs
8696 case "$ntp_lib_lineedit" in
8698 ntp_lib_lineedit="no"
8703 EDITLINE_LIBS="$ntp_lib_lineedit"
8706 esac # $ntp_lib_lineedit
8708 case "$ntp_lib_lineedit" in
8712 for ac_header in readline.h readline/readline.h histedit.h
8714 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8715 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8716 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8717 cat >>confdefs.h <<_ACEOF
8718 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8725 for ac_header in history.h readline/history.h
8727 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8728 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8729 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8730 cat >>confdefs.h <<_ACEOF
8731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8739 case "$ac_cv_header_histedit_h" in
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
8742 $as_echo_n "checking number of arguments to el_init()... " >&6; }
8743 if ${ntp_cv_el_init_args+:} false; then :
8744 $as_echo_n "(cached) " >&6
8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8750 #include <histedit.h>
8756 el_init("conftest", stdin, stdout, stderr);
8763 if ac_fn_c_try_compile "$LINENO"; then :
8764 ntp_cv_el_init_args=4
8766 ntp_cv_el_init_args=3
8769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
8773 $as_echo "$ntp_cv_el_init_args" >&6; }
8775 cat >>confdefs.h <<_ACEOF
8776 #define EL_INIT_ARGS $ntp_cv_el_init_args
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
8782 $as_echo_n "checking whether readline supports history... " >&6; }
8784 ntp_lib_lineedit_history="no"
8786 LIBS="$ORIG_LIBS $ntp_lib_lineedit"
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8790 /* Override any GCC internal prototype to avoid an error.
8791 Use char because int might match the return type of a GCC
8792 builtin and then its argument prototype would still apply. */
8796 char add_history ();
8800 return add_history ();
8805 if ac_fn_c_try_link "$LINENO"; then :
8806 ntp_lib_lineedit_history="yes"
8808 rm -f core conftest.err conftest.$ac_objext \
8809 conftest$ac_exeext conftest.$ac_ext
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
8813 $as_echo "$ntp_lib_lineedit_history" >&6; }
8815 case "$ntp_lib_lineedit_history" in
8818 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
8821 esac # $ntp_lib_lineedit
8822 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
8823 { ORIG_LIBS=; unset ORIG_LIBS;}
8824 { TRY_LIB=; unset TRY_LIB;}
8825 { use_lineeditlibs=; unset use_lineeditlibs;}
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
8835 $as_echo_n "checking for library containing cos... " >&6; }
8836 if ${ac_cv_search_cos+:} false; then :
8837 $as_echo_n "(cached) " >&6
8839 ac_func_search_save_LIBS=$LIBS
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8843 /* Override any GCC internal prototype to avoid an error.
8844 Use char because int might match the return type of a GCC
8845 builtin and then its argument prototype would still apply. */
8858 for ac_lib in '' m; do
8859 if test -z "$ac_lib"; then
8860 ac_res="none required"
8863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8865 if ac_fn_c_try_link "$LINENO"; then :
8866 ac_cv_search_cos=$ac_res
8868 rm -f core conftest.err conftest.$ac_objext \
8870 if ${ac_cv_search_cos+:} false; then :
8874 if ${ac_cv_search_cos+:} false; then :
8880 LIBS=$ac_func_search_save_LIBS
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
8883 $as_echo "$ac_cv_search_cos" >&6; }
8884 ac_res=$ac_cv_search_cos
8885 if test "$ac_res" != no; then :
8886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8894 { _libs=; unset _libs;}
8897 for ac_header in vfork.h
8899 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8900 if test "x$ac_cv_header_vfork_h" = xyes; then :
8901 cat >>confdefs.h <<_ACEOF
8902 #define HAVE_VFORK_H 1
8909 for ac_func in fork vfork
8911 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8912 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8913 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8914 cat >>confdefs.h <<_ACEOF
8915 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8921 if test "x$ac_cv_func_fork" = xyes; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8923 $as_echo_n "checking for working fork... " >&6; }
8924 if ${ac_cv_func_fork_works+:} false; then :
8925 $as_echo_n "(cached) " >&6
8927 if test "$cross_compiling" = yes; then :
8928 ac_cv_func_fork_works=cross
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8932 $ac_includes_default
8937 /* By Ruediger Kuhlmann. */
8944 if ac_fn_c_try_run "$LINENO"; then :
8945 ac_cv_func_fork_works=yes
8947 ac_cv_func_fork_works=no
8949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8950 conftest.$ac_objext conftest.beam conftest.$ac_ext
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8955 $as_echo "$ac_cv_func_fork_works" >&6; }
8958 ac_cv_func_fork_works=$ac_cv_func_fork
8960 if test "x$ac_cv_func_fork_works" = xcross; then
8962 *-*-amigaos* | *-*-msdosdjgpp*)
8963 # Override, as these systems have only a dummy fork() stub
8964 ac_cv_func_fork_works=no
8967 ac_cv_func_fork_works=yes
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8971 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8973 ac_cv_func_vfork_works=$ac_cv_func_vfork
8974 if test "x$ac_cv_func_vfork" = xyes; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8976 $as_echo_n "checking for working vfork... " >&6; }
8977 if ${ac_cv_func_vfork_works+:} false; then :
8978 $as_echo_n "(cached) " >&6
8980 if test "$cross_compiling" = yes; then :
8981 ac_cv_func_vfork_works=cross
8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h. */
8985 /* Thanks to Paul Eggert for this test. */
8986 $ac_includes_default
8987 #include <sys/wait.h>
8991 /* On some sparc systems, changes by the child to local and incoming
8992 argument registers are propagated back to the parent. The compiler
8993 is told about this with #include <vfork.h>, but some compilers
8994 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8995 static variable whose address is put into a register that is
8996 clobbered by the vfork. */
8999 sparc_address_test (int arg)
9001 sparc_address_test (arg) int arg;
9022 pid_t parent = getpid ();
9025 sparc_address_test (0);
9030 /* Here is another test for sparc vfork register problems. This
9031 test uses lots of local variables, at least as many local
9032 variables as main has allocated so far including compiler
9033 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9034 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9035 reuse the register of parent for one of the local variables,
9036 since it will think that parent can't possibly be used any more
9037 in this routine. Assigning to the local variable will thus
9038 munge parent in the parent process. */
9040 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9041 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9042 /* Convince the compiler that p..p7 are live; otherwise, it might
9043 use the same hardware register for all 8 local variables. */
9044 if (p != p1 || p != p2 || p != p3 || p != p4
9045 || p != p5 || p != p6 || p != p7)
9048 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9049 from child file descriptors. If the child closes a descriptor
9050 before it execs or exits, this munges the parent's descriptor
9051 as well. Test for this by closing stdout in the child. */
9052 _exit(close(fileno(stdout)) != 0);
9057 while (wait(&status) != child)
9060 /* Was there some problem with vforking? */
9063 /* Did the child fail? (This shouldn't happen.) */
9066 /* Did the vfork/compiler bug occur? */
9067 || parent != getpid()
9069 /* Did the file descriptor bug occur? */
9070 || fstat(fileno(stdout), &st) != 0
9075 if ac_fn_c_try_run "$LINENO"; then :
9076 ac_cv_func_vfork_works=yes
9078 ac_cv_func_vfork_works=no
9080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9081 conftest.$ac_objext conftest.beam conftest.$ac_ext
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9086 $as_echo "$ac_cv_func_vfork_works" >&6; }
9089 if test "x$ac_cv_func_fork_works" = xcross; then
9090 ac_cv_func_vfork_works=$ac_cv_func_vfork
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9092 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9095 if test "x$ac_cv_func_vfork_works" = xyes; then
9097 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9101 $as_echo "#define vfork fork" >>confdefs.h
9104 if test "x$ac_cv_func_fork_works" = xyes; then
9106 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9110 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9111 # for constant arguments. Useless!
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9113 $as_echo_n "checking for working alloca.h... " >&6; }
9114 if ${ac_cv_working_alloca_h+:} false; then :
9115 $as_echo_n "(cached) " >&6
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9123 char *p = (char *) alloca (2 * sizeof (int));
9129 if ac_fn_c_try_link "$LINENO"; then :
9130 ac_cv_working_alloca_h=yes
9132 ac_cv_working_alloca_h=no
9134 rm -f core conftest.err conftest.$ac_objext \
9135 conftest$ac_exeext conftest.$ac_ext
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9138 $as_echo "$ac_cv_working_alloca_h" >&6; }
9139 if test $ac_cv_working_alloca_h = yes; then
9141 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9146 $as_echo_n "checking for alloca... " >&6; }
9147 if ${ac_cv_func_alloca_works+:} false; then :
9148 $as_echo_n "(cached) " >&6
9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151 /* end confdefs.h. */
9153 # define alloca __builtin_alloca
9156 # include <malloc.h>
9157 # define alloca _alloca
9159 # ifdef HAVE_ALLOCA_H
9160 # include <alloca.h>
9165 # ifndef alloca /* predefined by HP cc +Olibcalls */
9166 void *alloca (size_t);
9176 char *p = (char *) alloca (1);
9182 if ac_fn_c_try_link "$LINENO"; then :
9183 ac_cv_func_alloca_works=yes
9185 ac_cv_func_alloca_works=no
9187 rm -f core conftest.err conftest.$ac_objext \
9188 conftest$ac_exeext conftest.$ac_ext
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9191 $as_echo "$ac_cv_func_alloca_works" >&6; }
9193 if test $ac_cv_func_alloca_works = yes; then
9195 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9198 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9199 # that cause trouble. Some versions do not even contain alloca or
9200 # contain a buggy version. If you still want to use their alloca,
9201 # use ar to extract alloca.o from them instead of compiling alloca.c.
9203 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9205 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9209 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9210 if ${ac_cv_os_cray+:} false; then :
9211 $as_echo_n "(cached) " >&6
9213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9214 /* end confdefs.h. */
9215 #if defined CRAY && ! defined CRAY2
9222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9223 $EGREP "webecray" >/dev/null 2>&1; then :
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9232 $as_echo "$ac_cv_os_cray" >&6; }
9233 if test $ac_cv_os_cray = yes; then
9234 for ac_func in _getb67 GETB67 getb67; do
9235 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9236 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9237 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9239 cat >>confdefs.h <<_ACEOF
9240 #define CRAY_STACKSEG_END $ac_func
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9250 $as_echo_n "checking stack direction for C alloca... " >&6; }
9251 if ${ac_cv_c_stack_direction+:} false; then :
9252 $as_echo_n "(cached) " >&6
9254 if test "$cross_compiling" = yes; then :
9255 ac_cv_c_stack_direction=0
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9259 $ac_includes_default
9261 find_stack_direction (int *addr, int depth)
9266 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
9267 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
9272 main (int argc, char **argv)
9274 return find_stack_direction (0, argc + !argv + 20) < 0;
9277 if ac_fn_c_try_run "$LINENO"; then :
9278 ac_cv_c_stack_direction=1
9280 ac_cv_c_stack_direction=-1
9282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9283 conftest.$ac_objext conftest.beam conftest.$ac_ext
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9288 $as_echo "$ac_cv_c_stack_direction" >&6; }
9289 cat >>confdefs.h <<_ACEOF
9290 #define STACK_DIRECTION $ac_cv_c_stack_direction
9296 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
9297 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
9303 cat >>confdefs.h <<_ACEOF
9304 #define HAVE_DECL_STRERROR_R $ac_have_decl
9307 for ac_func in strerror_r
9309 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
9310 if test "x$ac_cv_func_strerror_r" = xyes; then :
9311 cat >>confdefs.h <<_ACEOF
9312 #define HAVE_STRERROR_R 1
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
9319 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
9320 if ${ac_cv_func_strerror_r_char_p+:} false; then :
9321 $as_echo_n "(cached) " >&6
9324 ac_cv_func_strerror_r_char_p=no
9325 if test $ac_cv_have_decl_strerror_r = yes; then
9326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327 /* end confdefs.h. */
9328 $ac_includes_default
9334 char x = *strerror_r (0, buf, sizeof buf);
9335 char *p = strerror_r (0, buf, sizeof buf);
9342 if ac_fn_c_try_compile "$LINENO"; then :
9343 ac_cv_func_strerror_r_char_p=yes
9345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9347 # strerror_r is not declared. Choose between
9348 # systems that have relatively inaccessible declarations for the
9349 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
9350 # former has a strerror_r that returns char*, while the latter
9351 # has a strerror_r that returns `int'.
9352 # This test should segfault on the DEC system.
9353 if test "$cross_compiling" = yes; then :
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9358 $ac_includes_default
9359 extern char *strerror_r ();
9364 char x = *strerror_r (0, buf, sizeof buf);
9365 return ! isalpha (x);
9370 if ac_fn_c_try_run "$LINENO"; then :
9371 ac_cv_func_strerror_r_char_p=yes
9373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9374 conftest.$ac_objext conftest.beam conftest.$ac_ext
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
9381 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
9382 if test $ac_cv_func_strerror_r_char_p = yes; then
9384 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
9389 ac_busted_vpath_in_make=no
9391 *-*-irix6.1*) # 64 bit only
9394 *-*-irix6*) # 6.2 (and later?)
9395 ac_busted_vpath_in_make=yes
9398 ac_busted_vpath_in_make=yes
9401 ac_busted_vpath_in_make=yes
9405 case "$ac_busted_vpath_in_make$srcdir" in
9408 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
9410 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
9418 # Was *-*-aix[[4-9]]*
9419 # XXX only verified thru AIX6. But...
9420 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
9421 # that this support would be in 5.3, removed in 6, and added back.
9423 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
9424 # (returning ENOSYS). I didn't check 4.2. If, in the future,
9425 # IBM pulls its thumbs out long enough to implement clock_settime,
9426 # this conditional will need to change. Maybe use AC_TRY_RUN
9427 # instead to try to set the time to itself and check errno.
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
9431 $as_echo_n "checking for library containing clock_gettime... " >&6; }
9432 if ${ac_cv_search_clock_gettime+:} false; then :
9433 $as_echo_n "(cached) " >&6
9435 ac_func_search_save_LIBS=$LIBS
9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9439 /* Override any GCC internal prototype to avoid an error.
9440 Use char because int might match the return type of a GCC
9441 builtin and then its argument prototype would still apply. */
9445 char clock_gettime ();
9449 return clock_gettime ();
9454 for ac_lib in '' rt; do
9455 if test -z "$ac_lib"; then
9456 ac_res="none required"
9459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9461 if ac_fn_c_try_link "$LINENO"; then :
9462 ac_cv_search_clock_gettime=$ac_res
9464 rm -f core conftest.err conftest.$ac_objext \
9466 if ${ac_cv_search_clock_gettime+:} false; then :
9470 if ${ac_cv_search_clock_gettime+:} false; then :
9473 ac_cv_search_clock_gettime=no
9476 LIBS=$ac_func_search_save_LIBS
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
9479 $as_echo "$ac_cv_search_clock_gettime" >&6; }
9480 ac_res=$ac_cv_search_clock_gettime
9481 if test "$ac_res" != no; then :
9482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9483 case "$ac_cv_search_clock_gettime" in
9486 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
9491 for ac_func in clock_getres clock_gettime clock_settime
9493 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9494 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9495 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9496 cat >>confdefs.h <<_ACEOF
9497 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9506 for ac_func in getclock stime timegm strlcpy strlcat
9508 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9509 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9510 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9511 cat >>confdefs.h <<_ACEOF
9512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
9523 $as_echo_n "checking for library containing snprintb... " >&6; }
9524 if ${ac_cv_search_snprintb+:} false; then :
9525 $as_echo_n "(cached) " >&6
9527 ac_func_search_save_LIBS=$LIBS
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9531 /* Override any GCC internal prototype to avoid an error.
9532 Use char because int might match the return type of a GCC
9533 builtin and then its argument prototype would still apply. */
9546 for ac_lib in '' util; do
9547 if test -z "$ac_lib"; then
9548 ac_res="none required"
9551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9553 if ac_fn_c_try_link "$LINENO"; then :
9554 ac_cv_search_snprintb=$ac_res
9556 rm -f core conftest.err conftest.$ac_objext \
9558 if ${ac_cv_search_snprintb+:} false; then :
9562 if ${ac_cv_search_snprintb+:} false; then :
9565 ac_cv_search_snprintb=no
9568 LIBS=$ac_func_search_save_LIBS
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
9571 $as_echo "$ac_cv_search_snprintb" >&6; }
9572 ac_res=$ac_cv_search_snprintb
9573 if test "$ac_res" != no; then :
9574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9575 case "$ac_cv_search_snprintb" in
9578 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
9581 $as_echo "#define USE_SNPRINTB 1" >>confdefs.h
9587 for ac_header in errno.h sys/socket.h sys/types.h time.h
9589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9590 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9591 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9592 cat >>confdefs.h <<_ACEOF
9593 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9600 for ac_header in net/if.h
9602 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
9603 #ifdef HAVE_SYS_SOCKET_H
9604 # include <sys/socket.h>
9608 if test "x$ac_cv_header_net_if_h" = xyes; then :
9609 cat >>confdefs.h <<_ACEOF
9610 #define HAVE_NET_IF_H 1
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
9620 $as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
9621 if ${ntp_cv_predecl_mpinfou+:} false; then :
9622 $as_echo_n "(cached) " >&6
9625 np_cv_predecl_mpinfou=no
9626 case "$ac_cv_header_net_if_h" in
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9631 typedef union mpinfou {
9632 struct pdk_mpinfo *pdkptr;
9633 struct mpinfo *pikptr;
9635 #ifdef HAVE_SYS_SOCKET_H
9636 # include <sys/socket.h>
9650 if ac_fn_c_try_compile "$LINENO"; then :
9652 ntp_cv_predecl_mpinfou=yes
9653 ac_cv_header_net_if_h=yes
9657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
9663 $as_echo "$ntp_cv_predecl_mpinfou" >&6; }
9664 case "$ntp_cv_predecl_mpinfou" in
9666 cat >>confdefs.h <<_ACEOF
9667 #ifndef MPINFOU_PREDECLARED
9668 # define MPINFOU_PREDECLARED
9669 typedef union mpinfou {
9670 struct pdk_mpinfo *pdkptr;
9671 struct mpinfo *pikptr;
9681 for ac_header in linux/if_addr.h
9683 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
9684 #ifdef HAVE_SYS_SOCKET_H
9685 # include <sys/socket.h>
9689 if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
9690 cat >>confdefs.h <<_ACEOF
9691 #define HAVE_LINUX_IF_ADDR_H 1
9699 $as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h
9703 for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
9705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9706 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9707 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9708 cat >>confdefs.h <<_ACEOF
9709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9716 # sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
9717 for ac_header in sys/sysctl.h
9719 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
9720 #if defined HAVE_SYS_PARAM_H
9721 # include <sys/param.h>
9725 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
9726 cat >>confdefs.h <<_ACEOF
9727 #define HAVE_SYS_SYSCTL_H 1
9734 for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
9736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9737 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9738 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9739 cat >>confdefs.h <<_ACEOF
9740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9748 for ac_header in resolv.h
9750 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
9751 #ifdef HAVE_SYS_TYPES_H
9752 # include <sys/types.h>
9754 #ifdef HAVE_NETINET_IN_H
9755 # include <netinet/in.h>
9757 #ifdef HAVE_ARPA_NAMESER_H
9758 # include <arpa/nameser.h>
9762 if test "x$ac_cv_header_resolv_h" = xyes; then :
9763 cat >>confdefs.h <<_ACEOF
9764 #define HAVE_RESOLV_H 1
9772 for ac_header in net/if_var.h
9774 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
9775 #if HAVE_SYS_TYPES_H
9776 # include <sys/types.h>
9778 #ifdef HAVE_SYS_SOCKET_H
9779 # include <sys/socket.h>
9781 #ifdef HAVE_NETINET_IN_H
9782 # include <netinet/in.h>
9784 #ifdef HAVE_NET_IF_H
9785 # include <net/if.h>
9789 if test "x$ac_cv_header_net_if_var_h" = xyes; then :
9790 cat >>confdefs.h <<_ACEOF
9791 #define HAVE_NET_IF_VAR_H 1
9799 for ac_header in netinet/ip.h netinet/in_var.h
9801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9802 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
9803 #ifdef HAVE_SYS_TYPES_H
9804 # include <sys/types.h>
9806 #ifdef HAVE_SYS_SOCKET_H
9807 # include <sys/socket.h>
9809 #ifdef HAVE_NET_IF_H
9810 # include <net/if.h>
9812 #ifdef HAVE_NETINET_IN_H
9813 # include <netinet/in.h>
9815 #ifdef HAVE_NET_IF_VAR_H
9816 # include <net/if_var.h>
9818 #ifdef HAVE_NETINET_IN_SYSTM_H
9819 # include <netinet/in_systm.h>
9823 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9824 cat >>confdefs.h <<_ACEOF
9825 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9833 # HMS: Do we need to check for -lsocket before or after these tests?
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
9835 $as_echo_n "checking for library containing inet_pton... " >&6; }
9836 if ${ac_cv_search_inet_pton+:} false; then :
9837 $as_echo_n "(cached) " >&6
9839 ac_func_search_save_LIBS=$LIBS
9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9843 /* Override any GCC internal prototype to avoid an error.
9844 Use char because int might match the return type of a GCC
9845 builtin and then its argument prototype would still apply. */
9853 return inet_pton ();
9858 for ac_lib in '' nsl; do
9859 if test -z "$ac_lib"; then
9860 ac_res="none required"
9863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9865 if ac_fn_c_try_link "$LINENO"; then :
9866 ac_cv_search_inet_pton=$ac_res
9868 rm -f core conftest.err conftest.$ac_objext \
9870 if ${ac_cv_search_inet_pton+:} false; then :
9874 if ${ac_cv_search_inet_pton+:} false; then :
9877 ac_cv_search_inet_pton=no
9880 LIBS=$ac_func_search_save_LIBS
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
9883 $as_echo "$ac_cv_search_inet_pton" >&6; }
9884 ac_res=$ac_cv_search_inet_pton
9885 if test "$ac_res" != no; then :
9886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9887 case "$ac_cv_search_inet_pton" in
9890 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
9896 $as_echo_n "checking for library containing inet_ntop... " >&6; }
9897 if ${ac_cv_search_inet_ntop+:} false; then :
9898 $as_echo_n "(cached) " >&6
9900 ac_func_search_save_LIBS=$LIBS
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9904 /* Override any GCC internal prototype to avoid an error.
9905 Use char because int might match the return type of a GCC
9906 builtin and then its argument prototype would still apply. */
9914 return inet_ntop ();
9919 for ac_lib in '' resolv; do
9920 if test -z "$ac_lib"; then
9921 ac_res="none required"
9924 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
9926 if ac_fn_c_try_link "$LINENO"; then :
9927 ac_cv_search_inet_ntop=$ac_res
9929 rm -f core conftest.err conftest.$ac_objext \
9931 if ${ac_cv_search_inet_ntop+:} false; then :
9935 if ${ac_cv_search_inet_ntop+:} false; then :
9938 ac_cv_search_inet_ntop=no
9941 LIBS=$ac_func_search_save_LIBS
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
9944 $as_echo "$ac_cv_search_inet_ntop" >&6; }
9945 ac_res=$ac_cv_search_inet_ntop
9946 if test "$ac_res" != no; then :
9947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9948 case "$ac_cv_search_inet_ntop" in
9951 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
9957 # [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to
9958 # avoid keying on the OS name: If we find socket functions in
9959 # libsocket, next try for them in libxnet without libsocket, if found,
9960 # list both. If we simply tested libxnet first, we would find the
9961 # functions there and never add libsocket. See also [Bug 660]
9962 # http://bugs.ntp.org/show_bug.cgi?id=660#c9
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
9965 $as_echo_n "checking for library containing setsockopt... " >&6; }
9966 if ${ac_cv_search_setsockopt+:} false; then :
9967 $as_echo_n "(cached) " >&6
9969 ac_func_search_save_LIBS=$LIBS
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9973 /* Override any GCC internal prototype to avoid an error.
9974 Use char because int might match the return type of a GCC
9975 builtin and then its argument prototype would still apply. */
9983 return setsockopt ();
9988 for ac_lib in '' socket; do
9989 if test -z "$ac_lib"; then
9990 ac_res="none required"
9993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9995 if ac_fn_c_try_link "$LINENO"; then :
9996 ac_cv_search_setsockopt=$ac_res
9998 rm -f core conftest.err conftest.$ac_objext \
10000 if ${ac_cv_search_setsockopt+:} false; then :
10004 if ${ac_cv_search_setsockopt+:} false; then :
10007 ac_cv_search_setsockopt=no
10009 rm conftest.$ac_ext
10010 LIBS=$ac_func_search_save_LIBS
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
10013 $as_echo "$ac_cv_search_setsockopt" >&6; }
10014 ac_res=$ac_cv_search_setsockopt
10015 if test "$ac_res" != no; then :
10016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10017 case "$ac_cv_search_setsockopt" in
10018 'none required') ;;
10020 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
10025 case "$ac_cv_search_setsockopt" in
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
10029 $as_echo_n "checking for library containing getsockopt... " >&6; }
10030 if ${ac_cv_search_getsockopt+:} false; then :
10031 $as_echo_n "(cached) " >&6
10033 ac_func_search_save_LIBS=$LIBS
10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035 /* end confdefs.h. */
10037 /* Override any GCC internal prototype to avoid an error.
10038 Use char because int might match the return type of a GCC
10039 builtin and then its argument prototype would still apply. */
10043 char getsockopt ();
10047 return getsockopt ();
10052 for ac_lib in '' xnet; do
10053 if test -z "$ac_lib"; then
10054 ac_res="none required"
10057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10059 if ac_fn_c_try_link "$LINENO"; then :
10060 ac_cv_search_getsockopt=$ac_res
10062 rm -f core conftest.err conftest.$ac_objext \
10064 if ${ac_cv_search_getsockopt+:} false; then :
10068 if ${ac_cv_search_getsockopt+:} false; then :
10071 ac_cv_search_getsockopt=no
10073 rm conftest.$ac_ext
10074 LIBS=$ac_func_search_save_LIBS
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
10077 $as_echo "$ac_cv_search_getsockopt" >&6; }
10078 ac_res=$ac_cv_search_getsockopt
10079 if test "$ac_res" != no; then :
10080 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10081 case "$ac_cv_search_getsockopt" in
10082 'none required') ;;
10084 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
10089 # XXX Possible trouble here - reading the comments above and looking at the
10090 # code below I wonder if we'll add -lxnet when we don't need it.
10091 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
10092 # there when it is not needed?
10093 case "$ac_cv_search_getsockopt" in
10095 LIBS="-lxnet -lsocket $saved_LIBS"
10097 *) LIBS="-lsocket $saved_LIBS"
10102 { saved_LIBS=; unset saved_LIBS;}
10104 # Bug 2427 - look for recvmsg here.
10105 for ac_func in recvmsg
10107 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
10108 if test "x$ac_cv_func_recvmsg" = xyes; then :
10109 cat >>confdefs.h <<_ACEOF
10110 #define HAVE_RECVMSG 1
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10118 $as_echo_n "checking for inline... " >&6; }
10119 if ${ac_cv_c_inline+:} false; then :
10120 $as_echo_n "(cached) " >&6
10123 for ac_kw in inline __inline__ __inline; do
10124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10126 #ifndef __cplusplus
10128 static $ac_kw foo_t static_foo () {return 0; }
10129 $ac_kw foo_t foo () {return 0; }
10133 if ac_fn_c_try_compile "$LINENO"; then :
10134 ac_cv_c_inline=$ac_kw
10136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10137 test "$ac_cv_c_inline" != no && break
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10142 $as_echo "$ac_cv_c_inline" >&6; }
10144 case $ac_cv_c_inline in
10147 case $ac_cv_c_inline in
10149 *) ac_val=$ac_cv_c_inline;;
10151 cat >>confdefs.h <<_ACEOF
10152 #ifndef __cplusplus
10153 #define inline $ac_val
10160 case "$ac_cv_c_inline" in
10165 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
10171 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10172 if ${ac_cv_header_time+:} false; then :
10173 $as_echo_n "(cached) " >&6
10175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h. */
10177 #include <sys/types.h>
10178 #include <sys/time.h>
10184 if ((struct tm *) 0)
10190 if ac_fn_c_try_compile "$LINENO"; then :
10191 ac_cv_header_time=yes
10193 ac_cv_header_time=no
10195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
10198 $as_echo "$ac_cv_header_time" >&6; }
10199 if test $ac_cv_header_time = yes; then
10201 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
10205 # The cast to long int works around a bug in the HP C Compiler
10206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10207 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10208 # This bug is HP SR number 8606223364.
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
10210 $as_echo_n "checking size of time_t... " >&6; }
10211 if ${ac_cv_sizeof_time_t+:} false; then :
10212 $as_echo_n "(cached) " >&6
10214 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
10217 if test "$ac_cv_type_time_t" = yes; then
10218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10220 as_fn_error 77 "cannot compute sizeof (time_t)
10221 See \`config.log' for more details" "$LINENO" 5; }
10223 ac_cv_sizeof_time_t=0
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
10229 $as_echo "$ac_cv_sizeof_time_t" >&6; }
10233 cat >>confdefs.h <<_ACEOF
10234 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
10239 $as_echo_n "checking whether char is unsigned... " >&6; }
10240 if ${ac_cv_c_char_unsigned+:} false; then :
10241 $as_echo_n "(cached) " >&6
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10245 $ac_includes_default
10249 static int test_array [1 - 2 * !(((char) -1) < 0)];
10250 test_array [0] = 0;
10251 return test_array [0];
10257 if ac_fn_c_try_compile "$LINENO"; then :
10258 ac_cv_c_char_unsigned=no
10260 ac_cv_c_char_unsigned=yes
10262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
10265 $as_echo "$ac_cv_c_char_unsigned" >&6; }
10266 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
10267 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
10270 # The cast to long int works around a bug in the HP C Compiler
10271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10273 # This bug is HP SR number 8606223364.
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
10275 $as_echo_n "checking size of signed char... " >&6; }
10276 if ${ac_cv_sizeof_signed_char+:} false; then :
10277 $as_echo_n "(cached) " >&6
10279 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
10282 if test "$ac_cv_type_signed_char" = yes; then
10283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10285 as_fn_error 77 "cannot compute sizeof (signed char)
10286 See \`config.log' for more details" "$LINENO" 5; }
10288 ac_cv_sizeof_signed_char=0
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
10294 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
10298 cat >>confdefs.h <<_ACEOF
10299 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
10303 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
10304 if test "x$ac_cv_type_s_char" = xyes; then :
10306 cat >>confdefs.h <<_ACEOF
10307 #define HAVE_S_CHAR 1
10312 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
10313 if test "x$ac_cv_type_long_long" = xyes; then :
10315 cat >>confdefs.h <<_ACEOF
10316 #define HAVE_LONG_LONG 1
10322 # The cast to long int works around a bug in the HP C Compiler
10323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10325 # This bug is HP SR number 8606223364.
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10327 $as_echo_n "checking size of short... " >&6; }
10328 if ${ac_cv_sizeof_short+:} false; then :
10329 $as_echo_n "(cached) " >&6
10331 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10334 if test "$ac_cv_type_short" = yes; then
10335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10337 as_fn_error 77 "cannot compute sizeof (short)
10338 See \`config.log' for more details" "$LINENO" 5; }
10340 ac_cv_sizeof_short=0
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10346 $as_echo "$ac_cv_sizeof_short" >&6; }
10350 cat >>confdefs.h <<_ACEOF
10351 #define SIZEOF_SHORT $ac_cv_sizeof_short
10355 # The cast to long int works around a bug in the HP C Compiler
10356 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10357 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10358 # This bug is HP SR number 8606223364.
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10360 $as_echo_n "checking size of int... " >&6; }
10361 if ${ac_cv_sizeof_int+:} false; then :
10362 $as_echo_n "(cached) " >&6
10364 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10367 if test "$ac_cv_type_int" = yes; then
10368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10370 as_fn_error 77 "cannot compute sizeof (int)
10371 See \`config.log' for more details" "$LINENO" 5; }
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10379 $as_echo "$ac_cv_sizeof_int" >&6; }
10383 cat >>confdefs.h <<_ACEOF
10384 #define SIZEOF_INT $ac_cv_sizeof_int
10388 # The cast to long int works around a bug in the HP C Compiler
10389 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10390 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10391 # This bug is HP SR number 8606223364.
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10393 $as_echo_n "checking size of long... " >&6; }
10394 if ${ac_cv_sizeof_long+:} false; then :
10395 $as_echo_n "(cached) " >&6
10397 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10400 if test "$ac_cv_type_long" = yes; then
10401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10403 as_fn_error 77 "cannot compute sizeof (long)
10404 See \`config.log' for more details" "$LINENO" 5; }
10406 ac_cv_sizeof_long=0
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10412 $as_echo "$ac_cv_sizeof_long" >&6; }
10416 cat >>confdefs.h <<_ACEOF
10417 #define SIZEOF_LONG $ac_cv_sizeof_long
10422 case "$ac_cv_type_long_long" in
10426 # The cast to long int works around a bug in the HP C Compiler
10427 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10428 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10429 # This bug is HP SR number 8606223364.
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10431 $as_echo_n "checking size of long long... " >&6; }
10432 if ${ac_cv_sizeof_long_long+:} false; then :
10433 $as_echo_n "(cached) " >&6
10435 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10438 if test "$ac_cv_type_long_long" = yes; then
10439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10441 as_fn_error 77 "cannot compute sizeof (long long)
10442 See \`config.log' for more details" "$LINENO" 5; }
10444 ac_cv_sizeof_long_long=0
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10450 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10454 cat >>confdefs.h <<_ACEOF
10455 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10462 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
10464 # We have a typedef for s_char. Might as well believe it...
10467 # We have signed chars, can't say 'signed char', no s_char typedef.
10469 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
10473 # We have signed chars, can say 'signed char', no s_char typedef.
10475 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
10479 # We have unsigned chars, can't say 'signed char', no s_char typedef.
10480 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
10483 # We have unsigned chars, can say 'signed char', no s_char typedef.
10485 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
10491 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10492 if ${ac_cv_type_uid_t+:} false; then :
10493 $as_echo_n "(cached) " >&6
10495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h. */
10497 #include <sys/types.h>
10500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10501 $EGREP "uid_t" >/dev/null 2>&1; then :
10502 ac_cv_type_uid_t=yes
10504 ac_cv_type_uid_t=no
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
10510 $as_echo "$ac_cv_type_uid_t" >&6; }
10511 if test $ac_cv_type_uid_t = no; then
10513 $as_echo "#define uid_t int" >>confdefs.h
10516 $as_echo "#define gid_t int" >>confdefs.h
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
10526 $as_echo_n "checking if we're including debugging code... " >&6; }
10527 # Check whether --enable-debugging was given.
10528 if test "${enable_debugging+set}" = set; then :
10529 enableval=$enable_debugging; ntp_ok=$enableval
10538 $as_echo "#define DEBUG 1" >>confdefs.h
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
10542 $as_echo "$ntp_ok" >&6; }
10546 # check if we can compile with pthreads
10547 for ac_header in semaphore.h
10549 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
10550 if test "x$ac_cv_header_semaphore_h" = xyes; then :
10551 cat >>confdefs.h <<_ACEOF
10552 #define HAVE_SEMAPHORE_H 1
10559 for ac_func in socketpair
10561 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
10562 if test "x$ac_cv_func_socketpair" = xyes; then :
10563 cat >>confdefs.h <<_ACEOF
10564 #define HAVE_SOCKETPAIR 1
10570 # Check whether --enable-thread-support was given.
10571 if test "${enable_thread_support+set}" = set; then :
10572 enableval=$enable_thread_support;
10574 enable_thread_support=yes
10579 case "$enable_thread_support" in
10582 ol_found_pthreads=no
10587 ac_cpp='$CPP $CPPFLAGS'
10588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10592 # OpenLDAP --with-threads
10594 # Check whether --with-threads was given.
10595 if test "${with_threads+set}" = set; then :
10596 withval=$with_threads;
10598 for ol_val in auto nt posix mach pth lwp yes no manual ; do
10599 if test "$withval" = "$ol_val" ; then
10603 if test "$ol_arg" = "invalid" ; then
10604 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
10606 ol_with_threads="$ol_arg"
10609 ol_with_threads="auto"
10611 # end --with-threads
10614 case "$ol_with_threads$host" in
10615 auto*-*-solaris2.[0-6])
10623 *-*-aix*) if test -z "$CC" ; then
10624 case "$ol_with_threads" in
10625 auto | yes | posix) ol_aix_threads=yes ;;
10631 if test $ol_aix_threads = yes ; then
10632 if test -z "${CC}" ; then
10633 for ac_prog in cc_r xlc_r cc
10635 # Extract the first word of "$ac_prog", so it can be a program name with args.
10636 set dummy $ac_prog; ac_word=$2
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10638 $as_echo_n "checking for $ac_word... " >&6; }
10639 if ${ac_cv_prog_CC+:} false; then :
10640 $as_echo_n "(cached) " >&6
10642 if test -n "$CC"; then
10643 ac_cv_prog_CC="$CC" # Let the user override the test.
10645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10646 for as_dir in $PATH
10649 test -z "$as_dir" && as_dir=.
10650 for ac_exec_ext in '' $ac_executable_extensions; do
10651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10652 ac_cv_prog_CC="$ac_prog"
10653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10663 if test -n "$CC"; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10665 $as_echo "$CC" >&6; }
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668 $as_echo "no" >&6; }
10672 test -n "$CC" && break
10676 if test "$CC" = cc ; then
10677 if test $ol_with_threads != auto ; then
10678 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
10681 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
10687 case ${CC} in cc_r | xlc_r)
10688 ol_with_threads=posix
10689 ol_cv_pthread_create=yes
10695 # OpenLDAP --with-yielding_select
10697 # Check whether --with-yielding_select was given.
10698 if test "${with_yielding_select+set}" = set; then :
10699 withval=$with_yielding_select;
10701 for ol_val in auto yes no manual ; do
10702 if test "$withval" = "$ol_val" ; then
10706 if test "$ol_arg" = "invalid" ; then
10707 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
10709 ol_with_yielding_select="$ol_arg"
10712 ol_with_yielding_select="auto"
10714 # end --with-yielding_select
10717 case $ol_with_threads in auto | yes | nt)
10720 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
10721 if test "x$ac_cv_func__beginthread" = xyes; then :
10726 if test $ac_cv_func__beginthread = yes ; then
10728 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
10730 ol_cv_nt_threads=yes
10734 if test "$ol_cv_nt_threads" = yes ; then
10736 ol_with_threads=found
10737 ol_with_yielding_select=yes
10740 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
10743 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
10747 if test $ol_with_threads = nt ; then
10748 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
10753 case $ol_with_threads in auto | yes | posix)
10755 for ac_header in pthread.h
10757 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10758 if test "x$ac_cv_header_pthread_h" = xyes; then :
10759 cat >>confdefs.h <<_ACEOF
10760 #define HAVE_PTHREAD_H 1
10768 if test $ac_cv_header_pthread_h = yes ; then
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
10770 $as_echo_n "checking POSIX thread version... " >&6; }
10771 if ${ol_cv_pthread_version+:} false; then :
10772 $as_echo_n "(cached) " >&6
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10778 # include <pthread.h>
10784 int i = PTHREAD_CREATE_JOINABLE;
10790 if ac_fn_c_try_compile "$LINENO"; then :
10792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h. */
10794 #include <pthread.h>
10797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10798 $EGREP "pthread_detach" >/dev/null 2>&1; then :
10799 ol_cv_pthread_version=10
10801 ol_cv_pthread_version=8
10807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10808 /* end confdefs.h. */
10810 # include <pthread.h>
10811 # ifdef PTHREAD_CREATE_UNDETACHED
10816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10817 $EGREP "draft7" >/dev/null 2>&1; then :
10818 ol_cv_pthread_version=7
10821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822 /* end confdefs.h. */
10823 #include <pthread.h>
10826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10827 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
10828 ol_cv_pthread_version=6
10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h. */
10834 # include <pthread.h>
10835 #ifdef PTHREAD_MUTEX_INITIALIZER
10840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10841 $EGREP "draft5" >/dev/null 2>&1; then :
10842 ol_cv_pthread_version=5
10844 ol_cv_pthread_version=4
10855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
10859 $as_echo "$ol_cv_pthread_version" >&6; }
10862 if test $ol_cv_pthread_version != 0 ; then
10864 cat >>confdefs.h <<_ACEOF
10865 #define HAVE_PTHREADS $ol_cv_pthread_version
10869 as_fn_error $? "unknown pthread version" "$LINENO" 5
10872 # consider threads found
10873 ol_with_threads=found
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
10877 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
10878 if ${ol_cv_header_linux_threads+:} false; then :
10879 $as_echo_n "(cached) " >&6
10881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h. */
10883 #include <pthread.h>
10885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10886 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
10887 ol_cv_header_linux_threads=yes
10889 ol_cv_header_linux_threads=no
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
10896 $as_echo "$ol_cv_header_linux_threads" >&6; }
10897 if test $ol_cv_header_linux_threads = yes; then
10899 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
10905 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
10906 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
10907 $as_echo_n "(cached) " >&6
10909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910 /* end confdefs.h. */
10911 #include <pthread.h>
10912 #ifdef _POSIX_THREAD_IS_GNU_PTH
10917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10918 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
10919 ol_cv_header_gnu_pth_pthread_h=yes
10921 ol_cv_header_gnu_pth_pthread_h=no
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
10928 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
10931 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
10932 for ac_header in sched.h
10934 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
10935 if test "x$ac_cv_header_sched_h" = xyes; then :
10936 cat >>confdefs.h <<_ACEOF
10937 #define HAVE_SCHED_H 1
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
10948 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
10949 if ${ol_cv_pthread_create+:} false; then :
10950 $as_echo_n "(cached) " >&6
10953 if test "$cross_compiling" = yes; then :
10954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10955 /* end confdefs.h. */
10957 /* pthread test headers */
10958 #include <pthread.h>
10959 #if HAVE_PTHREADS < 7
10963 #define NULL (void*)0
10966 static void *task(p)
10969 return (void *) (p == NULL);
10976 /* pthread test function */
10977 #ifndef PTHREAD_CREATE_DETACHED
10978 #define PTHREAD_CREATE_DETACHED 1
10982 int detach = PTHREAD_CREATE_DETACHED;
10984 #if HAVE_PTHREADS > 4
10985 /* Final pthreads */
10986 pthread_attr_t attr;
10988 status = pthread_attr_init(&attr);
10989 if( status ) return status;
10991 #if HAVE_PTHREADS < 7
10992 status = pthread_attr_setdetachstate(&attr, &detach);
10993 if( status < 0 ) status = errno;
10995 status = pthread_attr_setdetachstate(&attr, detach);
10997 if( status ) return status;
10998 status = pthread_create( &t, &attr, task, NULL );
10999 #if HAVE_PTHREADS < 7
11000 if( status < 0 ) status = errno;
11002 if( status ) return status;
11004 /* Draft 4 pthreads */
11005 status = pthread_create( &t, pthread_attr_default, task, NULL );
11006 if( status ) return errno;
11008 /* give thread a chance to complete */
11009 /* it should remain joinable and hence detachable */
11012 status = pthread_detach( &t );
11013 if( status ) return errno;
11016 #ifdef HAVE_LINUX_THREADS
11017 pthread_kill_other_threads_np();
11026 if ac_fn_c_try_link "$LINENO"; then :
11027 ol_cv_pthread_create=yes
11029 ol_cv_pthread_create=no
11031 rm -f core conftest.err conftest.$ac_objext \
11032 conftest$ac_exeext conftest.$ac_ext
11034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11038 /* pthread test headers */
11039 #include <pthread.h>
11040 #if HAVE_PTHREADS < 7
11044 #define NULL (void*)0
11047 static void *task(p)
11050 return (void *) (p == NULL);
11054 int main(argc, argv)
11059 /* pthread test function */
11060 #ifndef PTHREAD_CREATE_DETACHED
11061 #define PTHREAD_CREATE_DETACHED 1
11065 int detach = PTHREAD_CREATE_DETACHED;
11067 #if HAVE_PTHREADS > 4
11068 /* Final pthreads */
11069 pthread_attr_t attr;
11071 status = pthread_attr_init(&attr);
11072 if( status ) return status;
11074 #if HAVE_PTHREADS < 7
11075 status = pthread_attr_setdetachstate(&attr, &detach);
11076 if( status < 0 ) status = errno;
11078 status = pthread_attr_setdetachstate(&attr, detach);
11080 if( status ) return status;
11081 status = pthread_create( &t, &attr, task, NULL );
11082 #if HAVE_PTHREADS < 7
11083 if( status < 0 ) status = errno;
11085 if( status ) return status;
11087 /* Draft 4 pthreads */
11088 status = pthread_create( &t, pthread_attr_default, task, NULL );
11089 if( status ) return errno;
11091 /* give thread a chance to complete */
11092 /* it should remain joinable and hence detachable */
11095 status = pthread_detach( &t );
11096 if( status ) return errno;
11099 #ifdef HAVE_LINUX_THREADS
11100 pthread_kill_other_threads_np();
11108 if ac_fn_c_try_run "$LINENO"; then :
11109 ol_cv_pthread_create=yes
11111 ol_cv_pthread_create=no
11113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11114 conftest.$ac_objext conftest.beam conftest.$ac_ext
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
11119 $as_echo "$ol_cv_pthread_create" >&6; }
11121 if test $ol_cv_pthread_create != no ; then
11122 ol_link_threads=posix
11123 ol_link_pthreads=""
11126 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11127 if test "$ol_link_threads" = no ; then
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
11130 $as_echo_n "checking for pthread link with -kthread... " >&6; }
11131 if ${ol_cv_pthread_kthread+:} false; then :
11132 $as_echo_n "(cached) " >&6
11137 LIBS="-kthread $LIBS"
11139 if test "$cross_compiling" = yes; then :
11140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141 /* end confdefs.h. */
11143 /* pthread test headers */
11144 #include <pthread.h>
11145 #if HAVE_PTHREADS < 7
11149 #define NULL (void*)0
11152 static void *task(p)
11155 return (void *) (p == NULL);
11162 /* pthread test function */
11163 #ifndef PTHREAD_CREATE_DETACHED
11164 #define PTHREAD_CREATE_DETACHED 1
11168 int detach = PTHREAD_CREATE_DETACHED;
11170 #if HAVE_PTHREADS > 4
11171 /* Final pthreads */
11172 pthread_attr_t attr;
11174 status = pthread_attr_init(&attr);
11175 if( status ) return status;
11177 #if HAVE_PTHREADS < 7
11178 status = pthread_attr_setdetachstate(&attr, &detach);
11179 if( status < 0 ) status = errno;
11181 status = pthread_attr_setdetachstate(&attr, detach);
11183 if( status ) return status;
11184 status = pthread_create( &t, &attr, task, NULL );
11185 #if HAVE_PTHREADS < 7
11186 if( status < 0 ) status = errno;
11188 if( status ) return status;
11190 /* Draft 4 pthreads */
11191 status = pthread_create( &t, pthread_attr_default, task, NULL );
11192 if( status ) return errno;
11194 /* give thread a chance to complete */
11195 /* it should remain joinable and hence detachable */
11198 status = pthread_detach( &t );
11199 if( status ) return errno;
11202 #ifdef HAVE_LINUX_THREADS
11203 pthread_kill_other_threads_np();
11212 if ac_fn_c_try_link "$LINENO"; then :
11213 ol_cv_pthread_kthread=yes
11215 ol_cv_pthread_kthread=no
11217 rm -f core conftest.err conftest.$ac_objext \
11218 conftest$ac_exeext conftest.$ac_ext
11220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h. */
11224 /* pthread test headers */
11225 #include <pthread.h>
11226 #if HAVE_PTHREADS < 7
11230 #define NULL (void*)0
11233 static void *task(p)
11236 return (void *) (p == NULL);
11240 int main(argc, argv)
11245 /* pthread test function */
11246 #ifndef PTHREAD_CREATE_DETACHED
11247 #define PTHREAD_CREATE_DETACHED 1
11251 int detach = PTHREAD_CREATE_DETACHED;
11253 #if HAVE_PTHREADS > 4
11254 /* Final pthreads */
11255 pthread_attr_t attr;
11257 status = pthread_attr_init(&attr);
11258 if( status ) return status;
11260 #if HAVE_PTHREADS < 7
11261 status = pthread_attr_setdetachstate(&attr, &detach);
11262 if( status < 0 ) status = errno;
11264 status = pthread_attr_setdetachstate(&attr, detach);
11266 if( status ) return status;
11267 status = pthread_create( &t, &attr, task, NULL );
11268 #if HAVE_PTHREADS < 7
11269 if( status < 0 ) status = errno;
11271 if( status ) return status;
11273 /* Draft 4 pthreads */
11274 status = pthread_create( &t, pthread_attr_default, task, NULL );
11275 if( status ) return errno;
11277 /* give thread a chance to complete */
11278 /* it should remain joinable and hence detachable */
11281 status = pthread_detach( &t );
11282 if( status ) return errno;
11285 #ifdef HAVE_LINUX_THREADS
11286 pthread_kill_other_threads_np();
11294 if ac_fn_c_try_run "$LINENO"; then :
11295 ol_cv_pthread_kthread=yes
11297 ol_cv_pthread_kthread=no
11299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11300 conftest.$ac_objext conftest.beam conftest.$ac_ext
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
11309 $as_echo "$ol_cv_pthread_kthread" >&6; }
11311 if test $ol_cv_pthread_kthread = yes ; then
11312 ol_link_pthreads="-kthread"
11313 ol_link_threads=posix
11317 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11318 if test "$ol_link_threads" = no ; then
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
11321 $as_echo_n "checking for pthread link with -pthread... " >&6; }
11322 if ${ol_cv_pthread_pthread+:} false; then :
11323 $as_echo_n "(cached) " >&6
11328 LIBS="-pthread $LIBS"
11330 if test "$cross_compiling" = yes; then :
11331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h. */
11334 /* pthread test headers */
11335 #include <pthread.h>
11336 #if HAVE_PTHREADS < 7
11340 #define NULL (void*)0
11343 static void *task(p)
11346 return (void *) (p == NULL);
11353 /* pthread test function */
11354 #ifndef PTHREAD_CREATE_DETACHED
11355 #define PTHREAD_CREATE_DETACHED 1
11359 int detach = PTHREAD_CREATE_DETACHED;
11361 #if HAVE_PTHREADS > 4
11362 /* Final pthreads */
11363 pthread_attr_t attr;
11365 status = pthread_attr_init(&attr);
11366 if( status ) return status;
11368 #if HAVE_PTHREADS < 7
11369 status = pthread_attr_setdetachstate(&attr, &detach);
11370 if( status < 0 ) status = errno;
11372 status = pthread_attr_setdetachstate(&attr, detach);
11374 if( status ) return status;
11375 status = pthread_create( &t, &attr, task, NULL );
11376 #if HAVE_PTHREADS < 7
11377 if( status < 0 ) status = errno;
11379 if( status ) return status;
11381 /* Draft 4 pthreads */
11382 status = pthread_create( &t, pthread_attr_default, task, NULL );
11383 if( status ) return errno;
11385 /* give thread a chance to complete */
11386 /* it should remain joinable and hence detachable */
11389 status = pthread_detach( &t );
11390 if( status ) return errno;
11393 #ifdef HAVE_LINUX_THREADS
11394 pthread_kill_other_threads_np();
11403 if ac_fn_c_try_link "$LINENO"; then :
11404 ol_cv_pthread_pthread=yes
11406 ol_cv_pthread_pthread=no
11408 rm -f core conftest.err conftest.$ac_objext \
11409 conftest$ac_exeext conftest.$ac_ext
11411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11412 /* end confdefs.h. */
11415 /* pthread test headers */
11416 #include <pthread.h>
11417 #if HAVE_PTHREADS < 7
11421 #define NULL (void*)0
11424 static void *task(p)
11427 return (void *) (p == NULL);
11431 int main(argc, argv)
11436 /* pthread test function */
11437 #ifndef PTHREAD_CREATE_DETACHED
11438 #define PTHREAD_CREATE_DETACHED 1
11442 int detach = PTHREAD_CREATE_DETACHED;
11444 #if HAVE_PTHREADS > 4
11445 /* Final pthreads */
11446 pthread_attr_t attr;
11448 status = pthread_attr_init(&attr);
11449 if( status ) return status;
11451 #if HAVE_PTHREADS < 7
11452 status = pthread_attr_setdetachstate(&attr, &detach);
11453 if( status < 0 ) status = errno;
11455 status = pthread_attr_setdetachstate(&attr, detach);
11457 if( status ) return status;
11458 status = pthread_create( &t, &attr, task, NULL );
11459 #if HAVE_PTHREADS < 7
11460 if( status < 0 ) status = errno;
11462 if( status ) return status;
11464 /* Draft 4 pthreads */
11465 status = pthread_create( &t, pthread_attr_default, task, NULL );
11466 if( status ) return errno;
11468 /* give thread a chance to complete */
11469 /* it should remain joinable and hence detachable */
11472 status = pthread_detach( &t );
11473 if( status ) return errno;
11476 #ifdef HAVE_LINUX_THREADS
11477 pthread_kill_other_threads_np();
11485 if ac_fn_c_try_run "$LINENO"; then :
11486 ol_cv_pthread_pthread=yes
11488 ol_cv_pthread_pthread=no
11490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11491 conftest.$ac_objext conftest.beam conftest.$ac_ext
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
11500 $as_echo "$ol_cv_pthread_pthread" >&6; }
11502 if test $ol_cv_pthread_pthread = yes ; then
11503 ol_link_pthreads="-pthread"
11504 ol_link_threads=posix
11508 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
11509 if test "$ol_link_threads" = no ; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
11512 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
11513 if ${ol_cv_pthread_pthreads+:} false; then :
11514 $as_echo_n "(cached) " >&6
11519 LIBS="-pthreads $LIBS"
11521 if test "$cross_compiling" = yes; then :
11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11525 /* pthread test headers */
11526 #include <pthread.h>
11527 #if HAVE_PTHREADS < 7
11531 #define NULL (void*)0
11534 static void *task(p)
11537 return (void *) (p == NULL);
11544 /* pthread test function */
11545 #ifndef PTHREAD_CREATE_DETACHED
11546 #define PTHREAD_CREATE_DETACHED 1
11550 int detach = PTHREAD_CREATE_DETACHED;
11552 #if HAVE_PTHREADS > 4
11553 /* Final pthreads */
11554 pthread_attr_t attr;
11556 status = pthread_attr_init(&attr);
11557 if( status ) return status;
11559 #if HAVE_PTHREADS < 7
11560 status = pthread_attr_setdetachstate(&attr, &detach);
11561 if( status < 0 ) status = errno;
11563 status = pthread_attr_setdetachstate(&attr, detach);
11565 if( status ) return status;
11566 status = pthread_create( &t, &attr, task, NULL );
11567 #if HAVE_PTHREADS < 7
11568 if( status < 0 ) status = errno;
11570 if( status ) return status;
11572 /* Draft 4 pthreads */
11573 status = pthread_create( &t, pthread_attr_default, task, NULL );
11574 if( status ) return errno;
11576 /* give thread a chance to complete */
11577 /* it should remain joinable and hence detachable */
11580 status = pthread_detach( &t );
11581 if( status ) return errno;
11584 #ifdef HAVE_LINUX_THREADS
11585 pthread_kill_other_threads_np();
11594 if ac_fn_c_try_link "$LINENO"; then :
11595 ol_cv_pthread_pthreads=yes
11597 ol_cv_pthread_pthreads=no
11599 rm -f core conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h. */
11606 /* pthread test headers */
11607 #include <pthread.h>
11608 #if HAVE_PTHREADS < 7
11612 #define NULL (void*)0
11615 static void *task(p)
11618 return (void *) (p == NULL);
11622 int main(argc, argv)
11627 /* pthread test function */
11628 #ifndef PTHREAD_CREATE_DETACHED
11629 #define PTHREAD_CREATE_DETACHED 1
11633 int detach = PTHREAD_CREATE_DETACHED;
11635 #if HAVE_PTHREADS > 4
11636 /* Final pthreads */
11637 pthread_attr_t attr;
11639 status = pthread_attr_init(&attr);
11640 if( status ) return status;
11642 #if HAVE_PTHREADS < 7
11643 status = pthread_attr_setdetachstate(&attr, &detach);
11644 if( status < 0 ) status = errno;
11646 status = pthread_attr_setdetachstate(&attr, detach);
11648 if( status ) return status;
11649 status = pthread_create( &t, &attr, task, NULL );
11650 #if HAVE_PTHREADS < 7
11651 if( status < 0 ) status = errno;
11653 if( status ) return status;
11655 /* Draft 4 pthreads */
11656 status = pthread_create( &t, pthread_attr_default, task, NULL );
11657 if( status ) return errno;
11659 /* give thread a chance to complete */
11660 /* it should remain joinable and hence detachable */
11663 status = pthread_detach( &t );
11664 if( status ) return errno;
11667 #ifdef HAVE_LINUX_THREADS
11668 pthread_kill_other_threads_np();
11676 if ac_fn_c_try_run "$LINENO"; then :
11677 ol_cv_pthread_pthreads=yes
11679 ol_cv_pthread_pthreads=no
11681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11682 conftest.$ac_objext conftest.beam conftest.$ac_ext
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
11691 $as_echo "$ol_cv_pthread_pthreads" >&6; }
11693 if test $ol_cv_pthread_pthreads = yes ; then
11694 ol_link_pthreads="-pthreads"
11695 ol_link_threads=posix
11699 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
11700 if test "$ol_link_threads" = no ; then
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
11703 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
11704 if ${ol_cv_pthread_mthreads+:} false; then :
11705 $as_echo_n "(cached) " >&6
11710 LIBS="-mthreads $LIBS"
11712 if test "$cross_compiling" = yes; then :
11713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11714 /* end confdefs.h. */
11716 /* pthread test headers */
11717 #include <pthread.h>
11718 #if HAVE_PTHREADS < 7
11722 #define NULL (void*)0
11725 static void *task(p)
11728 return (void *) (p == NULL);
11735 /* pthread test function */
11736 #ifndef PTHREAD_CREATE_DETACHED
11737 #define PTHREAD_CREATE_DETACHED 1
11741 int detach = PTHREAD_CREATE_DETACHED;
11743 #if HAVE_PTHREADS > 4
11744 /* Final pthreads */
11745 pthread_attr_t attr;
11747 status = pthread_attr_init(&attr);
11748 if( status ) return status;
11750 #if HAVE_PTHREADS < 7
11751 status = pthread_attr_setdetachstate(&attr, &detach);
11752 if( status < 0 ) status = errno;
11754 status = pthread_attr_setdetachstate(&attr, detach);
11756 if( status ) return status;
11757 status = pthread_create( &t, &attr, task, NULL );
11758 #if HAVE_PTHREADS < 7
11759 if( status < 0 ) status = errno;
11761 if( status ) return status;
11763 /* Draft 4 pthreads */
11764 status = pthread_create( &t, pthread_attr_default, task, NULL );
11765 if( status ) return errno;
11767 /* give thread a chance to complete */
11768 /* it should remain joinable and hence detachable */
11771 status = pthread_detach( &t );
11772 if( status ) return errno;
11775 #ifdef HAVE_LINUX_THREADS
11776 pthread_kill_other_threads_np();
11785 if ac_fn_c_try_link "$LINENO"; then :
11786 ol_cv_pthread_mthreads=yes
11788 ol_cv_pthread_mthreads=no
11790 rm -f core conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
11793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11794 /* end confdefs.h. */
11797 /* pthread test headers */
11798 #include <pthread.h>
11799 #if HAVE_PTHREADS < 7
11803 #define NULL (void*)0
11806 static void *task(p)
11809 return (void *) (p == NULL);
11813 int main(argc, argv)
11818 /* pthread test function */
11819 #ifndef PTHREAD_CREATE_DETACHED
11820 #define PTHREAD_CREATE_DETACHED 1
11824 int detach = PTHREAD_CREATE_DETACHED;
11826 #if HAVE_PTHREADS > 4
11827 /* Final pthreads */
11828 pthread_attr_t attr;
11830 status = pthread_attr_init(&attr);
11831 if( status ) return status;
11833 #if HAVE_PTHREADS < 7
11834 status = pthread_attr_setdetachstate(&attr, &detach);
11835 if( status < 0 ) status = errno;
11837 status = pthread_attr_setdetachstate(&attr, detach);
11839 if( status ) return status;
11840 status = pthread_create( &t, &attr, task, NULL );
11841 #if HAVE_PTHREADS < 7
11842 if( status < 0 ) status = errno;
11844 if( status ) return status;
11846 /* Draft 4 pthreads */
11847 status = pthread_create( &t, pthread_attr_default, task, NULL );
11848 if( status ) return errno;
11850 /* give thread a chance to complete */
11851 /* it should remain joinable and hence detachable */
11854 status = pthread_detach( &t );
11855 if( status ) return errno;
11858 #ifdef HAVE_LINUX_THREADS
11859 pthread_kill_other_threads_np();
11867 if ac_fn_c_try_run "$LINENO"; then :
11868 ol_cv_pthread_mthreads=yes
11870 ol_cv_pthread_mthreads=no
11872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11873 conftest.$ac_objext conftest.beam conftest.$ac_ext
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
11882 $as_echo "$ol_cv_pthread_mthreads" >&6; }
11884 if test $ol_cv_pthread_mthreads = yes ; then
11885 ol_link_pthreads="-mthreads"
11886 ol_link_threads=posix
11890 # Pthread try link: -thread (ol_cv_pthread_thread)
11891 if test "$ol_link_threads" = no ; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
11894 $as_echo_n "checking for pthread link with -thread... " >&6; }
11895 if ${ol_cv_pthread_thread+:} false; then :
11896 $as_echo_n "(cached) " >&6
11901 LIBS="-thread $LIBS"
11903 if test "$cross_compiling" = yes; then :
11904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h. */
11907 /* pthread test headers */
11908 #include <pthread.h>
11909 #if HAVE_PTHREADS < 7
11913 #define NULL (void*)0
11916 static void *task(p)
11919 return (void *) (p == NULL);
11926 /* pthread test function */
11927 #ifndef PTHREAD_CREATE_DETACHED
11928 #define PTHREAD_CREATE_DETACHED 1
11932 int detach = PTHREAD_CREATE_DETACHED;
11934 #if HAVE_PTHREADS > 4
11935 /* Final pthreads */
11936 pthread_attr_t attr;
11938 status = pthread_attr_init(&attr);
11939 if( status ) return status;
11941 #if HAVE_PTHREADS < 7
11942 status = pthread_attr_setdetachstate(&attr, &detach);
11943 if( status < 0 ) status = errno;
11945 status = pthread_attr_setdetachstate(&attr, detach);
11947 if( status ) return status;
11948 status = pthread_create( &t, &attr, task, NULL );
11949 #if HAVE_PTHREADS < 7
11950 if( status < 0 ) status = errno;
11952 if( status ) return status;
11954 /* Draft 4 pthreads */
11955 status = pthread_create( &t, pthread_attr_default, task, NULL );
11956 if( status ) return errno;
11958 /* give thread a chance to complete */
11959 /* it should remain joinable and hence detachable */
11962 status = pthread_detach( &t );
11963 if( status ) return errno;
11966 #ifdef HAVE_LINUX_THREADS
11967 pthread_kill_other_threads_np();
11976 if ac_fn_c_try_link "$LINENO"; then :
11977 ol_cv_pthread_thread=yes
11979 ol_cv_pthread_thread=no
11981 rm -f core conftest.err conftest.$ac_objext \
11982 conftest$ac_exeext conftest.$ac_ext
11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h. */
11988 /* pthread test headers */
11989 #include <pthread.h>
11990 #if HAVE_PTHREADS < 7
11994 #define NULL (void*)0
11997 static void *task(p)
12000 return (void *) (p == NULL);
12004 int main(argc, argv)
12009 /* pthread test function */
12010 #ifndef PTHREAD_CREATE_DETACHED
12011 #define PTHREAD_CREATE_DETACHED 1
12015 int detach = PTHREAD_CREATE_DETACHED;
12017 #if HAVE_PTHREADS > 4
12018 /* Final pthreads */
12019 pthread_attr_t attr;
12021 status = pthread_attr_init(&attr);
12022 if( status ) return status;
12024 #if HAVE_PTHREADS < 7
12025 status = pthread_attr_setdetachstate(&attr, &detach);
12026 if( status < 0 ) status = errno;
12028 status = pthread_attr_setdetachstate(&attr, detach);
12030 if( status ) return status;
12031 status = pthread_create( &t, &attr, task, NULL );
12032 #if HAVE_PTHREADS < 7
12033 if( status < 0 ) status = errno;
12035 if( status ) return status;
12037 /* Draft 4 pthreads */
12038 status = pthread_create( &t, pthread_attr_default, task, NULL );
12039 if( status ) return errno;
12041 /* give thread a chance to complete */
12042 /* it should remain joinable and hence detachable */
12045 status = pthread_detach( &t );
12046 if( status ) return errno;
12049 #ifdef HAVE_LINUX_THREADS
12050 pthread_kill_other_threads_np();
12058 if ac_fn_c_try_run "$LINENO"; then :
12059 ol_cv_pthread_thread=yes
12061 ol_cv_pthread_thread=no
12063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12064 conftest.$ac_objext conftest.beam conftest.$ac_ext
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
12073 $as_echo "$ol_cv_pthread_thread" >&6; }
12075 if test $ol_cv_pthread_thread = yes ; then
12076 ol_link_pthreads="-thread"
12077 ol_link_threads=posix
12082 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12083 if test "$ol_link_threads" = no ; then
12084 # try -lpthread -lmach -lexc -lc_r
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12086 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
12087 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
12088 $as_echo_n "(cached) " >&6
12093 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12095 if test "$cross_compiling" = yes; then :
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h. */
12099 /* pthread test headers */
12100 #include <pthread.h>
12101 #if HAVE_PTHREADS < 7
12105 #define NULL (void*)0
12108 static void *task(p)
12111 return (void *) (p == NULL);
12118 /* pthread test function */
12119 #ifndef PTHREAD_CREATE_DETACHED
12120 #define PTHREAD_CREATE_DETACHED 1
12124 int detach = PTHREAD_CREATE_DETACHED;
12126 #if HAVE_PTHREADS > 4
12127 /* Final pthreads */
12128 pthread_attr_t attr;
12130 status = pthread_attr_init(&attr);
12131 if( status ) return status;
12133 #if HAVE_PTHREADS < 7
12134 status = pthread_attr_setdetachstate(&attr, &detach);
12135 if( status < 0 ) status = errno;
12137 status = pthread_attr_setdetachstate(&attr, detach);
12139 if( status ) return status;
12140 status = pthread_create( &t, &attr, task, NULL );
12141 #if HAVE_PTHREADS < 7
12142 if( status < 0 ) status = errno;
12144 if( status ) return status;
12146 /* Draft 4 pthreads */
12147 status = pthread_create( &t, pthread_attr_default, task, NULL );
12148 if( status ) return errno;
12150 /* give thread a chance to complete */
12151 /* it should remain joinable and hence detachable */
12154 status = pthread_detach( &t );
12155 if( status ) return errno;
12158 #ifdef HAVE_LINUX_THREADS
12159 pthread_kill_other_threads_np();
12168 if ac_fn_c_try_link "$LINENO"; then :
12169 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12171 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12173 rm -f core conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177 /* end confdefs.h. */
12180 /* pthread test headers */
12181 #include <pthread.h>
12182 #if HAVE_PTHREADS < 7
12186 #define NULL (void*)0
12189 static void *task(p)
12192 return (void *) (p == NULL);
12196 int main(argc, argv)
12201 /* pthread test function */
12202 #ifndef PTHREAD_CREATE_DETACHED
12203 #define PTHREAD_CREATE_DETACHED 1
12207 int detach = PTHREAD_CREATE_DETACHED;
12209 #if HAVE_PTHREADS > 4
12210 /* Final pthreads */
12211 pthread_attr_t attr;
12213 status = pthread_attr_init(&attr);
12214 if( status ) return status;
12216 #if HAVE_PTHREADS < 7
12217 status = pthread_attr_setdetachstate(&attr, &detach);
12218 if( status < 0 ) status = errno;
12220 status = pthread_attr_setdetachstate(&attr, detach);
12222 if( status ) return status;
12223 status = pthread_create( &t, &attr, task, NULL );
12224 #if HAVE_PTHREADS < 7
12225 if( status < 0 ) status = errno;
12227 if( status ) return status;
12229 /* Draft 4 pthreads */
12230 status = pthread_create( &t, pthread_attr_default, task, NULL );
12231 if( status ) return errno;
12233 /* give thread a chance to complete */
12234 /* it should remain joinable and hence detachable */
12237 status = pthread_detach( &t );
12238 if( status ) return errno;
12241 #ifdef HAVE_LINUX_THREADS
12242 pthread_kill_other_threads_np();
12250 if ac_fn_c_try_run "$LINENO"; then :
12251 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12253 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12256 conftest.$ac_objext conftest.beam conftest.$ac_ext
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
12265 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
12267 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12268 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12269 ol_link_threads=posix
12273 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12274 if test "$ol_link_threads" = no ; then
12275 # try -lpthread -lmach -lexc
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
12277 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
12278 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
12279 $as_echo_n "(cached) " >&6
12284 LIBS="-lpthread -lmach -lexc $LIBS"
12286 if test "$cross_compiling" = yes; then :
12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h. */
12290 /* pthread test headers */
12291 #include <pthread.h>
12292 #if HAVE_PTHREADS < 7
12296 #define NULL (void*)0
12299 static void *task(p)
12302 return (void *) (p == NULL);
12309 /* pthread test function */
12310 #ifndef PTHREAD_CREATE_DETACHED
12311 #define PTHREAD_CREATE_DETACHED 1
12315 int detach = PTHREAD_CREATE_DETACHED;
12317 #if HAVE_PTHREADS > 4
12318 /* Final pthreads */
12319 pthread_attr_t attr;
12321 status = pthread_attr_init(&attr);
12322 if( status ) return status;
12324 #if HAVE_PTHREADS < 7
12325 status = pthread_attr_setdetachstate(&attr, &detach);
12326 if( status < 0 ) status = errno;
12328 status = pthread_attr_setdetachstate(&attr, detach);
12330 if( status ) return status;
12331 status = pthread_create( &t, &attr, task, NULL );
12332 #if HAVE_PTHREADS < 7
12333 if( status < 0 ) status = errno;
12335 if( status ) return status;
12337 /* Draft 4 pthreads */
12338 status = pthread_create( &t, pthread_attr_default, task, NULL );
12339 if( status ) return errno;
12341 /* give thread a chance to complete */
12342 /* it should remain joinable and hence detachable */
12345 status = pthread_detach( &t );
12346 if( status ) return errno;
12349 #ifdef HAVE_LINUX_THREADS
12350 pthread_kill_other_threads_np();
12359 if ac_fn_c_try_link "$LINENO"; then :
12360 ol_cv_pthread_lpthread_lmach_lexc=yes
12362 ol_cv_pthread_lpthread_lmach_lexc=no
12364 rm -f core conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12368 /* end confdefs.h. */
12371 /* pthread test headers */
12372 #include <pthread.h>
12373 #if HAVE_PTHREADS < 7
12377 #define NULL (void*)0
12380 static void *task(p)
12383 return (void *) (p == NULL);
12387 int main(argc, argv)
12392 /* pthread test function */
12393 #ifndef PTHREAD_CREATE_DETACHED
12394 #define PTHREAD_CREATE_DETACHED 1
12398 int detach = PTHREAD_CREATE_DETACHED;
12400 #if HAVE_PTHREADS > 4
12401 /* Final pthreads */
12402 pthread_attr_t attr;
12404 status = pthread_attr_init(&attr);
12405 if( status ) return status;
12407 #if HAVE_PTHREADS < 7
12408 status = pthread_attr_setdetachstate(&attr, &detach);
12409 if( status < 0 ) status = errno;
12411 status = pthread_attr_setdetachstate(&attr, detach);
12413 if( status ) return status;
12414 status = pthread_create( &t, &attr, task, NULL );
12415 #if HAVE_PTHREADS < 7
12416 if( status < 0 ) status = errno;
12418 if( status ) return status;
12420 /* Draft 4 pthreads */
12421 status = pthread_create( &t, pthread_attr_default, task, NULL );
12422 if( status ) return errno;
12424 /* give thread a chance to complete */
12425 /* it should remain joinable and hence detachable */
12428 status = pthread_detach( &t );
12429 if( status ) return errno;
12432 #ifdef HAVE_LINUX_THREADS
12433 pthread_kill_other_threads_np();
12441 if ac_fn_c_try_run "$LINENO"; then :
12442 ol_cv_pthread_lpthread_lmach_lexc=yes
12444 ol_cv_pthread_lpthread_lmach_lexc=no
12446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12447 conftest.$ac_objext conftest.beam conftest.$ac_ext
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
12456 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
12458 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
12459 ol_link_pthreads="-lpthread -lmach -lexc"
12460 ol_link_threads=posix
12465 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
12466 if test "$ol_link_threads" = no ; then
12467 # try -lpthread -Wl,-woff,85
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
12469 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
12470 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
12471 $as_echo_n "(cached) " >&6
12476 LIBS="-lpthread -Wl,-woff,85 $LIBS"
12478 if test "$cross_compiling" = yes; then :
12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480 /* end confdefs.h. */
12482 /* pthread test headers */
12483 #include <pthread.h>
12484 #if HAVE_PTHREADS < 7
12488 #define NULL (void*)0
12491 static void *task(p)
12494 return (void *) (p == NULL);
12501 /* pthread test function */
12502 #ifndef PTHREAD_CREATE_DETACHED
12503 #define PTHREAD_CREATE_DETACHED 1
12507 int detach = PTHREAD_CREATE_DETACHED;
12509 #if HAVE_PTHREADS > 4
12510 /* Final pthreads */
12511 pthread_attr_t attr;
12513 status = pthread_attr_init(&attr);
12514 if( status ) return status;
12516 #if HAVE_PTHREADS < 7
12517 status = pthread_attr_setdetachstate(&attr, &detach);
12518 if( status < 0 ) status = errno;
12520 status = pthread_attr_setdetachstate(&attr, detach);
12522 if( status ) return status;
12523 status = pthread_create( &t, &attr, task, NULL );
12524 #if HAVE_PTHREADS < 7
12525 if( status < 0 ) status = errno;
12527 if( status ) return status;
12529 /* Draft 4 pthreads */
12530 status = pthread_create( &t, pthread_attr_default, task, NULL );
12531 if( status ) return errno;
12533 /* give thread a chance to complete */
12534 /* it should remain joinable and hence detachable */
12537 status = pthread_detach( &t );
12538 if( status ) return errno;
12541 #ifdef HAVE_LINUX_THREADS
12542 pthread_kill_other_threads_np();
12551 if ac_fn_c_try_link "$LINENO"; then :
12552 ol_cv_pthread_lib_lpthread_woff=yes
12554 ol_cv_pthread_lib_lpthread_woff=no
12556 rm -f core conftest.err conftest.$ac_objext \
12557 conftest$ac_exeext conftest.$ac_ext
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12563 /* pthread test headers */
12564 #include <pthread.h>
12565 #if HAVE_PTHREADS < 7
12569 #define NULL (void*)0
12572 static void *task(p)
12575 return (void *) (p == NULL);
12579 int main(argc, argv)
12584 /* pthread test function */
12585 #ifndef PTHREAD_CREATE_DETACHED
12586 #define PTHREAD_CREATE_DETACHED 1
12590 int detach = PTHREAD_CREATE_DETACHED;
12592 #if HAVE_PTHREADS > 4
12593 /* Final pthreads */
12594 pthread_attr_t attr;
12596 status = pthread_attr_init(&attr);
12597 if( status ) return status;
12599 #if HAVE_PTHREADS < 7
12600 status = pthread_attr_setdetachstate(&attr, &detach);
12601 if( status < 0 ) status = errno;
12603 status = pthread_attr_setdetachstate(&attr, detach);
12605 if( status ) return status;
12606 status = pthread_create( &t, &attr, task, NULL );
12607 #if HAVE_PTHREADS < 7
12608 if( status < 0 ) status = errno;
12610 if( status ) return status;
12612 /* Draft 4 pthreads */
12613 status = pthread_create( &t, pthread_attr_default, task, NULL );
12614 if( status ) return errno;
12616 /* give thread a chance to complete */
12617 /* it should remain joinable and hence detachable */
12620 status = pthread_detach( &t );
12621 if( status ) return errno;
12624 #ifdef HAVE_LINUX_THREADS
12625 pthread_kill_other_threads_np();
12633 if ac_fn_c_try_run "$LINENO"; then :
12634 ol_cv_pthread_lib_lpthread_woff=yes
12636 ol_cv_pthread_lib_lpthread_woff=no
12638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12639 conftest.$ac_objext conftest.beam conftest.$ac_ext
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
12648 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
12650 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
12651 ol_link_pthreads="-lpthread -Wl,-woff,85"
12652 ol_link_threads=posix
12657 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
12658 if test "$ol_link_threads" = no ; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
12661 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
12662 if ${ol_cv_pthread_lpthread+:} false; then :
12663 $as_echo_n "(cached) " >&6
12668 LIBS="-lpthread $LIBS"
12670 if test "$cross_compiling" = yes; then :
12671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672 /* end confdefs.h. */
12674 /* pthread test headers */
12675 #include <pthread.h>
12676 #if HAVE_PTHREADS < 7
12680 #define NULL (void*)0
12683 static void *task(p)
12686 return (void *) (p == NULL);
12693 /* pthread test function */
12694 #ifndef PTHREAD_CREATE_DETACHED
12695 #define PTHREAD_CREATE_DETACHED 1
12699 int detach = PTHREAD_CREATE_DETACHED;
12701 #if HAVE_PTHREADS > 4
12702 /* Final pthreads */
12703 pthread_attr_t attr;
12705 status = pthread_attr_init(&attr);
12706 if( status ) return status;
12708 #if HAVE_PTHREADS < 7
12709 status = pthread_attr_setdetachstate(&attr, &detach);
12710 if( status < 0 ) status = errno;
12712 status = pthread_attr_setdetachstate(&attr, detach);
12714 if( status ) return status;
12715 status = pthread_create( &t, &attr, task, NULL );
12716 #if HAVE_PTHREADS < 7
12717 if( status < 0 ) status = errno;
12719 if( status ) return status;
12721 /* Draft 4 pthreads */
12722 status = pthread_create( &t, pthread_attr_default, task, NULL );
12723 if( status ) return errno;
12725 /* give thread a chance to complete */
12726 /* it should remain joinable and hence detachable */
12729 status = pthread_detach( &t );
12730 if( status ) return errno;
12733 #ifdef HAVE_LINUX_THREADS
12734 pthread_kill_other_threads_np();
12743 if ac_fn_c_try_link "$LINENO"; then :
12744 ol_cv_pthread_lpthread=yes
12746 ol_cv_pthread_lpthread=no
12748 rm -f core conftest.err conftest.$ac_objext \
12749 conftest$ac_exeext conftest.$ac_ext
12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h. */
12755 /* pthread test headers */
12756 #include <pthread.h>
12757 #if HAVE_PTHREADS < 7
12761 #define NULL (void*)0
12764 static void *task(p)
12767 return (void *) (p == NULL);
12771 int main(argc, argv)
12776 /* pthread test function */
12777 #ifndef PTHREAD_CREATE_DETACHED
12778 #define PTHREAD_CREATE_DETACHED 1
12782 int detach = PTHREAD_CREATE_DETACHED;
12784 #if HAVE_PTHREADS > 4
12785 /* Final pthreads */
12786 pthread_attr_t attr;
12788 status = pthread_attr_init(&attr);
12789 if( status ) return status;
12791 #if HAVE_PTHREADS < 7
12792 status = pthread_attr_setdetachstate(&attr, &detach);
12793 if( status < 0 ) status = errno;
12795 status = pthread_attr_setdetachstate(&attr, detach);
12797 if( status ) return status;
12798 status = pthread_create( &t, &attr, task, NULL );
12799 #if HAVE_PTHREADS < 7
12800 if( status < 0 ) status = errno;
12802 if( status ) return status;
12804 /* Draft 4 pthreads */
12805 status = pthread_create( &t, pthread_attr_default, task, NULL );
12806 if( status ) return errno;
12808 /* give thread a chance to complete */
12809 /* it should remain joinable and hence detachable */
12812 status = pthread_detach( &t );
12813 if( status ) return errno;
12816 #ifdef HAVE_LINUX_THREADS
12817 pthread_kill_other_threads_np();
12825 if ac_fn_c_try_run "$LINENO"; then :
12826 ol_cv_pthread_lpthread=yes
12828 ol_cv_pthread_lpthread=no
12830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12831 conftest.$ac_objext conftest.beam conftest.$ac_ext
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
12840 $as_echo "$ol_cv_pthread_lpthread" >&6; }
12842 if test $ol_cv_pthread_lpthread = yes ; then
12843 ol_link_pthreads="-lpthread"
12844 ol_link_threads=posix
12848 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
12849 if test "$ol_link_threads" = no ; then
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
12852 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
12853 if ${ol_cv_pthread_lc_r+:} false; then :
12854 $as_echo_n "(cached) " >&6
12861 if test "$cross_compiling" = yes; then :
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12865 /* pthread test headers */
12866 #include <pthread.h>
12867 #if HAVE_PTHREADS < 7
12871 #define NULL (void*)0
12874 static void *task(p)
12877 return (void *) (p == NULL);
12884 /* pthread test function */
12885 #ifndef PTHREAD_CREATE_DETACHED
12886 #define PTHREAD_CREATE_DETACHED 1
12890 int detach = PTHREAD_CREATE_DETACHED;
12892 #if HAVE_PTHREADS > 4
12893 /* Final pthreads */
12894 pthread_attr_t attr;
12896 status = pthread_attr_init(&attr);
12897 if( status ) return status;
12899 #if HAVE_PTHREADS < 7
12900 status = pthread_attr_setdetachstate(&attr, &detach);
12901 if( status < 0 ) status = errno;
12903 status = pthread_attr_setdetachstate(&attr, detach);
12905 if( status ) return status;
12906 status = pthread_create( &t, &attr, task, NULL );
12907 #if HAVE_PTHREADS < 7
12908 if( status < 0 ) status = errno;
12910 if( status ) return status;
12912 /* Draft 4 pthreads */
12913 status = pthread_create( &t, pthread_attr_default, task, NULL );
12914 if( status ) return errno;
12916 /* give thread a chance to complete */
12917 /* it should remain joinable and hence detachable */
12920 status = pthread_detach( &t );
12921 if( status ) return errno;
12924 #ifdef HAVE_LINUX_THREADS
12925 pthread_kill_other_threads_np();
12934 if ac_fn_c_try_link "$LINENO"; then :
12935 ol_cv_pthread_lc_r=yes
12937 ol_cv_pthread_lc_r=no
12939 rm -f core conftest.err conftest.$ac_objext \
12940 conftest$ac_exeext conftest.$ac_ext
12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h. */
12946 /* pthread test headers */
12947 #include <pthread.h>
12948 #if HAVE_PTHREADS < 7
12952 #define NULL (void*)0
12955 static void *task(p)
12958 return (void *) (p == NULL);
12962 int main(argc, argv)
12967 /* pthread test function */
12968 #ifndef PTHREAD_CREATE_DETACHED
12969 #define PTHREAD_CREATE_DETACHED 1
12973 int detach = PTHREAD_CREATE_DETACHED;
12975 #if HAVE_PTHREADS > 4
12976 /* Final pthreads */
12977 pthread_attr_t attr;
12979 status = pthread_attr_init(&attr);
12980 if( status ) return status;
12982 #if HAVE_PTHREADS < 7
12983 status = pthread_attr_setdetachstate(&attr, &detach);
12984 if( status < 0 ) status = errno;
12986 status = pthread_attr_setdetachstate(&attr, detach);
12988 if( status ) return status;
12989 status = pthread_create( &t, &attr, task, NULL );
12990 #if HAVE_PTHREADS < 7
12991 if( status < 0 ) status = errno;
12993 if( status ) return status;
12995 /* Draft 4 pthreads */
12996 status = pthread_create( &t, pthread_attr_default, task, NULL );
12997 if( status ) return errno;
12999 /* give thread a chance to complete */
13000 /* it should remain joinable and hence detachable */
13003 status = pthread_detach( &t );
13004 if( status ) return errno;
13007 #ifdef HAVE_LINUX_THREADS
13008 pthread_kill_other_threads_np();
13016 if ac_fn_c_try_run "$LINENO"; then :
13017 ol_cv_pthread_lc_r=yes
13019 ol_cv_pthread_lc_r=no
13021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13022 conftest.$ac_objext conftest.beam conftest.$ac_ext
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
13031 $as_echo "$ol_cv_pthread_lc_r" >&6; }
13033 if test $ol_cv_pthread_lc_r = yes ; then
13034 ol_link_pthreads="-lc_r"
13035 ol_link_threads=posix
13040 # Pthread try link: -threads (ol_cv_pthread_threads)
13041 if test "$ol_link_threads" = no ; then
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
13044 $as_echo_n "checking for pthread link with -threads... " >&6; }
13045 if ${ol_cv_pthread_threads+:} false; then :
13046 $as_echo_n "(cached) " >&6
13051 LIBS="-threads $LIBS"
13053 if test "$cross_compiling" = yes; then :
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13057 /* pthread test headers */
13058 #include <pthread.h>
13059 #if HAVE_PTHREADS < 7
13063 #define NULL (void*)0
13066 static void *task(p)
13069 return (void *) (p == NULL);
13076 /* pthread test function */
13077 #ifndef PTHREAD_CREATE_DETACHED
13078 #define PTHREAD_CREATE_DETACHED 1
13082 int detach = PTHREAD_CREATE_DETACHED;
13084 #if HAVE_PTHREADS > 4
13085 /* Final pthreads */
13086 pthread_attr_t attr;
13088 status = pthread_attr_init(&attr);
13089 if( status ) return status;
13091 #if HAVE_PTHREADS < 7
13092 status = pthread_attr_setdetachstate(&attr, &detach);
13093 if( status < 0 ) status = errno;
13095 status = pthread_attr_setdetachstate(&attr, detach);
13097 if( status ) return status;
13098 status = pthread_create( &t, &attr, task, NULL );
13099 #if HAVE_PTHREADS < 7
13100 if( status < 0 ) status = errno;
13102 if( status ) return status;
13104 /* Draft 4 pthreads */
13105 status = pthread_create( &t, pthread_attr_default, task, NULL );
13106 if( status ) return errno;
13108 /* give thread a chance to complete */
13109 /* it should remain joinable and hence detachable */
13112 status = pthread_detach( &t );
13113 if( status ) return errno;
13116 #ifdef HAVE_LINUX_THREADS
13117 pthread_kill_other_threads_np();
13126 if ac_fn_c_try_link "$LINENO"; then :
13127 ol_cv_pthread_threads=yes
13129 ol_cv_pthread_threads=no
13131 rm -f core conftest.err conftest.$ac_objext \
13132 conftest$ac_exeext conftest.$ac_ext
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13138 /* pthread test headers */
13139 #include <pthread.h>
13140 #if HAVE_PTHREADS < 7
13144 #define NULL (void*)0
13147 static void *task(p)
13150 return (void *) (p == NULL);
13154 int main(argc, argv)
13159 /* pthread test function */
13160 #ifndef PTHREAD_CREATE_DETACHED
13161 #define PTHREAD_CREATE_DETACHED 1
13165 int detach = PTHREAD_CREATE_DETACHED;
13167 #if HAVE_PTHREADS > 4
13168 /* Final pthreads */
13169 pthread_attr_t attr;
13171 status = pthread_attr_init(&attr);
13172 if( status ) return status;
13174 #if HAVE_PTHREADS < 7
13175 status = pthread_attr_setdetachstate(&attr, &detach);
13176 if( status < 0 ) status = errno;
13178 status = pthread_attr_setdetachstate(&attr, detach);
13180 if( status ) return status;
13181 status = pthread_create( &t, &attr, task, NULL );
13182 #if HAVE_PTHREADS < 7
13183 if( status < 0 ) status = errno;
13185 if( status ) return status;
13187 /* Draft 4 pthreads */
13188 status = pthread_create( &t, pthread_attr_default, task, NULL );
13189 if( status ) return errno;
13191 /* give thread a chance to complete */
13192 /* it should remain joinable and hence detachable */
13195 status = pthread_detach( &t );
13196 if( status ) return errno;
13199 #ifdef HAVE_LINUX_THREADS
13200 pthread_kill_other_threads_np();
13208 if ac_fn_c_try_run "$LINENO"; then :
13209 ol_cv_pthread_threads=yes
13211 ol_cv_pthread_threads=no
13213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13214 conftest.$ac_objext conftest.beam conftest.$ac_ext
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
13223 $as_echo "$ol_cv_pthread_threads" >&6; }
13225 if test $ol_cv_pthread_threads = yes ; then
13226 ol_link_pthreads="-threads"
13227 ol_link_threads=posix
13232 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13233 if test "$ol_link_threads" = no ; then
13234 # try -lpthreads -lmach -lexc -lc_r
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13236 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
13237 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
13238 $as_echo_n "(cached) " >&6
13243 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13245 if test "$cross_compiling" = yes; then :
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h. */
13249 /* pthread test headers */
13250 #include <pthread.h>
13251 #if HAVE_PTHREADS < 7
13255 #define NULL (void*)0
13258 static void *task(p)
13261 return (void *) (p == NULL);
13268 /* pthread test function */
13269 #ifndef PTHREAD_CREATE_DETACHED
13270 #define PTHREAD_CREATE_DETACHED 1
13274 int detach = PTHREAD_CREATE_DETACHED;
13276 #if HAVE_PTHREADS > 4
13277 /* Final pthreads */
13278 pthread_attr_t attr;
13280 status = pthread_attr_init(&attr);
13281 if( status ) return status;
13283 #if HAVE_PTHREADS < 7
13284 status = pthread_attr_setdetachstate(&attr, &detach);
13285 if( status < 0 ) status = errno;
13287 status = pthread_attr_setdetachstate(&attr, detach);
13289 if( status ) return status;
13290 status = pthread_create( &t, &attr, task, NULL );
13291 #if HAVE_PTHREADS < 7
13292 if( status < 0 ) status = errno;
13294 if( status ) return status;
13296 /* Draft 4 pthreads */
13297 status = pthread_create( &t, pthread_attr_default, task, NULL );
13298 if( status ) return errno;
13300 /* give thread a chance to complete */
13301 /* it should remain joinable and hence detachable */
13304 status = pthread_detach( &t );
13305 if( status ) return errno;
13308 #ifdef HAVE_LINUX_THREADS
13309 pthread_kill_other_threads_np();
13318 if ac_fn_c_try_link "$LINENO"; then :
13319 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13321 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13323 rm -f core conftest.err conftest.$ac_objext \
13324 conftest$ac_exeext conftest.$ac_ext
13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h. */
13330 /* pthread test headers */
13331 #include <pthread.h>
13332 #if HAVE_PTHREADS < 7
13336 #define NULL (void*)0
13339 static void *task(p)
13342 return (void *) (p == NULL);
13346 int main(argc, argv)
13351 /* pthread test function */
13352 #ifndef PTHREAD_CREATE_DETACHED
13353 #define PTHREAD_CREATE_DETACHED 1
13357 int detach = PTHREAD_CREATE_DETACHED;
13359 #if HAVE_PTHREADS > 4
13360 /* Final pthreads */
13361 pthread_attr_t attr;
13363 status = pthread_attr_init(&attr);
13364 if( status ) return status;
13366 #if HAVE_PTHREADS < 7
13367 status = pthread_attr_setdetachstate(&attr, &detach);
13368 if( status < 0 ) status = errno;
13370 status = pthread_attr_setdetachstate(&attr, detach);
13372 if( status ) return status;
13373 status = pthread_create( &t, &attr, task, NULL );
13374 #if HAVE_PTHREADS < 7
13375 if( status < 0 ) status = errno;
13377 if( status ) return status;
13379 /* Draft 4 pthreads */
13380 status = pthread_create( &t, pthread_attr_default, task, NULL );
13381 if( status ) return errno;
13383 /* give thread a chance to complete */
13384 /* it should remain joinable and hence detachable */
13387 status = pthread_detach( &t );
13388 if( status ) return errno;
13391 #ifdef HAVE_LINUX_THREADS
13392 pthread_kill_other_threads_np();
13400 if ac_fn_c_try_run "$LINENO"; then :
13401 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13403 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13406 conftest.$ac_objext conftest.beam conftest.$ac_ext
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
13415 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
13417 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
13418 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
13419 ol_link_threads=posix
13423 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
13424 if test "$ol_link_threads" = no ; then
13425 # try -lpthreads -lmach -lexc
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
13427 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
13428 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
13429 $as_echo_n "(cached) " >&6
13434 LIBS="-lpthreads -lmach -lexc $LIBS"
13436 if test "$cross_compiling" = yes; then :
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13440 /* pthread test headers */
13441 #include <pthread.h>
13442 #if HAVE_PTHREADS < 7
13446 #define NULL (void*)0
13449 static void *task(p)
13452 return (void *) (p == NULL);
13459 /* pthread test function */
13460 #ifndef PTHREAD_CREATE_DETACHED
13461 #define PTHREAD_CREATE_DETACHED 1
13465 int detach = PTHREAD_CREATE_DETACHED;
13467 #if HAVE_PTHREADS > 4
13468 /* Final pthreads */
13469 pthread_attr_t attr;
13471 status = pthread_attr_init(&attr);
13472 if( status ) return status;
13474 #if HAVE_PTHREADS < 7
13475 status = pthread_attr_setdetachstate(&attr, &detach);
13476 if( status < 0 ) status = errno;
13478 status = pthread_attr_setdetachstate(&attr, detach);
13480 if( status ) return status;
13481 status = pthread_create( &t, &attr, task, NULL );
13482 #if HAVE_PTHREADS < 7
13483 if( status < 0 ) status = errno;
13485 if( status ) return status;
13487 /* Draft 4 pthreads */
13488 status = pthread_create( &t, pthread_attr_default, task, NULL );
13489 if( status ) return errno;
13491 /* give thread a chance to complete */
13492 /* it should remain joinable and hence detachable */
13495 status = pthread_detach( &t );
13496 if( status ) return errno;
13499 #ifdef HAVE_LINUX_THREADS
13500 pthread_kill_other_threads_np();
13509 if ac_fn_c_try_link "$LINENO"; then :
13510 ol_cv_pthread_lpthreads_lmach_lexc=yes
13512 ol_cv_pthread_lpthreads_lmach_lexc=no
13514 rm -f core conftest.err conftest.$ac_objext \
13515 conftest$ac_exeext conftest.$ac_ext
13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518 /* end confdefs.h. */
13521 /* pthread test headers */
13522 #include <pthread.h>
13523 #if HAVE_PTHREADS < 7
13527 #define NULL (void*)0
13530 static void *task(p)
13533 return (void *) (p == NULL);
13537 int main(argc, argv)
13542 /* pthread test function */
13543 #ifndef PTHREAD_CREATE_DETACHED
13544 #define PTHREAD_CREATE_DETACHED 1
13548 int detach = PTHREAD_CREATE_DETACHED;
13550 #if HAVE_PTHREADS > 4
13551 /* Final pthreads */
13552 pthread_attr_t attr;
13554 status = pthread_attr_init(&attr);
13555 if( status ) return status;
13557 #if HAVE_PTHREADS < 7
13558 status = pthread_attr_setdetachstate(&attr, &detach);
13559 if( status < 0 ) status = errno;
13561 status = pthread_attr_setdetachstate(&attr, detach);
13563 if( status ) return status;
13564 status = pthread_create( &t, &attr, task, NULL );
13565 #if HAVE_PTHREADS < 7
13566 if( status < 0 ) status = errno;
13568 if( status ) return status;
13570 /* Draft 4 pthreads */
13571 status = pthread_create( &t, pthread_attr_default, task, NULL );
13572 if( status ) return errno;
13574 /* give thread a chance to complete */
13575 /* it should remain joinable and hence detachable */
13578 status = pthread_detach( &t );
13579 if( status ) return errno;
13582 #ifdef HAVE_LINUX_THREADS
13583 pthread_kill_other_threads_np();
13591 if ac_fn_c_try_run "$LINENO"; then :
13592 ol_cv_pthread_lpthreads_lmach_lexc=yes
13594 ol_cv_pthread_lpthreads_lmach_lexc=no
13596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13597 conftest.$ac_objext conftest.beam conftest.$ac_ext
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
13606 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
13608 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
13609 ol_link_pthreads="-lpthreads -lmach -lexc"
13610 ol_link_threads=posix
13614 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
13615 if test "$ol_link_threads" = no ; then
13616 # try -lpthreads -lexc
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
13618 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
13619 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
13620 $as_echo_n "(cached) " >&6
13625 LIBS="-lpthreads -lexc $LIBS"
13627 if test "$cross_compiling" = yes; then :
13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629 /* end confdefs.h. */
13631 /* pthread test headers */
13632 #include <pthread.h>
13633 #if HAVE_PTHREADS < 7
13637 #define NULL (void*)0
13640 static void *task(p)
13643 return (void *) (p == NULL);
13650 /* pthread test function */
13651 #ifndef PTHREAD_CREATE_DETACHED
13652 #define PTHREAD_CREATE_DETACHED 1
13656 int detach = PTHREAD_CREATE_DETACHED;
13658 #if HAVE_PTHREADS > 4
13659 /* Final pthreads */
13660 pthread_attr_t attr;
13662 status = pthread_attr_init(&attr);
13663 if( status ) return status;
13665 #if HAVE_PTHREADS < 7
13666 status = pthread_attr_setdetachstate(&attr, &detach);
13667 if( status < 0 ) status = errno;
13669 status = pthread_attr_setdetachstate(&attr, detach);
13671 if( status ) return status;
13672 status = pthread_create( &t, &attr, task, NULL );
13673 #if HAVE_PTHREADS < 7
13674 if( status < 0 ) status = errno;
13676 if( status ) return status;
13678 /* Draft 4 pthreads */
13679 status = pthread_create( &t, pthread_attr_default, task, NULL );
13680 if( status ) return errno;
13682 /* give thread a chance to complete */
13683 /* it should remain joinable and hence detachable */
13686 status = pthread_detach( &t );
13687 if( status ) return errno;
13690 #ifdef HAVE_LINUX_THREADS
13691 pthread_kill_other_threads_np();
13700 if ac_fn_c_try_link "$LINENO"; then :
13701 ol_cv_pthread_lpthreads_lexc=yes
13703 ol_cv_pthread_lpthreads_lexc=no
13705 rm -f core conftest.err conftest.$ac_objext \
13706 conftest$ac_exeext conftest.$ac_ext
13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709 /* end confdefs.h. */
13712 /* pthread test headers */
13713 #include <pthread.h>
13714 #if HAVE_PTHREADS < 7
13718 #define NULL (void*)0
13721 static void *task(p)
13724 return (void *) (p == NULL);
13728 int main(argc, argv)
13733 /* pthread test function */
13734 #ifndef PTHREAD_CREATE_DETACHED
13735 #define PTHREAD_CREATE_DETACHED 1
13739 int detach = PTHREAD_CREATE_DETACHED;
13741 #if HAVE_PTHREADS > 4
13742 /* Final pthreads */
13743 pthread_attr_t attr;
13745 status = pthread_attr_init(&attr);
13746 if( status ) return status;
13748 #if HAVE_PTHREADS < 7
13749 status = pthread_attr_setdetachstate(&attr, &detach);
13750 if( status < 0 ) status = errno;
13752 status = pthread_attr_setdetachstate(&attr, detach);
13754 if( status ) return status;
13755 status = pthread_create( &t, &attr, task, NULL );
13756 #if HAVE_PTHREADS < 7
13757 if( status < 0 ) status = errno;
13759 if( status ) return status;
13761 /* Draft 4 pthreads */
13762 status = pthread_create( &t, pthread_attr_default, task, NULL );
13763 if( status ) return errno;
13765 /* give thread a chance to complete */
13766 /* it should remain joinable and hence detachable */
13769 status = pthread_detach( &t );
13770 if( status ) return errno;
13773 #ifdef HAVE_LINUX_THREADS
13774 pthread_kill_other_threads_np();
13782 if ac_fn_c_try_run "$LINENO"; then :
13783 ol_cv_pthread_lpthreads_lexc=yes
13785 ol_cv_pthread_lpthreads_lexc=no
13787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13788 conftest.$ac_objext conftest.beam conftest.$ac_ext
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
13797 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
13799 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
13800 ol_link_pthreads="-lpthreads -lexc"
13801 ol_link_threads=posix
13806 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
13807 if test "$ol_link_threads" = no ; then
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
13810 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
13811 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
13812 $as_echo_n "(cached) " >&6
13817 LIBS="-lpthreads $LIBS"
13819 if test "$cross_compiling" = yes; then :
13820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13821 /* end confdefs.h. */
13823 /* pthread test headers */
13824 #include <pthread.h>
13825 #if HAVE_PTHREADS < 7
13829 #define NULL (void*)0
13832 static void *task(p)
13835 return (void *) (p == NULL);
13842 /* pthread test function */
13843 #ifndef PTHREAD_CREATE_DETACHED
13844 #define PTHREAD_CREATE_DETACHED 1
13848 int detach = PTHREAD_CREATE_DETACHED;
13850 #if HAVE_PTHREADS > 4
13851 /* Final pthreads */
13852 pthread_attr_t attr;
13854 status = pthread_attr_init(&attr);
13855 if( status ) return status;
13857 #if HAVE_PTHREADS < 7
13858 status = pthread_attr_setdetachstate(&attr, &detach);
13859 if( status < 0 ) status = errno;
13861 status = pthread_attr_setdetachstate(&attr, detach);
13863 if( status ) return status;
13864 status = pthread_create( &t, &attr, task, NULL );
13865 #if HAVE_PTHREADS < 7
13866 if( status < 0 ) status = errno;
13868 if( status ) return status;
13870 /* Draft 4 pthreads */
13871 status = pthread_create( &t, pthread_attr_default, task, NULL );
13872 if( status ) return errno;
13874 /* give thread a chance to complete */
13875 /* it should remain joinable and hence detachable */
13878 status = pthread_detach( &t );
13879 if( status ) return errno;
13882 #ifdef HAVE_LINUX_THREADS
13883 pthread_kill_other_threads_np();
13892 if ac_fn_c_try_link "$LINENO"; then :
13893 ol_cv_pthread_lib_lpthreads=yes
13895 ol_cv_pthread_lib_lpthreads=no
13897 rm -f core conftest.err conftest.$ac_objext \
13898 conftest$ac_exeext conftest.$ac_ext
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13904 /* pthread test headers */
13905 #include <pthread.h>
13906 #if HAVE_PTHREADS < 7
13910 #define NULL (void*)0
13913 static void *task(p)
13916 return (void *) (p == NULL);
13920 int main(argc, argv)
13925 /* pthread test function */
13926 #ifndef PTHREAD_CREATE_DETACHED
13927 #define PTHREAD_CREATE_DETACHED 1
13931 int detach = PTHREAD_CREATE_DETACHED;
13933 #if HAVE_PTHREADS > 4
13934 /* Final pthreads */
13935 pthread_attr_t attr;
13937 status = pthread_attr_init(&attr);
13938 if( status ) return status;
13940 #if HAVE_PTHREADS < 7
13941 status = pthread_attr_setdetachstate(&attr, &detach);
13942 if( status < 0 ) status = errno;
13944 status = pthread_attr_setdetachstate(&attr, detach);
13946 if( status ) return status;
13947 status = pthread_create( &t, &attr, task, NULL );
13948 #if HAVE_PTHREADS < 7
13949 if( status < 0 ) status = errno;
13951 if( status ) return status;
13953 /* Draft 4 pthreads */
13954 status = pthread_create( &t, pthread_attr_default, task, NULL );
13955 if( status ) return errno;
13957 /* give thread a chance to complete */
13958 /* it should remain joinable and hence detachable */
13961 status = pthread_detach( &t );
13962 if( status ) return errno;
13965 #ifdef HAVE_LINUX_THREADS
13966 pthread_kill_other_threads_np();
13974 if ac_fn_c_try_run "$LINENO"; then :
13975 ol_cv_pthread_lib_lpthreads=yes
13977 ol_cv_pthread_lib_lpthreads=no
13979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13980 conftest.$ac_objext conftest.beam conftest.$ac_ext
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
13989 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
13991 if test $ol_cv_pthread_lib_lpthreads = yes ; then
13992 ol_link_pthreads="-lpthreads"
13993 ol_link_threads=posix
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
13999 $as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
14001 if test $ol_link_threads != no ; then
14002 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14004 save_CPPFLAGS="$CPPFLAGS"
14006 LIBS="$LTHREAD_LIBS $LIBS"
14008 for ac_func in sched_yield pthread_yield thr_yield
14010 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14011 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14012 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14013 cat >>confdefs.h <<_ACEOF
14014 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14021 if test $ac_cv_func_sched_yield = no &&
14022 test $ac_cv_func_pthread_yield = no &&
14023 test $ac_cv_func_thr_yield = no ; then
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
14025 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
14026 if ${ac_cv_lib_rt_sched_yield+:} false; then :
14027 $as_echo_n "(cached) " >&6
14029 ac_check_lib_save_LIBS=$LIBS
14031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14032 /* end confdefs.h. */
14034 /* Override any GCC internal prototype to avoid an error.
14035 Use char because int might match the return type of a GCC
14036 builtin and then its argument prototype would still apply. */
14040 char sched_yield ();
14044 return sched_yield ();
14049 if ac_fn_c_try_link "$LINENO"; then :
14050 ac_cv_lib_rt_sched_yield=yes
14052 ac_cv_lib_rt_sched_yield=no
14054 rm -f core conftest.err conftest.$ac_objext \
14055 conftest$ac_exeext conftest.$ac_ext
14056 LIBS=$ac_check_lib_save_LIBS
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
14059 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
14060 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
14061 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14063 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
14065 ac_cv_func_sched_yield=yes
14067 ac_cv_func_sched_yield=no
14071 if test $ac_cv_func_sched_yield = no &&
14072 test $ac_cv_func_pthread_yield = no &&
14073 test "$ac_cv_func_thr_yield" = no ; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
14075 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
14078 for ac_func in pthread_kill
14080 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
14081 if test "x$ac_cv_func_pthread_kill" = xyes; then :
14082 cat >>confdefs.h <<_ACEOF
14083 #define HAVE_PTHREAD_KILL 1
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
14091 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
14092 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
14093 $as_echo_n "(cached) " >&6
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h. */
14099 #include <pthread.h>
14100 pthread_rwlock_t rwlock;
14105 pthread_rwlock_destroy(&rwlock);
14110 if ac_fn_c_try_link "$LINENO"; then :
14111 ol_cv_func_pthread_rwlock_destroy=yes
14113 ol_cv_func_pthread_rwlock_destroy=no
14115 rm -f core conftest.err conftest.$ac_objext \
14116 conftest$ac_exeext conftest.$ac_ext
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
14120 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
14121 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
14123 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
14128 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
14129 if ${ol_cv_func_pthread_detach+:} false; then :
14130 $as_echo_n "(cached) " >&6
14133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14134 /* end confdefs.h. */
14136 #include <pthread.h>
14138 #define NULL (void*)0
14144 pthread_detach(NULL);
14149 if ac_fn_c_try_link "$LINENO"; then :
14150 ol_cv_func_pthread_detach=yes
14152 ol_cv_func_pthread_detach=no
14154 rm -f core conftest.err conftest.$ac_objext \
14155 conftest$ac_exeext conftest.$ac_ext
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
14159 $as_echo "$ol_cv_func_pthread_detach" >&6; }
14161 if test $ol_cv_func_pthread_detach = no ; then
14162 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
14166 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
14170 pthread_setconcurrency \
14171 pthread_getconcurrency \
14172 thr_setconcurrency \
14173 thr_getconcurrency \
14176 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14177 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14178 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14179 cat >>confdefs.h <<_ACEOF
14180 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14188 for ac_func in pthread_kill_other_threads_np
14190 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
14191 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
14192 cat >>confdefs.h <<_ACEOF
14193 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
14200 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
14201 if ${ol_cv_sys_linux_threads+:} false; then :
14202 $as_echo_n "(cached) " >&6
14204 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
14207 $as_echo "$ol_cv_sys_linux_threads" >&6; }
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
14213 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
14214 if ${ol_cv_linux_threads+:} false; then :
14215 $as_echo_n "(cached) " >&6
14218 if test $ol_cv_header_linux_threads = yes &&
14219 test $ol_cv_sys_linux_threads = yes; then
14220 ol_cv_linux_threads=yes
14221 elif test $ol_cv_header_linux_threads = no &&
14222 test $ol_cv_sys_linux_threads = no; then
14223 ol_cv_linux_threads=no
14225 ol_cv_linux_threads=error
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
14230 $as_echo "$ol_cv_linux_threads" >&6; }
14233 if test $ol_cv_linux_threads = error; then
14234 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
14238 $as_echo_n "checking if pthread_create() works... " >&6; }
14239 if ${ol_cv_pthread_create_works+:} false; then :
14240 $as_echo_n "(cached) " >&6
14243 if test "$cross_compiling" = yes; then :
14244 ol_cv_pthread_create_works=yes
14246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14247 /* end confdefs.h. */
14250 /* pthread test headers */
14251 #include <pthread.h>
14252 #if HAVE_PTHREADS < 7
14256 #define NULL (void*)0
14259 static void *task(p)
14262 return (void *) (p == NULL);
14266 int main(argc, argv)
14271 /* pthread test function */
14272 #ifndef PTHREAD_CREATE_DETACHED
14273 #define PTHREAD_CREATE_DETACHED 1
14277 int detach = PTHREAD_CREATE_DETACHED;
14279 #if HAVE_PTHREADS > 4
14280 /* Final pthreads */
14281 pthread_attr_t attr;
14283 status = pthread_attr_init(&attr);
14284 if( status ) return status;
14286 #if HAVE_PTHREADS < 7
14287 status = pthread_attr_setdetachstate(&attr, &detach);
14288 if( status < 0 ) status = errno;
14290 status = pthread_attr_setdetachstate(&attr, detach);
14292 if( status ) return status;
14293 status = pthread_create( &t, &attr, task, NULL );
14294 #if HAVE_PTHREADS < 7
14295 if( status < 0 ) status = errno;
14297 if( status ) return status;
14299 /* Draft 4 pthreads */
14300 status = pthread_create( &t, pthread_attr_default, task, NULL );
14301 if( status ) return errno;
14303 /* give thread a chance to complete */
14304 /* it should remain joinable and hence detachable */
14307 status = pthread_detach( &t );
14308 if( status ) return errno;
14311 #ifdef HAVE_LINUX_THREADS
14312 pthread_kill_other_threads_np();
14320 if ac_fn_c_try_run "$LINENO"; then :
14321 ol_cv_pthread_create_works=yes
14323 ol_cv_pthread_create_works=no
14325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14326 conftest.$ac_objext conftest.beam conftest.$ac_ext
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
14331 $as_echo "$ol_cv_pthread_create_works" >&6; }
14333 if test $ol_cv_pthread_create_works = no ; then
14334 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
14337 ol_replace_broken_yield=no
14339 if test $ol_replace_broken_yield = yes ; then
14341 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
14345 if test x$ol_with_yielding_select = xauto ; then
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
14347 $as_echo_n "checking if select yields when using pthreads... " >&6; }
14348 if ${ol_cv_pthread_select_yields+:} false; then :
14349 $as_echo_n "(cached) " >&6
14352 if test "$cross_compiling" = yes; then :
14353 ol_cv_pthread_select_yields=cross
14355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14356 /* end confdefs.h. */
14358 #include <sys/types.h>
14359 #include <sys/time.h>
14360 #include <unistd.h>
14361 #include <pthread.h>
14363 #define NULL (void*) 0
14366 static int fildes[2];
14368 static void *task(p)
14380 FD_SET(fildes[0], &rfds);
14382 /* we're not interested in any fds */
14383 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
14390 exit(0); /* if we exit here, the select blocked the whole process */
14393 int main(argc, argv)
14399 /* create a pipe to select */
14400 if(pipe(&fildes[0])) {
14405 #ifdef HAVE_PTHREAD_SETCONCURRENCY
14406 (void) pthread_setconcurrency(2);
14408 #ifdef HAVE_THR_SETCONCURRENCY
14409 /* Set Solaris LWP concurrency to 2 */
14410 thr_setconcurrency(2);
14414 #if HAVE_PTHREADS < 6
14415 pthread_create(&t, pthread_attr_default, task, NULL);
14417 pthread_create(&t, NULL, task, NULL);
14420 /* make sure task runs first */
14421 #ifdef HAVE_THR_YIELD
14423 #elif defined( HAVE_SCHED_YIELD )
14425 #elif defined( HAVE_PTHREAD_YIELD )
14432 if ac_fn_c_try_run "$LINENO"; then :
14433 ol_cv_pthread_select_yields=no
14435 ol_cv_pthread_select_yields=yes
14437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14438 conftest.$ac_objext conftest.beam conftest.$ac_ext
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
14443 $as_echo "$ol_cv_pthread_select_yields" >&6; }
14445 if test $ol_cv_pthread_select_yields = cross ; then
14446 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
14449 if test $ol_cv_pthread_select_yields = yes ; then
14450 ol_with_yielding_select=yes
14454 CPPFLAGS="$save_CPPFLAGS"
14457 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
14461 if test $ol_with_threads = posix ; then
14462 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
14467 case $ol_with_threads in auto | yes | mach)
14469 for ac_header in mach/cthreads.h cthreads.h
14471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14472 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14473 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14474 cat >>confdefs.h <<_ACEOF
14475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14482 if test $ac_cv_header_mach_cthreads_h = yes ; then
14483 ol_with_threads=found
14485 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
14486 if test "x$ac_cv_func_cthread_fork" = xyes; then :
14487 ol_link_threads=yes
14491 if test $ol_link_threads = no ; then
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
14493 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
14494 if ${ol_cv_cthread_all_load+:} false; then :
14495 $as_echo_n "(cached) " >&6
14499 LIBS="-all_load $LIBS"
14500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h. */
14502 #include <mach/cthreads.h>
14507 cthread_fork((void *)0, (void *)0);
14513 if ac_fn_c_try_link "$LINENO"; then :
14514 ol_cv_cthread_all_load=yes
14516 ol_cv_cthread_all_load=no
14518 rm -f core conftest.err conftest.$ac_objext \
14519 conftest$ac_exeext conftest.$ac_ext
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
14524 $as_echo "$ol_cv_cthread_all_load" >&6; }
14526 if test $ol_cv_cthread_all_load = yes ; then
14527 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
14528 ol_link_threads=mach
14529 ol_with_threads=found
14533 elif test $ac_cv_header_cthreads_h = yes ; then
14535 ol_with_threads=found
14538 LIBS="$LIBS -lthreads"
14539 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
14540 if test "x$ac_cv_func_cthread_fork" = xyes; then :
14541 ol_link_threads=yes
14546 if test $ol_link_threads = yes ; then
14547 LTHREAD_LIBS="-lthreads"
14548 ol_link_threads=mach
14549 ol_with_threads=found
14551 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
14554 elif test $ol_with_threads = mach ; then
14555 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
14558 if test $ol_link_threads = mach ; then
14560 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
14562 elif test $ol_with_threads = found ; then
14563 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
14568 case $ol_with_threads in auto | yes | pth)
14570 for ac_header in pth.h
14572 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
14573 if test "x$ac_cv_header_pth_h" = xyes; then :
14574 cat >>confdefs.h <<_ACEOF
14575 #define HAVE_PTH_H 1
14583 if test $ac_cv_header_pth_h = yes ; then
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
14585 $as_echo_n "checking for pth_version in -lpth... " >&6; }
14586 if ${ac_cv_lib_pth_pth_version+:} false; then :
14587 $as_echo_n "(cached) " >&6
14589 ac_check_lib_save_LIBS=$LIBS
14591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592 /* end confdefs.h. */
14594 /* Override any GCC internal prototype to avoid an error.
14595 Use char because int might match the return type of a GCC
14596 builtin and then its argument prototype would still apply. */
14600 char pth_version ();
14604 return pth_version ();
14609 if ac_fn_c_try_link "$LINENO"; then :
14610 ac_cv_lib_pth_pth_version=yes
14612 ac_cv_lib_pth_pth_version=no
14614 rm -f core conftest.err conftest.$ac_objext \
14615 conftest$ac_exeext conftest.$ac_ext
14616 LIBS=$ac_check_lib_save_LIBS
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
14619 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
14620 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
14627 if test $have_pth = yes ; then
14629 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
14631 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
14632 ol_link_threads=pth
14633 ol_with_threads=found
14635 if test x$ol_with_yielding_select = xauto ; then
14636 ol_with_yielding_select=yes
14643 case $ol_with_threads in auto | yes | lwp)
14645 for ac_header in thread.h synch.h
14647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14648 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14649 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14650 cat >>confdefs.h <<_ACEOF
14651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14658 if test $ac_cv_header_thread_h = yes &&
14659 test $ac_cv_header_synch_h = yes ; then
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
14661 $as_echo_n "checking for thr_create in -lthread... " >&6; }
14662 if ${ac_cv_lib_thread_thr_create+:} false; then :
14663 $as_echo_n "(cached) " >&6
14665 ac_check_lib_save_LIBS=$LIBS
14666 LIBS="-lthread $LIBS"
14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h. */
14670 /* Override any GCC internal prototype to avoid an error.
14671 Use char because int might match the return type of a GCC
14672 builtin and then its argument prototype would still apply. */
14676 char thr_create ();
14680 return thr_create ();
14685 if ac_fn_c_try_link "$LINENO"; then :
14686 ac_cv_lib_thread_thr_create=yes
14688 ac_cv_lib_thread_thr_create=no
14690 rm -f core conftest.err conftest.$ac_objext \
14691 conftest$ac_exeext conftest.$ac_ext
14692 LIBS=$ac_check_lib_save_LIBS
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
14695 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
14696 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
14703 if test $have_thr = yes ; then
14705 $as_echo "#define HAVE_THR 1" >>confdefs.h
14707 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
14708 ol_link_threads=thr
14710 if test x$ol_with_yielding_select = xauto ; then
14711 ol_with_yielding_select=yes
14715 thr_setconcurrency \
14716 thr_getconcurrency \
14719 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14720 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14721 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14722 cat >>confdefs.h <<_ACEOF
14723 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14732 for ac_header in lwp/lwp.h
14734 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
14735 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
14736 cat >>confdefs.h <<_ACEOF
14737 #define HAVE_LWP_LWP_H 1
14744 if test $ac_cv_header_lwp_lwp_h = yes ; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
14746 $as_echo_n "checking for lwp_create in -llwp... " >&6; }
14747 if ${ac_cv_lib_lwp_lwp_create+:} false; then :
14748 $as_echo_n "(cached) " >&6
14750 ac_check_lib_save_LIBS=$LIBS
14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753 /* end confdefs.h. */
14755 /* Override any GCC internal prototype to avoid an error.
14756 Use char because int might match the return type of a GCC
14757 builtin and then its argument prototype would still apply. */
14761 char lwp_create ();
14765 return lwp_create ();
14770 if ac_fn_c_try_link "$LINENO"; then :
14771 ac_cv_lib_lwp_lwp_create=yes
14773 ac_cv_lib_lwp_lwp_create=no
14775 rm -f core conftest.err conftest.$ac_objext \
14776 conftest$ac_exeext conftest.$ac_ext
14777 LIBS=$ac_check_lib_save_LIBS
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
14780 $as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
14781 if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
14788 if test $have_lwp = yes ; then
14790 $as_echo "#define HAVE_LWP 1" >>confdefs.h
14792 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
14793 ol_link_threads=lwp
14795 if test x$ol_with_yielding_select = xauto ; then
14796 ol_with_yielding_select=no
14803 if test $ol_with_yielding_select = yes ; then
14805 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
14809 if test $ol_with_threads = manual ; then
14810 ol_link_threads=yes
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
14813 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
14815 for ac_header in pthread.h sched.h
14817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14818 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14819 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14820 cat >>confdefs.h <<_ACEOF
14821 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14828 for ac_func in sched_yield pthread_yield
14830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14831 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14832 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14833 cat >>confdefs.h <<_ACEOF
14834 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
14842 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
14843 if ${ol_cv_header_linux_threads+:} false; then :
14844 $as_echo_n "(cached) " >&6
14846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h. */
14848 #include <pthread.h>
14850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14851 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
14852 ol_cv_header_linux_threads=yes
14854 ol_cv_header_linux_threads=no
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
14861 $as_echo "$ol_cv_header_linux_threads" >&6; }
14862 if test $ol_cv_header_linux_threads = yes; then
14864 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
14869 for ac_header in mach/cthreads.h
14871 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
14872 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
14873 cat >>confdefs.h <<_ACEOF
14874 #define HAVE_MACH_CTHREADS_H 1
14881 for ac_header in lwp/lwp.h
14883 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
14884 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
14885 cat >>confdefs.h <<_ACEOF
14886 #define HAVE_LWP_LWP_H 1
14893 for ac_header in thread.h synch.h
14895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14896 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14897 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14898 cat >>confdefs.h <<_ACEOF
14899 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14908 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
14910 $as_echo "#define REENTRANT 1" >>confdefs.h
14913 $as_echo "#define _REENTRANT 1" >>confdefs.h
14916 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
14919 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
14922 $as_echo "#define THREADSAFE 1" >>confdefs.h
14925 $as_echo "#define _THREADSAFE 1" >>confdefs.h
14928 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
14932 $as_echo_n "checking for thread specific errno... " >&6; }
14933 if ${ol_cv_errno_thread_specific+:} false; then :
14934 $as_echo_n "(cached) " >&6
14937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938 /* end confdefs.h. */
14948 if ac_fn_c_try_link "$LINENO"; then :
14949 ol_cv_errno_thread_specific=yes
14951 ol_cv_errno_thread_specific=no
14953 rm -f core conftest.err conftest.$ac_objext \
14954 conftest$ac_exeext conftest.$ac_ext
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
14958 $as_echo "$ol_cv_errno_thread_specific" >&6; }
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
14961 $as_echo_n "checking for thread specific h_errno... " >&6; }
14962 if ${ol_cv_h_errno_thread_specific+:} false; then :
14963 $as_echo_n "(cached) " >&6
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14977 if ac_fn_c_try_link "$LINENO"; then :
14978 ol_cv_h_errno_thread_specific=yes
14980 ol_cv_h_errno_thread_specific=no
14982 rm -f core conftest.err conftest.$ac_objext \
14983 conftest$ac_exeext conftest.$ac_ext
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
14987 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
14989 if test $ol_cv_errno_thread_specific != yes ||
14990 test $ol_cv_h_errno_thread_specific != yes ; then
14991 LIBS="$LTHREAD_LIBS $LIBS"
14997 if test $ol_link_threads = no ; then
14998 if test $ol_with_threads = yes ; then
14999 as_fn_error $? "no suitable thread support" "$LINENO" 5
15002 if test $ol_with_threads = auto ; then
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
15004 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
15009 $as_echo "#define NO_THREADS 1" >>confdefs.h
15017 if test $ol_link_threads != no ; then
15019 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
15023 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15024 case "$ol_with_threads" in
15030 ol_found_pthreads=yes
15035 ac_cpp='$CPP $CPPFLAGS'
15036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15045 case "$ol_found_pthreads" in
15048 LIBS="$LTHREAD_LIBS $LIBS"
15049 saved_CFLAGS="$CFLAGS"
15050 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
15051 for ac_func in sem_timedwait
15053 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
15054 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
15055 cat >>confdefs.h <<_ACEOF
15056 #define HAVE_SEM_TIMEDWAIT 1
15063 { saved_LIBS=; unset saved_LIBS;}
15064 CFLAGS="$saved_CFLAGS"
15065 { saved_CFLAGS=; unset saved_CFLAGS;}
15066 case "$ac_cv_func_sem_timedwait" in
15068 PTHREAD_LIBS="$LTHREAD_LIBS"
15074 case "$have_pthreads" in
15076 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
15078 LIBS="$LTHREAD_LIBS $LIBS"
15079 saved_CFLAGS="$CFLAGS"
15080 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
15081 # The cast to long int works around a bug in the HP C Compiler
15082 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15083 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15084 # This bug is HP SR number 8606223364.
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
15086 $as_echo_n "checking size of pthread_t... " >&6; }
15087 if ${ac_cv_sizeof_pthread_t+:} false; then :
15088 $as_echo_n "(cached) " >&6
15090 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
15091 $ac_includes_default
15092 #include <pthread.h>
15098 if test "$ac_cv_type_pthread_t" = yes; then
15099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15101 as_fn_error 77 "cannot compute sizeof (pthread_t)
15102 See \`config.log' for more details" "$LINENO" 5; }
15104 ac_cv_sizeof_pthread_t=0
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
15110 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
15114 cat >>confdefs.h <<_ACEOF
15115 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
15119 LIBISC_PTHREADS_NOTHREADS=pthreads
15121 $as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
15124 # We'd like to use sigwait() too
15126 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
15127 if test "x$ac_cv_func_sigwait" = xyes; then :
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
15131 $as_echo_n "checking for sigwait in -lc... " >&6; }
15132 if ${ac_cv_lib_c_sigwait+:} false; then :
15133 $as_echo_n "(cached) " >&6
15135 ac_check_lib_save_LIBS=$LIBS
15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138 /* end confdefs.h. */
15140 /* Override any GCC internal prototype to avoid an error.
15141 Use char because int might match the return type of a GCC
15142 builtin and then its argument prototype would still apply. */
15155 if ac_fn_c_try_link "$LINENO"; then :
15156 ac_cv_lib_c_sigwait=yes
15158 ac_cv_lib_c_sigwait=no
15160 rm -f core conftest.err conftest.$ac_objext \
15161 conftest$ac_exeext conftest.$ac_ext
15162 LIBS=$ac_check_lib_save_LIBS
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
15165 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
15166 if test "x$ac_cv_lib_c_sigwait" = xyes; then :
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
15170 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
15171 if ${ac_cv_lib_pthread_sigwait+:} false; then :
15172 $as_echo_n "(cached) " >&6
15174 ac_check_lib_save_LIBS=$LIBS
15175 LIBS="-lpthread $LIBS"
15176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15177 /* end confdefs.h. */
15179 /* Override any GCC internal prototype to avoid an error.
15180 Use char because int might match the return type of a GCC
15181 builtin and then its argument prototype would still apply. */
15194 if ac_fn_c_try_link "$LINENO"; then :
15195 ac_cv_lib_pthread_sigwait=yes
15197 ac_cv_lib_pthread_sigwait=no
15199 rm -f core conftest.err conftest.$ac_objext \
15200 conftest$ac_exeext conftest.$ac_ext
15201 LIBS=$ac_check_lib_save_LIBS
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
15204 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
15205 if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
15209 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
15210 if ${ac_cv_lib_pthread__Psigwait+:} false; then :
15211 $as_echo_n "(cached) " >&6
15213 ac_check_lib_save_LIBS=$LIBS
15214 LIBS="-lpthread $LIBS"
15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h. */
15218 /* Override any GCC internal prototype to avoid an error.
15219 Use char because int might match the return type of a GCC
15220 builtin and then its argument prototype would still apply. */
15228 return _Psigwait ();
15233 if ac_fn_c_try_link "$LINENO"; then :
15234 ac_cv_lib_pthread__Psigwait=yes
15236 ac_cv_lib_pthread__Psigwait=no
15238 rm -f core conftest.err conftest.$ac_objext \
15239 conftest$ac_exeext conftest.$ac_ext
15240 LIBS=$ac_check_lib_save_LIBS
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
15243 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
15244 if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
15260 case "$host:$have_sigwait" in
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
15263 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
15264 if ${ac_cv_lib_c_r_sigwait+:} false; then :
15265 $as_echo_n "(cached) " >&6
15267 ac_check_lib_save_LIBS=$LIBS
15269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270 /* end confdefs.h. */
15272 /* Override any GCC internal prototype to avoid an error.
15273 Use char because int might match the return type of a GCC
15274 builtin and then its argument prototype would still apply. */
15287 if ac_fn_c_try_link "$LINENO"; then :
15288 ac_cv_lib_c_r_sigwait=yes
15290 ac_cv_lib_c_r_sigwait=no
15292 rm -f core conftest.err conftest.$ac_objext \
15293 conftest$ac_exeext conftest.$ac_ext
15294 LIBS=$ac_check_lib_save_LIBS
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
15297 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
15298 if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
15304 case "$have_sigwait" in
15306 ac_cv_func_sigwait=yes
15308 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
15312 for ac_func in pthread_attr_getstacksize
15314 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
15315 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
15316 cat >>confdefs.h <<_ACEOF
15317 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
15323 for ac_func in pthread_attr_setstacksize sysconf
15325 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15326 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15327 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15328 cat >>confdefs.h <<_ACEOF
15329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15337 *-freebsd5.[012]|*-freebsd5.[012].*)
15339 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
15341 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
15344 *-bsdi3.*|*-bsdi4.0*)
15346 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
15351 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
15355 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
15357 for ac_func in pthread_setconcurrency
15359 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
15360 if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
15361 cat >>confdefs.h <<_ACEOF
15362 #define HAVE_PTHREAD_SETCONCURRENCY 1
15368 case "$ac_cv_func_pthread_setconcurrency" in
15371 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
15375 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
15377 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
15381 hack_shutup_pthreadonceinit=no
15384 hack_shutup_pthreadonceinit=yes
15387 hack_shutup_pthreadonceinit=yes
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
15391 $as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
15392 if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
15393 $as_echo_n "(cached) " >&6
15395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15396 /* end confdefs.h. */
15398 #include <pthread.h>
15404 static pthread_once_t once_test =
15412 if ac_fn_c_try_compile "$LINENO"; then :
15413 ntp_cv_braces_around_pthread_once_init=no
15415 ntp_cv_braces_around_pthread_once_init=yes
15418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
15422 $as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
15423 case "$ntp_cv_braces_around_pthread_once_init" in
15425 hack_shutup_pthreadonceinit=yes
15429 case "$hack_shutup_pthreadonceinit" in
15432 $as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
15436 { saved_LIBS=; unset saved_LIBS;}
15437 CFLAGS="$saved_CFLAGS"
15438 { saved_CFLAGS=; unset saved_CFLAGS;}
15441 LIBISC_PTHREADS_NOTHREADS=nothreads
15445 if test "$have_pthreads" != "no"; then
15459 case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
15462 $as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
15463 if ${ntp_cv_vsnprintf_percent_m+:} false; then :
15464 $as_echo_n "(cached) " >&6
15466 if test "$cross_compiling" = yes; then :
15467 ntp_cv_vsnprintf_percent_m=no
15470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15471 /* end confdefs.h. */
15473 #include <stdarg.h>
15476 #include <string.h>
15478 int call_vsnprintf(
15485 int call_vsnprintf(
15496 rc = vsnprintf(dst, sz, fmt, ap);
15510 strcpy(sbuf, strerror(ENOENT));
15512 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
15514 return strcmp(sbuf, pbuf);
15521 if ac_fn_c_try_run "$LINENO"; then :
15522 ntp_cv_vsnprintf_percent_m=yes
15524 ntp_cv_vsnprintf_percent_m=no
15526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15527 conftest.$ac_objext conftest.beam conftest.$ac_ext
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
15533 $as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
15534 case "$ntp_cv_vsnprintf_percent_m" in
15537 $as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
15542 for ac_header in sys/clockctl.h
15544 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
15545 if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
15546 cat >>confdefs.h <<_ACEOF
15547 #define HAVE_SYS_CLOCKCTL_H 1
15555 # Check whether --enable-clockctl was given.
15556 if test "${enable_clockctl+set}" = set; then :
15557 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
15559 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
15565 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
15567 $as_echo "$ntp_use_dev_clockctl" >&6; }
15570 for ac_header in sys/capability.h sys/prctl.h
15572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15573 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15574 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15575 cat >>confdefs.h <<_ACEOF
15576 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
15585 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
15587 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
15591 ntp_have_linuxcaps=no
15593 *) ntp_have_linuxcaps=yes
15598 ntp_have_linuxcaps=no
15602 # Check whether --enable-linuxcaps was given.
15603 if test "${enable_linuxcaps+set}" = set; then :
15604 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
15610 $as_echo "$ntp_have_linuxcaps" >&6; }
15612 case "$ntp_have_linuxcaps" in
15615 $as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
15622 for ac_header in priv.h
15624 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
15625 if test "x$ac_cv_header_priv_h" = xyes; then :
15626 cat >>confdefs.h <<_ACEOF
15627 #define HAVE_PRIV_H 1
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
15636 $as_echo_n "checking if we have solaris privileges... " >&6; }
15638 case "$ac_cv_header_priv_h" in
15642 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
15643 if test "x$ac_cv_func_setppriv" = xyes; then :
15644 ntp_have_solarisprivs=yes
15646 ntp_have_solarisprivs=no
15654 # Check whether --enable-solarisprivs was given.
15655 if test "${enable_solarisprivs+set}" = set; then :
15656 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
15662 case "$ntp_have_solarisprivs" in
15665 $as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
15670 $as_echo "$ntp_have_solarisprivs" >&6; }
15672 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
15675 $as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
15682 $as_echo_n "checking for library containing res_9_init... " >&6; }
15683 if ${ac_cv_search_res_9_init+:} false; then :
15684 $as_echo_n "(cached) " >&6
15686 ac_func_search_save_LIBS=$LIBS
15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15688 /* end confdefs.h. */
15690 /* Override any GCC internal prototype to avoid an error.
15691 Use char because int might match the return type of a GCC
15692 builtin and then its argument prototype would still apply. */
15696 char res_9_init ();
15700 return res_9_init ();
15705 for ac_lib in '' resolv; do
15706 if test -z "$ac_lib"; then
15707 ac_res="none required"
15710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15712 if ac_fn_c_try_link "$LINENO"; then :
15713 ac_cv_search_res_9_init=$ac_res
15715 rm -f core conftest.err conftest.$ac_objext \
15717 if ${ac_cv_search_res_9_init+:} false; then :
15721 if ${ac_cv_search_res_9_init+:} false; then :
15724 ac_cv_search_res_9_init=no
15726 rm conftest.$ac_ext
15727 LIBS=$ac_func_search_save_LIBS
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
15730 $as_echo "$ac_cv_search_res_9_init" >&6; }
15731 ac_res=$ac_cv_search_res_9_init
15732 if test "$ac_res" != no; then :
15733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15738 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
15739 $as_echo_n "checking for library containing res_init... " >&6; }
15740 if ${ac_cv_search_res_init+:} false; then :
15741 $as_echo_n "(cached) " >&6
15743 ac_func_search_save_LIBS=$LIBS
15744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15745 /* end confdefs.h. */
15747 /* Override any GCC internal prototype to avoid an error.
15748 Use char because int might match the return type of a GCC
15749 builtin and then its argument prototype would still apply. */
15757 return res_init ();
15762 for ac_lib in '' resolv; do
15763 if test -z "$ac_lib"; then
15764 ac_res="none required"
15767 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15769 if ac_fn_c_try_link "$LINENO"; then :
15770 ac_cv_search_res_init=$ac_res
15772 rm -f core conftest.err conftest.$ac_objext \
15774 if ${ac_cv_search_res_init+:} false; then :
15778 if ${ac_cv_search_res_init+:} false; then :
15781 ac_cv_search_res_init=no
15783 rm conftest.$ac_ext
15784 LIBS=$ac_func_search_save_LIBS
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
15787 $as_echo "$ac_cv_search_res_init" >&6; }
15788 ac_res=$ac_cv_search_res_init
15789 if test "$ac_res" != no; then :
15790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15796 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
15798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15799 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
15800 # include <sys/types.h>
15802 #ifdef HAVE_NETINET_IN_H
15803 # include <netinet/in.h> /* inet_ functions / structs */
15805 #ifdef HAVE_ARPA_NAMESER_H
15806 # include <arpa/nameser.h> /* DNS HEADER struct */
15808 #ifdef HAVE_NETDB_H
15809 # include <netdb.h>
15812 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15813 cat >>confdefs.h <<_ACEOF
15814 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15822 #HMS: Why do we do this check so "early"?
15823 for ac_func in res_init
15825 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
15826 if test "x$ac_cv_func_res_init" = xyes; then :
15827 cat >>confdefs.h <<_ACEOF
15828 #define HAVE_RES_INIT 1
15832 for ac_func in __res_init
15834 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
15835 if test "x$ac_cv_func___res_init" = xyes; then :
15836 cat >>confdefs.h <<_ACEOF
15837 #define HAVE___RES_INIT 1
15847 # We also need -lsocket, but we have tested for that already.
15848 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
15849 if test "x$ac_cv_func_inet_ntop" = xyes; then :
15853 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
15857 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
15858 if test "x$ac_cv_func_inet_pton" = xyes; then :
15862 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
15867 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15868 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15870 cat >>confdefs.h <<_ACEOF
15871 #define HAVE_UINTPTR_T 1
15876 ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
15877 if test "x$ac_cv_type_int32" = xyes; then :
15879 cat >>confdefs.h <<_ACEOF
15880 #define HAVE_INT32 1
15885 ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
15886 if test "x$ac_cv_type_u_int32" = xyes; then :
15888 cat >>confdefs.h <<_ACEOF
15889 #define HAVE_U_INT32 1
15898 case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
15901 $as_echo_n "checking for int32 with DNS headers included... " >&6; }
15902 if ${ntp_cv_type_int32_with_dns+:} false; then :
15903 $as_echo_n "(cached) " >&6
15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h. */
15908 #ifdef HAVE_ARPA_NAMESER_H
15909 # include <arpa/nameser.h>
15911 #include <resolv.h>
15917 size_t cb = sizeof(int32);
15924 if ac_fn_c_try_compile "$LINENO"; then :
15925 ntp_cv_type_int32_with_dns=yes
15927 ntp_cv_type_int32_with_dns=no
15930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
15934 $as_echo "$ntp_cv_type_int32_with_dns" >&6; }
15935 case "$ntp_cv_type_int32_with_dns" in
15938 $as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
15943 case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
15946 $as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
15947 if ${ntp_cv_type_u_int32_with_dns+:} false; then :
15948 $as_echo_n "(cached) " >&6
15950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951 /* end confdefs.h. */
15953 #ifdef HAVE_ARPA_NAMESER_H
15954 # include <arpa/nameser.h>
15956 #include <resolv.h>
15962 size_t cb = sizeof(u_int32);
15969 if ac_fn_c_try_compile "$LINENO"; then :
15970 ntp_cv_type_u_int32_with_dns=yes
15972 ntp_cv_type_u_int32_with_dns=no
15975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
15979 $as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
15980 case "$ntp_cv_type_u_int32_with_dns" in
15983 $as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
15988 for ac_header in sys/timepps.h
15990 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
15991 #ifdef HAVE_SYS_TIME_H
15992 # include <sys/time.h>
15994 #ifdef HAVE_ERRNO_H
15995 # include <errno.h>
16000 if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
16001 cat >>confdefs.h <<_ACEOF
16002 #define HAVE_SYS_TIMEPPS_H 1
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
16011 $as_echo_n "checking for struct timespec... " >&6; }
16012 if ${ntp_cv_struct_timespec+:} false; then :
16013 $as_echo_n "(cached) " >&6
16015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h. */
16018 #include <sys/time.h>
16019 /* Under SunOS, timespec is in sys/timepps.h,
16020 which needs errno.h and FRAC */
16021 #ifdef HAVE_ERRNO_H
16022 # include <errno.h>
16024 #ifdef HAVE_SYS_TIMEPPS_H
16025 # define FRAC 4294967296
16026 # include <sys/timepps.h>
16040 if ac_fn_c_try_compile "$LINENO"; then :
16041 ntp_cv_struct_timespec=yes
16043 ntp_cv_struct_timespec=no
16046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
16050 $as_echo "$ntp_cv_struct_timespec" >&6; }
16051 case "$ntp_cv_struct_timespec" in
16054 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
16059 $as_echo_n "checking for struct ntptimeval... " >&6; }
16060 if ${ntp_cv_struct_ntptimeval+:} false; then :
16061 $as_echo_n "(cached) " >&6
16063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16064 /* end confdefs.h. */
16066 #include <sys/time.h>
16067 #include <sys/timex.h>
16073 struct ntptimeval n;
16080 if ac_fn_c_try_compile "$LINENO"; then :
16081 ntp_cv_struct_ntptimeval=yes
16083 ntp_cv_struct_ntptimeval=no
16086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
16090 $as_echo "$ntp_cv_struct_ntptimeval" >&6; }
16091 case "$ntp_cv_struct_ntptimeval" in
16094 $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
16098 for ac_header in md5.h
16100 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
16101 #ifdef HAVE_SYS_TYPES_H
16102 # include <sys/types.h>
16107 if test "x$ac_cv_header_md5_h" = xyes; then :
16108 cat >>confdefs.h <<_ACEOF
16109 #define HAVE_MD5_H 1
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
16118 $as_echo_n "checking for library containing MD5Init... " >&6; }
16119 if ${ac_cv_search_MD5Init+:} false; then :
16120 $as_echo_n "(cached) " >&6
16122 ac_func_search_save_LIBS=$LIBS
16123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124 /* end confdefs.h. */
16126 /* Override any GCC internal prototype to avoid an error.
16127 Use char because int might match the return type of a GCC
16128 builtin and then its argument prototype would still apply. */
16141 for ac_lib in '' md5 md; do
16142 if test -z "$ac_lib"; then
16143 ac_res="none required"
16146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16148 if ac_fn_c_try_link "$LINENO"; then :
16149 ac_cv_search_MD5Init=$ac_res
16151 rm -f core conftest.err conftest.$ac_objext \
16153 if ${ac_cv_search_MD5Init+:} false; then :
16157 if ${ac_cv_search_MD5Init+:} false; then :
16160 ac_cv_search_MD5Init=no
16162 rm conftest.$ac_ext
16163 LIBS=$ac_func_search_save_LIBS
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
16166 $as_echo "$ac_cv_search_MD5Init" >&6; }
16167 ac_res=$ac_cv_search_MD5Init
16168 if test "$ac_res" != no; then :
16169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16173 for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
16175 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16176 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16177 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16178 cat >>confdefs.h <<_ACEOF
16179 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
16187 $as_echo_n "checking for SIGIO... " >&6; }
16188 if ${ntp_cv_hdr_def_sigio+:} false; then :
16189 $as_echo_n "(cached) " >&6
16191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16192 /* end confdefs.h. */
16194 #include <signal.h>
16201 if ac_fn_c_try_cpp "$LINENO"; then :
16202 ntp_cv_hdr_def_sigio=yes
16204 ntp_cv_hdr_def_sigio=no
16207 rm -f conftest.err conftest.i conftest.$ac_ext
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
16211 $as_echo "$ntp_cv_hdr_def_sigio" >&6; }
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
16214 $as_echo_n "checking if we want to use SIGIO... " >&6; }
16216 case "$ntp_cv_hdr_def_sigio" in
16220 alpha*-dec-osf4*|alpha*-dec-osf5*)
16265 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
16269 $as_echo "$ans" >&6; }
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
16272 $as_echo_n "checking for SIGPOLL... " >&6; }
16273 if ${ntp_cv_hdr_def_sigpoll+:} false; then :
16274 $as_echo_n "(cached) " >&6
16276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16277 /* end confdefs.h. */
16279 #include <signal.h>
16286 if ac_fn_c_try_cpp "$LINENO"; then :
16287 ntp_cv_hdr_def_sigpoll=yes
16289 ntp_cv_hdr_def_sigpoll=no
16292 rm -f conftest.err conftest.i conftest.$ac_ext
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
16296 $as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
16299 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
16301 case "$ntp_cv_hdr_def_sigpoll" in
16320 # XXX Only verified thru AIX6
16358 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
16362 $as_echo "$ans" >&6; }
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
16365 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
16367 case "$ntp_cv_hdr_def_sigpoll" in
16386 # XXX Only verified thru AIX6
16421 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
16425 $as_echo "$ans" >&6; }
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
16428 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
16429 if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
16430 $as_echo_n "(cached) " >&6
16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433 /* end confdefs.h. */
16435 #include <sys/time.h>
16441 gettimeofday(0, 0);
16442 settimeofday(0, 0);
16449 if ac_fn_c_try_compile "$LINENO"; then :
16450 ntp_cv_func_Xettimeofday_nargs=2
16452 ntp_cv_func_Xettimeofday_nargs=1
16455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
16459 $as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
16460 case "$ntp_cv_func_Xettimeofday_nargs" in
16463 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
16467 for ac_func in settimeofday
16469 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
16470 if test "x$ac_cv_func_settimeofday" = xyes; then :
16471 cat >>confdefs.h <<_ACEOF
16472 #define HAVE_SETTIMEOFDAY 1
16478 *-*-mpeix*) ac_cv_func_settimeofday=yes
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
16486 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
16487 ntp_warning='GRONK'
16489 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
16492 ans='clock_settime()'
16495 ntp_warning='But clock_settime() would be better (if we had it)'
16496 ans='settimeofday()'
16499 ntp_warning='Which is the worst of the three'
16505 ntp_warning='Which leaves us with nothing to use!'
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
16509 $as_echo "$ans" >&6; }
16510 case "$ntp_warning" in
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
16515 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
16520 LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
16522 { __LIBS=; unset __LIBS;}
16526 # Check whether --enable-shared was given.
16527 if test "${enable_shared+set}" = set; then :
16528 enableval=$enable_shared; p=${PACKAGE-default}
16530 yes) enable_shared=yes ;;
16531 no) enable_shared=no ;;
16534 # Look at the argument we got. We use all the common list separators.
16535 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16536 for pkg in $enableval; do
16538 if test "X$pkg" = "X$p"; then
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
16560 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
16565 macro_version='2.4.2'
16566 macro_revision='1.3337'
16580 ltmain="$ac_aux_dir/ltmain.sh"
16582 # Backslashify metacharacters that are still active within
16583 # double-quoted strings.
16584 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16586 # Same as above, but do not quote variable references.
16587 double_quote_subst='s/\(["`\\]\)/\\\1/g'
16589 # Sed substitution to delay expansion of an escaped shell variable in a
16590 # double_quote_subst'ed string.
16591 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16593 # Sed substitution to delay expansion of an escaped single quote.
16594 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
16596 # Sed substitution to avoid accidental globbing in evaled expressions
16597 no_glob_subst='s/\*/\\\*/g'
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
16600 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
16601 if ${lt_cv_path_NM+:} false; then :
16602 $as_echo_n "(cached) " >&6
16604 if test -n "$NM"; then
16605 # Let the user override the test.
16606 lt_cv_path_NM="$NM"
16608 lt_nm_to_check="${ac_tool_prefix}nm"
16609 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
16610 lt_nm_to_check="$lt_nm_to_check nm"
16612 for lt_tmp_nm in $lt_nm_to_check; do
16613 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16614 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
16616 test -z "$ac_dir" && ac_dir=.
16617 tmp_nm="$ac_dir/$lt_tmp_nm"
16618 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
16619 # Check to see if the nm accepts a BSD-compat flag.
16620 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
16621 # nm: unknown option "B" ignored
16622 # Tru64's nm complains that /dev/null is an invalid object file
16623 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
16624 */dev/null* | *'Invalid file or object type'*)
16625 lt_cv_path_NM="$tmp_nm -B"
16629 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
16631 lt_cv_path_NM="$tmp_nm -p"
16635 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
16636 continue # so that we can try to find one that supports BSD flags
16645 : ${lt_cv_path_NM=no}
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
16649 $as_echo "$lt_cv_path_NM" >&6; }
16650 if test "$lt_cv_path_NM" != "no"; then
16651 NM="$lt_cv_path_NM"
16653 # Didn't find any BSD compatible name lister, look for dumpbin.
16654 if test -n "$DUMPBIN"; then :
16655 # Let the user override the test.
16657 if test -n "$ac_tool_prefix"; then
16658 for ac_prog in dumpbin "link -dump"
16660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16663 $as_echo_n "checking for $ac_word... " >&6; }
16664 if ${ac_cv_prog_DUMPBIN+:} false; then :
16665 $as_echo_n "(cached) " >&6
16667 if test -n "$DUMPBIN"; then
16668 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
16670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16671 for as_dir in $PATH
16674 test -z "$as_dir" && as_dir=.
16675 for ac_exec_ext in '' $ac_executable_extensions; do
16676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16677 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
16678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16687 DUMPBIN=$ac_cv_prog_DUMPBIN
16688 if test -n "$DUMPBIN"; then
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
16690 $as_echo "$DUMPBIN" >&6; }
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16693 $as_echo "no" >&6; }
16697 test -n "$DUMPBIN" && break
16700 if test -z "$DUMPBIN"; then
16701 ac_ct_DUMPBIN=$DUMPBIN
16702 for ac_prog in dumpbin "link -dump"
16704 # Extract the first word of "$ac_prog", so it can be a program name with args.
16705 set dummy $ac_prog; ac_word=$2
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16707 $as_echo_n "checking for $ac_word... " >&6; }
16708 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
16709 $as_echo_n "(cached) " >&6
16711 if test -n "$ac_ct_DUMPBIN"; then
16712 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
16714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16715 for as_dir in $PATH
16718 test -z "$as_dir" && as_dir=.
16719 for ac_exec_ext in '' $ac_executable_extensions; do
16720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16721 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
16722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16731 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
16732 if test -n "$ac_ct_DUMPBIN"; then
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
16734 $as_echo "$ac_ct_DUMPBIN" >&6; }
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16737 $as_echo "no" >&6; }
16741 test -n "$ac_ct_DUMPBIN" && break
16744 if test "x$ac_ct_DUMPBIN" = x; then
16747 case $cross_compiling:$ac_tool_warned in
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16751 ac_tool_warned=yes ;;
16753 DUMPBIN=$ac_ct_DUMPBIN
16757 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
16759 DUMPBIN="$DUMPBIN -symbols"
16767 if test "$DUMPBIN" != ":"; then
16771 test -z "$NM" && NM=nm
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
16779 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
16780 if ${lt_cv_nm_interface+:} false; then :
16781 $as_echo_n "(cached) " >&6
16783 lt_cv_nm_interface="BSD nm"
16784 echo "int some_variable = 0;" > conftest.$ac_ext
16785 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
16786 (eval "$ac_compile" 2>conftest.err)
16787 cat conftest.err >&5
16788 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
16789 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
16790 cat conftest.err >&5
16791 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
16792 cat conftest.out >&5
16793 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
16794 lt_cv_nm_interface="MS dumpbin"
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
16799 $as_echo "$lt_cv_nm_interface" >&6; }
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16802 $as_echo_n "checking whether ln -s works... " >&6; }
16804 if test "$LN_S" = "ln -s"; then
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16806 $as_echo "yes" >&6; }
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16809 $as_echo "no, using $LN_S" >&6; }
16812 # find the maximum length of command line arguments
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
16814 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
16815 if ${lt_cv_sys_max_cmd_len+:} false; then :
16816 $as_echo_n "(cached) " >&6
16823 # On DJGPP, this test can blow up pretty badly due to problems in libc
16824 # (any single argument exceeding 2000 bytes causes a buffer overrun
16825 # during glob expansion). Even if it were fixed, the result of this
16826 # check would be larger than it should be.
16827 lt_cv_sys_max_cmd_len=12288; # 12K is about right
16831 # Under GNU Hurd, this test is not required because there is
16832 # no limit to the length of command line arguments.
16833 # Libtool will interpret -1 as no limit whatsoever
16834 lt_cv_sys_max_cmd_len=-1;
16837 cygwin* | mingw* | cegcc*)
16838 # On Win9x/ME, this test blows up -- it succeeds, but takes
16839 # about 5 minutes as the teststring grows exponentially.
16840 # Worse, since 9x/ME are not pre-emptively multitasking,
16841 # you end up with a "frozen" computer, even though with patience
16842 # the test eventually succeeds (with a max line length of 256k).
16843 # Instead, let's just punt: use the minimum linelength reported by
16844 # all of the supported platforms: 8192 (on NT/2K/XP).
16845 lt_cv_sys_max_cmd_len=8192;
16849 # On MiNT this can take a long time and run out of memory.
16850 lt_cv_sys_max_cmd_len=8192;
16854 # On AmigaOS with pdksh, this test takes hours, literally.
16855 # So we just punt and use a minimum line length of 8192.
16856 lt_cv_sys_max_cmd_len=8192;
16859 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
16860 # This has been around since 386BSD, at least. Likely further.
16861 if test -x /sbin/sysctl; then
16862 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16863 elif test -x /usr/sbin/sysctl; then
16864 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16866 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
16868 # And add a safety zone
16869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16874 # We know the value 262144 and hardcode it with a safety zone (like BSD)
16875 lt_cv_sys_max_cmd_len=196608
16879 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16880 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16881 # nice to cause kernel panics so lets avoid the loop below.
16882 # First set a reasonable default.
16883 lt_cv_sys_max_cmd_len=16384
16885 if test -x /sbin/sysconfig; then
16886 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16887 *1*) lt_cv_sys_max_cmd_len=-1 ;;
16892 lt_cv_sys_max_cmd_len=102400
16894 sysv5* | sco5v6* | sysv4.2uw2*)
16895 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
16896 if test -n "$kargmax"; then
16897 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
16899 lt_cv_sys_max_cmd_len=32768
16903 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
16904 if test -n "$lt_cv_sys_max_cmd_len"; then
16905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16908 # Make teststring a little bigger before we do anything with it.
16909 # a 1K string should be a reasonable start.
16910 for i in 1 2 3 4 5 6 7 8 ; do
16911 teststring=$teststring$teststring
16913 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16914 # If test is not a shell built-in, we'll probably end up computing a
16915 # maximum length that is only half of the actual maximum length, but
16917 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
16918 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
16919 test $i != 17 # 1/2 MB should be enough
16922 teststring=$teststring$teststring
16924 # Only check the string length outside the loop.
16925 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
16927 # Add a significant safety factor because C++ compilers can tack on
16928 # massive amounts of additional arguments before passing them to the
16929 # linker. It appears as though 1/2 is a usable value.
16930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16937 if test -n $lt_cv_sys_max_cmd_len ; then
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
16939 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16942 $as_echo "none" >&6; }
16944 max_cmd_len=$lt_cv_sys_max_cmd_len
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
16956 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
16957 # Try some XSI features
16959 ( _lt_dummy="a/b/c"
16960 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
16962 && eval 'test $(( 1 + 1 )) -eq 2 \
16963 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
16966 $as_echo "$xsi_shell" >&6; }
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
16970 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
16972 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
16974 && lt_shell_append=yes
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
16976 $as_echo "$lt_shell_append" >&6; }
16979 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16989 # test EBCDIC or ASCII
16990 case `echo X|tr X '\101'` in
16991 A) # ASCII based system
16992 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16993 lt_SP2NL='tr \040 \012'
16994 lt_NL2SP='tr \015\012 \040\040'
16996 *) # EBCDIC based system
16997 lt_SP2NL='tr \100 \n'
16998 lt_NL2SP='tr \r\n \100\100'
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
17011 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
17012 if ${lt_cv_to_host_file_cmd+:} false; then :
17013 $as_echo_n "(cached) " >&6
17018 *-*-mingw* ) # actually msys
17019 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
17022 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
17024 * ) # otherwise, assume *nix
17025 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
17031 *-*-mingw* ) # actually msys
17032 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
17035 lt_cv_to_host_file_cmd=func_convert_file_noop
17037 * ) # otherwise, assume *nix
17038 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
17042 * ) # unhandled hosts (and "normal" native builds)
17043 lt_cv_to_host_file_cmd=func_convert_file_noop
17049 to_host_file_cmd=$lt_cv_to_host_file_cmd
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
17051 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
17058 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
17059 if ${lt_cv_to_tool_file_cmd+:} false; then :
17060 $as_echo_n "(cached) " >&6
17062 #assume ordinary cross tools, or native build.
17063 lt_cv_to_tool_file_cmd=func_convert_file_noop
17067 *-*-mingw* ) # actually msys
17068 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
17076 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
17078 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
17085 $as_echo_n "checking for $LD option to reload object files... " >&6; }
17086 if ${lt_cv_ld_reload_flag+:} false; then :
17087 $as_echo_n "(cached) " >&6
17089 lt_cv_ld_reload_flag='-r'
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
17092 $as_echo "$lt_cv_ld_reload_flag" >&6; }
17093 reload_flag=$lt_cv_ld_reload_flag
17094 case $reload_flag in
17096 *) reload_flag=" $reload_flag" ;;
17098 reload_cmds='$LD$reload_flag -o $output$reload_objs'
17100 cygwin* | mingw* | pw32* | cegcc*)
17101 if test "$GCC" != yes; then
17106 if test "$GCC" = yes; then
17107 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
17109 reload_cmds='$LD$reload_flag -o $output$reload_objs'
17122 if test -n "$ac_tool_prefix"; then
17123 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
17124 set dummy ${ac_tool_prefix}objdump; ac_word=$2
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17126 $as_echo_n "checking for $ac_word... " >&6; }
17127 if ${ac_cv_prog_OBJDUMP+:} false; then :
17128 $as_echo_n "(cached) " >&6
17130 if test -n "$OBJDUMP"; then
17131 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
17133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17134 for as_dir in $PATH
17137 test -z "$as_dir" && as_dir=.
17138 for ac_exec_ext in '' $ac_executable_extensions; do
17139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17140 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
17141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17150 OBJDUMP=$ac_cv_prog_OBJDUMP
17151 if test -n "$OBJDUMP"; then
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
17153 $as_echo "$OBJDUMP" >&6; }
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17156 $as_echo "no" >&6; }
17161 if test -z "$ac_cv_prog_OBJDUMP"; then
17162 ac_ct_OBJDUMP=$OBJDUMP
17163 # Extract the first word of "objdump", so it can be a program name with args.
17164 set dummy objdump; ac_word=$2
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17166 $as_echo_n "checking for $ac_word... " >&6; }
17167 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
17168 $as_echo_n "(cached) " >&6
17170 if test -n "$ac_ct_OBJDUMP"; then
17171 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
17173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17174 for as_dir in $PATH
17177 test -z "$as_dir" && as_dir=.
17178 for ac_exec_ext in '' $ac_executable_extensions; do
17179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17180 ac_cv_prog_ac_ct_OBJDUMP="objdump"
17181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17190 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
17191 if test -n "$ac_ct_OBJDUMP"; then
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
17193 $as_echo "$ac_ct_OBJDUMP" >&6; }
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17196 $as_echo "no" >&6; }
17199 if test "x$ac_ct_OBJDUMP" = x; then
17202 case $cross_compiling:$ac_tool_warned in
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17206 ac_tool_warned=yes ;;
17208 OBJDUMP=$ac_ct_OBJDUMP
17211 OBJDUMP="$ac_cv_prog_OBJDUMP"
17214 test -z "$OBJDUMP" && OBJDUMP=objdump
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
17225 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
17226 if ${lt_cv_deplibs_check_method+:} false; then :
17227 $as_echo_n "(cached) " >&6
17229 lt_cv_file_magic_cmd='$MAGIC_CMD'
17230 lt_cv_file_magic_test_file=
17231 lt_cv_deplibs_check_method='unknown'
17232 # Need to set the preceding variable on all platforms that support
17233 # interlibrary dependencies.
17234 # 'none' -- dependencies not supported.
17235 # `unknown' -- same as none, but documents that we really don't know.
17236 # 'pass_all' -- all dependencies passed with no checks.
17237 # 'test_compile' -- check by making test program.
17238 # 'file_magic [[regex]]' -- check by looking for files in library path
17239 # which responds to the $file_magic_cmd with a given extended regex.
17240 # If you have `file' or equivalent on your system and you're not sure
17241 # whether `pass_all' will *always* work, you probably want this one.
17245 lt_cv_deplibs_check_method=pass_all
17249 lt_cv_deplibs_check_method=pass_all
17253 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
17254 lt_cv_file_magic_cmd='/usr/bin/file -L'
17255 lt_cv_file_magic_test_file=/shlib/libc.so
17259 # func_win32_libid is a shell function defined in ltmain.sh
17260 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
17261 lt_cv_file_magic_cmd='func_win32_libid'
17265 # Base MSYS/MinGW do not provide the 'file' command needed by
17266 # func_win32_libid shell function, so use a weaker test based on 'objdump',
17267 # unless we find 'file', for example because we are cross-compiling.
17268 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
17269 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
17270 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
17271 lt_cv_file_magic_cmd='func_win32_libid'
17273 # Keep this pattern in sync with the one in func_win32_libid.
17274 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
17275 lt_cv_file_magic_cmd='$OBJDUMP -f'
17280 # use the weaker test based on 'objdump'. See mingw*.
17281 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
17282 lt_cv_file_magic_cmd='$OBJDUMP -f'
17285 darwin* | rhapsody*)
17286 lt_cv_deplibs_check_method=pass_all
17289 freebsd* | dragonfly*)
17290 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
17293 # Not sure whether the presence of OpenBSD here was a mistake.
17294 # Let's accept both of them until this is cleared up.
17295 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
17296 lt_cv_file_magic_cmd=/usr/bin/file
17297 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
17301 lt_cv_deplibs_check_method=pass_all
17306 lt_cv_deplibs_check_method=pass_all
17310 lt_cv_deplibs_check_method=pass_all
17313 hpux10.20* | hpux11*)
17314 lt_cv_file_magic_cmd=/usr/bin/file
17317 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
17318 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
17321 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]'
17322 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
17325 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
17326 lt_cv_file_magic_test_file=/usr/lib/libc.sl
17332 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
17333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
17336 irix5* | irix6* | nonstopux*)
17338 *-32|*"-32 ") libmagic=32-bit;;
17339 *-n32|*"-n32 ") libmagic=N32;;
17340 *-64|*"-64 ") libmagic=64-bit;;
17341 *) libmagic=never-match;;
17343 lt_cv_deplibs_check_method=pass_all
17346 # This must be Linux ELF.
17347 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17348 lt_cv_deplibs_check_method=pass_all
17352 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
17353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
17355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
17360 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
17361 lt_cv_file_magic_cmd=/usr/bin/file
17362 lt_cv_file_magic_test_file=/usr/lib/libnls.so
17366 lt_cv_deplibs_check_method=pass_all
17370 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
17373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
17377 osf3* | osf4* | osf5*)
17378 lt_cv_deplibs_check_method=pass_all
17382 lt_cv_deplibs_check_method=pass_all
17386 lt_cv_deplibs_check_method=pass_all
17389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17390 lt_cv_deplibs_check_method=pass_all
17394 case $host_vendor in
17396 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]'
17397 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
17400 lt_cv_deplibs_check_method=pass_all
17403 lt_cv_file_magic_cmd='/bin/file'
17404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
17407 lt_cv_file_magic_cmd='/bin/file'
17408 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
17409 lt_cv_file_magic_test_file=/lib/libc.so
17412 lt_cv_deplibs_check_method=pass_all
17415 lt_cv_deplibs_check_method=pass_all
17421 lt_cv_deplibs_check_method=pass_all
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
17427 $as_echo "$lt_cv_deplibs_check_method" >&6; }
17431 if test "$build" = "$host"; then
17434 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
17435 want_nocaseglob=yes
17437 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
17443 file_magic_cmd=$lt_cv_file_magic_cmd
17444 deplibs_check_method=$lt_cv_deplibs_check_method
17445 test -z "$deplibs_check_method" && deplibs_check_method=unknown
17468 if test -n "$ac_tool_prefix"; then
17469 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
17470 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17472 $as_echo_n "checking for $ac_word... " >&6; }
17473 if ${ac_cv_prog_DLLTOOL+:} false; then :
17474 $as_echo_n "(cached) " >&6
17476 if test -n "$DLLTOOL"; then
17477 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17480 for as_dir in $PATH
17483 test -z "$as_dir" && as_dir=.
17484 for ac_exec_ext in '' $ac_executable_extensions; do
17485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17486 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
17487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17496 DLLTOOL=$ac_cv_prog_DLLTOOL
17497 if test -n "$DLLTOOL"; then
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
17499 $as_echo "$DLLTOOL" >&6; }
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17502 $as_echo "no" >&6; }
17507 if test -z "$ac_cv_prog_DLLTOOL"; then
17508 ac_ct_DLLTOOL=$DLLTOOL
17509 # Extract the first word of "dlltool", so it can be a program name with args.
17510 set dummy dlltool; ac_word=$2
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17512 $as_echo_n "checking for $ac_word... " >&6; }
17513 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
17514 $as_echo_n "(cached) " >&6
17516 if test -n "$ac_ct_DLLTOOL"; then
17517 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
17519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17520 for as_dir in $PATH
17523 test -z "$as_dir" && as_dir=.
17524 for ac_exec_ext in '' $ac_executable_extensions; do
17525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17526 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
17527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17536 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
17537 if test -n "$ac_ct_DLLTOOL"; then
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
17539 $as_echo "$ac_ct_DLLTOOL" >&6; }
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17542 $as_echo "no" >&6; }
17545 if test "x$ac_ct_DLLTOOL" = x; then
17548 case $cross_compiling:$ac_tool_warned in
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17552 ac_tool_warned=yes ;;
17554 DLLTOOL=$ac_ct_DLLTOOL
17557 DLLTOOL="$ac_cv_prog_DLLTOOL"
17560 test -z "$DLLTOOL" && DLLTOOL=dlltool
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
17572 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
17573 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
17574 $as_echo_n "(cached) " >&6
17576 lt_cv_sharedlib_from_linklib_cmd='unknown'
17579 cygwin* | mingw* | pw32* | cegcc*)
17580 # two different shell functions defined in ltmain.sh
17581 # decide which to use based on capabilities of $DLLTOOL
17582 case `$DLLTOOL --help 2>&1` in
17583 *--identify-strict*)
17584 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
17587 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
17592 # fallback: assume linklib IS sharedlib
17593 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
17599 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
17600 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
17601 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
17609 if test -n "$ac_tool_prefix"; then
17612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17613 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17615 $as_echo_n "checking for $ac_word... " >&6; }
17616 if ${ac_cv_prog_AR+:} false; then :
17617 $as_echo_n "(cached) " >&6
17619 if test -n "$AR"; then
17620 ac_cv_prog_AR="$AR" # Let the user override the test.
17622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17623 for as_dir in $PATH
17626 test -z "$as_dir" && as_dir=.
17627 for ac_exec_ext in '' $ac_executable_extensions; do
17628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17629 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
17630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17640 if test -n "$AR"; then
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
17642 $as_echo "$AR" >&6; }
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17645 $as_echo "no" >&6; }
17649 test -n "$AR" && break
17652 if test -z "$AR"; then
17656 # Extract the first word of "$ac_prog", so it can be a program name with args.
17657 set dummy $ac_prog; ac_word=$2
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17659 $as_echo_n "checking for $ac_word... " >&6; }
17660 if ${ac_cv_prog_ac_ct_AR+:} false; then :
17661 $as_echo_n "(cached) " >&6
17663 if test -n "$ac_ct_AR"; then
17664 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17667 for as_dir in $PATH
17670 test -z "$as_dir" && as_dir=.
17671 for ac_exec_ext in '' $ac_executable_extensions; do
17672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17673 ac_cv_prog_ac_ct_AR="$ac_prog"
17674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17683 ac_ct_AR=$ac_cv_prog_ac_ct_AR
17684 if test -n "$ac_ct_AR"; then
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
17686 $as_echo "$ac_ct_AR" >&6; }
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17689 $as_echo "no" >&6; }
17693 test -n "$ac_ct_AR" && break
17696 if test "x$ac_ct_AR" = x; then
17699 case $cross_compiling:$ac_tool_warned in
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17703 ac_tool_warned=yes ;;
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
17723 $as_echo_n "checking for archiver @FILE support... " >&6; }
17724 if ${lt_cv_ar_at_file+:} false; then :
17725 $as_echo_n "(cached) " >&6
17727 lt_cv_ar_at_file=no
17728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17729 /* end confdefs.h. */
17739 if ac_fn_c_try_compile "$LINENO"; then :
17740 echo conftest.$ac_objext > conftest.lst
17741 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
17742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
17743 (eval $lt_ar_try) 2>&5
17745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17746 test $ac_status = 0; }
17747 if test "$ac_status" -eq 0; then
17748 # Ensure the archiver fails upon bogus file names.
17749 rm -f conftest.$ac_objext libconftest.a
17750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
17751 (eval $lt_ar_try) 2>&5
17753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17754 test $ac_status = 0; }
17755 if test "$ac_status" -ne 0; then
17759 rm -f conftest.* libconftest.a
17762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
17766 $as_echo "$lt_cv_ar_at_file" >&6; }
17768 if test "x$lt_cv_ar_at_file" = xno; then
17769 archiver_list_spec=
17771 archiver_list_spec=$lt_cv_ar_at_file
17780 if test -n "$ac_tool_prefix"; then
17781 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
17782 set dummy ${ac_tool_prefix}strip; ac_word=$2
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17784 $as_echo_n "checking for $ac_word... " >&6; }
17785 if ${ac_cv_prog_STRIP+:} false; then :
17786 $as_echo_n "(cached) " >&6
17788 if test -n "$STRIP"; then
17789 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
17791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17792 for as_dir in $PATH
17795 test -z "$as_dir" && as_dir=.
17796 for ac_exec_ext in '' $ac_executable_extensions; do
17797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17798 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
17799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17808 STRIP=$ac_cv_prog_STRIP
17809 if test -n "$STRIP"; then
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
17811 $as_echo "$STRIP" >&6; }
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17814 $as_echo "no" >&6; }
17819 if test -z "$ac_cv_prog_STRIP"; then
17821 # Extract the first word of "strip", so it can be a program name with args.
17822 set dummy strip; ac_word=$2
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17824 $as_echo_n "checking for $ac_word... " >&6; }
17825 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
17826 $as_echo_n "(cached) " >&6
17828 if test -n "$ac_ct_STRIP"; then
17829 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
17831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17832 for as_dir in $PATH
17835 test -z "$as_dir" && as_dir=.
17836 for ac_exec_ext in '' $ac_executable_extensions; do
17837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17838 ac_cv_prog_ac_ct_STRIP="strip"
17839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17848 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
17849 if test -n "$ac_ct_STRIP"; then
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
17851 $as_echo "$ac_ct_STRIP" >&6; }
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17854 $as_echo "no" >&6; }
17857 if test "x$ac_ct_STRIP" = x; then
17860 case $cross_compiling:$ac_tool_warned in
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17864 ac_tool_warned=yes ;;
17869 STRIP="$ac_cv_prog_STRIP"
17872 test -z "$STRIP" && STRIP=:
17879 if test -n "$ac_tool_prefix"; then
17880 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17881 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17883 $as_echo_n "checking for $ac_word... " >&6; }
17884 if ${ac_cv_prog_RANLIB+:} false; then :
17885 $as_echo_n "(cached) " >&6
17887 if test -n "$RANLIB"; then
17888 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17891 for as_dir in $PATH
17894 test -z "$as_dir" && as_dir=.
17895 for ac_exec_ext in '' $ac_executable_extensions; do
17896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17897 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17907 RANLIB=$ac_cv_prog_RANLIB
17908 if test -n "$RANLIB"; then
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17910 $as_echo "$RANLIB" >&6; }
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17913 $as_echo "no" >&6; }
17918 if test -z "$ac_cv_prog_RANLIB"; then
17919 ac_ct_RANLIB=$RANLIB
17920 # Extract the first word of "ranlib", so it can be a program name with args.
17921 set dummy ranlib; ac_word=$2
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17923 $as_echo_n "checking for $ac_word... " >&6; }
17924 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
17925 $as_echo_n "(cached) " >&6
17927 if test -n "$ac_ct_RANLIB"; then
17928 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17931 for as_dir in $PATH
17934 test -z "$as_dir" && as_dir=.
17935 for ac_exec_ext in '' $ac_executable_extensions; do
17936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17937 ac_cv_prog_ac_ct_RANLIB="ranlib"
17938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17947 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17948 if test -n "$ac_ct_RANLIB"; then
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17950 $as_echo "$ac_ct_RANLIB" >&6; }
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17953 $as_echo "no" >&6; }
17956 if test "x$ac_ct_RANLIB" = x; then
17959 case $cross_compiling:$ac_tool_warned in
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17963 ac_tool_warned=yes ;;
17965 RANLIB=$ac_ct_RANLIB
17968 RANLIB="$ac_cv_prog_RANLIB"
17971 test -z "$RANLIB" && RANLIB=:
17978 # Determine commands to create old-style static archives.
17979 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
17980 old_postinstall_cmds='chmod 644 $oldlib'
17981 old_postuninstall_cmds=
17983 if test -n "$RANLIB"; then
17986 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
17989 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
17992 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
17997 lock_old_archive_extraction=yes ;;
17999 lock_old_archive_extraction=no ;;
18040 # If no C compiler was specified, use CC.
18043 # If no C compiler flags were specified, use CFLAGS.
18044 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18046 # Allow CC to be a program name with arguments.
18050 # Check for command to grab the raw symbol name followed by C symbol from nm.
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
18052 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
18053 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
18054 $as_echo_n "(cached) " >&6
18057 # These are sane defaults that work on at least a few old systems.
18058 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
18060 # Character class describing NM global symbol codes.
18061 symcode='[BCDEGRST]'
18063 # Regexp to match symbols that can be accessed directly from C.
18064 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
18066 # Define system-specific variables.
18071 cygwin* | mingw* | pw32* | cegcc*)
18072 symcode='[ABCDGISTW]'
18075 if test "$host_cpu" = ia64; then
18076 symcode='[ABCDEGRST]'
18079 irix* | nonstopux*)
18080 symcode='[BCDEGRST]'
18083 symcode='[BCDEGQRST]'
18094 sysv5* | sco5v6* | unixware* | OpenUNIX*)
18102 # If we're using GNU nm, then use its standard symbol codes.
18103 case `$NM -V 2>&1` in
18104 *GNU* | *'with BFD'*)
18105 symcode='[ABCDGIRSTW]' ;;
18108 # Transform an extracted symbol line into a proper C declaration.
18109 # Some systems (esp. on ia64) link data and code symbols differently,
18110 # so use this general approach.
18111 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
18113 # Transform an extracted symbol line into symbol name and symbol address
18114 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
18115 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
18117 # Handle CRLF in mingw tool chain
18121 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
18125 # Try without a prefix underscore, then with it.
18126 for ac_symprfx in "" "_"; do
18128 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
18129 symxfrm="\\1 $ac_symprfx\\2 \\2"
18131 # Write the raw and C identifiers.
18132 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
18133 # Fake it for dumpbin and say T for any non-static function
18134 # and D for any global variable.
18135 # Also find C++ and __fastcall symbols from MSVC++,
18136 # which start with @ or ?.
18137 lt_cv_sys_global_symbol_pipe="$AWK '"\
18138 " {last_section=section; section=\$ 3};"\
18139 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
18140 " \$ 0!~/External *\|/{next};"\
18141 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
18142 " {if(hide[section]) next};"\
18143 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
18144 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
18145 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
18146 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
18147 " ' prfx=^$ac_symprfx"
18149 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
18151 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
18153 # Check to see that the pipe works correctly.
18157 cat > conftest.$ac_ext <<_LT_EOF
18162 void nm_test_func(void);
18163 void nm_test_func(void){}
18167 int main(){nm_test_var='a';nm_test_func();return(0);}
18170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18171 (eval $ac_compile) 2>&5
18173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18174 test $ac_status = 0; }; then
18175 # Now try to grab the symbols.
18177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
18178 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
18180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18181 test $ac_status = 0; } && test -s "$nlist"; then
18182 # Try sorting and uniquifying the output.
18183 if sort "$nlist" | uniq > "$nlist"T; then
18184 mv -f "$nlist"T "$nlist"
18189 # Make sure that we snagged all the symbols we need.
18190 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
18191 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
18192 cat <<_LT_EOF > conftest.$ac_ext
18193 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
18194 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
18195 /* DATA imports from DLLs on WIN32 con't be const, because runtime
18196 relocations are performed -- see ld's documentation on pseudo-relocs. */
18197 # define LT_DLSYM_CONST
18198 #elif defined(__osf__)
18199 /* This system does not cope well with relocations in const data. */
18200 # define LT_DLSYM_CONST
18202 # define LT_DLSYM_CONST const
18210 # Now generate the symbol file.
18211 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
18213 cat <<_LT_EOF >> conftest.$ac_ext
18215 /* The mapping between symbol names and symbols. */
18216 LT_DLSYM_CONST struct {
18220 lt__PROGRAM__LTX_preloaded_symbols[] =
18222 { "@PROGRAM@", (void *) 0 },
18224 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
18225 cat <<\_LT_EOF >> conftest.$ac_ext
18229 /* This works around a problem in FreeBSD linker */
18230 #ifdef FREEBSD_WORKAROUND
18231 static const void *lt_preloaded_setup() {
18232 return lt__PROGRAM__LTX_preloaded_symbols;
18240 # Now try linking the two files.
18241 mv conftest.$ac_objext conftstm.$ac_objext
18242 lt_globsym_save_LIBS=$LIBS
18243 lt_globsym_save_CFLAGS=$CFLAGS
18244 LIBS="conftstm.$ac_objext"
18245 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
18246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18247 (eval $ac_link) 2>&5
18249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18250 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
18253 LIBS=$lt_globsym_save_LIBS
18254 CFLAGS=$lt_globsym_save_CFLAGS
18256 echo "cannot find nm_test_func in $nlist" >&5
18259 echo "cannot find nm_test_var in $nlist" >&5
18262 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
18265 echo "$progname: failed program was:" >&5
18266 cat conftest.$ac_ext >&5
18268 rm -rf conftest* conftst*
18270 # Do not use the global_symbol_pipe unless it works.
18271 if test "$pipe_works" = yes; then
18274 lt_cv_sys_global_symbol_pipe=
18280 if test -z "$lt_cv_sys_global_symbol_pipe"; then
18281 lt_cv_sys_global_symbol_to_cdecl=
18283 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
18285 $as_echo "failed" >&6; }
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18288 $as_echo "ok" >&6; }
18291 # Response file support.
18292 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
18293 nm_file_list_spec='@'
18294 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
18295 nm_file_list_spec='@'
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
18325 $as_echo_n "checking for sysroot... " >&6; }
18327 # Check whether --with-sysroot was given.
18328 if test "${with_sysroot+set}" = set; then :
18329 withval=$with_sysroot;
18336 case ${with_sysroot} in #(
18338 if test "$GCC" = yes; then
18339 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
18343 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
18349 $as_echo "${with_sysroot}" >&6; }
18350 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
18355 $as_echo "${lt_sysroot:-no}" >&6; }
18361 # Check whether --enable-libtool-lock was given.
18362 if test "${enable_libtool_lock+set}" = set; then :
18363 enableval=$enable_libtool_lock;
18366 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
18368 # Some flags need to be propagated to the compiler or linker for good
18372 # Find out which ABI we are using.
18373 echo 'int i;' > conftest.$ac_ext
18374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18375 (eval $ac_compile) 2>&5
18377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18378 test $ac_status = 0; }; then
18379 case `/usr/bin/file conftest.$ac_objext` in
18381 HPUX_IA64_MODE="32"
18384 HPUX_IA64_MODE="64"
18391 # Find out which ABI we are using.
18392 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
18393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18394 (eval $ac_compile) 2>&5
18396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18397 test $ac_status = 0; }; then
18398 if test "$lt_cv_prog_gnu_ld" = yes; then
18399 case `/usr/bin/file conftest.$ac_objext` in
18401 LD="${LD-ld} -melf32bsmip"
18404 LD="${LD-ld} -melf32bmipn32"
18407 LD="${LD-ld} -melf64bmip"
18411 case `/usr/bin/file conftest.$ac_objext` in
18427 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
18428 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
18429 # Find out which ABI we are using.
18430 echo 'int i;' > conftest.$ac_ext
18431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18432 (eval $ac_compile) 2>&5
18434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18435 test $ac_status = 0; }; then
18436 case `/usr/bin/file conftest.o` in
18439 x86_64-*kfreebsd*-gnu)
18440 LD="${LD-ld} -m elf_i386_fbsd"
18443 LD="${LD-ld} -m elf_i386"
18445 ppc64-*linux*|powerpc64-*linux*)
18446 LD="${LD-ld} -m elf32ppclinux"
18449 LD="${LD-ld} -m elf_s390"
18452 LD="${LD-ld} -m elf32_sparc"
18458 x86_64-*kfreebsd*-gnu)
18459 LD="${LD-ld} -m elf_x86_64_fbsd"
18462 LD="${LD-ld} -m elf_x86_64"
18464 ppc*-*linux*|powerpc*-*linux*)
18465 LD="${LD-ld} -m elf64ppc"
18467 s390*-*linux*|s390*-*tpf*)
18468 LD="${LD-ld} -m elf64_s390"
18471 LD="${LD-ld} -m elf64_sparc"
18481 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
18482 SAVE_CFLAGS="$CFLAGS"
18483 CFLAGS="$CFLAGS -belf"
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
18485 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
18486 if ${lt_cv_cc_needs_belf+:} false; then :
18487 $as_echo_n "(cached) " >&6
18490 ac_cpp='$CPP $CPPFLAGS'
18491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496 /* end confdefs.h. */
18506 if ac_fn_c_try_link "$LINENO"; then :
18507 lt_cv_cc_needs_belf=yes
18509 lt_cv_cc_needs_belf=no
18511 rm -f core conftest.err conftest.$ac_objext \
18512 conftest$ac_exeext conftest.$ac_ext
18514 ac_cpp='$CPP $CPPFLAGS'
18515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
18521 $as_echo "$lt_cv_cc_needs_belf" >&6; }
18522 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
18523 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
18524 CFLAGS="$SAVE_CFLAGS"
18528 # Find out which ABI we are using.
18529 echo 'int i;' > conftest.$ac_ext
18530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18531 (eval $ac_compile) 2>&5
18533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18534 test $ac_status = 0; }; then
18535 case `/usr/bin/file conftest.o` in
18537 case $lt_cv_prog_gnu_ld in
18538 yes*) LD="${LD-ld} -m elf64_sparc" ;;
18540 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
18552 need_locks="$enable_libtool_lock"
18554 if test -n "$ac_tool_prefix"; then
18555 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
18556 set dummy ${ac_tool_prefix}mt; ac_word=$2
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18558 $as_echo_n "checking for $ac_word... " >&6; }
18559 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
18560 $as_echo_n "(cached) " >&6
18562 if test -n "$MANIFEST_TOOL"; then
18563 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
18565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18566 for as_dir in $PATH
18569 test -z "$as_dir" && as_dir=.
18570 for ac_exec_ext in '' $ac_executable_extensions; do
18571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18572 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
18573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18582 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
18583 if test -n "$MANIFEST_TOOL"; then
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
18585 $as_echo "$MANIFEST_TOOL" >&6; }
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18588 $as_echo "no" >&6; }
18593 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
18594 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
18595 # Extract the first word of "mt", so it can be a program name with args.
18596 set dummy mt; ac_word=$2
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18598 $as_echo_n "checking for $ac_word... " >&6; }
18599 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
18600 $as_echo_n "(cached) " >&6
18602 if test -n "$ac_ct_MANIFEST_TOOL"; then
18603 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
18605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18606 for as_dir in $PATH
18609 test -z "$as_dir" && as_dir=.
18610 for ac_exec_ext in '' $ac_executable_extensions; do
18611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18612 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
18613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18622 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
18623 if test -n "$ac_ct_MANIFEST_TOOL"; then
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
18625 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18628 $as_echo "no" >&6; }
18631 if test "x$ac_ct_MANIFEST_TOOL" = x; then
18634 case $cross_compiling:$ac_tool_warned in
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18638 ac_tool_warned=yes ;;
18640 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
18643 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
18646 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
18648 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
18649 if ${lt_cv_path_mainfest_tool+:} false; then :
18650 $as_echo_n "(cached) " >&6
18652 lt_cv_path_mainfest_tool=no
18653 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
18654 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
18655 cat conftest.err >&5
18656 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
18657 lt_cv_path_mainfest_tool=yes
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
18662 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
18663 if test "x$lt_cv_path_mainfest_tool" != xyes; then
18673 rhapsody* | darwin*)
18674 if test -n "$ac_tool_prefix"; then
18675 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
18676 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18678 $as_echo_n "checking for $ac_word... " >&6; }
18679 if ${ac_cv_prog_DSYMUTIL+:} false; then :
18680 $as_echo_n "(cached) " >&6
18682 if test -n "$DSYMUTIL"; then
18683 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
18685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18686 for as_dir in $PATH
18689 test -z "$as_dir" && as_dir=.
18690 for ac_exec_ext in '' $ac_executable_extensions; do
18691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18692 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
18693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18702 DSYMUTIL=$ac_cv_prog_DSYMUTIL
18703 if test -n "$DSYMUTIL"; then
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18705 $as_echo "$DSYMUTIL" >&6; }
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18708 $as_echo "no" >&6; }
18713 if test -z "$ac_cv_prog_DSYMUTIL"; then
18714 ac_ct_DSYMUTIL=$DSYMUTIL
18715 # Extract the first word of "dsymutil", so it can be a program name with args.
18716 set dummy dsymutil; ac_word=$2
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18718 $as_echo_n "checking for $ac_word... " >&6; }
18719 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
18720 $as_echo_n "(cached) " >&6
18722 if test -n "$ac_ct_DSYMUTIL"; then
18723 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
18725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18726 for as_dir in $PATH
18729 test -z "$as_dir" && as_dir=.
18730 for ac_exec_ext in '' $ac_executable_extensions; do
18731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18732 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
18733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18742 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
18743 if test -n "$ac_ct_DSYMUTIL"; then
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
18745 $as_echo "$ac_ct_DSYMUTIL" >&6; }
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18748 $as_echo "no" >&6; }
18751 if test "x$ac_ct_DSYMUTIL" = x; then
18754 case $cross_compiling:$ac_tool_warned in
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18758 ac_tool_warned=yes ;;
18760 DSYMUTIL=$ac_ct_DSYMUTIL
18763 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
18766 if test -n "$ac_tool_prefix"; then
18767 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
18768 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18770 $as_echo_n "checking for $ac_word... " >&6; }
18771 if ${ac_cv_prog_NMEDIT+:} false; then :
18772 $as_echo_n "(cached) " >&6
18774 if test -n "$NMEDIT"; then
18775 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
18777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18778 for as_dir in $PATH
18781 test -z "$as_dir" && as_dir=.
18782 for ac_exec_ext in '' $ac_executable_extensions; do
18783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18784 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
18785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18794 NMEDIT=$ac_cv_prog_NMEDIT
18795 if test -n "$NMEDIT"; then
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
18797 $as_echo "$NMEDIT" >&6; }
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18800 $as_echo "no" >&6; }
18805 if test -z "$ac_cv_prog_NMEDIT"; then
18806 ac_ct_NMEDIT=$NMEDIT
18807 # Extract the first word of "nmedit", so it can be a program name with args.
18808 set dummy nmedit; ac_word=$2
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18810 $as_echo_n "checking for $ac_word... " >&6; }
18811 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
18812 $as_echo_n "(cached) " >&6
18814 if test -n "$ac_ct_NMEDIT"; then
18815 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
18817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18818 for as_dir in $PATH
18821 test -z "$as_dir" && as_dir=.
18822 for ac_exec_ext in '' $ac_executable_extensions; do
18823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18824 ac_cv_prog_ac_ct_NMEDIT="nmedit"
18825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18834 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
18835 if test -n "$ac_ct_NMEDIT"; then
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
18837 $as_echo "$ac_ct_NMEDIT" >&6; }
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18840 $as_echo "no" >&6; }
18843 if test "x$ac_ct_NMEDIT" = x; then
18846 case $cross_compiling:$ac_tool_warned in
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18850 ac_tool_warned=yes ;;
18852 NMEDIT=$ac_ct_NMEDIT
18855 NMEDIT="$ac_cv_prog_NMEDIT"
18858 if test -n "$ac_tool_prefix"; then
18859 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
18860 set dummy ${ac_tool_prefix}lipo; ac_word=$2
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18862 $as_echo_n "checking for $ac_word... " >&6; }
18863 if ${ac_cv_prog_LIPO+:} false; then :
18864 $as_echo_n "(cached) " >&6
18866 if test -n "$LIPO"; then
18867 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
18869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18870 for as_dir in $PATH
18873 test -z "$as_dir" && as_dir=.
18874 for ac_exec_ext in '' $ac_executable_extensions; do
18875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18876 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
18877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18886 LIPO=$ac_cv_prog_LIPO
18887 if test -n "$LIPO"; then
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
18889 $as_echo "$LIPO" >&6; }
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18892 $as_echo "no" >&6; }
18897 if test -z "$ac_cv_prog_LIPO"; then
18899 # Extract the first word of "lipo", so it can be a program name with args.
18900 set dummy lipo; ac_word=$2
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18902 $as_echo_n "checking for $ac_word... " >&6; }
18903 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
18904 $as_echo_n "(cached) " >&6
18906 if test -n "$ac_ct_LIPO"; then
18907 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
18909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18910 for as_dir in $PATH
18913 test -z "$as_dir" && as_dir=.
18914 for ac_exec_ext in '' $ac_executable_extensions; do
18915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18916 ac_cv_prog_ac_ct_LIPO="lipo"
18917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18926 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
18927 if test -n "$ac_ct_LIPO"; then
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
18929 $as_echo "$ac_ct_LIPO" >&6; }
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18932 $as_echo "no" >&6; }
18935 if test "x$ac_ct_LIPO" = x; then
18938 case $cross_compiling:$ac_tool_warned in
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18942 ac_tool_warned=yes ;;
18947 LIPO="$ac_cv_prog_LIPO"
18950 if test -n "$ac_tool_prefix"; then
18951 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
18952 set dummy ${ac_tool_prefix}otool; ac_word=$2
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18954 $as_echo_n "checking for $ac_word... " >&6; }
18955 if ${ac_cv_prog_OTOOL+:} false; then :
18956 $as_echo_n "(cached) " >&6
18958 if test -n "$OTOOL"; then
18959 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
18961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18962 for as_dir in $PATH
18965 test -z "$as_dir" && as_dir=.
18966 for ac_exec_ext in '' $ac_executable_extensions; do
18967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18968 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
18969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18978 OTOOL=$ac_cv_prog_OTOOL
18979 if test -n "$OTOOL"; then
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
18981 $as_echo "$OTOOL" >&6; }
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18984 $as_echo "no" >&6; }
18989 if test -z "$ac_cv_prog_OTOOL"; then
18991 # Extract the first word of "otool", so it can be a program name with args.
18992 set dummy otool; ac_word=$2
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18994 $as_echo_n "checking for $ac_word... " >&6; }
18995 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
18996 $as_echo_n "(cached) " >&6
18998 if test -n "$ac_ct_OTOOL"; then
18999 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
19001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19002 for as_dir in $PATH
19005 test -z "$as_dir" && as_dir=.
19006 for ac_exec_ext in '' $ac_executable_extensions; do
19007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19008 ac_cv_prog_ac_ct_OTOOL="otool"
19009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19018 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
19019 if test -n "$ac_ct_OTOOL"; then
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
19021 $as_echo "$ac_ct_OTOOL" >&6; }
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19024 $as_echo "no" >&6; }
19027 if test "x$ac_ct_OTOOL" = x; then
19030 case $cross_compiling:$ac_tool_warned in
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19034 ac_tool_warned=yes ;;
19039 OTOOL="$ac_cv_prog_OTOOL"
19042 if test -n "$ac_tool_prefix"; then
19043 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
19044 set dummy ${ac_tool_prefix}otool64; ac_word=$2
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19046 $as_echo_n "checking for $ac_word... " >&6; }
19047 if ${ac_cv_prog_OTOOL64+:} false; then :
19048 $as_echo_n "(cached) " >&6
19050 if test -n "$OTOOL64"; then
19051 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
19053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19054 for as_dir in $PATH
19057 test -z "$as_dir" && as_dir=.
19058 for ac_exec_ext in '' $ac_executable_extensions; do
19059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19060 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
19061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19070 OTOOL64=$ac_cv_prog_OTOOL64
19071 if test -n "$OTOOL64"; then
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
19073 $as_echo "$OTOOL64" >&6; }
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19076 $as_echo "no" >&6; }
19081 if test -z "$ac_cv_prog_OTOOL64"; then
19082 ac_ct_OTOOL64=$OTOOL64
19083 # Extract the first word of "otool64", so it can be a program name with args.
19084 set dummy otool64; ac_word=$2
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19086 $as_echo_n "checking for $ac_word... " >&6; }
19087 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
19088 $as_echo_n "(cached) " >&6
19090 if test -n "$ac_ct_OTOOL64"; then
19091 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
19093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19094 for as_dir in $PATH
19097 test -z "$as_dir" && as_dir=.
19098 for ac_exec_ext in '' $ac_executable_extensions; do
19099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19100 ac_cv_prog_ac_ct_OTOOL64="otool64"
19101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19110 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
19111 if test -n "$ac_ct_OTOOL64"; then
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
19113 $as_echo "$ac_ct_OTOOL64" >&6; }
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19116 $as_echo "no" >&6; }
19119 if test "x$ac_ct_OTOOL64" = x; then
19122 case $cross_compiling:$ac_tool_warned in
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19126 ac_tool_warned=yes ;;
19128 OTOOL64=$ac_ct_OTOOL64
19131 OTOOL64="$ac_cv_prog_OTOOL64"
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
19161 $as_echo_n "checking for -single_module linker flag... " >&6; }
19162 if ${lt_cv_apple_cc_single_mod+:} false; then :
19163 $as_echo_n "(cached) " >&6
19165 lt_cv_apple_cc_single_mod=no
19166 if test -z "${LT_MULTI_MODULE}"; then
19167 # By default we will add the -single_module flag. You can override
19168 # by either setting the environment variable LT_MULTI_MODULE
19169 # non-empty at configure time, or by adding -multi_module to the
19171 rm -rf libconftest.dylib*
19172 echo "int foo(void){return 1;}" > conftest.c
19173 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
19174 -dynamiclib -Wl,-single_module conftest.c" >&5
19175 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
19176 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
19178 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
19179 lt_cv_apple_cc_single_mod=yes
19181 cat conftest.err >&5
19183 rm -rf libconftest.dylib*
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
19188 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
19190 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
19191 if ${lt_cv_ld_exported_symbols_list+:} false; then :
19192 $as_echo_n "(cached) " >&6
19194 lt_cv_ld_exported_symbols_list=no
19195 save_LDFLAGS=$LDFLAGS
19196 echo "_main" > conftest.sym
19197 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
19198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19199 /* end confdefs.h. */
19209 if ac_fn_c_try_link "$LINENO"; then :
19210 lt_cv_ld_exported_symbols_list=yes
19212 lt_cv_ld_exported_symbols_list=no
19214 rm -f core conftest.err conftest.$ac_objext \
19215 conftest$ac_exeext conftest.$ac_ext
19216 LDFLAGS="$save_LDFLAGS"
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
19220 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
19222 $as_echo_n "checking for -force_load linker flag... " >&6; }
19223 if ${lt_cv_ld_force_load+:} false; then :
19224 $as_echo_n "(cached) " >&6
19226 lt_cv_ld_force_load=no
19227 cat > conftest.c << _LT_EOF
19228 int forced_loaded() { return 2;}
19230 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
19231 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
19232 echo "$AR cru libconftest.a conftest.o" >&5
19233 $AR cru libconftest.a conftest.o 2>&5
19234 echo "$RANLIB libconftest.a" >&5
19235 $RANLIB libconftest.a 2>&5
19236 cat > conftest.c << _LT_EOF
19237 int main() { return 0;}
19239 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
19240 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
19242 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
19243 lt_cv_ld_force_load=yes
19245 cat conftest.err >&5
19247 rm -f conftest.err libconftest.a conftest conftest.c
19248 rm -rf conftest.dSYM
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
19252 $as_echo "$lt_cv_ld_force_load" >&6; }
19254 rhapsody* | darwin1.[012])
19255 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
19257 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
19258 darwin*) # darwin 5.x on
19259 # if running on 10.5 or later, the deployment target defaults
19260 # to the OS version, if on x86, and 10.4, the deployment
19261 # target defaults to 10.4. Don't you love it?
19262 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
19263 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
19264 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
19266 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
19268 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
19272 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
19273 _lt_dar_single_mod='$single_module'
19275 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
19276 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
19278 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
19280 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
19281 _lt_dsymutil='~$DSYMUTIL $lib || :'
19288 for ac_header in dlfcn.h
19290 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
19292 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
19293 cat >>confdefs.h <<_ACEOF
19294 #define HAVE_DLFCN_H 1
19312 enable_win32_dll=no
19316 # Check whether --enable-static was given.
19317 if test "${enable_static+set}" = set; then :
19318 enableval=$enable_static; p=${PACKAGE-default}
19320 yes) enable_static=yes ;;
19321 no) enable_static=no ;;
19324 # Look at the argument we got. We use all the common list separators.
19325 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
19326 for pkg in $enableval; do
19328 if test "X$pkg" = "X$p"; then
19348 # Check whether --with-pic was given.
19349 if test "${with_pic+set}" = set; then :
19350 withval=$with_pic; pic_mode="$withval"
19356 test -z "$pic_mode" && pic_mode=default
19364 # Check whether --enable-fast-install was given.
19365 if test "${enable_fast_install+set}" = set; then :
19366 enableval=$enable_fast_install; p=${PACKAGE-default}
19368 yes) enable_fast_install=yes ;;
19369 no) enable_fast_install=no ;;
19371 enable_fast_install=no
19372 # Look at the argument we got. We use all the common list separators.
19373 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
19374 for pkg in $enableval; do
19376 if test "X$pkg" = "X$p"; then
19377 enable_fast_install=yes
19384 enable_fast_install=yes
19397 # This can be used to rebuild libtool when needed
19398 LIBTOOL_DEPS="$ltmain"
19400 # Always use our own libtool.
19401 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19428 test -z "$LN_S" && LN_S="ln -s"
19443 if test -n "${ZSH_VERSION+set}" ; then
19444 setopt NO_GLOB_SUBST
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
19448 $as_echo_n "checking for objdir... " >&6; }
19449 if ${lt_cv_objdir+:} false; then :
19450 $as_echo_n "(cached) " >&6
19452 rm -f .libs 2>/dev/null
19453 mkdir .libs 2>/dev/null
19454 if test -d .libs; then
19457 # MS-DOS does not allow filenames that begin with a dot.
19460 rmdir .libs 2>/dev/null
19462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
19463 $as_echo "$lt_cv_objdir" >&6; }
19464 objdir=$lt_cv_objdir
19470 cat >>confdefs.h <<_ACEOF
19471 #define LT_OBJDIR "$lt_cv_objdir/"
19479 # AIX sometimes has problems with the GCC collect2 program. For some
19480 # reason, if we set the COLLECT_NAMES environment variable, the problems
19481 # vanish in a puff of smoke.
19482 if test "X${COLLECT_NAMES+set}" != Xset; then
19484 export COLLECT_NAMES
19489 # Global variables:
19491 can_build_shared=yes
19493 # All known linkers require a `.a' archive for static linking (except MSVC,
19494 # which needs '.lib').
19497 with_gnu_ld="$lt_cv_prog_gnu_ld"
19500 old_CFLAGS="$CFLAGS"
19502 # Set sane defaults for various variables
19503 test -z "$CC" && CC=cc
19504 test -z "$LTCC" && LTCC=$CC
19505 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
19506 test -z "$LD" && LD=ld
19507 test -z "$ac_objext" && ac_objext=o
19509 for cc_temp in $compiler""; do
19511 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19512 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19517 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19520 # Only perform the check for file, if the check method requires it
19521 test -z "$MAGIC_CMD" && MAGIC_CMD=file
19522 case $deplibs_check_method in
19524 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
19526 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
19527 if ${lt_cv_path_MAGIC_CMD+:} false; then :
19528 $as_echo_n "(cached) " >&6
19532 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
19535 lt_save_MAGIC_CMD="$MAGIC_CMD"
19536 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19537 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
19538 for ac_dir in $ac_dummy; do
19540 test -z "$ac_dir" && ac_dir=.
19541 if test -f $ac_dir/${ac_tool_prefix}file; then
19542 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
19543 if test -n "$file_magic_test_file"; then
19544 case $deplibs_check_method in
19546 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
19547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
19548 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
19549 $EGREP "$file_magic_regex" > /dev/null; then
19554 *** Warning: the command libtool uses to detect shared libraries,
19555 *** $file_magic_cmd, produces output that libtool cannot recognize.
19556 *** The result is that libtool may fail to recognize shared libraries
19557 *** as such. This will affect the creation of libtool libraries that
19558 *** depend on shared libraries, but programs linked with such libtool
19559 *** libraries will work regardless of this problem. Nevertheless, you
19560 *** may want to report the problem to your system manager and/or to
19561 *** bug-libtool@gnu.org
19571 MAGIC_CMD="$lt_save_MAGIC_CMD"
19576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
19577 if test -n "$MAGIC_CMD"; then
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
19579 $as_echo "$MAGIC_CMD" >&6; }
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19582 $as_echo "no" >&6; }
19589 if test -z "$lt_cv_path_MAGIC_CMD"; then
19590 if test -n "$ac_tool_prefix"; then
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
19592 $as_echo_n "checking for file... " >&6; }
19593 if ${lt_cv_path_MAGIC_CMD+:} false; then :
19594 $as_echo_n "(cached) " >&6
19598 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
19601 lt_save_MAGIC_CMD="$MAGIC_CMD"
19602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19603 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
19604 for ac_dir in $ac_dummy; do
19606 test -z "$ac_dir" && ac_dir=.
19607 if test -f $ac_dir/file; then
19608 lt_cv_path_MAGIC_CMD="$ac_dir/file"
19609 if test -n "$file_magic_test_file"; then
19610 case $deplibs_check_method in
19612 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
19613 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
19614 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
19615 $EGREP "$file_magic_regex" > /dev/null; then
19620 *** Warning: the command libtool uses to detect shared libraries,
19621 *** $file_magic_cmd, produces output that libtool cannot recognize.
19622 *** The result is that libtool may fail to recognize shared libraries
19623 *** as such. This will affect the creation of libtool libraries that
19624 *** depend on shared libraries, but programs linked with such libtool
19625 *** libraries will work regardless of this problem. Nevertheless, you
19626 *** may want to report the problem to your system manager and/or to
19627 *** bug-libtool@gnu.org
19637 MAGIC_CMD="$lt_save_MAGIC_CMD"
19642 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
19643 if test -n "$MAGIC_CMD"; then
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
19645 $as_echo "$MAGIC_CMD" >&6; }
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19648 $as_echo "no" >&6; }
19661 # Use C for the default configuration in the libtool script
19665 ac_cpp='$CPP $CPPFLAGS'
19666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19671 # Source file extension for C test sources.
19674 # Object file extension for compiled C test sources.
19678 # Code to be used in simple compile tests
19679 lt_simple_compile_test_code="int some_variable = 0;"
19681 # Code to be used in simple link tests
19682 lt_simple_link_test_code='int main(){return(0);}'
19690 # If no C compiler was specified, use CC.
19693 # If no C compiler flags were specified, use CFLAGS.
19694 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19696 # Allow CC to be a program name with arguments.
19699 # Save the default compiler, since it gets overwritten when the other
19700 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
19701 compiler_DEFAULT=$CC
19703 # save warnings/boilerplate of simple test code
19704 ac_outfile=conftest.$ac_objext
19705 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19706 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19707 _lt_compiler_boilerplate=`cat conftest.err`
19710 ac_outfile=conftest.$ac_objext
19711 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19712 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19713 _lt_linker_boilerplate=`cat conftest.err`
19718 ## There is no encapsulation within the following macros, do not change
19719 ## the running order or otherwise move them around unless you know exactly
19720 ## what you are doing...
19721 if test -n "$compiler"; then
19723 lt_prog_compiler_no_builtin_flag=
19725 if test "$GCC" = yes; then
19726 case $cc_basename in
19728 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
19730 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19734 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
19735 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
19736 $as_echo_n "(cached) " >&6
19738 lt_cv_prog_compiler_rtti_exceptions=no
19739 ac_outfile=conftest.$ac_objext
19740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19741 lt_compiler_flag="-fno-rtti -fno-exceptions"
19742 # Insert the option either (1) after the last *FLAGS variable, or
19743 # (2) before a word containing "conftest.", or (3) at the end.
19744 # Note that $ac_compile itself does not contain backslashes and begins
19745 # with a dollar sign (not a hyphen), so the echo should work correctly.
19746 # The option is referenced via a variable to avoid confusing sed.
19747 lt_compile=`echo "$ac_compile" | $SED \
19748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19750 -e 's:$: $lt_compiler_flag:'`
19751 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19752 (eval "$lt_compile" 2>conftest.err)
19754 cat conftest.err >&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 if (exit $ac_status) && test -s "$ac_outfile"; then
19757 # The compiler can only warn and ignore the option if not recognized
19758 # So say no if there are warnings other than the usual output.
19759 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19761 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19762 lt_cv_prog_compiler_rtti_exceptions=yes
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19769 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19771 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19772 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
19784 lt_prog_compiler_wl=
19785 lt_prog_compiler_pic=
19786 lt_prog_compiler_static=
19789 if test "$GCC" = yes; then
19790 lt_prog_compiler_wl='-Wl,'
19791 lt_prog_compiler_static='-static'
19795 # All AIX code is PIC.
19796 if test "$host_cpu" = ia64; then
19797 # AIX 5 now supports IA64 processor
19798 lt_prog_compiler_static='-Bstatic'
19805 # see comment about AmigaOS4 .so support
19806 lt_prog_compiler_pic='-fPIC'
19809 # FIXME: we need at least 68020 code to build shared libraries, but
19810 # adding the `-m68020' flag to GCC prevents building anything better,
19812 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
19817 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19818 # PIC is the default for these OSes.
19821 mingw* | cygwin* | pw32* | os2* | cegcc*)
19822 # This hack is so that the source file can tell whether it is being
19823 # built for inclusion in a dll (and should export symbols for example).
19824 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19825 # (--disable-auto-import) libraries
19826 lt_prog_compiler_pic='-DDLL_EXPORT'
19829 darwin* | rhapsody*)
19830 # PIC is the default on this platform
19831 # Common symbols not allowed in MH_DYLIB files
19832 lt_prog_compiler_pic='-fno-common'
19836 # PIC is the default for Haiku.
19837 # The "-static" flag exists, but is broken.
19838 lt_prog_compiler_static=
19842 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19843 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19844 # sets the default TLS model and affects inlining.
19850 lt_prog_compiler_pic='-fPIC'
19856 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19857 # Instead, we relocate shared libraries at runtime.
19861 # Just because we use GCC doesn't mean we suddenly get shared libraries
19862 # on systems that don't support them.
19863 lt_prog_compiler_can_build_shared=no
19868 # QNX uses GNU C++, but need to define -shared option too, otherwise
19869 # it will coredump.
19870 lt_prog_compiler_pic='-fPIC -shared'
19874 if test -d /usr/nec; then
19875 lt_prog_compiler_pic=-Kconform_pic
19880 lt_prog_compiler_pic='-fPIC'
19884 case $cc_basename in
19885 nvcc*) # Cuda Compiler Driver 2.2
19886 lt_prog_compiler_wl='-Xlinker '
19887 lt_prog_compiler_pic='-Xcompiler -fPIC'
19891 # PORTME Check for flag to pass linker flags through the system compiler.
19894 lt_prog_compiler_wl='-Wl,'
19895 if test "$host_cpu" = ia64; then
19896 # AIX 5 now supports IA64 processor
19897 lt_prog_compiler_static='-Bstatic'
19899 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
19903 mingw* | cygwin* | pw32* | os2* | cegcc*)
19904 # This hack is so that the source file can tell whether it is being
19905 # built for inclusion in a dll (and should export symbols for example).
19906 lt_prog_compiler_pic='-DDLL_EXPORT'
19909 hpux9* | hpux10* | hpux11*)
19910 lt_prog_compiler_wl='-Wl,'
19911 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19912 # not for PA HP-UX.
19918 lt_prog_compiler_pic='+Z'
19921 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19922 lt_prog_compiler_static='${wl}-a ${wl}archive'
19925 irix5* | irix6* | nonstopux*)
19926 lt_prog_compiler_wl='-Wl,'
19927 # PIC (with -KPIC) is the default.
19928 lt_prog_compiler_static='-non_shared'
19931 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19932 case $cc_basename in
19933 # old Intel for x86_64 which still supported -KPIC.
19935 lt_prog_compiler_wl='-Wl,'
19936 lt_prog_compiler_pic='-KPIC'
19937 lt_prog_compiler_static='-static'
19939 # icc used to be incompatible with GCC.
19940 # ICC 10 doesn't accept -KPIC any more.
19942 lt_prog_compiler_wl='-Wl,'
19943 lt_prog_compiler_pic='-fPIC'
19944 lt_prog_compiler_static='-static'
19946 # Lahey Fortran 8.1.
19948 lt_prog_compiler_wl='-Wl,'
19949 lt_prog_compiler_pic='--shared'
19950 lt_prog_compiler_static='--static'
19953 # NAG Fortran compiler
19954 lt_prog_compiler_wl='-Wl,-Wl,,'
19955 lt_prog_compiler_pic='-PIC'
19956 lt_prog_compiler_static='-Bstatic'
19958 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
19959 # Portland Group compilers (*not* the Pentium gcc compiler,
19960 # which looks to be a dead project)
19961 lt_prog_compiler_wl='-Wl,'
19962 lt_prog_compiler_pic='-fpic'
19963 lt_prog_compiler_static='-Bstatic'
19966 lt_prog_compiler_wl='-Wl,'
19967 # All Alpha code is PIC.
19968 lt_prog_compiler_static='-non_shared'
19970 xl* | bgxl* | bgf* | mpixl*)
19971 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
19972 lt_prog_compiler_wl='-Wl,'
19973 lt_prog_compiler_pic='-qpic'
19974 lt_prog_compiler_static='-qstaticlink'
19977 case `$CC -V 2>&1 | sed 5q` in
19978 *Sun\ F* | *Sun*Fortran*)
19979 # Sun Fortran 8.3 passes all unrecognized flags to the linker
19980 lt_prog_compiler_pic='-KPIC'
19981 lt_prog_compiler_static='-Bstatic'
19982 lt_prog_compiler_wl=''
19986 lt_prog_compiler_pic='-KPIC'
19987 lt_prog_compiler_static='-Bstatic'
19988 lt_prog_compiler_wl='-Wl,'
19996 lt_prog_compiler_pic='-KPIC'
19997 lt_prog_compiler_static='-Bstatic'
20001 # QNX uses GNU C++, but need to define -shared option too, otherwise
20002 # it will coredump.
20003 lt_prog_compiler_pic='-fPIC -shared'
20006 osf3* | osf4* | osf5*)
20007 lt_prog_compiler_wl='-Wl,'
20008 # All OSF/1 code is PIC.
20009 lt_prog_compiler_static='-non_shared'
20013 lt_prog_compiler_static='-non_shared'
20017 lt_prog_compiler_pic='-KPIC'
20018 lt_prog_compiler_static='-Bstatic'
20019 case $cc_basename in
20020 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
20021 lt_prog_compiler_wl='-Qoption ld ';;
20023 lt_prog_compiler_wl='-Wl,';;
20028 lt_prog_compiler_wl='-Qoption ld '
20029 lt_prog_compiler_pic='-PIC'
20030 lt_prog_compiler_static='-Bstatic'
20033 sysv4 | sysv4.2uw2* | sysv4.3*)
20034 lt_prog_compiler_wl='-Wl,'
20035 lt_prog_compiler_pic='-KPIC'
20036 lt_prog_compiler_static='-Bstatic'
20040 if test -d /usr/nec ;then
20041 lt_prog_compiler_pic='-Kconform_pic'
20042 lt_prog_compiler_static='-Bstatic'
20046 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20047 lt_prog_compiler_wl='-Wl,'
20048 lt_prog_compiler_pic='-KPIC'
20049 lt_prog_compiler_static='-Bstatic'
20053 lt_prog_compiler_wl='-Wl,'
20054 lt_prog_compiler_can_build_shared=no
20058 lt_prog_compiler_pic='-pic'
20059 lt_prog_compiler_static='-Bstatic'
20063 lt_prog_compiler_can_build_shared=no
20069 # For platforms which do not support PIC, -DPIC is meaningless:
20071 lt_prog_compiler_pic=
20074 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20079 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20080 if ${lt_cv_prog_compiler_pic+:} false; then :
20081 $as_echo_n "(cached) " >&6
20083 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
20086 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
20087 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
20090 # Check to make sure the PIC flag actually works.
20092 if test -n "$lt_prog_compiler_pic"; then
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
20094 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
20095 if ${lt_cv_prog_compiler_pic_works+:} false; then :
20096 $as_echo_n "(cached) " >&6
20098 lt_cv_prog_compiler_pic_works=no
20099 ac_outfile=conftest.$ac_objext
20100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20101 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
20102 # Insert the option either (1) after the last *FLAGS variable, or
20103 # (2) before a word containing "conftest.", or (3) at the end.
20104 # Note that $ac_compile itself does not contain backslashes and begins
20105 # with a dollar sign (not a hyphen), so the echo should work correctly.
20106 # The option is referenced via a variable to avoid confusing sed.
20107 lt_compile=`echo "$ac_compile" | $SED \
20108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20110 -e 's:$: $lt_compiler_flag:'`
20111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20112 (eval "$lt_compile" 2>conftest.err)
20114 cat conftest.err >&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 if (exit $ac_status) && test -s "$ac_outfile"; then
20117 # The compiler can only warn and ignore the option if not recognized
20118 # So say no if there are warnings other than the usual output.
20119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20121 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20122 lt_cv_prog_compiler_pic_works=yes
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
20129 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
20131 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
20132 case $lt_prog_compiler_pic in
20134 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
20137 lt_prog_compiler_pic=
20138 lt_prog_compiler_can_build_shared=no
20154 # Check to make sure the static flag actually works.
20156 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20158 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20159 if ${lt_cv_prog_compiler_static_works+:} false; then :
20160 $as_echo_n "(cached) " >&6
20162 lt_cv_prog_compiler_static_works=no
20163 save_LDFLAGS="$LDFLAGS"
20164 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20165 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20166 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20167 # The linker can only warn and ignore the option if not recognized
20168 # So say no if there are warnings
20169 if test -s conftest.err; then
20170 # Append any errors to the config.log.
20171 cat conftest.err 1>&5
20172 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20174 if diff conftest.exp conftest.er2 >/dev/null; then
20175 lt_cv_prog_compiler_static_works=yes
20178 lt_cv_prog_compiler_static_works=yes
20182 LDFLAGS="$save_LDFLAGS"
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
20186 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
20188 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
20191 lt_prog_compiler_static=
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20201 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20202 if ${lt_cv_prog_compiler_c_o+:} false; then :
20203 $as_echo_n "(cached) " >&6
20205 lt_cv_prog_compiler_c_o=no
20206 $RM -r conftest 2>/dev/null
20210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20212 lt_compiler_flag="-o out/conftest2.$ac_objext"
20213 # Insert the option either (1) after the last *FLAGS variable, or
20214 # (2) before a word containing "conftest.", or (3) at the end.
20215 # Note that $ac_compile itself does not contain backslashes and begins
20216 # with a dollar sign (not a hyphen), so the echo should work correctly.
20217 lt_compile=`echo "$ac_compile" | $SED \
20218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20220 -e 's:$: $lt_compiler_flag:'`
20221 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20222 (eval "$lt_compile" 2>out/conftest.err)
20224 cat out/conftest.err >&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20228 # The compiler can only warn and ignore the option if not recognized
20229 # So say no if there are warnings
20230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20231 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20232 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20233 lt_cv_prog_compiler_c_o=yes
20238 # SGI C++ compiler will create directory out/ii_files/ for
20239 # template instantiation
20240 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20241 $RM out/* && rmdir out
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
20248 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20256 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20257 if ${lt_cv_prog_compiler_c_o+:} false; then :
20258 $as_echo_n "(cached) " >&6
20260 lt_cv_prog_compiler_c_o=no
20261 $RM -r conftest 2>/dev/null
20265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20267 lt_compiler_flag="-o out/conftest2.$ac_objext"
20268 # Insert the option either (1) after the last *FLAGS variable, or
20269 # (2) before a word containing "conftest.", or (3) at the end.
20270 # Note that $ac_compile itself does not contain backslashes and begins
20271 # with a dollar sign (not a hyphen), so the echo should work correctly.
20272 lt_compile=`echo "$ac_compile" | $SED \
20273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20275 -e 's:$: $lt_compiler_flag:'`
20276 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20277 (eval "$lt_compile" 2>out/conftest.err)
20279 cat out/conftest.err >&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20283 # The compiler can only warn and ignore the option if not recognized
20284 # So say no if there are warnings
20285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20286 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20287 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20288 lt_cv_prog_compiler_c_o=yes
20293 # SGI C++ compiler will create directory out/ii_files/ for
20294 # template instantiation
20295 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20296 $RM out/* && rmdir out
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
20303 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
20308 hard_links="nottested"
20309 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
20310 # do not overwrite the value of need_locks provided by the user
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20312 $as_echo_n "checking if we can lock with hard links... " >&6; }
20315 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20317 ln conftest.a conftest.b 2>&5 || hard_links=no
20318 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20320 $as_echo "$hard_links" >&6; }
20321 if test "$hard_links" = no; then
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20323 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20336 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20339 allow_undefined_flag=
20340 always_export_symbols=no
20342 archive_expsym_cmds=
20343 compiler_needs_object=no
20344 enable_shared_with_static_runtimes=no
20345 export_dynamic_flag_spec=
20346 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20347 hardcode_automatic=no
20349 hardcode_direct_absolute=no
20350 hardcode_libdir_flag_spec=
20351 hardcode_libdir_flag_spec_ld=
20352 hardcode_libdir_separator=
20353 hardcode_minus_L=no
20354 hardcode_shlibpath_var=unsupported
20356 link_all_deplibs=unknown
20358 module_expsym_cmds=
20359 old_archive_from_new_cmds=
20360 old_archive_from_expsyms_cmds=
20361 thread_safe_flag_spec=
20362 whole_archive_flag_spec=
20363 # include_expsyms should be a list of space-separated symbols to be *always*
20364 # included in the symbol list
20366 # exclude_expsyms can be an extended regexp of symbols to exclude
20367 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20368 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20369 # as well as any symbol that contains `d'.
20370 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20371 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20372 # platforms (ab)use it in PIC code, but their linkers get confused if
20373 # the symbol is explicitly referenced. Since portable code cannot
20374 # rely on this symbol name, it's probably fine to never include it in
20375 # preloaded symbol tables.
20376 # Exclude shared library initialization/finalization symbols.
20377 extract_expsyms_cmds=
20380 cygwin* | mingw* | pw32* | cegcc*)
20381 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20382 # When not using gcc, we currently assume that we are using
20383 # Microsoft Visual C++.
20384 if test "$GCC" != yes; then
20389 # we just hope/assume this is gcc and not c89 (= MSVC++)
20399 # On some targets, GNU ld is compatible enough with the native linker
20400 # that we're better off using the native interface for both.
20401 lt_use_gnu_ld_interface=no
20402 if test "$with_gnu_ld" = yes; then
20405 # The AIX port of GNU ld has always aspired to compatibility
20406 # with the native linker. However, as the warning in the GNU ld
20407 # block says, versions before 2.19.5* couldn't really create working
20408 # shared libraries, regardless of the interface used.
20409 case `$LD -v 2>&1` in
20410 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
20411 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
20412 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
20414 lt_use_gnu_ld_interface=yes
20419 lt_use_gnu_ld_interface=yes
20424 if test "$lt_use_gnu_ld_interface" = yes; then
20425 # If archive_cmds runs LD, not CC, wlarc should be empty
20428 # Set some defaults for GNU ld with shared library support. These
20429 # are reset later if shared libraries are not supported. Putting them
20430 # here allows them to be overridden if necessary.
20431 runpath_var=LD_RUN_PATH
20432 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20433 export_dynamic_flag_spec='${wl}--export-dynamic'
20434 # ancient GNU ld didn't support --whole-archive et. al.
20435 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
20436 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20438 whole_archive_flag_spec=
20440 supports_anon_versioning=no
20441 case `$LD -v 2>&1` in
20442 *GNU\ gold*) supports_anon_versioning=yes ;;
20443 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20444 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20445 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20446 *\ 2.11.*) ;; # other 2.11 versions
20447 *) supports_anon_versioning=yes ;;
20450 # See if GNU ld supports shared libraries.
20453 # On AIX/PPC, the GNU linker is very broken
20454 if test "$host_cpu" != ia64; then
20458 *** Warning: the GNU linker, at least up to release 2.19, is reported
20459 *** to be unable to reliably create shared libraries on AIX.
20460 *** Therefore, libtool is disabling shared libraries support. If you
20461 *** really care for shared libraries, you may want to install binutils
20462 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
20463 *** You will then need to restart the configuration process.
20472 # see comment about AmigaOS4 .so support
20473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20474 archive_expsym_cmds=''
20477 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)'
20478 hardcode_libdir_flag_spec='-L$libdir'
20479 hardcode_minus_L=yes
20485 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20486 allow_undefined_flag=unsupported
20487 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20488 # support --undefined. This deserves some investigation. FIXME
20489 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20495 cygwin* | mingw* | pw32* | cegcc*)
20496 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
20497 # as there is no search path for DLLs.
20498 hardcode_libdir_flag_spec='-L$libdir'
20499 export_dynamic_flag_spec='${wl}--export-all-symbols'
20500 allow_undefined_flag=unsupported
20501 always_export_symbols=no
20502 enable_shared_with_static_runtimes=yes
20503 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'
20504 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20506 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20508 # If the export-symbols file already is a .def file (1st line
20509 # is EXPORTS), use it as is; otherwise, prepend...
20510 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20511 cp $export_symbols $output_objdir/$soname.def;
20513 echo EXPORTS > $output_objdir/$soname.def;
20514 cat $export_symbols >> $output_objdir/$soname.def;
20516 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20524 link_all_deplibs=yes
20529 hardcode_shlibpath_var=no
20530 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
20531 export_dynamic_flag_spec='${wl}-E'
20532 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20533 # Instead, shared libraries are loaded at an image base (0x10000000 by
20534 # default) and relocated if they conflict, which is a slow very memory
20535 # consuming and fragmenting process. To avoid this, we pick a random,
20536 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20537 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20538 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
20539 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'
20542 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
20544 if test "$host_os" = linux-dietlibc; then
20545 case $cc_basename in
20546 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
20549 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
20550 && test "$tmp_diet" = no
20552 tmp_addflag=' $pic_flag'
20553 tmp_sharedflag='-shared'
20554 case $cc_basename,$host_cpu in
20555 pgcc*) # Portland Group C compiler
20556 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'
20557 tmp_addflag=' $pic_flag'
20559 pgf77* | pgf90* | pgf95* | pgfortran*)
20560 # Portland Group f77 and f90 compilers
20561 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'
20562 tmp_addflag=' $pic_flag -Mnomain' ;;
20563 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20564 tmp_addflag=' -i_dynamic' ;;
20565 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20566 tmp_addflag=' -i_dynamic -nofor_main' ;;
20567 ifc* | ifort*) # Intel Fortran compiler
20568 tmp_addflag=' -nofor_main' ;;
20569 lf95*) # Lahey Fortran 8.1
20570 whole_archive_flag_spec=
20571 tmp_sharedflag='--shared' ;;
20572 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
20573 tmp_sharedflag='-qmkshrobj'
20575 nvcc*) # Cuda Compiler Driver 2.2
20576 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'
20577 compiler_needs_object=yes
20580 case `$CC -V 2>&1 | sed 5q` in
20581 *Sun\ C*) # Sun C 5.9
20582 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'
20583 compiler_needs_object=yes
20584 tmp_sharedflag='-G' ;;
20585 *Sun\ F*) # Sun Fortran 8.3
20586 tmp_sharedflag='-G' ;;
20588 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20590 if test "x$supports_anon_versioning" = xyes; then
20591 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
20592 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20593 echo "local: *; };" >> $output_objdir/$libname.ver~
20594 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20597 case $cc_basename in
20598 xlf* | bgf* | bgxlf* | mpixlf*)
20599 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
20600 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
20601 hardcode_libdir_flag_spec=
20602 hardcode_libdir_flag_spec_ld='-rpath $libdir'
20603 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
20604 if test "x$supports_anon_versioning" = xyes; then
20605 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
20606 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20607 echo "local: *; };" >> $output_objdir/$libname.ver~
20608 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
20618 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20619 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20622 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20623 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20628 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
20632 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20633 *** create shared libraries on Solaris systems. Therefore, libtool
20634 *** is disabling shared libraries support. We urge you to upgrade GNU
20635 *** binutils to release 2.9.1 or newer. Another option is to modify
20636 *** your PATH or compiler configuration so that the native linker is
20637 *** used, and then restart.
20640 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20641 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20642 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20649 case `$LD -v 2>&1` in
20650 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20654 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20655 *** reliably create shared libraries on SCO systems. Therefore, libtool
20656 *** is disabling shared libraries support. We urge you to upgrade GNU
20657 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20658 *** your PATH or compiler configuration so that the native linker is
20659 *** used, and then restart.
20664 # For security reasons, it is highly recommended that you always
20665 # use absolute paths for naming shared libraries, and exclude the
20666 # DT_RUNPATH tag from executables and libraries. But doing so
20667 # requires that you compile everything twice, which is a pain.
20668 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20669 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20670 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20671 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20680 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20682 hardcode_direct=yes
20683 hardcode_shlibpath_var=no
20687 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20688 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20689 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20696 if test "$ld_shlibs" = no; then
20698 hardcode_libdir_flag_spec=
20699 export_dynamic_flag_spec=
20700 whole_archive_flag_spec=
20703 # PORTME fill in a description of your system's linker (not GNU ld)
20706 allow_undefined_flag=unsupported
20707 always_export_symbols=yes
20708 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'
20709 # Note: this linker hardcodes the directories in LIBPATH if there
20710 # are no directories specified by -L.
20711 hardcode_minus_L=yes
20712 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20713 # Neither direct hardcoding nor static linking is supported with a
20715 hardcode_direct=unsupported
20720 if test "$host_cpu" = ia64; then
20721 # On IA64, the linker does run time linking by default, so we don't
20722 # have to do anything special.
20723 aix_use_runtimelinking=no
20724 exp_sym_flag='-Bexport'
20727 # If we're using GNU nm, then we don't want the "-C" option.
20728 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20729 # Also, AIX nm treats weak defined symbols like other global
20730 # defined symbols, whereas GNU nm marks them as "W".
20731 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20732 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20734 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20736 aix_use_runtimelinking=no
20738 # Test if we are trying to use run time linking or normal
20739 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20740 # need to do runtime linking.
20741 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20742 for ld_flag in $LDFLAGS; do
20743 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20744 aix_use_runtimelinking=yes
20751 exp_sym_flag='-bexport'
20752 no_entry_flag='-bnoentry'
20755 # When large executables or shared objects are built, AIX ld can
20756 # have problems creating the table of contents. If linking a library
20757 # or program results in "error TOC overflow" add -mminimal-toc to
20758 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20759 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20762 hardcode_direct=yes
20763 hardcode_direct_absolute=yes
20764 hardcode_libdir_separator=':'
20765 link_all_deplibs=yes
20766 file_list_spec='${wl}-f,'
20768 if test "$GCC" = yes; then
20769 case $host_os in aix4.[012]|aix4.[012].*)
20770 # We only want to do this on AIX 4.2 and lower, the check
20771 # below for broken collect2 doesn't work under 4.3+
20772 collect2name=`${CC} -print-prog-name=collect2`
20773 if test -f "$collect2name" &&
20774 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20776 # We have reworked collect2
20779 # We have old collect2
20780 hardcode_direct=unsupported
20781 # It fails to find uninstalled libraries when the uninstalled
20782 # path is not listed in the libpath. Setting hardcode_minus_L
20783 # to unsupported forces relinking
20784 hardcode_minus_L=yes
20785 hardcode_libdir_flag_spec='-L$libdir'
20786 hardcode_libdir_separator=
20790 shared_flag='-shared'
20791 if test "$aix_use_runtimelinking" = yes; then
20792 shared_flag="$shared_flag "'${wl}-G'
20796 if test "$host_cpu" = ia64; then
20797 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20798 # chokes on -Wl,-G. The following line is correct:
20801 if test "$aix_use_runtimelinking" = yes; then
20802 shared_flag='${wl}-G'
20804 shared_flag='${wl}-bM:SRE'
20809 export_dynamic_flag_spec='${wl}-bexpall'
20810 # It seems that -bexpall does not export symbols beginning with
20811 # underscore (_), so it is better to generate a list of symbols to export.
20812 always_export_symbols=yes
20813 if test "$aix_use_runtimelinking" = yes; then
20814 # Warning - without using the other runtime loading flags (-brtl),
20815 # -berok will link without error, but may produce a broken library.
20816 allow_undefined_flag='-berok'
20817 # Determine the default libpath from the value encoded in an
20818 # empty executable.
20819 if test "${lt_cv_aix_libpath+set}" = set; then
20820 aix_libpath=$lt_cv_aix_libpath
20822 if ${lt_cv_aix_libpath_+:} false; then :
20823 $as_echo_n "(cached) " >&6
20825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20826 /* end confdefs.h. */
20836 if ac_fn_c_try_link "$LINENO"; then :
20838 lt_aix_libpath_sed='
20839 /Import File Strings/,/^$/ {
20841 s/^0 *\([^ ]*\) *$/\1/
20845 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20846 # Check for a 64-bit object if we didn't find anything.
20847 if test -z "$lt_cv_aix_libpath_"; then
20848 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20851 rm -f core conftest.err conftest.$ac_objext \
20852 conftest$ac_exeext conftest.$ac_ext
20853 if test -z "$lt_cv_aix_libpath_"; then
20854 lt_cv_aix_libpath_="/usr/lib:/lib"
20859 aix_libpath=$lt_cv_aix_libpath_
20862 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
20863 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
20865 if test "$host_cpu" = ia64; then
20866 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
20867 allow_undefined_flag="-z nodefs"
20868 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"
20870 # Determine the default libpath from the value encoded in an
20871 # empty executable.
20872 if test "${lt_cv_aix_libpath+set}" = set; then
20873 aix_libpath=$lt_cv_aix_libpath
20875 if ${lt_cv_aix_libpath_+:} false; then :
20876 $as_echo_n "(cached) " >&6
20878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20879 /* end confdefs.h. */
20889 if ac_fn_c_try_link "$LINENO"; then :
20891 lt_aix_libpath_sed='
20892 /Import File Strings/,/^$/ {
20894 s/^0 *\([^ ]*\) *$/\1/
20898 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20899 # Check for a 64-bit object if we didn't find anything.
20900 if test -z "$lt_cv_aix_libpath_"; then
20901 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20904 rm -f core conftest.err conftest.$ac_objext \
20905 conftest$ac_exeext conftest.$ac_ext
20906 if test -z "$lt_cv_aix_libpath_"; then
20907 lt_cv_aix_libpath_="/usr/lib:/lib"
20912 aix_libpath=$lt_cv_aix_libpath_
20915 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
20916 # Warning - without using the other run time loading flags,
20917 # -berok will link without error, but may produce a broken library.
20918 no_undefined_flag=' ${wl}-bernotok'
20919 allow_undefined_flag=' ${wl}-berok'
20920 if test "$with_gnu_ld" = yes; then
20921 # We only use this code for GNU lds that support --whole-archive.
20922 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20924 # Exported symbols can be pulled into shared objects from archives
20925 whole_archive_flag_spec='$convenience'
20927 archive_cmds_need_lc=yes
20928 # This is similar to how AIX traditionally builds its shared libraries.
20929 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
20937 # see comment about AmigaOS4 .so support
20938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20939 archive_expsym_cmds=''
20942 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)'
20943 hardcode_libdir_flag_spec='-L$libdir'
20944 hardcode_minus_L=yes
20950 export_dynamic_flag_spec=-rdynamic
20953 cygwin* | mingw* | pw32* | cegcc*)
20954 # When not using gcc, we currently assume that we are using
20955 # Microsoft Visual C++.
20956 # hardcode_libdir_flag_spec is actually meaningless, as there is
20957 # no search path for DLLs.
20958 case $cc_basename in
20961 hardcode_libdir_flag_spec=' '
20962 allow_undefined_flag=unsupported
20963 always_export_symbols=yes
20965 # Tell ltmain to make .lib files, not .a files.
20967 # Tell ltmain to make .dll files, not .so files.
20969 # FIXME: Setting linknames here is a bad hack.
20970 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
20971 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20972 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
20974 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
20976 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
20978 # The linker will not automatically build a static lib if we build a DLL.
20979 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
20980 enable_shared_with_static_runtimes=yes
20981 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20983 old_postinstall_cmds='chmod 644 $oldlib'
20984 postlink_cmds='lt_outputfile="@OUTPUT@"~
20985 lt_tool_outputfile="@TOOL_OUTPUT@"~
20986 case $lt_outputfile in
20989 lt_outputfile="$lt_outputfile.exe"
20990 lt_tool_outputfile="$lt_tool_outputfile.exe"
20993 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
20994 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
20995 $RM "$lt_outputfile.manifest";
20999 # Assume MSVC wrapper
21000 hardcode_libdir_flag_spec=' '
21001 allow_undefined_flag=unsupported
21002 # Tell ltmain to make .lib files, not .a files.
21004 # Tell ltmain to make .dll files, not .so files.
21006 # FIXME: Setting linknames here is a bad hack.
21007 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
21008 # The linker will automatically build a .lib file if we build a DLL.
21009 old_archive_from_new_cmds='true'
21010 # FIXME: Should let the user specify the lib program.
21011 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
21012 enable_shared_with_static_runtimes=yes
21017 darwin* | rhapsody*)
21020 archive_cmds_need_lc=no
21022 hardcode_automatic=yes
21023 hardcode_shlibpath_var=unsupported
21024 if test "$lt_cv_ld_force_load" = "yes"; then
21025 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\"`'
21027 whole_archive_flag_spec=''
21029 link_all_deplibs=yes
21030 allow_undefined_flag="$_lt_dar_allow_undefined"
21031 case $cc_basename in
21032 ifort*) _lt_dar_can_shared=yes ;;
21033 *) _lt_dar_can_shared=$GCC ;;
21035 if test "$_lt_dar_can_shared" = "yes"; then
21036 output_verbose_link_cmd=func_echo_all
21037 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
21038 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
21039 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}"
21040 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}"
21049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21050 hardcode_libdir_flag_spec='-L$libdir'
21051 hardcode_shlibpath_var=no
21058 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21059 # support. Future versions do this automatically, but an explicit c++rt0.o
21060 # does not break anything, and helps significantly (at the cost of a little
21063 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21064 hardcode_libdir_flag_spec='-R$libdir'
21065 hardcode_direct=yes
21066 hardcode_shlibpath_var=no
21069 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21071 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21072 hardcode_direct=yes
21073 hardcode_minus_L=yes
21074 hardcode_shlibpath_var=no
21077 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21078 freebsd* | dragonfly*)
21079 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21080 hardcode_libdir_flag_spec='-R$libdir'
21081 hardcode_direct=yes
21082 hardcode_shlibpath_var=no
21086 if test "$GCC" = yes; then
21087 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
21089 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
21091 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
21092 hardcode_libdir_separator=:
21093 hardcode_direct=yes
21095 # hardcode_minus_L: Not really in the search PATH,
21096 # but as the default location of the library.
21097 hardcode_minus_L=yes
21098 export_dynamic_flag_spec='${wl}-E'
21102 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
21103 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21105 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21107 if test "$with_gnu_ld" = no; then
21108 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
21109 hardcode_libdir_flag_spec_ld='+b $libdir'
21110 hardcode_libdir_separator=:
21111 hardcode_direct=yes
21112 hardcode_direct_absolute=yes
21113 export_dynamic_flag_spec='${wl}-E'
21114 # hardcode_minus_L: Not really in the search PATH,
21115 # but as the default location of the library.
21116 hardcode_minus_L=yes
21121 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
21124 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21127 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21130 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21136 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21139 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21143 # Older versions of the 11.00 compiler do not understand -b yet
21144 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
21146 $as_echo_n "checking if $CC understands -b... " >&6; }
21147 if ${lt_cv_prog_compiler__b+:} false; then :
21148 $as_echo_n "(cached) " >&6
21150 lt_cv_prog_compiler__b=no
21151 save_LDFLAGS="$LDFLAGS"
21152 LDFLAGS="$LDFLAGS -b"
21153 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21154 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21155 # The linker can only warn and ignore the option if not recognized
21156 # So say no if there are warnings
21157 if test -s conftest.err; then
21158 # Append any errors to the config.log.
21159 cat conftest.err 1>&5
21160 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21162 if diff conftest.exp conftest.er2 >/dev/null; then
21163 lt_cv_prog_compiler__b=yes
21166 lt_cv_prog_compiler__b=yes
21170 LDFLAGS="$save_LDFLAGS"
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
21174 $as_echo "$lt_cv_prog_compiler__b" >&6; }
21176 if test x"$lt_cv_prog_compiler__b" = xyes; then
21177 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21179 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21185 if test "$with_gnu_ld" = no; then
21186 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
21187 hardcode_libdir_separator=:
21192 hardcode_shlibpath_var=no
21195 hardcode_direct=yes
21196 hardcode_direct_absolute=yes
21197 export_dynamic_flag_spec='${wl}-E'
21199 # hardcode_minus_L: Not really in the search PATH,
21200 # but as the default location of the library.
21201 hardcode_minus_L=yes
21207 irix5* | irix6* | nonstopux*)
21208 if test "$GCC" = yes; then
21209 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'
21210 # Try to use the -exported_symbol ld option, if it does not
21211 # work, assume that -exports_file does not work either and
21212 # implicitly export all symbols.
21213 # This should be the same for all languages, so no per-tag cache variable.
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
21215 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
21216 if ${lt_cv_irix_exported_symbol+:} false; then :
21217 $as_echo_n "(cached) " >&6
21219 save_LDFLAGS="$LDFLAGS"
21220 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
21221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21222 /* end confdefs.h. */
21223 int foo (void) { return 0; }
21225 if ac_fn_c_try_link "$LINENO"; then :
21226 lt_cv_irix_exported_symbol=yes
21228 lt_cv_irix_exported_symbol=no
21230 rm -f core conftest.err conftest.$ac_objext \
21231 conftest$ac_exeext conftest.$ac_ext
21232 LDFLAGS="$save_LDFLAGS"
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
21235 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
21236 if test "$lt_cv_irix_exported_symbol" = yes; then
21237 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'
21240 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'
21241 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'
21243 archive_cmds_need_lc='no'
21244 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
21245 hardcode_libdir_separator=:
21247 link_all_deplibs=yes
21251 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21252 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21254 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21256 hardcode_libdir_flag_spec='-R$libdir'
21257 hardcode_direct=yes
21258 hardcode_shlibpath_var=no
21262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21263 hardcode_direct=yes
21264 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
21265 hardcode_libdir_separator=:
21266 hardcode_shlibpath_var=no
21273 if test -f /usr/libexec/ld.so; then
21274 hardcode_direct=yes
21275 hardcode_shlibpath_var=no
21276 hardcode_direct_absolute=yes
21277 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21278 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21279 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21280 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
21281 export_dynamic_flag_spec='${wl}-E'
21284 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21285 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21286 hardcode_libdir_flag_spec='-R$libdir'
21289 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21290 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
21300 hardcode_libdir_flag_spec='-L$libdir'
21301 hardcode_minus_L=yes
21302 allow_undefined_flag=unsupported
21303 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
21304 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21308 if test "$GCC" = yes; then
21309 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
21310 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'
21312 allow_undefined_flag=' -expect_unresolved \*'
21313 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'
21315 archive_cmds_need_lc='no'
21316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
21317 hardcode_libdir_separator=:
21320 osf4* | osf5*) # as osf3* with the addition of -msym flag
21321 if test "$GCC" = yes; then
21322 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
21323 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'
21324 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
21326 allow_undefined_flag=' -expect_unresolved \*'
21327 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'
21328 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~
21329 $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'
21331 # Both c and cxx compiler support -rpath directly
21332 hardcode_libdir_flag_spec='-rpath $libdir'
21334 archive_cmds_need_lc='no'
21335 hardcode_libdir_separator=:
21339 no_undefined_flag=' -z defs'
21340 if test "$GCC" = yes; then
21342 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21343 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21344 $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'
21346 case `$CC -V 2>&1` in
21349 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21350 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21351 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
21355 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
21356 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21357 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
21361 hardcode_libdir_flag_spec='-R$libdir'
21362 hardcode_shlibpath_var=no
21364 solaris2.[0-5] | solaris2.[0-5].*) ;;
21366 # The compiler driver will combine and reorder linker options,
21367 # but understands `-z linker_flag'. GCC discards it without `$wl',
21368 # but is careful enough not to reorder.
21369 # Supported since Solaris 2.6 (maybe 2.5.1?)
21370 if test "$GCC" = yes; then
21371 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21373 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
21377 link_all_deplibs=yes
21381 if test "x$host_vendor" = xsequent; then
21382 # Use $CC to link under sequent, because it throws in some extra .o
21383 # files that make .init and .fini sections work.
21384 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21386 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21388 hardcode_libdir_flag_spec='-L$libdir'
21389 hardcode_direct=yes
21390 hardcode_minus_L=yes
21391 hardcode_shlibpath_var=no
21395 case $host_vendor in
21397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21398 hardcode_direct=yes # is this really true???
21401 ## LD is ld it makes a PLAMLIB
21402 ## CC just makes a GrossModule.
21403 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21404 reload_cmds='$CC -r -o $output$reload_objs'
21408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21409 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
21412 runpath_var='LD_RUN_PATH'
21413 hardcode_shlibpath_var=no
21417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21418 hardcode_shlibpath_var=no
21419 export_dynamic_flag_spec='-Bexport'
21423 if test -d /usr/nec; then
21424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21425 hardcode_shlibpath_var=no
21426 runpath_var=LD_RUN_PATH
21427 hardcode_runpath_var=yes
21432 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21433 no_undefined_flag='${wl}-z,text'
21434 archive_cmds_need_lc=no
21435 hardcode_shlibpath_var=no
21436 runpath_var='LD_RUN_PATH'
21438 if test "$GCC" = yes; then
21439 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21440 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21442 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21443 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21447 sysv5* | sco3.2v5* | sco5v6*)
21448 # Note: We can NOT use -z defs as we might desire, because we do not
21449 # link with -lc, and that would cause any symbols used from libc to
21450 # always be unresolved, which means just about no library would
21451 # ever link correctly. If we're not using GNU ld we use -z text
21452 # though, which does catch some bad symbols but isn't as heavy-handed
21454 no_undefined_flag='${wl}-z,text'
21455 allow_undefined_flag='${wl}-z,nodefs'
21456 archive_cmds_need_lc=no
21457 hardcode_shlibpath_var=no
21458 hardcode_libdir_flag_spec='${wl}-R,$libdir'
21459 hardcode_libdir_separator=':'
21460 link_all_deplibs=yes
21461 export_dynamic_flag_spec='${wl}-Bexport'
21462 runpath_var='LD_RUN_PATH'
21464 if test "$GCC" = yes; then
21465 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21466 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21468 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21469 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21475 hardcode_libdir_flag_spec='-L$libdir'
21476 hardcode_shlibpath_var=no
21484 if test x$host_vendor = xsni; then
21486 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21487 export_dynamic_flag_spec='${wl}-Blargedynsym'
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
21494 $as_echo "$ld_shlibs" >&6; }
21495 test "$ld_shlibs" = no && can_build_shared=no
21497 with_gnu_ld=$with_gnu_ld
21514 # Do we need to explicitly link libc?
21516 case "x$archive_cmds_need_lc" in
21518 # Assume -lc should be added
21519 archive_cmds_need_lc=yes
21521 if test "$enable_shared" = yes && test "$GCC" = yes; then
21522 case $archive_cmds in
21524 # FIXME: we may have to deal with multi-command sequences.
21527 # Test whether the compiler implicitly links with -lc since on some
21528 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21529 # to ld, don't add -lc before -lgcc.
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21531 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21532 if ${lt_cv_archive_cmds_need_lc+:} false; then :
21533 $as_echo_n "(cached) " >&6
21536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21539 (eval $ac_compile) 2>&5
21541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21542 test $ac_status = 0; } 2>conftest.err; then
21545 libobjs=conftest.$ac_objext
21547 wl=$lt_prog_compiler_wl
21548 pic_flag=$lt_prog_compiler_pic
21554 lt_save_allow_undefined_flag=$allow_undefined_flag
21555 allow_undefined_flag=
21556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21557 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21560 test $ac_status = 0; }
21562 lt_cv_archive_cmds_need_lc=no
21564 lt_cv_archive_cmds_need_lc=yes
21566 allow_undefined_flag=$lt_save_allow_undefined_flag
21568 cat conftest.err 1>&5
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
21574 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
21575 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21739 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21741 if test "$GCC" = yes; then
21743 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
21744 *) lt_awk_arg="/^libraries:/" ;;
21747 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
21748 *) lt_sed_strip_eq="s,=/,/,g" ;;
21750 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
21751 case $lt_search_path_spec in
21753 # if the path contains ";" then we assume it to be the separator
21754 # otherwise default to the standard path separator (i.e. ":") - it is
21755 # assumed that no part of a normal pathname contains ";" but that should
21756 # okay in the real world where ";" in dirpaths is itself problematic.
21757 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
21760 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
21763 # Ok, now we have the path, separated by spaces, we can step through it
21764 # and add multilib dir if necessary.
21765 lt_tmp_lt_search_path_spec=
21766 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
21767 for lt_sys_path in $lt_search_path_spec; do
21768 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
21769 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
21771 test -d "$lt_sys_path" && \
21772 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
21775 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
21776 BEGIN {RS=" "; FS="/|\n";} {
21779 for (lt_i = NF; lt_i > 0; lt_i--) {
21780 if ($lt_i != "" && $lt_i != ".") {
21781 if ($lt_i == "..") {
21784 if (lt_count == 0) {
21785 lt_foo="/" $lt_i lt_foo;
21792 if (lt_foo != "") { lt_freq[lt_foo]++; }
21793 if (lt_freq[lt_foo] == 1) { print lt_foo; }
21795 # AWK program above erroneously prepends '/' to C:/dos/paths
21798 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
21799 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
21801 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
21803 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21805 library_names_spec=
21806 libname_spec='lib$name'
21810 postuninstall_cmds=
21814 shlibpath_overrides_runpath=unknown
21816 dynamic_linker="$host_os ld.so"
21817 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21818 need_lib_prefix=unknown
21819 hardcode_into_libs=no
21821 # when you set need_version to no, make sure it does not cause -set_version
21822 # flags to be left without arguments
21823 need_version=unknown
21828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21829 shlibpath_var=LIBPATH
21831 # AIX 3 has no versioning support, so we append a major version to the name.
21832 soname_spec='${libname}${release}${shared_ext}$major'
21839 hardcode_into_libs=yes
21840 if test "$host_cpu" = ia64; then
21841 # AIX 5 supports IA64
21842 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21843 shlibpath_var=LD_LIBRARY_PATH
21845 # With GCC up to 2.95.x, collect2 would create an import file
21846 # for dependence libraries. The import file would start with
21847 # the line `#! .'. This would cause the generated library to
21848 # depend on `.', always an invalid library. This was fixed in
21849 # development snapshots of GCC prior to 3.0.
21851 aix4 | aix4.[01] | aix4.[01].*)
21852 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21854 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21857 can_build_shared=no
21861 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21862 # soname into executable. Probably we can add versioning support to
21863 # collect2, so additional links can be useful in future.
21864 if test "$aix_use_runtimelinking" = yes; then
21865 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21866 # instead of lib<name>.a to let people know that these are not
21867 # typical AIX shared libraries.
21868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21870 # We preserve .a as extension for shared libraries through AIX4.2
21871 # and later when we are not doing run time linking.
21872 library_names_spec='${libname}${release}.a $libname.a'
21873 soname_spec='${libname}${release}${shared_ext}$major'
21875 shlibpath_var=LIBPATH
21882 # Since July 2007 AmigaOS4 officially supports .so libraries.
21883 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21887 library_names_spec='$libname.ixlibrary $libname.a'
21888 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21889 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
21895 library_names_spec='${libname}${shared_ext}'
21896 dynamic_linker="$host_os ld.so"
21897 shlibpath_var=LIBRARY_PATH
21903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21904 soname_spec='${libname}${release}${shared_ext}$major'
21905 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21906 shlibpath_var=LD_LIBRARY_PATH
21907 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21908 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21909 # the default ld.so.conf also contains /usr/contrib/lib and
21910 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21911 # libtool to hard-code these into programs
21914 cygwin* | mingw* | pw32* | cegcc*)
21915 version_type=windows
21920 case $GCC,$cc_basename in
21923 library_names_spec='$libname.dll.a'
21924 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21925 postinstall_cmds='base_file=`basename \${file}`~
21926 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21927 dldir=$destdir/`dirname \$dlpath`~
21928 test -d \$dldir || mkdir -p \$dldir~
21929 $install_prog $dir/$dlname \$dldir/$dlname~
21930 chmod a+x \$dldir/$dlname~
21931 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21932 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21934 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21935 dlpath=$dir/\$dldll~
21937 shlibpath_overrides_runpath=yes
21941 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21942 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21944 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
21947 # MinGW DLLs use traditional 'lib' prefix
21948 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21951 # pw32 DLLs use 'pw' prefix rather than 'lib'
21952 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21955 dynamic_linker='Win32 ld.exe'
21960 libname_spec='$name'
21961 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21962 library_names_spec='${libname}.dll.lib'
21966 sys_lib_search_path_spec=
21969 for lt_path in $LIB
21972 # Let DOS variable expansion print the short 8.3 style file name.
21973 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21974 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21977 # Convert to MSYS style.
21978 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21981 # Convert to unix form, then to dos form, then back to unix form
21982 # but this time dos style (no spaces!) so that the unix form looks
21983 # like /cygdrive/c/PROGRA~1:/cygdr...
21984 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21985 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21986 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21989 sys_lib_search_path_spec="$LIB"
21990 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21991 # It is most probably a Windows format PATH.
21992 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21994 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21996 # FIXME: find the short name or the path components, as spaces are
21997 # common. (e.g. "Program Files" -> "PROGRA~1")
22001 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22002 postinstall_cmds='base_file=`basename \${file}`~
22003 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22004 dldir=$destdir/`dirname \$dlpath`~
22005 test -d \$dldir || mkdir -p \$dldir~
22006 $install_prog $dir/$dlname \$dldir/$dlname'
22007 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22008 dlpath=$dir/\$dldll~
22010 shlibpath_overrides_runpath=yes
22011 dynamic_linker='Win32 link.exe'
22015 # Assume MSVC wrapper
22016 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22017 dynamic_linker='Win32 ld.exe'
22020 # FIXME: first we should search . and the directory the executable is in
22024 darwin* | rhapsody*)
22025 dynamic_linker="$host_os dyld"
22026 version_type=darwin
22029 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22030 soname_spec='${libname}${release}${major}$shared_ext'
22031 shlibpath_overrides_runpath=yes
22032 shlibpath_var=DYLD_LIBRARY_PATH
22033 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22035 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
22036 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22044 soname_spec='${libname}${release}${shared_ext}$major'
22045 shlibpath_var=LD_LIBRARY_PATH
22052 freebsd* | dragonfly*)
22053 # DragonFly does not have aout. When/if they implement a new
22054 # versioning mechanism, adjust this.
22055 if test -x /usr/bin/objformat; then
22056 objformat=`/usr/bin/objformat`
22059 freebsd[123]*) objformat=aout ;;
22060 *) objformat=elf ;;
22063 version_type=freebsd-$objformat
22064 case $version_type in
22066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22071 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22075 shlibpath_var=LD_LIBRARY_PATH
22078 shlibpath_overrides_runpath=yes
22080 freebsd3.[01]* | freebsdelf3.[01]*)
22081 shlibpath_overrides_runpath=yes
22082 hardcode_into_libs=yes
22084 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22085 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22086 shlibpath_overrides_runpath=no
22087 hardcode_into_libs=yes
22089 *) # from 4.6 on, and DragonFly
22090 shlibpath_overrides_runpath=yes
22091 hardcode_into_libs=yes
22100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22101 soname_spec='${libname}${release}${shared_ext}$major'
22102 shlibpath_var=LD_LIBRARY_PATH
22103 hardcode_into_libs=yes
22110 dynamic_linker="$host_os runtime_loader"
22111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22112 soname_spec='${libname}${release}${shared_ext}$major'
22113 shlibpath_var=LIBRARY_PATH
22114 shlibpath_overrides_runpath=yes
22115 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22116 hardcode_into_libs=yes
22119 hpux9* | hpux10* | hpux11*)
22120 # Give a soname corresponding to the major version so that dld.sl refuses to
22121 # link against other versions.
22128 hardcode_into_libs=yes
22129 dynamic_linker="$host_os dld.so"
22130 shlibpath_var=LD_LIBRARY_PATH
22131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22133 soname_spec='${libname}${release}${shared_ext}$major'
22134 if test "X$HPUX_IA64_MODE" = X32; then
22135 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22137 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22143 hardcode_into_libs=yes
22144 dynamic_linker="$host_os dld.sl"
22145 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22146 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22148 soname_spec='${libname}${release}${shared_ext}$major'
22149 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22154 dynamic_linker="$host_os dld.sl"
22155 shlibpath_var=SHLIB_PATH
22156 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22158 soname_spec='${libname}${release}${shared_ext}$major'
22161 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22162 postinstall_cmds='chmod 555 $lib'
22163 # or fails outright, so override atomically:
22164 install_override_mode=555
22171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22172 soname_spec='${libname}${release}${shared_ext}$major'
22173 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22174 shlibpath_var=LD_LIBRARY_PATH
22175 shlibpath_overrides_runpath=no
22176 hardcode_into_libs=yes
22179 irix5* | irix6* | nonstopux*)
22181 nonstopux*) version_type=nonstopux ;;
22183 if test "$lt_cv_prog_gnu_ld" = yes; then
22191 soname_spec='${libname}${release}${shared_ext}$major'
22192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22194 irix5* | nonstopux*)
22195 libsuff= shlibsuff=
22198 case $LD in # libtool.m4 will add one of these switches to LD
22199 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22200 libsuff= shlibsuff= libmagic=32-bit;;
22201 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22202 libsuff=32 shlibsuff=N32 libmagic=N32;;
22203 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22204 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22205 *) libsuff= shlibsuff= libmagic=never-match;;
22209 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22210 shlibpath_overrides_runpath=no
22211 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22212 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22213 hardcode_into_libs=yes
22216 # No shared lib support for Linux oldld, aout, or coff.
22217 linux*oldld* | linux*aout* | linux*coff*)
22221 # This must be Linux ELF.
22222 linux* | k*bsd*-gnu | kopensolaris*-gnu)
22226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22227 soname_spec='${libname}${release}${shared_ext}$major'
22228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22229 shlibpath_var=LD_LIBRARY_PATH
22230 shlibpath_overrides_runpath=no
22232 # Some binutils ld are patched to set DT_RUNPATH
22233 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22234 $as_echo_n "(cached) " >&6
22236 lt_cv_shlibpath_overrides_runpath=no
22237 save_LDFLAGS=$LDFLAGS
22238 save_libdir=$libdir
22239 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
22240 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
22241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22242 /* end confdefs.h. */
22252 if ac_fn_c_try_link "$LINENO"; then :
22253 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22254 lt_cv_shlibpath_overrides_runpath=yes
22257 rm -f core conftest.err conftest.$ac_objext \
22258 conftest$ac_exeext conftest.$ac_ext
22259 LDFLAGS=$save_LDFLAGS
22260 libdir=$save_libdir
22264 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22266 # This implies no fast_install, which is unacceptable.
22267 # Some rework will be needed to allow for fast_install
22268 # before this can be enabled.
22269 hardcode_into_libs=yes
22271 # Append ld.so.conf contents to the search path
22272 if test -f /etc/ld.so.conf; then
22273 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' ' '`
22274 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22277 # We used to test for /lib/ld.so.1 and disable shared libraries on
22278 # powerpc, because MkLinux only supported shared libraries with the
22279 # GNU dynamic linker. Since this was broken with cross compilers,
22280 # most powerpc-linux boxes support dynamic linking these days and
22281 # people can always --disable-shared, the test was removed, and we
22282 # assume the GNU/Linux dynamic linker is in use.
22283 dynamic_linker='GNU/Linux ld.so'
22290 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22293 dynamic_linker='NetBSD (a.out) ld.so'
22295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22296 soname_spec='${libname}${release}${shared_ext}$major'
22297 dynamic_linker='NetBSD ld.elf_so'
22299 shlibpath_var=LD_LIBRARY_PATH
22300 shlibpath_overrides_runpath=yes
22301 hardcode_into_libs=yes
22306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22307 shlibpath_var=LD_LIBRARY_PATH
22308 shlibpath_overrides_runpath=yes
22315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22316 soname_spec='${libname}${release}${shared_ext}$major'
22317 shlibpath_var=LD_LIBRARY_PATH
22318 shlibpath_overrides_runpath=no
22319 hardcode_into_libs=yes
22320 dynamic_linker='ldqnx.so'
22325 sys_lib_dlsearch_path_spec="/usr/lib"
22327 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22329 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22330 *) need_version=no ;;
22332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22334 shlibpath_var=LD_LIBRARY_PATH
22335 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22337 openbsd2.[89] | openbsd2.[89].*)
22338 shlibpath_overrides_runpath=no
22341 shlibpath_overrides_runpath=yes
22345 shlibpath_overrides_runpath=yes
22350 libname_spec='$name'
22353 library_names_spec='$libname${shared_ext} $libname.a'
22354 dynamic_linker='OS/2 ld.exe'
22355 shlibpath_var=LIBPATH
22358 osf3* | osf4* | osf5*)
22362 soname_spec='${libname}${release}${shared_ext}$major'
22363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22364 shlibpath_var=LD_LIBRARY_PATH
22365 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22366 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22378 soname_spec='${libname}${release}${shared_ext}$major'
22379 shlibpath_var=LD_LIBRARY_PATH
22380 shlibpath_overrides_runpath=yes
22381 hardcode_into_libs=yes
22382 # ldd complains unless libraries are executable
22383 postinstall_cmds='chmod +x $lib'
22388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22389 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22390 shlibpath_var=LD_LIBRARY_PATH
22391 shlibpath_overrides_runpath=yes
22392 if test "$with_gnu_ld" = yes; then
22400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22401 soname_spec='${libname}${release}${shared_ext}$major'
22402 shlibpath_var=LD_LIBRARY_PATH
22403 case $host_vendor in
22405 shlibpath_overrides_runpath=no
22407 runpath_var=LD_RUN_PATH
22415 shlibpath_overrides_runpath=no
22416 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22422 if test -d /usr/nec ;then
22424 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22425 soname_spec='$libname${shared_ext}.$major'
22426 shlibpath_var=LD_LIBRARY_PATH
22430 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22431 version_type=freebsd-elf
22434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22435 soname_spec='${libname}${release}${shared_ext}$major'
22436 shlibpath_var=LD_LIBRARY_PATH
22437 shlibpath_overrides_runpath=yes
22438 hardcode_into_libs=yes
22439 if test "$with_gnu_ld" = yes; then
22440 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22442 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22445 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22449 sys_lib_dlsearch_path_spec='/usr/lib'
22453 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22458 shlibpath_var=LD_LIBRARY_PATH
22459 shlibpath_overrides_runpath=no
22460 hardcode_into_libs=yes
22465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22466 soname_spec='${libname}${release}${shared_ext}$major'
22467 shlibpath_var=LD_LIBRARY_PATH
22474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22475 $as_echo "$dynamic_linker" >&6; }
22476 test "$dynamic_linker" = no && can_build_shared=no
22478 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22479 if test "$GCC" = yes; then
22480 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22483 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22484 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22486 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22487 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22582 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22584 if test -n "$hardcode_libdir_flag_spec" ||
22585 test -n "$runpath_var" ||
22586 test "X$hardcode_automatic" = "Xyes" ; then
22588 # We can hardcode non-existent directories.
22589 if test "$hardcode_direct" != no &&
22590 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22591 # have to relink, otherwise we might link with an installed library
22592 # when we should be linking with a yet-to-be-installed one
22593 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
22594 test "$hardcode_minus_L" != no; then
22595 # Linking always hardcodes the temporary library directory.
22596 hardcode_action=relink
22598 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22599 hardcode_action=immediate
22602 # We cannot hardcode anything, or else we can only hardcode existing
22604 hardcode_action=unsupported
22606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
22607 $as_echo "$hardcode_action" >&6; }
22609 if test "$hardcode_action" = relink ||
22610 test "$inherit_rpath" = yes; then
22611 # Fast installation is not supported
22612 enable_fast_install=no
22613 elif test "$shlibpath_overrides_runpath" = yes ||
22614 test "$enable_shared" = no; then
22615 # Fast installation is not necessary
22616 enable_fast_install=needless
22624 if test "x$enable_dlopen" != xyes; then
22625 enable_dlopen=unknown
22626 enable_dlopen_self=unknown
22627 enable_dlopen_self_static=unknown
22634 lt_cv_dlopen="load_add_on"
22636 lt_cv_dlopen_self=yes
22639 mingw* | pw32* | cegcc*)
22640 lt_cv_dlopen="LoadLibrary"
22645 lt_cv_dlopen="dlopen"
22650 # if libdl is installed we need to link against it
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22652 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22653 if ${ac_cv_lib_dl_dlopen+:} false; then :
22654 $as_echo_n "(cached) " >&6
22656 ac_check_lib_save_LIBS=$LIBS
22658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22659 /* end confdefs.h. */
22661 /* Override any GCC internal prototype to avoid an error.
22662 Use char because int might match the return type of a GCC
22663 builtin and then its argument prototype would still apply. */
22676 if ac_fn_c_try_link "$LINENO"; then :
22677 ac_cv_lib_dl_dlopen=yes
22679 ac_cv_lib_dl_dlopen=no
22681 rm -f core conftest.err conftest.$ac_objext \
22682 conftest$ac_exeext conftest.$ac_ext
22683 LIBS=$ac_check_lib_save_LIBS
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22686 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22687 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22691 lt_cv_dlopen="dyld"
22693 lt_cv_dlopen_self=yes
22700 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22701 if test "x$ac_cv_func_shl_load" = xyes; then :
22702 lt_cv_dlopen="shl_load"
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
22705 $as_echo_n "checking for shl_load in -ldld... " >&6; }
22706 if ${ac_cv_lib_dld_shl_load+:} false; then :
22707 $as_echo_n "(cached) " >&6
22709 ac_check_lib_save_LIBS=$LIBS
22711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22712 /* end confdefs.h. */
22714 /* Override any GCC internal prototype to avoid an error.
22715 Use char because int might match the return type of a GCC
22716 builtin and then its argument prototype would still apply. */
22724 return shl_load ();
22729 if ac_fn_c_try_link "$LINENO"; then :
22730 ac_cv_lib_dld_shl_load=yes
22732 ac_cv_lib_dld_shl_load=no
22734 rm -f core conftest.err conftest.$ac_objext \
22735 conftest$ac_exeext conftest.$ac_ext
22736 LIBS=$ac_check_lib_save_LIBS
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
22739 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22740 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
22741 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
22743 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22744 if test "x$ac_cv_func_dlopen" = xyes; then :
22745 lt_cv_dlopen="dlopen"
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22748 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22749 if ${ac_cv_lib_dl_dlopen+:} false; then :
22750 $as_echo_n "(cached) " >&6
22752 ac_check_lib_save_LIBS=$LIBS
22754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22755 /* end confdefs.h. */
22757 /* Override any GCC internal prototype to avoid an error.
22758 Use char because int might match the return type of a GCC
22759 builtin and then its argument prototype would still apply. */
22772 if ac_fn_c_try_link "$LINENO"; then :
22773 ac_cv_lib_dl_dlopen=yes
22775 ac_cv_lib_dl_dlopen=no
22777 rm -f core conftest.err conftest.$ac_objext \
22778 conftest$ac_exeext conftest.$ac_ext
22779 LIBS=$ac_check_lib_save_LIBS
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22782 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22783 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22784 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
22787 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
22788 if ${ac_cv_lib_svld_dlopen+:} false; then :
22789 $as_echo_n "(cached) " >&6
22791 ac_check_lib_save_LIBS=$LIBS
22792 LIBS="-lsvld $LIBS"
22793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22794 /* end confdefs.h. */
22796 /* Override any GCC internal prototype to avoid an error.
22797 Use char because int might match the return type of a GCC
22798 builtin and then its argument prototype would still apply. */
22811 if ac_fn_c_try_link "$LINENO"; then :
22812 ac_cv_lib_svld_dlopen=yes
22814 ac_cv_lib_svld_dlopen=no
22816 rm -f core conftest.err conftest.$ac_objext \
22817 conftest$ac_exeext conftest.$ac_ext
22818 LIBS=$ac_check_lib_save_LIBS
22820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
22821 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22822 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
22823 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
22826 $as_echo_n "checking for dld_link in -ldld... " >&6; }
22827 if ${ac_cv_lib_dld_dld_link+:} false; then :
22828 $as_echo_n "(cached) " >&6
22830 ac_check_lib_save_LIBS=$LIBS
22832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22833 /* end confdefs.h. */
22835 /* Override any GCC internal prototype to avoid an error.
22836 Use char because int might match the return type of a GCC
22837 builtin and then its argument prototype would still apply. */
22845 return dld_link ();
22850 if ac_fn_c_try_link "$LINENO"; then :
22851 ac_cv_lib_dld_dld_link=yes
22853 ac_cv_lib_dld_dld_link=no
22855 rm -f core conftest.err conftest.$ac_objext \
22856 conftest$ac_exeext conftest.$ac_ext
22857 LIBS=$ac_check_lib_save_LIBS
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
22860 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22861 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
22862 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
22883 if test "x$lt_cv_dlopen" != xno; then
22889 case $lt_cv_dlopen in
22891 save_CPPFLAGS="$CPPFLAGS"
22892 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
22894 save_LDFLAGS="$LDFLAGS"
22895 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
22898 LIBS="$lt_cv_dlopen_libs $LIBS"
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
22901 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
22902 if ${lt_cv_dlopen_self+:} false; then :
22903 $as_echo_n "(cached) " >&6
22905 if test "$cross_compiling" = yes; then :
22906 lt_cv_dlopen_self=cross
22908 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22909 lt_status=$lt_dlunknown
22910 cat > conftest.$ac_ext <<_LT_EOF
22911 #line $LINENO "configure"
22912 #include "confdefs.h"
22921 # define LT_DLGLOBAL RTLD_GLOBAL
22924 # define LT_DLGLOBAL DL_GLOBAL
22926 # define LT_DLGLOBAL 0
22930 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22931 find out it does not work in some platform. */
22932 #ifndef LT_DLLAZY_OR_NOW
22934 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22937 # define LT_DLLAZY_OR_NOW DL_LAZY
22940 # define LT_DLLAZY_OR_NOW RTLD_NOW
22943 # define LT_DLLAZY_OR_NOW DL_NOW
22945 # define LT_DLLAZY_OR_NOW 0
22952 /* When -fvisbility=hidden is used, assume the code has been annotated
22953 correspondingly for the symbols needed. */
22954 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22955 int fnord () __attribute__((visibility("default")));
22958 int fnord () { return 42; }
22961 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22962 int status = $lt_dlunknown;
22966 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22969 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22970 else puts (dlerror ());
22972 /* dlclose (self); */
22980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22981 (eval $ac_link) 2>&5
22983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22984 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
22985 (./conftest; exit; ) >&5 2>/dev/null
22987 case x$lt_status in
22988 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
22989 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
22990 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
22993 # compilation failed
22994 lt_cv_dlopen_self=no
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
23002 $as_echo "$lt_cv_dlopen_self" >&6; }
23004 if test "x$lt_cv_dlopen_self" = xyes; then
23005 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
23006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
23007 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
23008 if ${lt_cv_dlopen_self_static+:} false; then :
23009 $as_echo_n "(cached) " >&6
23011 if test "$cross_compiling" = yes; then :
23012 lt_cv_dlopen_self_static=cross
23014 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23015 lt_status=$lt_dlunknown
23016 cat > conftest.$ac_ext <<_LT_EOF
23017 #line $LINENO "configure"
23018 #include "confdefs.h"
23027 # define LT_DLGLOBAL RTLD_GLOBAL
23030 # define LT_DLGLOBAL DL_GLOBAL
23032 # define LT_DLGLOBAL 0
23036 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23037 find out it does not work in some platform. */
23038 #ifndef LT_DLLAZY_OR_NOW
23040 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23043 # define LT_DLLAZY_OR_NOW DL_LAZY
23046 # define LT_DLLAZY_OR_NOW RTLD_NOW
23049 # define LT_DLLAZY_OR_NOW DL_NOW
23051 # define LT_DLLAZY_OR_NOW 0
23058 /* When -fvisbility=hidden is used, assume the code has been annotated
23059 correspondingly for the symbols needed. */
23060 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
23061 int fnord () __attribute__((visibility("default")));
23064 int fnord () { return 42; }
23067 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23068 int status = $lt_dlunknown;
23072 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23075 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23076 else puts (dlerror ());
23078 /* dlclose (self); */
23086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
23087 (eval $ac_link) 2>&5
23089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23090 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
23091 (./conftest; exit; ) >&5 2>/dev/null
23093 case x$lt_status in
23094 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23095 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23096 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
23099 # compilation failed
23100 lt_cv_dlopen_self_static=no
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
23108 $as_echo "$lt_cv_dlopen_self_static" >&6; }
23111 CPPFLAGS="$save_CPPFLAGS"
23112 LDFLAGS="$save_LDFLAGS"
23117 case $lt_cv_dlopen_self in
23118 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23119 *) enable_dlopen_self=unknown ;;
23122 case $lt_cv_dlopen_self_static in
23123 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23124 *) enable_dlopen_self_static=unknown ;;
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
23147 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
23148 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
23149 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23150 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23152 $as_echo "yes" >&6; }
23154 # FIXME - insert some real tests, host_os isn't really good enough
23157 if test -n "$STRIP" ; then
23158 striplib="$STRIP -x"
23159 old_striplib="$STRIP -S"
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23161 $as_echo "yes" >&6; }
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23164 $as_echo "no" >&6; }
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23169 $as_echo "no" >&6; }
23185 # Report which library types will actually be built
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
23187 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
23189 $as_echo "$can_build_shared" >&6; }
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
23192 $as_echo_n "checking whether to build shared libraries... " >&6; }
23193 test "$can_build_shared" = "no" && enable_shared=no
23195 # On AIX, shared libraries and static libraries use the same namespace, and
23196 # are all built from PIC.
23199 test "$enable_shared" = yes && enable_static=no
23200 if test -n "$RANLIB"; then
23201 archive_cmds="$archive_cmds~\$RANLIB \$lib"
23202 postinstall_cmds='$RANLIB $lib'
23207 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
23208 test "$enable_shared" = yes && enable_static=no
23212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
23213 $as_echo "$enable_shared" >&6; }
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
23216 $as_echo_n "checking whether to build static libraries... " >&6; }
23217 # Make sure either enable_shared or enable_static is yes.
23218 test "$enable_shared" = yes || enable_static=yes
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
23220 $as_echo "$enable_static" >&6; }
23227 ac_cpp='$CPP $CPPFLAGS'
23228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23246 ac_config_commands="$ac_config_commands libtool"
23251 # Only expand once:
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
23259 $as_echo_n "checking if sntp will be built... " >&6; }
23261 # Check whether --with-sntp was given.
23262 if test "${with_sntp+set}" = set; then :
23263 withval=$with_sntp;
23265 with_sntp="${withsntp=yes}"
23269 case "$with_sntp" in
23278 if test -n "$SNTP"; then
23280 BUILD_SNTP_FALSE='#'
23282 BUILD_SNTP_TRUE='#'
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
23287 $as_echo "$with_sntp" >&6; }
23301 # NTP has (so far) been relying on leading-edge autogen.
23302 # Therefore, by default:
23303 # - use the version we ship with
23304 # - do not install it
23305 # - build a static copy (AC_DISABLE_SHARED - done earlier)
23306 case "${enable_local_libopts+set}" in
23308 *) enable_local_libopts=yes ;;
23310 case "${enable_libopts_install+set}" in
23312 *) enable_libopts_install=no ;;
23317 ac_header_dirent=no
23318 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23319 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
23321 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
23322 if eval \${$as_ac_Header+:} false; then :
23323 $as_echo_n "(cached) " >&6
23325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23326 /* end confdefs.h. */
23327 #include <sys/types.h>
23339 if ac_fn_c_try_compile "$LINENO"; then :
23340 eval "$as_ac_Header=yes"
23342 eval "$as_ac_Header=no"
23344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23346 eval ac_res=\$$as_ac_Header
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23348 $as_echo "$ac_res" >&6; }
23349 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23350 cat >>confdefs.h <<_ACEOF
23351 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23354 ac_header_dirent=$ac_hdr; break
23358 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23359 if test $ac_header_dirent = dirent.h; then
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23361 $as_echo_n "checking for library containing opendir... " >&6; }
23362 if ${ac_cv_search_opendir+:} false; then :
23363 $as_echo_n "(cached) " >&6
23365 ac_func_search_save_LIBS=$LIBS
23366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23367 /* end confdefs.h. */
23369 /* Override any GCC internal prototype to avoid an error.
23370 Use char because int might match the return type of a GCC
23371 builtin and then its argument prototype would still apply. */
23384 for ac_lib in '' dir; do
23385 if test -z "$ac_lib"; then
23386 ac_res="none required"
23389 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23391 if ac_fn_c_try_link "$LINENO"; then :
23392 ac_cv_search_opendir=$ac_res
23394 rm -f core conftest.err conftest.$ac_objext \
23396 if ${ac_cv_search_opendir+:} false; then :
23400 if ${ac_cv_search_opendir+:} false; then :
23403 ac_cv_search_opendir=no
23405 rm conftest.$ac_ext
23406 LIBS=$ac_func_search_save_LIBS
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23409 $as_echo "$ac_cv_search_opendir" >&6; }
23410 ac_res=$ac_cv_search_opendir
23411 if test "$ac_res" != no; then :
23412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23418 $as_echo_n "checking for library containing opendir... " >&6; }
23419 if ${ac_cv_search_opendir+:} false; then :
23420 $as_echo_n "(cached) " >&6
23422 ac_func_search_save_LIBS=$LIBS
23423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23424 /* end confdefs.h. */
23426 /* Override any GCC internal prototype to avoid an error.
23427 Use char because int might match the return type of a GCC
23428 builtin and then its argument prototype would still apply. */
23441 for ac_lib in '' x; do
23442 if test -z "$ac_lib"; then
23443 ac_res="none required"
23446 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23448 if ac_fn_c_try_link "$LINENO"; then :
23449 ac_cv_search_opendir=$ac_res
23451 rm -f core conftest.err conftest.$ac_objext \
23453 if ${ac_cv_search_opendir+:} false; then :
23457 if ${ac_cv_search_opendir+:} false; then :
23460 ac_cv_search_opendir=no
23462 rm conftest.$ac_ext
23463 LIBS=$ac_func_search_save_LIBS
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23466 $as_echo "$ac_cv_search_opendir" >&6; }
23467 ac_res=$ac_cv_search_opendir
23468 if test "$ac_res" != no; then :
23469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23476 # =================
23478 # =================
23480 sys/mman.h sys/param.h sys/poll.h sys/procset.h \
23481 sys/select.h sys/socket.h sys/stropts.h sys/time.h \
23482 sys/un.h sys/wait.h dlfcn.h errno.h \
23483 fcntl.h libgen.h libintl.h memory.h \
23484 netinet/in.h setjmp.h stdbool.h sysexits.h \
23487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23488 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23489 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23490 cat >>confdefs.h <<_ACEOF
23491 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23499 for ac_header in stdarg.h varargs.h
23501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23502 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23503 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23504 cat >>confdefs.h <<_ACEOF
23505 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23507 lo_have_arg_hdr=true;break
23509 lo_have_arg_hdr=false
23515 for ac_header in string.h strings.h
23517 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23518 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23519 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23520 cat >>confdefs.h <<_ACEOF
23521 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23523 lo_have_str_hdr=true;break
23525 lo_have_str_hdr=false
23531 for ac_header in limits.h sys/limits.h values.h
23533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23534 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23535 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23536 cat >>confdefs.h <<_ACEOF
23537 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23539 lo_have_lim_hdr=true;break
23541 lo_have_lim_hdr=false
23547 for ac_header in inttypes.h stdint.h
23549 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23550 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23551 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23552 cat >>confdefs.h <<_ACEOF
23553 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23555 lo_have_typ_hdr=true;break
23557 lo_have_typ_hdr=false
23563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
23564 $as_echo_n "checking for working stdnoreturn.h... " >&6; }
23565 if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
23566 $as_echo_n "(cached) " >&6
23568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23569 /* end confdefs.h. */
23570 #include <stdlib.h>
23571 #include <stdnoreturn.h>
23572 /* Do not check for 'noreturn' after the return type.
23573 C11 allows it, but it's rarely done that way
23574 and circa-2012 bleeding-edge GCC rejects it when given
23575 -Werror=old-style-declaration. */
23576 noreturn void foo1 (void) { exit (0); }
23577 _Noreturn void foo2 (void) { exit (0); }
23578 int testit (int argc, char **argv) {
23581 (argv[0][0] ? foo1 : foo2) ();
23592 if ac_fn_c_try_compile "$LINENO"; then :
23593 gl_cv_header_working_stdnoreturn_h=yes
23595 gl_cv_header_working_stdnoreturn_h=no
23597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
23600 $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
23602 if test $gl_cv_header_working_stdnoreturn_h = yes; then
23605 STDNORETURN_H='stdnoreturn.h'
23609 if test -n "$STDNORETURN_H"; then
23610 GL_GENERATE_STDNORETURN_H_TRUE=
23611 GL_GENERATE_STDNORETURN_H_FALSE='#'
23613 GL_GENERATE_STDNORETURN_H_TRUE='#'
23614 GL_GENERATE_STDNORETURN_H_FALSE=
23619 # ----------------------------------------------------------------------
23620 # check for various programs used during the build.
23621 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
23622 # ----------------------------------------------------------------------
23623 for ac_header in runetype.h wchar.h
23625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23626 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
23627 $ac_includes_default
23628 #if HAVE_RUNETYPE_H
23629 # include <runetype.h>
23633 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23634 cat >>confdefs.h <<_ACEOF
23635 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23643 # Check whether --enable-nls was given.
23644 if test "${enable_nls+set}" = set; then :
23645 enableval=$enable_nls;
23648 if test "x$enable_nls" != "xno" && \
23649 test "X${ac_cv_header_libintl_h}" = Xyes; then :
23652 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
23656 # --------------------------------------------
23657 # Verify certain entries from AC_CHECK_HEADERS
23658 # --------------------------------------------
23659 ${lo_have_arg_hdr} || \
23660 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
23662 ${lo_have_str_hdr} || \
23663 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
23665 ${lo_have_lim_hdr} || \
23666 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
23668 ${lo_have_typ_hdr} || \
23669 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
23671 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
23672 do eval as_ac_var=\${ac_cv_header_${f}_h}
23673 test "X${as_ac_var}" = Xyes || {
23674 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
23677 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
23678 echo '#include <stdint.h>' > inttypes.h
23680 # ----------------------------------------------------------------------
23681 # Checks for typedefs
23682 # ----------------------------------------------------------------------
23683 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
23684 if test "x$ac_cv_type_wchar_t" = xyes; then :
23686 cat >>confdefs.h <<_ACEOF
23687 #define HAVE_WCHAR_T 1
23693 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
23694 $ac_includes_default
23695 #if HAVE_RUNETYPE_H
23696 # include <runetype.h>
23699 # include <wchar.h>
23703 if test "x$ac_cv_type_wint_t" = xyes; then :
23705 cat >>confdefs.h <<_ACEOF
23706 #define HAVE_WINT_T 1
23712 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
23713 if test "x$ac_cv_type_int8_t" = xyes; then :
23715 cat >>confdefs.h <<_ACEOF
23716 #define HAVE_INT8_T 1
23721 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
23722 if test "x$ac_cv_type_uint8_t" = xyes; then :
23724 cat >>confdefs.h <<_ACEOF
23725 #define HAVE_UINT8_T 1
23730 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
23731 if test "x$ac_cv_type_int16_t" = xyes; then :
23733 cat >>confdefs.h <<_ACEOF
23734 #define HAVE_INT16_T 1
23739 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
23740 if test "x$ac_cv_type_uint16_t" = xyes; then :
23742 cat >>confdefs.h <<_ACEOF
23743 #define HAVE_UINT16_T 1
23748 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
23749 if test "x$ac_cv_type_int32_t" = xyes; then :
23751 cat >>confdefs.h <<_ACEOF
23752 #define HAVE_INT32_T 1
23757 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
23758 if test "x$ac_cv_type_uint32_t" = xyes; then :
23760 cat >>confdefs.h <<_ACEOF
23761 #define HAVE_UINT32_T 1
23766 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23767 if test "x$ac_cv_type_intptr_t" = xyes; then :
23769 cat >>confdefs.h <<_ACEOF
23770 #define HAVE_INTPTR_T 1
23775 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23776 if test "x$ac_cv_type_uintptr_t" = xyes; then :
23778 cat >>confdefs.h <<_ACEOF
23779 #define HAVE_UINTPTR_T 1
23784 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
23785 if test "x$ac_cv_type_uint_t" = xyes; then :
23787 cat >>confdefs.h <<_ACEOF
23788 #define HAVE_UINT_T 1
23793 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23794 if test "x$ac_cv_type_pid_t" = xyes; then :
23796 cat >>confdefs.h <<_ACEOF
23797 #define HAVE_PID_T 1
23802 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23803 if test "x$ac_cv_type_size_t" = xyes; then :
23805 cat >>confdefs.h <<_ACEOF
23806 #define HAVE_SIZE_T 1
23811 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23812 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
23814 cat >>confdefs.h <<_ACEOF
23815 #define HAVE_PTRDIFF_T 1
23821 # The cast to long int works around a bug in the HP C Compiler
23822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23824 # This bug is HP SR number 8606223364.
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
23826 $as_echo_n "checking size of char *... " >&6; }
23827 if ${ac_cv_sizeof_char_p+:} false; then :
23828 $as_echo_n "(cached) " >&6
23830 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
23833 if test "$ac_cv_type_char_p" = yes; then
23834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23836 as_fn_error 77 "cannot compute sizeof (char *)
23837 See \`config.log' for more details" "$LINENO" 5; }
23839 ac_cv_sizeof_char_p=0
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
23845 $as_echo "$ac_cv_sizeof_char_p" >&6; }
23849 cat >>confdefs.h <<_ACEOF
23850 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
23854 # The cast to long int works around a bug in the HP C Compiler
23855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23857 # This bug is HP SR number 8606223364.
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23859 $as_echo_n "checking size of int... " >&6; }
23860 if ${ac_cv_sizeof_int+:} false; then :
23861 $as_echo_n "(cached) " >&6
23863 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23866 if test "$ac_cv_type_int" = yes; then
23867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23869 as_fn_error 77 "cannot compute sizeof (int)
23870 See \`config.log' for more details" "$LINENO" 5; }
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23878 $as_echo "$ac_cv_sizeof_int" >&6; }
23882 cat >>confdefs.h <<_ACEOF
23883 #define SIZEOF_INT $ac_cv_sizeof_int
23887 # The cast to long int works around a bug in the HP C Compiler
23888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23890 # This bug is HP SR number 8606223364.
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23892 $as_echo_n "checking size of long... " >&6; }
23893 if ${ac_cv_sizeof_long+:} false; then :
23894 $as_echo_n "(cached) " >&6
23896 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23899 if test "$ac_cv_type_long" = yes; then
23900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23902 as_fn_error 77 "cannot compute sizeof (long)
23903 See \`config.log' for more details" "$LINENO" 5; }
23905 ac_cv_sizeof_long=0
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23911 $as_echo "$ac_cv_sizeof_long" >&6; }
23915 cat >>confdefs.h <<_ACEOF
23916 #define SIZEOF_LONG $ac_cv_sizeof_long
23920 # The cast to long int works around a bug in the HP C Compiler
23921 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23922 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23923 # This bug is HP SR number 8606223364.
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23925 $as_echo_n "checking size of short... " >&6; }
23926 if ${ac_cv_sizeof_short+:} false; then :
23927 $as_echo_n "(cached) " >&6
23929 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23932 if test "$ac_cv_type_short" = yes; then
23933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23935 as_fn_error 77 "cannot compute sizeof (short)
23936 See \`config.log' for more details" "$LINENO" 5; }
23938 ac_cv_sizeof_short=0
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23944 $as_echo "$ac_cv_sizeof_short" >&6; }
23948 cat >>confdefs.h <<_ACEOF
23949 #define SIZEOF_SHORT $ac_cv_sizeof_short
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
23958 $as_echo_n "checking for pathfind in -lgen... " >&6; }
23959 if ${ac_cv_lib_gen_pathfind+:} false; then :
23960 $as_echo_n "(cached) " >&6
23962 ac_check_lib_save_LIBS=$LIBS
23964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23965 /* end confdefs.h. */
23967 /* Override any GCC internal prototype to avoid an error.
23968 Use char because int might match the return type of a GCC
23969 builtin and then its argument prototype would still apply. */
23977 return pathfind ();
23982 if ac_fn_c_try_link "$LINENO"; then :
23983 ac_cv_lib_gen_pathfind=yes
23985 ac_cv_lib_gen_pathfind=no
23987 rm -f core conftest.err conftest.$ac_objext \
23988 conftest$ac_exeext conftest.$ac_ext
23989 LIBS=$ac_check_lib_save_LIBS
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
23992 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
23993 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
23994 cat >>confdefs.h <<_ACEOF
23995 #define HAVE_LIBGEN 1
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
24003 $as_echo_n "checking for gettext in -lintl... " >&6; }
24004 if ${ac_cv_lib_intl_gettext+:} false; then :
24005 $as_echo_n "(cached) " >&6
24007 ac_check_lib_save_LIBS=$LIBS
24008 LIBS="-lintl $LIBS"
24009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24010 /* end confdefs.h. */
24012 /* Override any GCC internal prototype to avoid an error.
24013 Use char because int might match the return type of a GCC
24014 builtin and then its argument prototype would still apply. */
24027 if ac_fn_c_try_link "$LINENO"; then :
24028 ac_cv_lib_intl_gettext=yes
24030 ac_cv_lib_intl_gettext=no
24032 rm -f core conftest.err conftest.$ac_objext \
24033 conftest$ac_exeext conftest.$ac_ext
24034 LIBS=$ac_check_lib_save_LIBS
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
24037 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
24038 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
24039 cat >>confdefs.h <<_ACEOF
24040 #define HAVE_LIBINTL 1
24043 LIBS="-lintl $LIBS"
24047 for ac_func in vprintf
24049 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
24050 if test "x$ac_cv_func_vprintf" = xyes; then :
24051 cat >>confdefs.h <<_ACEOF
24052 #define HAVE_VPRINTF 1
24055 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
24056 if test "x$ac_cv_func__doprnt" = xyes; then :
24058 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
24066 for ac_header in vfork.h
24068 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24069 if test "x$ac_cv_header_vfork_h" = xyes; then :
24070 cat >>confdefs.h <<_ACEOF
24071 #define HAVE_VFORK_H 1
24078 for ac_func in fork vfork
24080 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24081 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24082 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24083 cat >>confdefs.h <<_ACEOF
24084 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24090 if test "x$ac_cv_func_fork" = xyes; then
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24092 $as_echo_n "checking for working fork... " >&6; }
24093 if ${ac_cv_func_fork_works+:} false; then :
24094 $as_echo_n "(cached) " >&6
24096 if test "$cross_compiling" = yes; then :
24097 ac_cv_func_fork_works=cross
24099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24100 /* end confdefs.h. */
24101 $ac_includes_default
24106 /* By Ruediger Kuhlmann. */
24107 return fork () < 0;
24113 if ac_fn_c_try_run "$LINENO"; then :
24114 ac_cv_func_fork_works=yes
24116 ac_cv_func_fork_works=no
24118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24119 conftest.$ac_objext conftest.beam conftest.$ac_ext
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24124 $as_echo "$ac_cv_func_fork_works" >&6; }
24127 ac_cv_func_fork_works=$ac_cv_func_fork
24129 if test "x$ac_cv_func_fork_works" = xcross; then
24131 *-*-amigaos* | *-*-msdosdjgpp*)
24132 # Override, as these systems have only a dummy fork() stub
24133 ac_cv_func_fork_works=no
24136 ac_cv_func_fork_works=yes
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24140 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24142 ac_cv_func_vfork_works=$ac_cv_func_vfork
24143 if test "x$ac_cv_func_vfork" = xyes; then
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24145 $as_echo_n "checking for working vfork... " >&6; }
24146 if ${ac_cv_func_vfork_works+:} false; then :
24147 $as_echo_n "(cached) " >&6
24149 if test "$cross_compiling" = yes; then :
24150 ac_cv_func_vfork_works=cross
24152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24153 /* end confdefs.h. */
24154 /* Thanks to Paul Eggert for this test. */
24155 $ac_includes_default
24156 #include <sys/wait.h>
24157 #ifdef HAVE_VFORK_H
24158 # include <vfork.h>
24160 /* On some sparc systems, changes by the child to local and incoming
24161 argument registers are propagated back to the parent. The compiler
24162 is told about this with #include <vfork.h>, but some compilers
24163 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24164 static variable whose address is put into a register that is
24165 clobbered by the vfork. */
24168 sparc_address_test (int arg)
24170 sparc_address_test (arg) int arg;
24173 static pid_t child;
24191 pid_t parent = getpid ();
24194 sparc_address_test (0);
24199 /* Here is another test for sparc vfork register problems. This
24200 test uses lots of local variables, at least as many local
24201 variables as main has allocated so far including compiler
24202 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24203 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24204 reuse the register of parent for one of the local variables,
24205 since it will think that parent can't possibly be used any more
24206 in this routine. Assigning to the local variable will thus
24207 munge parent in the parent process. */
24209 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24210 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24211 /* Convince the compiler that p..p7 are live; otherwise, it might
24212 use the same hardware register for all 8 local variables. */
24213 if (p != p1 || p != p2 || p != p3 || p != p4
24214 || p != p5 || p != p6 || p != p7)
24217 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24218 from child file descriptors. If the child closes a descriptor
24219 before it execs or exits, this munges the parent's descriptor
24220 as well. Test for this by closing stdout in the child. */
24221 _exit(close(fileno(stdout)) != 0);
24226 while (wait(&status) != child)
24229 /* Was there some problem with vforking? */
24232 /* Did the child fail? (This shouldn't happen.) */
24235 /* Did the vfork/compiler bug occur? */
24236 || parent != getpid()
24238 /* Did the file descriptor bug occur? */
24239 || fstat(fileno(stdout), &st) != 0
24244 if ac_fn_c_try_run "$LINENO"; then :
24245 ac_cv_func_vfork_works=yes
24247 ac_cv_func_vfork_works=no
24249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24250 conftest.$ac_objext conftest.beam conftest.$ac_ext
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24255 $as_echo "$ac_cv_func_vfork_works" >&6; }
24258 if test "x$ac_cv_func_fork_works" = xcross; then
24259 ac_cv_func_vfork_works=$ac_cv_func_vfork
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24261 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24264 if test "x$ac_cv_func_vfork_works" = xyes; then
24266 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24270 $as_echo "#define vfork fork" >>confdefs.h
24273 if test "x$ac_cv_func_fork_works" = xyes; then
24275 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24279 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
24280 strrchr strsignal fchmod fstat chmod
24282 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24283 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24284 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24285 cat >>confdefs.h <<_ACEOF
24286 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
24293 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
24294 if ${ac_cv_path_SED+:} false; then :
24295 $as_echo_n "(cached) " >&6
24297 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
24298 for ac_i in 1 2 3 4 5 6 7; do
24299 ac_script="$ac_script$as_nl$ac_script"
24301 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
24302 { ac_script=; unset ac_script;}
24303 if test -z "$SED"; then
24304 ac_path_SED_found=false
24305 # Loop through the user's path and test for each of PROGNAME-LIST
24306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24307 for as_dir in $PATH
24310 test -z "$as_dir" && as_dir=.
24311 for ac_prog in sed gsed; do
24312 for ac_exec_ext in '' $ac_executable_extensions; do
24313 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
24314 as_fn_executable_p "$ac_path_SED" || continue
24315 # Check for GNU ac_path_SED and select it if it is found.
24316 # Check for GNU $ac_path_SED
24317 case `"$ac_path_SED" --version 2>&1` in
24319 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
24322 $as_echo_n 0123456789 >"conftest.in"
24325 cat "conftest.in" "conftest.in" >"conftest.tmp"
24326 mv "conftest.tmp" "conftest.in"
24327 cp "conftest.in" "conftest.nl"
24328 $as_echo '' >> "conftest.nl"
24329 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
24330 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
24331 as_fn_arith $ac_count + 1 && ac_count=$as_val
24332 if test $ac_count -gt ${ac_path_SED_max-0}; then
24333 # Best one so far, save it but keep looking for a better one
24334 ac_cv_path_SED="$ac_path_SED"
24335 ac_path_SED_max=$ac_count
24337 # 10*(2^10) chars as input seems more than enough
24338 test $ac_count -gt 10 && break
24340 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
24343 $ac_path_SED_found && break 3
24348 if test -z "$ac_cv_path_SED"; then
24349 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
24352 ac_cv_path_SED=$SED
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
24357 $as_echo "$ac_cv_path_SED" >&6; }
24358 SED="$ac_cv_path_SED"
24363 POSIX_SHELL=`which bash`
24364 test -x "$POSIX_SHELL" && break
24365 POSIX_SHELL=`which dash`
24366 test -x "$POSIX_SHELL" && break
24367 POSIX_SHELL=/usr/xpg4/bin/sh
24368 test -x "$POSIX_SHELL" && break
24369 POSIX_SHELL=`/bin/sh -c '
24371 if ! true ; then exit 1 ; fi
24373 test -x "$POSIX_SHELL" && break
24374 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
24377 cat >>confdefs.h <<_ACEOF
24378 #define POSIX_SHELL "${POSIX_SHELL}"
24385 LIBOPTS_BUILD_BLOCKED=''
24388 NEED_LIBOPTS_DIR=''
24390 # Check whether --enable-local-libopts was given.
24391 if test "${enable_local_libopts+set}" = set; then :
24392 enableval=$enable_local_libopts;
24393 if test x$enableval = xyes ; then
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
24395 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
24396 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
24397 NEED_LIBOPTS_DIR=true
24398 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
24403 # Check whether --enable-libopts-install was given.
24404 if test "${enable_libopts_install+set}" = set; then :
24405 enableval=$enable_libopts_install;
24408 if test "X${enable_libopts_install}" = Xyes; then
24409 INSTALL_LIBOPTS_TRUE=
24410 INSTALL_LIBOPTS_FALSE='#'
24412 INSTALL_LIBOPTS_TRUE='#'
24413 INSTALL_LIBOPTS_FALSE=
24417 if test -z "${NEED_LIBOPTS_DIR}" ; then
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
24419 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
24421 # Check whether --with-autoopts-config was given.
24422 if test "${with_autoopts_config+set}" = set; then :
24423 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
24426 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
24427 if ${lo_cv_with_autoopts_config+:} false; then :
24428 $as_echo_n "(cached) " >&6
24430 if autoopts-config --help 2>/dev/null 1>&2
24431 then lo_cv_with_autoopts_config=autoopts-config
24432 elif libopts-config --help 2>/dev/null 1>&2
24433 then lo_cv_with_autoopts_config=libopts-config
24434 else lo_cv_with_autoopts_config=no ; fi
24436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
24437 $as_echo "$lo_cv_with_autoopts_config" >&6; }
24440 # end of AC_ARG_WITH
24442 if ${lo_cv_test_autoopts+:} false; then :
24443 $as_echo_n "(cached) " >&6
24446 if test -z "${lo_cv_with_autoopts_config}" \
24447 -o X"${lo_cv_with_autoopts_config}" = Xno
24449 if autoopts-config --help 2>/dev/null 1>&2
24450 then lo_cv_with_autoopts_config=autoopts-config
24451 elif libopts-config --help 2>/dev/null 1>&2
24452 then lo_cv_with_autoopts_config=libopts-config
24453 else lo_cv_with_autoopts_config=false ; fi
24455 lo_cv_test_autoopts=`
24456 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
24457 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
24458 then lo_cv_test_autoopts=no ; fi
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
24463 $as_echo "${lo_cv_test_autoopts}" >&6; }
24465 if test "X${lo_cv_test_autoopts}" != Xno
24467 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
24468 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
24470 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
24471 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
24472 NEED_LIBOPTS_DIR=true
24474 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
24475 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
24476 NEED_LIBOPTS_DIR=''
24478 if test -n "${NEED_LIBOPTS_DIR}"; then
24480 NEED_LIBOPTS_FALSE='#'
24482 NEED_LIBOPTS_TRUE='#'
24483 NEED_LIBOPTS_FALSE=
24488 LIBOPTS_DIR=libopts
24491 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
24494 if test -z "$NEED_LIBOPTS_TRUE"; then :
24498 # Check to see if a reg expr header is specified.
24501 # Check whether --with-regex-header was given.
24502 if test "${with_regex_header+set}" = set; then :
24503 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
24506 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
24507 if ${libopts_cv_with_regex_header+:} false; then :
24508 $as_echo_n "(cached) " >&6
24510 libopts_cv_with_regex_header=no
24512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
24513 $as_echo "$libopts_cv_with_regex_header" >&6; }
24516 # end of AC_ARG_WITH
24517 if test "X${libopts_cv_with_regex_header}" != Xno
24519 cat >>confdefs.h <<_ACEOF
24520 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
24525 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
24531 # Check to see if a working libregex can be found.
24534 # Check whether --with-libregex was given.
24535 if test "${with_libregex+set}" = set; then :
24536 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
24539 $as_echo_n "checking whether with-libregex was specified... " >&6; }
24540 if ${libopts_cv_with_libregex_root+:} false; then :
24541 $as_echo_n "(cached) " >&6
24543 libopts_cv_with_libregex_root=no
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
24546 $as_echo "$libopts_cv_with_libregex_root" >&6; }
24549 # end of AC_ARG_WITH libregex
24551 if test "${with_libregex+set}" = set && \
24552 test "X${withval}" = Xno
24553 then ## disabled by request
24554 libopts_cv_with_libregex_root=no
24555 libopts_cv_with_libregex_cflags=no
24556 libopts_cv_with_libregex_libs=no
24560 # Check whether --with-libregex-cflags was given.
24561 if test "${with_libregex_cflags+set}" = set; then :
24562 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
24565 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
24566 if ${libopts_cv_with_libregex_cflags+:} false; then :
24567 $as_echo_n "(cached) " >&6
24569 libopts_cv_with_libregex_cflags=no
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
24572 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
24575 # end of AC_ARG_WITH libregex-cflags
24578 # Check whether --with-libregex-libs was given.
24579 if test "${with_libregex_libs+set}" = set; then :
24580 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
24583 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
24584 if ${libopts_cv_with_libregex_libs+:} false; then :
24585 $as_echo_n "(cached) " >&6
24587 libopts_cv_with_libregex_libs=no
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
24590 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
24593 # end of AC_ARG_WITH libregex-libs
24595 case "X${libopts_cv_with_libregex_cflags}" in
24597 case "X${libopts_cv_with_libregex_root}" in
24598 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
24599 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
24602 case "X${libopts_cv_with_libregex_libs}" in
24604 case "X${libopts_cv_with_libregex_root}" in
24605 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
24606 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
24609 libopts_save_CPPFLAGS="${CPPFLAGS}"
24610 libopts_save_LIBS="${LIBS}"
24611 case "X${libopts_cv_with_libregex_cflags}" in
24613 libopts_cv_with_libregex_cflags="" ;;
24614 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
24616 case "X${libopts_cv_with_libregex_libs}" in
24618 libopts_cv_with_libregex_libs="" ;;
24620 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
24625 $as_echo_n "checking whether libregex functions properly... " >&6; }
24626 if ${libopts_cv_with_libregex+:} false; then :
24627 $as_echo_n "(cached) " >&6
24630 if test "$cross_compiling" = yes; then :
24631 libopts_cv_with_libregex=no
24633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24634 /* end confdefs.h. */
24636 #include <stdlib.h>
24637 #include <sys/types.h>
24638 #include REGEX_HEADER
24640 void comp_re(char const * pzPat) {
24641 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
24642 if (res == 0) return;
24646 comp_re( "^.*\$" );
24647 comp_re( "()|no.*" );
24649 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
24650 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
24651 fputs( "error: regex -->.<-- did not match\n", stderr );
24656 if ac_fn_c_try_run "$LINENO"; then :
24657 libopts_cv_with_libregex=yes
24659 libopts_cv_with_libregex=no
24661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24662 conftest.$ac_objext conftest.beam conftest.$ac_ext
24664 # end of AC_RUN_IFELSE
24667 # end of AC_CACHE_VAL for libopts_cv_with_libregex
24668 fi ## disabled by request
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
24670 $as_echo "${libopts_cv_with_libregex}" >&6; }
24671 if test "X${libopts_cv_with_libregex}" != Xno
24674 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
24677 CPPFLAGS="${libopts_save_CPPFLAGS}"
24678 LIBS="${libopts_save_LIBS}"
24679 libopts_cv_with_libregex_root=no
24680 libopts_cv_with_libregex_cflags=no
24681 libopts_cv_with_libregex_libs=no
24682 libopts_cv_with_libregex=no
24687 # Check to see if pathfind(3) works.
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
24690 $as_echo_n "checking whether pathfind(3) works... " >&6; }
24691 if ${libopts_cv_run_pathfind+:} false; then :
24692 $as_echo_n "(cached) " >&6
24695 if test "$cross_compiling" = yes; then :
24696 libopts_cv_run_pathfind=no
24699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24700 /* end confdefs.h. */
24701 #include <string.h>
24702 #include <stdlib.h>
24703 int main (int argc, char ** argv) {
24704 char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
24705 return (pz == 0) ? 1 : 0;
24708 if ac_fn_c_try_run "$LINENO"; then :
24709 libopts_cv_run_pathfind=yes
24711 libopts_cv_run_pathfind=no
24713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24714 conftest.$ac_objext conftest.beam conftest.$ac_ext
24716 # end of RUN_IFELSE
24719 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
24721 $as_echo "${libopts_cv_run_pathfind}" >&6; }
24722 if test "X${libopts_cv_run_pathfind}" != Xno
24725 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
24731 # Check to see if /dev/zero is readable device.
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
24734 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
24735 if ${libopts_cv_test_dev_zero+:} false; then :
24736 $as_echo_n "(cached) " >&6
24739 libopts_cv_test_dev_zero=`exec 2> /dev/null
24740 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
24741 test -z "${dzero}" && exit 1
24743 if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
24744 then libopts_cv_test_dev_zero=no
24748 # end of CACHE_VAL of libopts_cv_test_dev_zero
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
24750 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
24751 if test "X${libopts_cv_test_dev_zero}" != Xno
24754 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
24760 # Check to see if we have a functional realpath(3C).
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
24763 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
24764 if ${libopts_cv_run_realpath+:} false; then :
24765 $as_echo_n "(cached) " >&6
24768 if test "$cross_compiling" = yes; then :
24769 libopts_cv_run_realpath=no
24772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24773 /* end confdefs.h. */
24774 #include <limits.h>
24775 #include <stdlib.h>
24776 int main (int argc, char ** argv) {
24780 char zPath[PATH_MAX+1];
24782 char *pz = realpath(argv[0], zPath);
24783 return (pz == zPath) ? 0 : 1;
24786 if ac_fn_c_try_run "$LINENO"; then :
24787 libopts_cv_run_realpath=yes
24789 libopts_cv_run_realpath=no
24791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24792 conftest.$ac_objext conftest.beam conftest.$ac_ext
24794 # end of RUN_IFELSE
24797 # end of AC_CACHE_VAL for libopts_cv_run_realpath
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
24799 $as_echo "${libopts_cv_run_realpath}" >&6; }
24800 if test "X${libopts_cv_run_realpath}" != Xno
24803 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
24809 # Check to see if strftime() works.
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
24812 $as_echo_n "checking whether strftime() works... " >&6; }
24813 if ${libopts_cv_run_strftime+:} false; then :
24814 $as_echo_n "(cached) " >&6
24817 if test "$cross_compiling" = yes; then :
24818 libopts_cv_run_strftime=no
24821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24822 /* end confdefs.h. */
24824 #include <string.h>
24827 static char const z[] = "Thursday Aug 28 240";
24829 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
24830 tm.tm_min = 44; /* minutes after the hour [0, 59] */
24831 tm.tm_hour = 12; /* hour since midnight [0, 23] */
24832 tm.tm_mday = 28; /* day of the month [1, 31] */
24833 tm.tm_mon = 7; /* months since January [0, 11] */
24834 tm.tm_year = 86; /* years since 1900 */
24835 tm.tm_wday = 4; /* days since Sunday [0, 6] */
24836 tm.tm_yday = 239; /* days since January 1 [0, 365] */
24837 tm.tm_isdst = 1; /* flag for daylight savings time */
24838 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
24839 return (strcmp( t_buf, z ) != 0); }
24841 if ac_fn_c_try_run "$LINENO"; then :
24842 libopts_cv_run_strftime=yes
24844 libopts_cv_run_strftime=no
24846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24847 conftest.$ac_objext conftest.beam conftest.$ac_ext
24849 # end of RUN_IFELSE
24852 # end of AC_CACHE_VAL for libopts_cv_run_strftime
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
24854 $as_echo "${libopts_cv_run_strftime}" >&6; }
24855 if test "X${libopts_cv_run_strftime}" != Xno
24858 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
24864 # Check to see if fopen accepts "b" mode.
24866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
24867 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
24868 if ${libopts_cv_run_fopen_binary+:} false; then :
24869 $as_echo_n "(cached) " >&6
24872 if test "$cross_compiling" = yes; then :
24873 libopts_cv_run_fopen_binary=no
24876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24877 /* end confdefs.h. */
24879 int main (int argc, char ** argv) {
24880 FILE * fp = fopen("conftest.$ac_ext", "rb");
24881 return (fp == NULL) ? 1 : fclose(fp); }
24883 if ac_fn_c_try_run "$LINENO"; then :
24884 libopts_cv_run_fopen_binary=yes
24886 libopts_cv_run_fopen_binary=no
24888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24889 conftest.$ac_objext conftest.beam conftest.$ac_ext
24891 # end of RUN_IFELSE
24894 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
24896 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
24897 if test "X${libopts_cv_run_fopen_binary}" != Xno
24900 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
24904 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
24910 # Check to see if fopen accepts "t" mode.
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
24913 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
24914 if ${libopts_cv_run_fopen_text+:} false; then :
24915 $as_echo_n "(cached) " >&6
24918 if test "$cross_compiling" = yes; then :
24919 libopts_cv_run_fopen_text=no
24922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24923 /* end confdefs.h. */
24925 int main (int argc, char ** argv) {
24926 FILE * fp = fopen("conftest.$ac_ext", "rt");
24927 return (fp == NULL) ? 1 : fclose(fp); }
24929 if ac_fn_c_try_run "$LINENO"; then :
24930 libopts_cv_run_fopen_text=yes
24932 libopts_cv_run_fopen_text=no
24934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24935 conftest.$ac_objext conftest.beam conftest.$ac_ext
24937 # end of RUN_IFELSE
24940 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
24942 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
24943 if test "X${libopts_cv_run_fopen_text}" != Xno
24946 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
24950 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
24956 # Check to see if not wanting optional option args.
24958 # Check whether --enable-optional-args was given.
24959 if test "${enable_optional_args+set}" = set; then :
24960 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
24963 $as_echo_n "checking whether not wanting optional option args... " >&6; }
24964 if ${libopts_cv_enable_optional_args+:} false; then :
24965 $as_echo_n "(cached) " >&6
24967 libopts_cv_enable_optional_args=yes
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
24970 $as_echo "$libopts_cv_enable_optional_args" >&6; }
24973 # end of AC_ARG_ENABLE
24974 if test "X${libopts_cv_enable_optional_args}" = Xno
24977 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
24986 ac_config_files="$ac_config_files libopts/Makefile"
24988 # end of AC_DEFUN of LIBOPTS_CHECK
24991 # From when we only used libevent for sntp:
24994 # [NTP_LIBEVENT_CHECK],
24995 # [NTP_LIBEVENT_CHECK_NOBUILD]
25000 ntp_pkgconfig_min_version='0.15.0'
25001 if test -n "$ac_tool_prefix"; then
25002 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25003 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25005 $as_echo_n "checking for $ac_word... " >&6; }
25006 if ${ac_cv_path_PKG_CONFIG+:} false; then :
25007 $as_echo_n "(cached) " >&6
25009 case $PKG_CONFIG in
25011 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25015 for as_dir in $PATH
25018 test -z "$as_dir" && as_dir=.
25019 for ac_exec_ext in '' $ac_executable_extensions; do
25020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25021 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25032 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25033 if test -n "$PKG_CONFIG"; then
25034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
25035 $as_echo "$PKG_CONFIG" >&6; }
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25038 $as_echo "no" >&6; }
25043 if test -z "$ac_cv_path_PKG_CONFIG"; then
25044 ac_pt_PKG_CONFIG=$PKG_CONFIG
25045 # Extract the first word of "pkg-config", so it can be a program name with args.
25046 set dummy pkg-config; ac_word=$2
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25048 $as_echo_n "checking for $ac_word... " >&6; }
25049 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
25050 $as_echo_n "(cached) " >&6
25052 case $ac_pt_PKG_CONFIG in
25054 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
25057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25058 for as_dir in $PATH
25061 test -z "$as_dir" && as_dir=.
25062 for ac_exec_ext in '' $ac_executable_extensions; do
25063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25064 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25075 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
25076 if test -n "$ac_pt_PKG_CONFIG"; then
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
25078 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25081 $as_echo "no" >&6; }
25084 if test "x$ac_pt_PKG_CONFIG" = x; then
25087 case $cross_compiling:$ac_tool_warned in
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25091 ac_tool_warned=yes ;;
25093 PKG_CONFIG=$ac_pt_PKG_CONFIG
25096 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
25099 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
25100 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
25102 case "$PKG_CONFIG" in
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
25105 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
25106 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
25107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25108 $as_echo "yes" >&6; }
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25111 $as_echo "no" >&6; }
25120 # Check whether --enable-local-libevent was given.
25121 if test "${enable_local_libevent+set}" = set; then :
25122 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
25124 ntp_use_local_libevent=${ntp_use_local_libevent-detect}
25137 ntp_libevent_min_version=2
25138 ntp_libevent_tearoff=libevent
25144 case "$ntp_use_local_libevent" in
25147 *) # If we have (a good enough) pkg-config, see if it can find libevent
25148 case "$PKG_CONFIG" in
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
25151 $as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
25152 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
25154 ntp_use_local_libevent=no
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5
25156 $as_echo "$as_me: Using the installed libevent" >&6;}
25157 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
25158 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
25159 # HMS: I hope the following is accurate.
25160 # We don't need -levent, we only need -levent_core.
25161 # While we could grab only the -L stuff, there *might* be
25162 # other flags there we want. Originally we just removed -levent
25163 # but then somebody decided to install -levent-2.0
25164 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
25165 # So now we dance...
25167 for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
25172 *) case "$LDADD_LIBEVENT" in
25173 '') LDADD_LIBEVENT="$i" ;;
25174 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
25179 case "$LIBISC_PTHREADS_NOTHREADS" in
25181 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
25183 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25185 $as_echo "yes" >&6; }
25187 ntp_use_local_libevent=yes
25188 # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
25190 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25192 $as_echo "no" >&6; }
25196 ntp_use_local_libevent=yes
25202 case "$ntp_use_local_libevent" in
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
25205 $as_echo "$as_me: Using libevent tearoff" >&6;}
25206 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
25207 case "$LIBISC_PTHREADS_NOTHREADS" in
25209 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
25212 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
25217 if test "x$ntp_use_local_libevent" = "xyes"; then
25218 BUILD_LIBEVENT_TRUE=
25219 BUILD_LIBEVENT_FALSE='#'
25221 BUILD_LIBEVENT_TRUE='#'
25222 BUILD_LIBEVENT_FALSE=
25228 case "$ntp_libevent_tearoff" in
25232 as_fn_error $? "ntp_libevent.m4 dir must be libevent, not $ntp_libevent_tearoff" "$LINENO" 5
25236 case "$ntp_use_local_libevent" in
25238 ac_configure_args=" --disable-openssl${ac_configure_args}"
25239 ac_configure_args=" --disable-shared${ac_configure_args}"
25240 ac_configure_args=" --disable-libevent-regress${ac_configure_args}"
25241 ac_configure_args=" --disable-libevent-install${ac_configure_args}"
25242 ac_configure_args=" --enable-silent-rules${ac_configure_args}"
25243 ac_configure_args=" --enable-function-sections${ac_configure_args}"
25244 subdirs="$subdirs libevent"
25248 NTP_FORCE_LIBEVENT_DIST=libevent
25254 # Checks for libraries.
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
25260 $as_echo_n "checking for library containing openlog... " >&6; }
25261 if ${ac_cv_search_openlog+:} false; then :
25262 $as_echo_n "(cached) " >&6
25264 ac_func_search_save_LIBS=$LIBS
25265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25266 /* end confdefs.h. */
25268 /* Override any GCC internal prototype to avoid an error.
25269 Use char because int might match the return type of a GCC
25270 builtin and then its argument prototype would still apply. */
25283 for ac_lib in '' gen syslog; do
25284 if test -z "$ac_lib"; then
25285 ac_res="none required"
25288 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25290 if ac_fn_c_try_link "$LINENO"; then :
25291 ac_cv_search_openlog=$ac_res
25293 rm -f core conftest.err conftest.$ac_objext \
25295 if ${ac_cv_search_openlog+:} false; then :
25299 if ${ac_cv_search_openlog+:} false; then :
25302 ac_cv_search_openlog=no
25304 rm conftest.$ac_ext
25305 LIBS=$ac_func_search_save_LIBS
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
25308 $as_echo "$ac_cv_search_openlog" >&6; }
25309 ac_res=$ac_cv_search_openlog
25310 if test "$ac_res" != no; then :
25311 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25312 case "$ac_cv_search_openlog" in
25313 'none required') ;;
25315 *) LIB_SYSLOG="$ac_cv_search_openlog $LIB_SYSLOG" ;;
25321 # Checks for header files.
25322 for ac_header in netdb.h string.h strings.h syslog.h
25324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25325 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25326 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25327 cat >>confdefs.h <<_ACEOF
25328 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25337 for ac_header in sysexits.h
25339 ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
25340 if test "x$ac_cv_header_sysexits_h" = xyes; then :
25341 cat >>confdefs.h <<_ACEOF
25342 #define HAVE_SYSEXITS_H 1
25348 $as_echo "#define EX_OK 0" >>confdefs.h
25351 $as_echo "#define EX_SOFTWARE 70" >>confdefs.h
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
25361 $as_echo_n "checking for facilitynames in syslog.h... " >&6; }
25362 if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
25363 $as_echo_n "(cached) " >&6
25366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25367 /* end confdefs.h. */
25369 #define SYSLOG_NAMES
25370 #include <stdlib.h>
25371 #include <syslog.h>
25376 void *fnames; fnames = facilitynames;
25381 if ac_fn_c_try_compile "$LINENO"; then :
25382 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
25384 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
25386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
25389 $as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
25390 case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
25393 $as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
25397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
25398 $as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
25402 $as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
25407 # Checks for typedefs, structures, and compiler characteristics.
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
25409 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
25410 if ${ac_cv_header_stdbool_h+:} false; then :
25411 $as_echo_n "(cached) " >&6
25413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25414 /* end confdefs.h. */
25416 #include <stdbool.h>
25418 "error: bool is not defined"
25421 "error: false is not defined"
25424 "error: false is not 0"
25427 "error: true is not defined"
25430 "error: true is not 1"
25432 #ifndef __bool_true_false_are_defined
25433 "error: __bool_true_false_are_defined is not defined"
25436 struct s { _Bool s: 1; _Bool t; } s;
25438 char a[true == 1 ? 1 : -1];
25439 char b[false == 0 ? 1 : -1];
25440 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
25441 char d[(bool) 0.5 == true ? 1 : -1];
25442 /* See body of main program for 'e'. */
25443 char f[(_Bool) 0.0 == false ? 1 : -1];
25445 char h[sizeof (_Bool)];
25446 char i[sizeof s.t];
25447 enum { j = false, k = true, l = false * true, m = true * 256 };
25448 /* The following fails for
25449 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
25451 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
25452 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
25453 /* Catch a bug in an HP-UX C compiler. See
25454 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
25455 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
25467 /* Refer to every declared value, to avoid compiler optimizations. */
25468 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
25469 + !m + !n + !o + !p + !q + !pq);
25475 if ac_fn_c_try_compile "$LINENO"; then :
25476 ac_cv_header_stdbool_h=yes
25478 ac_cv_header_stdbool_h=no
25480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
25483 $as_echo "$ac_cv_header_stdbool_h" >&6; }
25484 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
25485 if test "x$ac_cv_type__Bool" = xyes; then :
25487 cat >>confdefs.h <<_ACEOF
25488 #define HAVE__BOOL 1
25495 if test $ac_cv_header_stdbool_h = yes; then
25497 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
25510 # Check whether --with-crypto was given.
25511 if test "${with_crypto+set}" = set; then :
25512 withval=$with_crypto;
25516 # Check whether --with-openssl-libdir was given.
25517 if test "${with_openssl_libdir+set}" = set; then :
25518 withval=$with_openssl_libdir;
25522 # Check whether --with-openssl-incdir was given.
25523 if test "${with_openssl_incdir+set}" = set; then :
25524 withval=$with_openssl_incdir;
25528 # Check whether --with-rpath was given.
25529 if test "${with_rpath+set}" = set; then :
25530 withval=$with_rpath;
25534 ntp_openssl_from_pkg_config=no
25535 with_crypto=${with_crypto:-openssl,libcrypto}
25536 case "$with_crypto" in
25538 with_crypto=openssl,libcrypto
25540 case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
25542 *:notempty:notgiven:notgiven)
25543 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
25545 $as_echo_n "checking pkg-config for $pkg... " >&6; }
25546 if $PKG_CONFIG --exists $pkg ; then
25547 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
25548 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
25549 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
25550 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
25551 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
25554 ntp_openssl_from_pkg_config=yes
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25556 $as_echo "yes" >&6; }
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25561 $as_echo "no" >&6; }
25564 case "$with_crypto:$ntp_openssl" in
25569 case "${with_rpath-notgiven}" in
25571 # Lame - what to do if we need -Wl... but not -R?
25577 # This may really only be true for gcc
25578 need_dash_Wlrpath=1
25590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
25591 $as_echo_n "checking for openssl library directory... " >&6; }
25592 with_openssl_libdir=${with_openssl_libdir-notgiven}
25593 case "$with_openssl_libdir" in
25597 with_openssl_libdir=default
25600 with_openssl_libdir=no
25604 case "$with_openssl_libdir" in
25607 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
25608 with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
25609 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
25611 case "$with_openssl_libdir" in
25614 *) # Look for libcrypto.a and libssl.a:
25615 for i in $with_openssl_libdir no
25619 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
25622 test -f $i/libcrypto.so -a -f $i/libssl.so && break
25623 test -f $i/libcrypto.a -a -f $i/libssl.a && break
25630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
25631 $as_echo "$openssl_libdir" >&6; }
25632 case "$openssl_libdir" in
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
25636 $as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
25640 $as_echo_n "checking for openssl include directory... " >&6; }
25641 with_openssl_incdir=${with_openssl_incdir-notgiven}
25642 case "$with_openssl_incdir" in
25645 with_openssl_incdir="/usr/include /usr/sfw/include"
25646 with_openssl_incdir="$with_openssl_incdir /usr/local/include"
25647 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
25649 case "$with_openssl_incdir" in
25652 *) # look for openssl/evp.h:
25653 for i in $with_openssl_incdir no
25655 test -f $i/openssl/evp.h && break
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
25662 $as_echo "$openssl_incdir" >&6; }
25663 case "$openssl_incdir" in
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
25667 $as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
25669 if test -z "$openssl_libdir" -o -z "$openssl_incdir"
25676 case "$ntp_openssl" in
25678 # We have OpenSSL inc/lib dirs - use them.
25679 case "$openssl_incdir" in
25683 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
25686 case "$openssl_libdir" in
25690 LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
25691 case "$need_dash_r" in
25693 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
25695 case "$need_dash_Wlrpath" in
25697 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
25701 LDADD_NTP="$LDADD_NTP -lcrypto"
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
25706 $as_echo_n "checking if we will use crypto... " >&6; }
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
25708 $as_echo "$ntp_openssl" >&6; }
25710 case "$ntp_openssl" in
25713 $as_echo "#define OPENSSL /**/" >>confdefs.h
25715 case "$VER_SUFFIX" in
25717 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
25722 NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
25723 CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
25724 NTPO_SAVED_LIBS="$LIBS"
25727 # check for linking with -lcrypto failure, and try -lcrypto -lz.
25728 # Helps m68k-atari-mint
25730 case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
25732 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
25734 $as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
25735 if ${ntp_cv_bare_lcrypto+:} false; then :
25736 $as_echo_n "(cached) " >&6
25738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25739 /* end confdefs.h. */
25741 #include "openssl/err.h"
25742 #include "openssl/evp.h"
25748 ERR_load_crypto_strings();
25749 OpenSSL_add_all_algorithms();
25756 if ac_fn_c_try_link "$LINENO"; then :
25757 ntp_cv_bare_lcrypto=yes
25759 ntp_cv_bare_lcrypto=no
25762 rm -f core conftest.err conftest.$ac_objext \
25763 conftest$ac_exeext conftest.$ac_ext
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
25767 $as_echo "$ntp_cv_bare_lcrypto" >&6; }
25768 case "$ntp_cv_bare_lcrypto" in
25770 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
25772 $as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
25773 if ${ntp_cv_lcrypto_lz+:} false; then :
25774 $as_echo_n "(cached) " >&6
25776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25777 /* end confdefs.h. */
25779 #include "openssl/err.h"
25780 #include "openssl/evp.h"
25786 ERR_load_crypto_strings();
25787 OpenSSL_add_all_algorithms();
25794 if ac_fn_c_try_link "$LINENO"; then :
25795 ntp_cv_lcrypto_lz=yes
25797 ntp_cv_lcrypto_lz=no
25800 rm -f core conftest.err conftest.$ac_objext \
25801 conftest$ac_exeext conftest.$ac_ext
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
25805 $as_echo "$ntp_cv_lcrypto_lz" >&6; }
25806 case "$ntp_cv_lcrypto_lz" in
25808 LDADD_NTP="$LDADD_NTP -lz"
25814 # Older OpenSSL headers have a number of callback prototypes inside
25815 # other function prototypes which trigger copious warnings with gcc's
25816 # -Wstrict-prototypes, which is included in -Wall.
25820 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
25821 # int (*cb)(), int sgckey);
25826 openssl_triggers_warnings=unknown
25827 NTPO_SAVED_CFLAGS="$CFLAGS"
25829 case "$ntp_openssl:$GCC" in
25831 CFLAGS="$CFLAGS -Werror"
25832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25833 /* end confdefs.h. */
25840 /* see if -Werror breaks gcc */
25847 if ac_fn_c_try_compile "$LINENO"; then :
25848 gcc_handles_Werror=yes
25850 gcc_handles_Werror=no
25853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25854 case "$gcc_handles_Werror" in
25856 # if this gcc doesn't do -Werror go ahead and use
25857 # -Wstrict-prototypes.
25858 openssl_triggers_warnings=yes
25861 CFLAGS="$CFLAGS -Wstrict-prototypes"
25862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25863 /* end confdefs.h. */
25865 #include "openssl/asn1_mac.h"
25866 #include "openssl/bn.h"
25867 #include "openssl/err.h"
25868 #include "openssl/evp.h"
25869 #include "openssl/pem.h"
25870 #include "openssl/rand.h"
25871 #include "openssl/x509v3.h"
25884 if ac_fn_c_try_compile "$LINENO"; then :
25885 openssl_triggers_warnings=no
25887 openssl_triggers_warnings=yes
25890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25892 case "$openssl_triggers_warnings" in
25894 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
25897 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
25901 # gcc without OpenSSL
25902 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
25905 # Because we don't want -Werror for the EVP_MD_do_all_sorted check
25906 CFLAGS="$NTPO_SAVED_CFLAGS"
25908 case "$ntp_openssl" in
25910 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
25911 for ac_func in EVP_MD_do_all_sorted
25913 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
25914 if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
25915 cat >>confdefs.h <<_ACEOF
25916 #define HAVE_EVP_MD_DO_ALL_SORTED 1
25925 CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
25926 LIBS="$NTPO_SAVED_LIBS"
25927 { NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
25928 { NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
25929 { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
25930 { openssl_triggers_warnings=; unset openssl_triggers_warnings;}
25931 { ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
25936 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
25937 if ${ntp_cv_sockaddr_storage+:} false; then :
25938 $as_echo_n "(cached) " >&6
25940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25941 /* end confdefs.h. */
25943 #ifdef HAVE_SYS_TYPES_H
25944 # include <sys/types.h>
25946 #ifdef HAVE_SYS_SOCKET_H
25947 # include <sys/socket.h>
25949 #ifdef HAVE_NETINET_IN_H
25950 # include <netinet/in.h>
25957 struct sockaddr_storage n;
25964 if ac_fn_c_try_compile "$LINENO"; then :
25965 ntp_cv_sockaddr_storage=yes
25967 ntp_cv_sockaddr_storage=no
25970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
25974 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
25975 case "$ntp_cv_sockaddr_storage" in
25978 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
25980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
25981 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
25982 if ${ntp_cv_have___ss_family+:} false; then :
25983 $as_echo_n "(cached) " >&6
25985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25986 /* end confdefs.h. */
25988 #ifdef HAVE_SYS_TYPES_H
25989 # include <sys/types.h>
25991 #ifdef HAVE_SYS_SOCKET_H
25992 # include <sys/socket.h>
25994 #ifdef HAVE_NETINET_IN_H
25995 # include <netinet/in.h>
26002 struct sockaddr_storage s;
26010 if ac_fn_c_try_compile "$LINENO"; then :
26011 ntp_cv_have___ss_family=yes
26013 ntp_cv_have___ss_family=no
26016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
26020 $as_echo "$ntp_cv_have___ss_family" >&6; }
26021 case "$ntp_cv_have___ss_family" in
26024 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
26032 # Look for in_port_t.
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
26035 $as_echo_n "checking for in_port_t... " >&6; }
26036 if ${isc_cv_have_in_port_t+:} false; then :
26037 $as_echo_n "(cached) " >&6
26039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26040 /* end confdefs.h. */
26042 #include <sys/types.h>
26043 #include <netinet/in.h>
26049 in_port_t port = 25;
26057 if ac_fn_c_try_compile "$LINENO"; then :
26058 isc_cv_have_in_port_t=yes
26060 isc_cv_have_in_port_t=no
26063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
26067 $as_echo "$isc_cv_have_in_port_t" >&6; }
26068 case "$isc_cv_have_in_port_t" in
26071 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
26076 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
26077 if ${ntp_cv_getsockname_socklen_type+:} false; then :
26078 $as_echo_n "(cached) " >&6
26081 getsockname_socklen_type_found=no
26082 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
26083 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
26084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26085 /* end confdefs.h. */
26087 #ifdef HAVE_SYS_TYPES_H
26088 # include <sys/types.h>
26090 #ifdef HAVE_SYS_SOCKET_H
26091 # include <sys/socket.h>
26099 getsockname(int, $getsockname_arg2,
26100 $ntp_cv_getsockname_socklen_type *);
26107 if ac_fn_c_try_compile "$LINENO"; then :
26108 getsockname_socklen_type_found=yes ; break 2
26110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26113 case "$getsockname_socklen_type_found" in
26115 ntp_cv_getsockname_socklen_type='socklen_t'
26117 { getsockname_arg2=; unset getsockname_arg2;}
26118 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
26123 $as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
26125 cat >>confdefs.h <<_ACEOF
26126 #define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
26131 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
26132 if ${isc_cv_platform_havesalen+:} false; then :
26133 $as_echo_n "(cached) " >&6
26135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26136 /* end confdefs.h. */
26138 #include <sys/types.h>
26139 #include <sys/socket.h>
26145 extern struct sockaddr *ps;
26153 if ac_fn_c_try_compile "$LINENO"; then :
26154 isc_cv_platform_havesalen=yes
26156 isc_cv_platform_havesalen=no
26159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
26163 $as_echo "$isc_cv_platform_havesalen" >&6; }
26164 case "$isc_cv_platform_havesalen" in
26167 $as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
26171 # Check whether --enable-ipv6 was given.
26172 if test "${enable_ipv6+set}" = set; then :
26173 enableval=$enable_ipv6;
26177 case "$enable_ipv6" in
26184 $as_echo "#define WANT_IPV6 1" >>confdefs.h
26197 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
26203 $as_echo_n "checking for IPv6 structures... " >&6; }
26204 if ${isc_cv_found_ipv6+:} false; then :
26205 $as_echo_n "(cached) " >&6
26207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26208 /* end confdefs.h. */
26210 #include <sys/types.h>
26211 #include <sys/socket.h>
26212 #include <netinet/in.h>
26218 struct sockaddr_in6 sin6;
26225 if ac_fn_c_try_compile "$LINENO"; then :
26226 isc_cv_found_ipv6=yes
26228 isc_cv_found_ipv6=no
26231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
26235 $as_echo "$isc_cv_found_ipv6" >&6; }
26238 # See whether IPv6 support is provided via a Kame add-on.
26239 # This is done before other IPv6 linking tests so LIBS is properly set.
26241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
26242 $as_echo_n "checking for Kame IPv6 support... " >&6; }
26244 # Check whether --with-kame was given.
26245 if test "${with_kame+set}" = set; then :
26246 withval=$with_kame; use_kame="$withval"
26252 case "$use_kame" in
26256 kame_path=/usr/local/v6
26259 kame_path="$use_kame"
26262 case "$use_kame" in
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26265 $as_echo "no" >&6; }
26268 if test -f $kame_path/lib/libinet6.a; then
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
26270 $as_echo "$kame_path/lib/libinet6.a" >&6; }
26271 LIBS="-L$kame_path/lib -linet6 $LIBS"
26273 as_fn_error $? "$kame_path/lib/libinet6.a not found.
26275 Please choose the proper path with the following command:
26277 configure --with-kame=PATH
26284 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
26285 # Including it on Kame-using platforms is very bad, though, because
26286 # Kame uses #error against direct inclusion. So include it on only
26287 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
26288 # This is done before the in6_pktinfo check because that's what
26289 # netinet6/in6.h is needed for.
26294 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
26296 isc_netinet6in6_hack="#include <netinet6/in6.h>"
26299 isc_netinet6in6_hack=""
26304 # This is similar to the netinet6/in6.h issue.
26307 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
26309 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
26311 isc_netinetin6_hack="#include <netinet/in6.h>"
26314 isc_netinetin6_hack=""
26319 case "$isc_cv_found_ipv6" in
26322 $as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
26324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
26325 $as_echo_n "checking for in6_pktinfo... " >&6; }
26326 if ${isc_cv_have_in6_pktinfo+:} false; then :
26327 $as_echo_n "(cached) " >&6
26329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26330 /* end confdefs.h. */
26332 #include <sys/types.h>
26333 #include <sys/socket.h>
26334 #include <netinet/in.h>
26335 $isc_netinetin6_hack
26336 $isc_netinet6in6_hack
26342 struct in6_pktinfo xyzzy;
26349 if ac_fn_c_try_compile "$LINENO"; then :
26350 isc_cv_have_in6_pktinfo=yes
26352 isc_cv_have_in6_pktinfo=no
26355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
26359 $as_echo "$isc_cv_have_in6_pktinfo" >&6; }
26360 case "$isc_cv_have_in6_pktinfo" in
26363 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
26368 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
26370 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
26371 if ${isc_cv_have_sin6_scope_id+:} false; then :
26372 $as_echo_n "(cached) " >&6
26374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26375 /* end confdefs.h. */
26377 #include <sys/types.h>
26378 #include <sys/socket.h>
26379 #include <netinet/in.h>
26380 $isc_netinetin6_hack
26381 $isc_netinet6in6_hack
26387 struct sockaddr_in6 xyzzy;
26388 xyzzy.sin6_scope_id = 0;
26395 if ac_fn_c_try_compile "$LINENO"; then :
26396 isc_cv_have_sin6_scope_id=yes
26398 isc_cv_have_sin6_scope_id=no
26401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
26405 $as_echo "$isc_cv_have_sin6_scope_id" >&6; }
26407 case "$isc_cv_have_sin6_scope_id" in
26410 $as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
26416 # We need this check run even without isc_cv_found_ipv6=yes
26418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
26419 $as_echo_n "checking for in6addr_any... " >&6; }
26420 if ${isc_cv_in6addr_any_links+:} false; then :
26421 $as_echo_n "(cached) " >&6
26425 LIBS="$LDADD_LIBNTP $LIBS"
26426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26427 /* end confdefs.h. */
26428 $ac_includes_default
26429 #include <sys/socket.h>
26430 #include <netinet/in.h>
26431 $isc_netinetin6_hack
26432 $isc_netinet6in6_hack
26438 printf("%x", in6addr_any.s6_addr[15]);
26445 if ac_fn_c_try_link "$LINENO"; then :
26446 isc_cv_in6addr_any_links=yes
26448 isc_cv_in6addr_any_links=no
26451 rm -f core conftest.err conftest.$ac_objext \
26452 conftest$ac_exeext conftest.$ac_ext
26454 { SAVED_LIBS=; unset SAVED_LIBS;}
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
26459 $as_echo "$isc_cv_in6addr_any_links" >&6; }
26461 case "$isc_cv_in6addr_any_links" in
26464 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
26470 $as_echo_n "checking for struct if_laddrconf... " >&6; }
26471 if ${isc_cv_struct_if_laddrconf+:} false; then :
26472 $as_echo_n "(cached) " >&6
26474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26475 /* end confdefs.h. */
26477 #include <sys/types.h>
26478 #include <net/if6.h>
26484 struct if_laddrconf a;
26491 if ac_fn_c_try_compile "$LINENO"; then :
26492 isc_cv_struct_if_laddrconf=yes
26494 isc_cv_struct_if_laddrconf=no
26497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
26501 $as_echo "$isc_cv_struct_if_laddrconf" >&6; }
26503 case "$isc_cv_struct_if_laddrconf" in
26506 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
26511 $as_echo_n "checking for struct if_laddrreq... " >&6; }
26512 if ${isc_cv_struct_if_laddrreq+:} false; then :
26513 $as_echo_n "(cached) " >&6
26515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26516 /* end confdefs.h. */
26518 #include <sys/types.h>
26519 #include <net/if6.h>
26525 struct if_laddrreq a;
26532 if ac_fn_c_try_compile "$LINENO"; then :
26533 isc_cv_struct_if_laddrreq=yes
26535 isc_cv_struct_if_laddrreq=no
26538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
26542 $as_echo "$isc_cv_struct_if_laddrreq" >&6; }
26544 case "$isc_cv_struct_if_laddrreq" in
26547 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
26552 $as_echo_n "checking for multicast IP support... " >&6; }
26553 if ${ntp_cv_multicast+:} false; then :
26554 $as_echo_n "(cached) " >&6
26557 ntp_cv_multicast=no
26559 i386-sequent-sysv4)
26562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26563 /* end confdefs.h. */
26565 #ifdef HAVE_NETINET_IN_H
26566 # include <netinet/in.h>
26573 struct ip_mreq ipmr;
26574 ipmr.imr_interface.s_addr = 0;
26581 if ac_fn_c_try_compile "$LINENO"; then :
26582 ntp_cv_multicast=yes
26584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
26591 $as_echo "$ntp_cv_multicast" >&6; }
26592 case "$ntp_cv_multicast" in
26595 $as_echo "#define MCAST 1" >>confdefs.h
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
26598 $as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
26599 if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
26600 $as_echo_n "(cached) " >&6
26604 *-*-netbsd*|*-*-*linux*)
26605 ntp_cv_typeof_ip_multicast_loop=u_int
26608 ntp_cv_typeof_ip_multicast_loop=u_char
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
26615 $as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
26617 cat >>confdefs.h <<_ACEOF
26618 #define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
26623 # Check whether --enable-getifaddrs was given.
26624 if test "${enable_getifaddrs+set}" = set; then :
26625 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
26627 want_getifaddrs="yes"
26632 case $want_getifaddrs in
26634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
26635 $as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
26637 case $want_getifaddrs in
26642 LIBS="$LDADD_LIBNTP $LIBS"
26643 for ac_func in getifaddrs
26645 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
26646 if test "x$ac_cv_func_getifaddrs" = xyes; then :
26647 cat >>confdefs.h <<_ACEOF
26648 #define HAVE_GETIFADDRS 1
26655 { SAVED_LIBS=; unset SAVED_LIBS;}
26660 # Check for if_nametoindex() for IPv6 scoped addresses support
26664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
26665 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
26666 if ${ac_cv_search_if_nametoindex+:} false; then :
26667 $as_echo_n "(cached) " >&6
26669 ac_func_search_save_LIBS=$LIBS
26670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26671 /* end confdefs.h. */
26673 /* Override any GCC internal prototype to avoid an error.
26674 Use char because int might match the return type of a GCC
26675 builtin and then its argument prototype would still apply. */
26679 char if_nametoindex ();
26683 return if_nametoindex ();
26688 for ac_lib in '' ipv6; do
26689 if test -z "$ac_lib"; then
26690 ac_res="none required"
26693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26695 if ac_fn_c_try_link "$LINENO"; then :
26696 ac_cv_search_if_nametoindex=$ac_res
26698 rm -f core conftest.err conftest.$ac_objext \
26700 if ${ac_cv_search_if_nametoindex+:} false; then :
26704 if ${ac_cv_search_if_nametoindex+:} false; then :
26707 ac_cv_search_if_nametoindex=no
26709 rm conftest.$ac_ext
26710 LIBS=$ac_func_search_save_LIBS
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
26713 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
26714 ac_res=$ac_cv_search_if_nametoindex
26715 if test "$ac_res" != no; then :
26716 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26722 LIBS="$LDADD_LIBNTP $LIBS"
26723 for ac_func in if_nametoindex
26725 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
26726 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
26727 cat >>confdefs.h <<_ACEOF
26728 #define HAVE_IF_NAMETOINDEX 1
26735 { SAVED_LIBS=; unset SAVED_LIBS;}
26736 case "$ac_cv_func_if_nametoindex" in
26739 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
26748 # these need work if we're to move libntp under sntp
26750 $as_echo "#define HAVE_NO_NICE 1" >>confdefs.h
26753 $as_echo "#define HAVE_TERMIOS 1" >>confdefs.h
26756 # Checks for library functions.
26757 for ac_func in socket
26759 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
26760 if test "x$ac_cv_func_socket" = xyes; then :
26761 cat >>confdefs.h <<_ACEOF
26762 #define HAVE_SOCKET 1
26770 # We may not need have_unity
26772 # Extract the first word of "ruby", so it can be a program name with args.
26773 set dummy ruby; ac_word=$2
26774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26775 $as_echo_n "checking for $ac_word... " >&6; }
26776 if ${ac_cv_path_PATH_RUBY+:} false; then :
26777 $as_echo_n "(cached) " >&6
26781 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
26784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26785 for as_dir in $PATH
26788 test -z "$as_dir" && as_dir=.
26789 for ac_exec_ext in '' $ac_executable_extensions; do
26790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26791 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
26792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26802 PATH_RUBY=$ac_cv_path_PATH_RUBY
26803 if test -n "$PATH_RUBY"; then
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
26805 $as_echo "$PATH_RUBY" >&6; }
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26808 $as_echo "no" >&6; }
26812 case "$PATH_RUBY" in
26816 *) PATH_RUBY="false"
26819 # We may not need UNITYBUILD_AVAILABLE
26820 if $have_unity; then
26821 UNITYBUILD_AVAILABLE_TRUE=
26822 UNITYBUILD_AVAILABLE_FALSE='#'
26824 UNITYBUILD_AVAILABLE_TRUE='#'
26825 UNITYBUILD_AVAILABLE_FALSE=
26830 # HMS: if we don't find c++ we should not look for gtest.
26832 ac_cpp='$CXXCPP $CPPFLAGS'
26833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26836 if test -z "$CXX"; then
26837 if test -n "$CCC"; then
26840 if test -n "$ac_tool_prefix"; then
26841 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26844 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26846 $as_echo_n "checking for $ac_word... " >&6; }
26847 if ${ac_cv_prog_CXX+:} false; then :
26848 $as_echo_n "(cached) " >&6
26850 if test -n "$CXX"; then
26851 ac_cv_prog_CXX="$CXX" # Let the user override the test.
26853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26854 for as_dir in $PATH
26857 test -z "$as_dir" && as_dir=.
26858 for ac_exec_ext in '' $ac_executable_extensions; do
26859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26860 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
26861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26870 CXX=$ac_cv_prog_CXX
26871 if test -n "$CXX"; then
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
26873 $as_echo "$CXX" >&6; }
26875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26876 $as_echo "no" >&6; }
26880 test -n "$CXX" && break
26883 if test -z "$CXX"; then
26885 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26887 # Extract the first word of "$ac_prog", so it can be a program name with args.
26888 set dummy $ac_prog; ac_word=$2
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26890 $as_echo_n "checking for $ac_word... " >&6; }
26891 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
26892 $as_echo_n "(cached) " >&6
26894 if test -n "$ac_ct_CXX"; then
26895 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
26897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26898 for as_dir in $PATH
26901 test -z "$as_dir" && as_dir=.
26902 for ac_exec_ext in '' $ac_executable_extensions; do
26903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26904 ac_cv_prog_ac_ct_CXX="$ac_prog"
26905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26914 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26915 if test -n "$ac_ct_CXX"; then
26916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
26917 $as_echo "$ac_ct_CXX" >&6; }
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26920 $as_echo "no" >&6; }
26924 test -n "$ac_ct_CXX" && break
26927 if test "x$ac_ct_CXX" = x; then
26930 case $cross_compiling:$ac_tool_warned in
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26934 ac_tool_warned=yes ;;
26942 # Provide some information about the compiler.
26943 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
26946 for ac_option in --version -v -V -qversion; do
26947 { { ac_try="$ac_compiler $ac_option >&5"
26948 case "(($ac_try" in
26949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26950 *) ac_try_echo=$ac_try;;
26952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26953 $as_echo "$ac_try_echo"; } >&5
26954 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
26956 if test -s conftest.err; then
26958 ... rest of stderr output deleted ...
26959 10q' conftest.err >conftest.er1
26960 cat conftest.er1 >&5
26962 rm -f conftest.er1 conftest.err
26963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26964 test $ac_status = 0; }
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
26968 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
26969 if ${ac_cv_cxx_compiler_gnu+:} false; then :
26970 $as_echo_n "(cached) " >&6
26972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26973 /* end confdefs.h. */
26986 if ac_fn_cxx_try_compile "$LINENO"; then :
26987 ac_compiler_gnu=yes
26991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26992 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
26996 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26997 if test $ac_compiler_gnu = yes; then
27002 ac_test_CXXFLAGS=${CXXFLAGS+set}
27003 ac_save_CXXFLAGS=$CXXFLAGS
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
27005 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
27006 if ${ac_cv_prog_cxx_g+:} false; then :
27007 $as_echo_n "(cached) " >&6
27009 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
27010 ac_cxx_werror_flag=yes
27011 ac_cv_prog_cxx_g=no
27013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27014 /* end confdefs.h. */
27024 if ac_fn_cxx_try_compile "$LINENO"; then :
27025 ac_cv_prog_cxx_g=yes
27028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27029 /* end confdefs.h. */
27039 if ac_fn_cxx_try_compile "$LINENO"; then :
27042 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
27044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27045 /* end confdefs.h. */
27055 if ac_fn_cxx_try_compile "$LINENO"; then :
27056 ac_cv_prog_cxx_g=yes
27058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27063 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
27066 $as_echo "$ac_cv_prog_cxx_g" >&6; }
27067 if test "$ac_test_CXXFLAGS" = set; then
27068 CXXFLAGS=$ac_save_CXXFLAGS
27069 elif test $ac_cv_prog_cxx_g = yes; then
27070 if test "$GXX" = yes; then
27076 if test "$GXX" = yes; then
27083 ac_cpp='$CPP $CPPFLAGS'
27084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27088 depcc="$CXX" am_compiler_list=
27090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
27091 $as_echo_n "checking dependency style of $depcc... " >&6; }
27092 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
27093 $as_echo_n "(cached) " >&6
27095 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
27096 # We make a subdir and do the tests there. Otherwise we can end up
27097 # making bogus files that we don't know about and never remove. For
27098 # instance it was reported that on HP-UX the gcc test will end up
27099 # making a dummy file named 'D' -- because '-MD' means "put the output
27101 rm -rf conftest.dir
27103 # Copy depcomp to subdir because otherwise we won't find it if we're
27104 # using a relative directory.
27105 cp "$am_depcomp" conftest.dir
27107 # We will build objects and dependencies in a subdirectory because
27108 # it helps to detect inapplicable dependency modes. For instance
27109 # both Tru64's cc and ICC support -MD to output dependencies as a
27110 # side effect of compilation, but ICC will put the dependencies in
27111 # the current directory while Tru64 will put them in the object
27115 am_cv_CXX_dependencies_compiler_type=none
27116 if test "$am_compiler_list" = ""; then
27117 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
27119 am__universal=false
27120 case " $depcc " in #(
27121 *\ -arch\ *\ -arch\ *) am__universal=true ;;
27124 for depmode in $am_compiler_list; do
27125 # Setup a source with many dependencies, because some compilers
27126 # like to wrap large dependency lists on column 80 (with \), and
27127 # we should not choose a depcomp mode which is confused by this.
27129 # We need to recreate these files for each test, as the compiler may
27130 # overwrite some of them when testing with obscure command lines.
27131 # This happens at least with the AIX C compiler.
27133 for i in 1 2 3 4 5 6; do
27134 echo '#include "conftst'$i'.h"' >> sub/conftest.c
27135 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
27136 # Solaris 10 /bin/sh.
27137 echo '/* dummy */' > sub/conftst$i.h
27139 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
27141 # We check with '-c' and '-o' for the sake of the "dashmstdout"
27142 # mode. It turns out that the SunPro C++ compiler does not properly
27143 # handle '-M -o', and we need to detect this. Also, some Intel
27144 # versions had trouble with output in subdirs.
27145 am__obj=sub/conftest.${OBJEXT-o}
27146 am__minus_obj="-o $am__obj"
27149 # This depmode causes a compiler race in universal mode.
27150 test "$am__universal" = false || continue
27153 # After this tag, mechanisms are not by side-effect, so they'll
27154 # only be used when explicitly requested.
27155 if test "x$enable_dependency_tracking" = xyes; then
27161 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
27162 # This compiler won't grok '-c -o', but also, the minuso test has
27163 # not run yet. These depmodes are late enough in the game, and
27164 # so weak that their functioning should not be impacted.
27165 am__obj=conftest.${OBJEXT-o}
27170 if depmode=$depmode \
27171 source=sub/conftest.c object=$am__obj \
27172 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
27173 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
27174 >/dev/null 2>conftest.err &&
27175 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
27176 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
27177 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
27178 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
27179 # icc doesn't choke on unknown options, it will just issue warnings
27180 # or remarks (even with -Werror). So we grep stderr for any message
27181 # that says an option was ignored or not supported.
27182 # When given -MP, icc 7.0 and 7.1 complain thusly:
27183 # icc: Command line warning: ignoring option '-M'; no argument required
27184 # The diagnosis changed in icc 8.0:
27185 # icc: Command line remark: option '-MP' not supported
27186 if (grep 'ignoring option' conftest.err ||
27187 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
27188 am_cv_CXX_dependencies_compiler_type=$depmode
27195 rm -rf conftest.dir
27197 am_cv_CXX_dependencies_compiler_type=none
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
27202 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
27203 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
27206 test "x$enable_dependency_tracking" != xno \
27207 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
27208 am__fastdepCXX_TRUE=
27209 am__fastdepCXX_FALSE='#'
27211 am__fastdepCXX_TRUE='#'
27212 am__fastdepCXX_FALSE=
27218 func_stripname_cnf ()
27221 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27222 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27224 } # func_stripname_cnf
27226 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
27227 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
27228 (test "X$CXX" != "Xg++"))) ; then
27230 ac_cpp='$CXXCPP $CPPFLAGS'
27231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
27235 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
27236 if test -z "$CXXCPP"; then
27237 if ${ac_cv_prog_CXXCPP+:} false; then :
27238 $as_echo_n "(cached) " >&6
27240 # Double quotes because CXXCPP needs to be expanded
27241 for CXXCPP in "$CXX -E" "/lib/cpp"
27243 ac_preproc_ok=false
27244 for ac_cxx_preproc_warn_flag in '' yes
27246 # Use a header file that comes with gcc, so configuring glibc
27247 # with a fresh cross-compiler works.
27248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27249 # <limits.h> exists even on freestanding compilers.
27250 # On the NeXT, cc -E runs the code through the compiler's parser,
27251 # not just through cpp. "Syntax error" is here to catch this case.
27252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27253 /* end confdefs.h. */
27255 # include <limits.h>
27257 # include <assert.h>
27261 if ac_fn_cxx_try_cpp "$LINENO"; then :
27264 # Broken: fails on valid input.
27267 rm -f conftest.err conftest.i conftest.$ac_ext
27269 # OK, works on sane cases. Now check whether nonexistent headers
27270 # can be detected and how.
27271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27272 /* end confdefs.h. */
27273 #include <ac_nonexistent.h>
27275 if ac_fn_cxx_try_cpp "$LINENO"; then :
27276 # Broken: success on invalid input.
27279 # Passes both tests.
27283 rm -f conftest.err conftest.i conftest.$ac_ext
27286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
27287 rm -f conftest.i conftest.err conftest.$ac_ext
27288 if $ac_preproc_ok; then :
27293 ac_cv_prog_CXXCPP=$CXXCPP
27296 CXXCPP=$ac_cv_prog_CXXCPP
27298 ac_cv_prog_CXXCPP=$CXXCPP
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
27301 $as_echo "$CXXCPP" >&6; }
27302 ac_preproc_ok=false
27303 for ac_cxx_preproc_warn_flag in '' yes
27305 # Use a header file that comes with gcc, so configuring glibc
27306 # with a fresh cross-compiler works.
27307 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27308 # <limits.h> exists even on freestanding compilers.
27309 # On the NeXT, cc -E runs the code through the compiler's parser,
27310 # not just through cpp. "Syntax error" is here to catch this case.
27311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27312 /* end confdefs.h. */
27314 # include <limits.h>
27316 # include <assert.h>
27320 if ac_fn_cxx_try_cpp "$LINENO"; then :
27323 # Broken: fails on valid input.
27326 rm -f conftest.err conftest.i conftest.$ac_ext
27328 # OK, works on sane cases. Now check whether nonexistent headers
27329 # can be detected and how.
27330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27331 /* end confdefs.h. */
27332 #include <ac_nonexistent.h>
27334 if ac_fn_cxx_try_cpp "$LINENO"; then :
27335 # Broken: success on invalid input.
27338 # Passes both tests.
27342 rm -f conftest.err conftest.i conftest.$ac_ext
27345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
27346 rm -f conftest.i conftest.err conftest.$ac_ext
27347 if $ac_preproc_ok; then :
27350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27352 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
27353 See \`config.log' for more details" "$LINENO" 5; }
27357 ac_cpp='$CPP $CPPFLAGS'
27358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27363 _lt_caught_CXX_error=yes
27367 ac_cpp='$CXXCPP $CPPFLAGS'
27368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27372 archive_cmds_need_lc_CXX=no
27373 allow_undefined_flag_CXX=
27374 always_export_symbols_CXX=no
27375 archive_expsym_cmds_CXX=
27376 compiler_needs_object_CXX=no
27377 export_dynamic_flag_spec_CXX=
27378 hardcode_direct_CXX=no
27379 hardcode_direct_absolute_CXX=no
27380 hardcode_libdir_flag_spec_CXX=
27381 hardcode_libdir_flag_spec_ld_CXX=
27382 hardcode_libdir_separator_CXX=
27383 hardcode_minus_L_CXX=no
27384 hardcode_shlibpath_var_CXX=unsupported
27385 hardcode_automatic_CXX=no
27386 inherit_rpath_CXX=no
27388 module_expsym_cmds_CXX=
27389 link_all_deplibs_CXX=unknown
27390 old_archive_cmds_CXX=$old_archive_cmds
27391 reload_flag_CXX=$reload_flag
27392 reload_cmds_CXX=$reload_cmds
27393 no_undefined_flag_CXX=
27394 whole_archive_flag_spec_CXX=
27395 enable_shared_with_static_runtimes_CXX=no
27397 # Source file extension for C++ test sources.
27400 # Object file extension for compiled C++ test sources.
27404 # No sense in running all these tests if we already determined that
27405 # the CXX compiler isn't working. Some variables (like enable_shared)
27406 # are currently assumed to apply to all compilers on this platform,
27407 # and will be corrupted by setting them based on a non-working compiler.
27408 if test "$_lt_caught_CXX_error" != yes; then
27409 # Code to be used in simple compile tests
27410 lt_simple_compile_test_code="int some_variable = 0;"
27412 # Code to be used in simple link tests
27413 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
27415 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
27422 # If no C compiler was specified, use CC.
27425 # If no C compiler flags were specified, use CFLAGS.
27426 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
27428 # Allow CC to be a program name with arguments.
27432 # save warnings/boilerplate of simple test code
27433 ac_outfile=conftest.$ac_objext
27434 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
27435 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27436 _lt_compiler_boilerplate=`cat conftest.err`
27439 ac_outfile=conftest.$ac_objext
27440 echo "$lt_simple_link_test_code" >conftest.$ac_ext
27441 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27442 _lt_linker_boilerplate=`cat conftest.err`
27446 # Allow CC to be a program name with arguments.
27448 lt_save_CFLAGS=$CFLAGS
27452 lt_save_with_gnu_ld=$with_gnu_ld
27453 lt_save_path_LD=$lt_cv_path_LD
27454 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
27455 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
27457 $as_unset lt_cv_prog_gnu_ld
27459 if test -n "${lt_cv_path_LDCXX+set}"; then
27460 lt_cv_path_LD=$lt_cv_path_LDCXX
27462 $as_unset lt_cv_path_LD
27464 test -z "${LDCXX+set}" || LD=$LDCXX
27469 for cc_temp in $compiler""; do
27471 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27472 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27477 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
27480 if test -n "$compiler"; then
27481 # We don't want -fno-exception when compiling C++ code, so set the
27482 # no_builtin_flag separately
27483 if test "$GXX" = yes; then
27484 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
27486 lt_prog_compiler_no_builtin_flag_CXX=
27489 if test "$GXX" = yes; then
27490 # Set up default GNU C++ configuration
27494 # Check whether --with-gnu-ld was given.
27495 if test "${with_gnu_ld+set}" = set; then :
27496 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
27502 if test "$GCC" = yes; then
27503 # Check if gcc -print-prog-name=ld gives a path.
27504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
27505 $as_echo_n "checking for ld used by $CC... " >&6; }
27508 # gcc leaves a trailing carriage return which upsets mingw
27509 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
27511 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
27514 # Accept absolute paths.
27516 re_direlt='/[^/][^/]*/\.\./'
27517 # Canonicalize the pathname of ld
27518 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
27519 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
27520 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
27522 test -z "$LD" && LD="$ac_prog"
27525 # If it fails, then pretend we aren't using GCC.
27529 # If it is relative, then search for the first ld in PATH.
27530 with_gnu_ld=unknown
27533 elif test "$with_gnu_ld" = yes; then
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
27535 $as_echo_n "checking for GNU ld... " >&6; }
27537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
27538 $as_echo_n "checking for non-GNU ld... " >&6; }
27540 if ${lt_cv_path_LD+:} false; then :
27541 $as_echo_n "(cached) " >&6
27543 if test -z "$LD"; then
27544 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
27545 for ac_dir in $PATH; do
27547 test -z "$ac_dir" && ac_dir=.
27548 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
27549 lt_cv_path_LD="$ac_dir/$ac_prog"
27550 # Check to see if the program is GNU ld. I'd rather use --version,
27551 # but apparently some variants of GNU ld only accept -v.
27552 # Break only if it was the GNU/non-GNU ld that we prefer.
27553 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
27554 *GNU* | *'with BFD'*)
27555 test "$with_gnu_ld" != no && break
27558 test "$with_gnu_ld" != yes && break
27565 lt_cv_path_LD="$LD" # Let the user override the test with a path.
27569 LD="$lt_cv_path_LD"
27570 if test -n "$LD"; then
27571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
27572 $as_echo "$LD" >&6; }
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27575 $as_echo "no" >&6; }
27577 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
27579 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
27580 if ${lt_cv_prog_gnu_ld+:} false; then :
27581 $as_echo_n "(cached) " >&6
27583 # I'd rather use --version here, but apparently some GNU lds only accept -v.
27584 case `$LD -v 2>&1 </dev/null` in
27585 *GNU* | *'with BFD'*)
27586 lt_cv_prog_gnu_ld=yes
27589 lt_cv_prog_gnu_ld=no
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
27594 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
27595 with_gnu_ld=$lt_cv_prog_gnu_ld
27603 # Check if GNU C++ uses GNU ld as the underlying linker, since the
27604 # archiving commands below assume that GNU ld is being used.
27605 if test "$with_gnu_ld" = yes; then
27606 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
27607 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
27609 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
27610 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
27612 # If archive_cmds runs LD, not CC, wlarc should be empty
27613 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
27614 # investigate it a little bit more. (MM)
27617 # ancient GNU ld didn't support --whole-archive et. al.
27618 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
27619 $GREP 'no-whole-archive' > /dev/null; then
27620 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
27622 whole_archive_flag_spec_CXX=
27628 # A generic and very simple default shared library creation
27629 # command for GNU C++ for the case where it uses the native
27630 # linker, instead of GNU ld. If possible, this setting should
27631 # overridden to take advantage of the native linker features on
27632 # the platform it is being used on.
27633 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
27636 # Commands to make compiler produce verbose output that lists
27637 # what "hidden" libraries, object files and flags are used when
27638 # linking a shared library.
27639 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
27647 # PORTME: fill in a description of your system's C++ link characteristics
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
27649 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
27653 # FIXME: insert proper C++ library support
27657 if test "$host_cpu" = ia64; then
27658 # On IA64, the linker does run time linking by default, so we don't
27659 # have to do anything special.
27660 aix_use_runtimelinking=no
27661 exp_sym_flag='-Bexport'
27664 aix_use_runtimelinking=no
27666 # Test if we are trying to use run time linking or normal
27667 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
27668 # need to do runtime linking.
27669 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
27670 for ld_flag in $LDFLAGS; do
27673 aix_use_runtimelinking=yes
27681 exp_sym_flag='-bexport'
27682 no_entry_flag='-bnoentry'
27685 # When large executables or shared objects are built, AIX ld can
27686 # have problems creating the table of contents. If linking a library
27687 # or program results in "error TOC overflow" add -mminimal-toc to
27688 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
27689 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
27691 archive_cmds_CXX=''
27692 hardcode_direct_CXX=yes
27693 hardcode_direct_absolute_CXX=yes
27694 hardcode_libdir_separator_CXX=':'
27695 link_all_deplibs_CXX=yes
27696 file_list_spec_CXX='${wl}-f,'
27698 if test "$GXX" = yes; then
27699 case $host_os in aix4.[012]|aix4.[012].*)
27700 # We only want to do this on AIX 4.2 and lower, the check
27701 # below for broken collect2 doesn't work under 4.3+
27702 collect2name=`${CC} -print-prog-name=collect2`
27703 if test -f "$collect2name" &&
27704 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
27706 # We have reworked collect2
27709 # We have old collect2
27710 hardcode_direct_CXX=unsupported
27711 # It fails to find uninstalled libraries when the uninstalled
27712 # path is not listed in the libpath. Setting hardcode_minus_L
27713 # to unsupported forces relinking
27714 hardcode_minus_L_CXX=yes
27715 hardcode_libdir_flag_spec_CXX='-L$libdir'
27716 hardcode_libdir_separator_CXX=
27719 shared_flag='-shared'
27720 if test "$aix_use_runtimelinking" = yes; then
27721 shared_flag="$shared_flag "'${wl}-G'
27725 if test "$host_cpu" = ia64; then
27726 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
27727 # chokes on -Wl,-G. The following line is correct:
27730 if test "$aix_use_runtimelinking" = yes; then
27731 shared_flag='${wl}-G'
27733 shared_flag='${wl}-bM:SRE'
27738 export_dynamic_flag_spec_CXX='${wl}-bexpall'
27739 # It seems that -bexpall does not export symbols beginning with
27740 # underscore (_), so it is better to generate a list of symbols to
27742 always_export_symbols_CXX=yes
27743 if test "$aix_use_runtimelinking" = yes; then
27744 # Warning - without using the other runtime loading flags (-brtl),
27745 # -berok will link without error, but may produce a broken library.
27746 allow_undefined_flag_CXX='-berok'
27747 # Determine the default libpath from the value encoded in an empty
27749 if test "${lt_cv_aix_libpath+set}" = set; then
27750 aix_libpath=$lt_cv_aix_libpath
27752 if ${lt_cv_aix_libpath__CXX+:} false; then :
27753 $as_echo_n "(cached) " >&6
27755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27756 /* end confdefs.h. */
27766 if ac_fn_cxx_try_link "$LINENO"; then :
27768 lt_aix_libpath_sed='
27769 /Import File Strings/,/^$/ {
27771 s/^0 *\([^ ]*\) *$/\1/
27775 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
27776 # Check for a 64-bit object if we didn't find anything.
27777 if test -z "$lt_cv_aix_libpath__CXX"; then
27778 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
27781 rm -f core conftest.err conftest.$ac_objext \
27782 conftest$ac_exeext conftest.$ac_ext
27783 if test -z "$lt_cv_aix_libpath__CXX"; then
27784 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
27789 aix_libpath=$lt_cv_aix_libpath__CXX
27792 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
27794 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
27796 if test "$host_cpu" = ia64; then
27797 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
27798 allow_undefined_flag_CXX="-z nodefs"
27799 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
27801 # Determine the default libpath from the value encoded in an
27802 # empty executable.
27803 if test "${lt_cv_aix_libpath+set}" = set; then
27804 aix_libpath=$lt_cv_aix_libpath
27806 if ${lt_cv_aix_libpath__CXX+:} false; then :
27807 $as_echo_n "(cached) " >&6
27809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27810 /* end confdefs.h. */
27820 if ac_fn_cxx_try_link "$LINENO"; then :
27822 lt_aix_libpath_sed='
27823 /Import File Strings/,/^$/ {
27825 s/^0 *\([^ ]*\) *$/\1/
27829 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
27830 # Check for a 64-bit object if we didn't find anything.
27831 if test -z "$lt_cv_aix_libpath__CXX"; then
27832 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
27835 rm -f core conftest.err conftest.$ac_objext \
27836 conftest$ac_exeext conftest.$ac_ext
27837 if test -z "$lt_cv_aix_libpath__CXX"; then
27838 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
27843 aix_libpath=$lt_cv_aix_libpath__CXX
27846 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
27847 # Warning - without using the other run time loading flags,
27848 # -berok will link without error, but may produce a broken library.
27849 no_undefined_flag_CXX=' ${wl}-bernotok'
27850 allow_undefined_flag_CXX=' ${wl}-berok'
27851 if test "$with_gnu_ld" = yes; then
27852 # We only use this code for GNU lds that support --whole-archive.
27853 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
27855 # Exported symbols can be pulled into shared objects from archives
27856 whole_archive_flag_spec_CXX='$convenience'
27858 archive_cmds_need_lc_CXX=yes
27859 # This is similar to how AIX traditionally builds its shared
27861 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
27867 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
27868 allow_undefined_flag_CXX=unsupported
27869 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
27870 # support --undefined. This deserves some investigation. FIXME
27871 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27878 case $cc_basename in
27880 # FIXME: insert proper C++ library support
27886 cygwin* | mingw* | pw32* | cegcc*)
27887 case $GXX,$cc_basename in
27890 # hardcode_libdir_flag_spec is actually meaningless, as there is
27891 # no search path for DLLs.
27892 hardcode_libdir_flag_spec_CXX=' '
27893 allow_undefined_flag_CXX=unsupported
27894 always_export_symbols_CXX=yes
27895 file_list_spec_CXX='@'
27896 # Tell ltmain to make .lib files, not .a files.
27898 # Tell ltmain to make .dll files, not .so files.
27900 # FIXME: Setting linknames here is a bad hack.
27901 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
27902 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
27903 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
27905 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
27907 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
27909 # The linker will not automatically build a static lib if we build a DLL.
27910 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
27911 enable_shared_with_static_runtimes_CXX=yes
27913 old_postinstall_cmds_CXX='chmod 644 $oldlib'
27914 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
27915 lt_tool_outputfile="@TOOL_OUTPUT@"~
27916 case $lt_outputfile in
27919 lt_outputfile="$lt_outputfile.exe"
27920 lt_tool_outputfile="$lt_tool_outputfile.exe"
27923 func_to_tool_file "$lt_outputfile"~
27924 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
27925 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
27926 $RM "$lt_outputfile.manifest";
27931 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
27932 # as there is no search path for DLLs.
27933 hardcode_libdir_flag_spec_CXX='-L$libdir'
27934 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
27935 allow_undefined_flag_CXX=unsupported
27936 always_export_symbols_CXX=no
27937 enable_shared_with_static_runtimes_CXX=yes
27939 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
27940 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
27941 # If the export-symbols file already is a .def file (1st line
27942 # is EXPORTS), use it as is; otherwise, prepend...
27943 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
27944 cp $export_symbols $output_objdir/$soname.def;
27946 echo EXPORTS > $output_objdir/$soname.def;
27947 cat $export_symbols >> $output_objdir/$soname.def;
27949 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
27956 darwin* | rhapsody*)
27959 archive_cmds_need_lc_CXX=no
27960 hardcode_direct_CXX=no
27961 hardcode_automatic_CXX=yes
27962 hardcode_shlibpath_var_CXX=unsupported
27963 if test "$lt_cv_ld_force_load" = "yes"; then
27964 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
27966 whole_archive_flag_spec_CXX=''
27968 link_all_deplibs_CXX=yes
27969 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
27970 case $cc_basename in
27971 ifort*) _lt_dar_can_shared=yes ;;
27972 *) _lt_dar_can_shared=$GCC ;;
27974 if test "$_lt_dar_can_shared" = "yes"; then
27975 output_verbose_link_cmd=func_echo_all
27976 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
27977 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
27978 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
27979 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
27980 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
27981 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
27982 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
27992 case $cc_basename in
27994 # FIXME: insert proper C++ library support
27998 # Green Hills C++ Compiler
27999 # FIXME: insert proper C++ library support
28003 # FIXME: insert proper C++ library support
28010 # C++ shared libraries reported to be fairly broken before
28016 archive_cmds_need_lc_CXX=no
28019 freebsd* | dragonfly*)
28020 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
28029 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28030 link_all_deplibs_CXX=yes
28034 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
28035 hardcode_libdir_separator_CXX=:
28036 export_dynamic_flag_spec_CXX='${wl}-E'
28037 hardcode_direct_CXX=yes
28038 hardcode_minus_L_CXX=yes # Not in the search PATH,
28039 # but as the default
28040 # location of the library.
28042 case $cc_basename in
28044 # FIXME: insert proper C++ library support
28048 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
28049 # Commands to make compiler produce verbose output that lists
28050 # what "hidden" libraries, object files and flags are used when
28051 # linking a shared library.
28053 # There doesn't appear to be a way to prevent this compiler from
28054 # explicitly linking system object files so we need to strip them
28055 # from the output so that they don't get included in the library
28057 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
28060 if test "$GXX" = yes; then
28061 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
28063 # FIXME: insert proper C++ library support
28071 if test $with_gnu_ld = no; then
28072 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
28073 hardcode_libdir_separator_CXX=:
28079 export_dynamic_flag_spec_CXX='${wl}-E'
28085 hardcode_direct_CXX=no
28086 hardcode_shlibpath_var_CXX=no
28089 hardcode_direct_CXX=yes
28090 hardcode_direct_absolute_CXX=yes
28091 hardcode_minus_L_CXX=yes # Not in the search PATH,
28092 # but as the default
28093 # location of the library.
28097 case $cc_basename in
28099 # FIXME: insert proper C++ library support
28105 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28108 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28111 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28114 # Commands to make compiler produce verbose output that lists
28115 # what "hidden" libraries, object files and flags are used when
28116 # linking a shared library.
28118 # There doesn't appear to be a way to prevent this compiler from
28119 # explicitly linking system object files so we need to strip them
28120 # from the output so that they don't get included in the library
28122 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
28125 if test "$GXX" = yes; then
28126 if test $with_gnu_ld = no; then
28129 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28132 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28135 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28140 # FIXME: insert proper C++ library support
28148 hardcode_direct_CXX=no
28149 hardcode_shlibpath_var_CXX=no
28150 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28151 export_dynamic_flag_spec_CXX='${wl}-E'
28152 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
28153 # Instead, shared libraries are loaded at an image base (0x10000000 by
28154 # default) and relocated if they conflict, which is a slow very memory
28155 # consuming and fragmenting process. To avoid this, we pick a random,
28156 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
28157 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
28158 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
28159 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
28162 case $cc_basename in
28165 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
28167 # Archives containing C++ object files must be created using
28168 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
28169 # necessary to make sure instantiated templates are included
28171 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
28174 if test "$GXX" = yes; then
28175 if test "$with_gnu_ld" = no; then
28176 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
28178 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
28181 link_all_deplibs_CXX=yes
28184 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
28185 hardcode_libdir_separator_CXX=:
28186 inherit_rpath_CXX=yes
28189 linux* | k*bsd*-gnu | kopensolaris*-gnu)
28190 case $cc_basename in
28192 # Kuck and Associates, Inc. (KAI) C++ Compiler
28194 # KCC will only create a shared library if the output file
28195 # ends with ".so" (or ".sl" for HP-UX), so rename the library
28196 # to its proper name (with version) after linking.
28197 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
28198 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
28199 # Commands to make compiler produce verbose output that lists
28200 # what "hidden" libraries, object files and flags are used when
28201 # linking a shared library.
28203 # There doesn't appear to be a way to prevent this compiler from
28204 # explicitly linking system object files so we need to strip them
28205 # from the output so that they don't get included in the library
28207 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
28209 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28210 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
28212 # Archives containing C++ object files must be created using
28213 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
28214 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
28219 # version 8.0 and above of icpc choke on multiply defined symbols
28220 # if we add $predep_objects and $postdep_objects, however 7.1 and
28221 # earlier do not add the objects themselves.
28222 case `$CC -V 2>&1` in
28224 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
28225 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
28227 *) # Version 8.0 or newer
28230 ia64*) tmp_idyn=' -i_dynamic';;
28232 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28233 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
28236 archive_cmds_need_lc_CXX=no
28237 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28238 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
28239 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
28242 # Portland Group C++ compiler
28244 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
28245 prelink_cmds_CXX='tpldir=Template.dir~
28247 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
28248 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
28249 old_archive_cmds_CXX='tpldir=Template.dir~
28251 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
28252 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
28254 archive_cmds_CXX='tpldir=Template.dir~
28256 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
28257 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
28258 archive_expsym_cmds_CXX='tpldir=Template.dir~
28260 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
28261 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
28263 *) # Version 6 and above use weak symbols
28264 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
28265 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
28269 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
28270 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
28271 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
28275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
28276 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
28278 runpath_var=LD_RUN_PATH
28279 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
28280 hardcode_libdir_separator_CXX=:
28282 # Commands to make compiler produce verbose output that lists
28283 # what "hidden" libraries, object files and flags are used when
28284 # linking a shared library.
28286 # There doesn't appear to be a way to prevent this compiler from
28287 # explicitly linking system object files so we need to strip them
28288 # from the output so that they don't get included in the library
28290 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
28292 xl* | mpixl* | bgxl*)
28293 # IBM XL 8.0 on PPC, with GNU ld
28294 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
28295 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
28296 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28297 if test "x$supports_anon_versioning" = xyes; then
28298 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
28299 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
28300 echo "local: *; };" >> $output_objdir/$libname.ver~
28301 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
28305 case `$CC -V 2>&1 | sed 5q` in
28308 no_undefined_flag_CXX=' -zdefs'
28309 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28310 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
28311 hardcode_libdir_flag_spec_CXX='-R$libdir'
28312 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
28313 compiler_needs_object_CXX=yes
28315 # Not sure whether something based on
28316 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
28318 output_verbose_link_cmd='func_echo_all'
28320 # Archives containing C++ object files must be created using
28321 # "CC -xar", where "CC" is the Sun C++ compiler. This is
28322 # necessary to make sure instantiated templates are included
28324 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
28332 # FIXME: insert proper C++ library support
28337 # FIXME: insert proper C++ library support
28342 case $cc_basename in
28344 # FIXME: insert proper C++ library support
28348 # FIXME: insert proper C++ library support
28355 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
28356 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
28358 hardcode_libdir_flag_spec_CXX='-R$libdir'
28359 hardcode_direct_CXX=yes
28360 hardcode_shlibpath_var_CXX=no
28362 # Workaround some broken pre-1.5 toolchains
28363 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
28371 # C++ shared libraries are fairly broken
28376 if test -f /usr/libexec/ld.so; then
28377 hardcode_direct_CXX=yes
28378 hardcode_shlibpath_var_CXX=no
28379 hardcode_direct_absolute_CXX=yes
28380 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
28381 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28382 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
28383 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
28384 export_dynamic_flag_spec_CXX='${wl}-E'
28385 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
28387 output_verbose_link_cmd=func_echo_all
28393 osf3* | osf4* | osf5*)
28394 case $cc_basename in
28396 # Kuck and Associates, Inc. (KAI) C++ Compiler
28398 # KCC will only create a shared library if the output file
28399 # ends with ".so" (or ".sl" for HP-UX), so rename the library
28400 # to its proper name (with version) after linking.
28401 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
28403 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28404 hardcode_libdir_separator_CXX=:
28406 # Archives containing C++ object files must be created using
28407 # the KAI C++ compiler.
28409 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
28410 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
28414 # Rational C++ 2.4.1
28415 # FIXME: insert proper C++ library support
28421 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
28422 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
28423 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
28426 allow_undefined_flag_CXX=' -expect_unresolved \*'
28427 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
28428 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
28429 echo "-hidden">> $lib.exp~
28430 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
28432 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
28436 hardcode_libdir_separator_CXX=:
28438 # Commands to make compiler produce verbose output that lists
28439 # what "hidden" libraries, object files and flags are used when
28440 # linking a shared library.
28442 # There doesn't appear to be a way to prevent this compiler from
28443 # explicitly linking system object files so we need to strip them
28444 # from the output so that they don't get included in the library
28446 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
28449 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
28450 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
28453 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
28456 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
28460 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
28461 hardcode_libdir_separator_CXX=:
28463 # Commands to make compiler produce verbose output that lists
28464 # what "hidden" libraries, object files and flags are used when
28465 # linking a shared library.
28466 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
28469 # FIXME: insert proper C++ library support
28477 # FIXME: insert proper C++ library support
28482 case $cc_basename in
28485 # FIXME: insert proper C++ library support
28490 # FIXME: insert proper C++ library support
28494 # FIXME: insert proper C++ library support
28501 case $cc_basename in
28503 # Sun C++ 4.2, 5.x and Centerline C++
28504 archive_cmds_need_lc_CXX=yes
28505 no_undefined_flag_CXX=' -zdefs'
28506 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28507 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
28508 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
28510 hardcode_libdir_flag_spec_CXX='-R$libdir'
28511 hardcode_shlibpath_var_CXX=no
28513 solaris2.[0-5] | solaris2.[0-5].*) ;;
28515 # The compiler driver will combine and reorder linker options,
28516 # but understands `-z linker_flag'.
28517 # Supported since Solaris 2.6 (maybe 2.5.1?)
28518 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
28521 link_all_deplibs_CXX=yes
28523 output_verbose_link_cmd='func_echo_all'
28525 # Archives containing C++ object files must be created using
28526 # "CC -xar", where "CC" is the Sun C++ compiler. This is
28527 # necessary to make sure instantiated templates are included
28529 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
28532 # Green Hills C++ Compiler
28533 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
28535 # The C++ compiler must be used to create the archive.
28536 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
28539 # GNU C++ compiler with Solaris linker
28540 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
28541 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
28542 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
28543 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
28544 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
28545 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
28547 # Commands to make compiler produce verbose output that lists
28548 # what "hidden" libraries, object files and flags are used when
28549 # linking a shared library.
28550 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
28552 # g++ 2.7 appears to require `-G' NOT `-shared' on this
28554 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
28555 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
28556 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
28558 # Commands to make compiler produce verbose output that lists
28559 # what "hidden" libraries, object files and flags are used when
28560 # linking a shared library.
28561 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
28564 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
28566 solaris2.[0-5] | solaris2.[0-5].*) ;;
28568 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
28576 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
28577 no_undefined_flag_CXX='${wl}-z,text'
28578 archive_cmds_need_lc_CXX=no
28579 hardcode_shlibpath_var_CXX=no
28580 runpath_var='LD_RUN_PATH'
28582 case $cc_basename in
28584 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28585 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28588 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28589 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28594 sysv5* | sco3.2v5* | sco5v6*)
28595 # Note: We can NOT use -z defs as we might desire, because we do not
28596 # link with -lc, and that would cause any symbols used from libc to
28597 # always be unresolved, which means just about no library would
28598 # ever link correctly. If we're not using GNU ld we use -z text
28599 # though, which does catch some bad symbols but isn't as heavy-handed
28601 no_undefined_flag_CXX='${wl}-z,text'
28602 allow_undefined_flag_CXX='${wl}-z,nodefs'
28603 archive_cmds_need_lc_CXX=no
28604 hardcode_shlibpath_var_CXX=no
28605 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
28606 hardcode_libdir_separator_CXX=':'
28607 link_all_deplibs_CXX=yes
28608 export_dynamic_flag_spec_CXX='${wl}-Bexport'
28609 runpath_var='LD_RUN_PATH'
28611 case $cc_basename in
28613 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28614 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28615 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
28616 '"$old_archive_cmds_CXX"
28617 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
28618 '"$reload_cmds_CXX"
28621 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28622 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28628 case $cc_basename in
28630 # NonStop-UX NCC 3.20
28631 # FIXME: insert proper C++ library support
28635 # FIXME: insert proper C++ library support
28642 # FIXME: insert proper C++ library support
28647 # FIXME: insert proper C++ library support
28652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
28653 $as_echo "$ld_shlibs_CXX" >&6; }
28654 test "$ld_shlibs_CXX" = no && can_build_shared=no
28660 ## There is no encapsulation within the following macros, do not change
28661 ## the running order or otherwise move them around unless you know exactly
28662 ## what you are doing...
28663 # Dependencies to place before and after the object being linked:
28664 predep_objects_CXX=
28665 postdep_objects_CXX=
28668 compiler_lib_search_path_CXX=
28670 cat > conftest.$ac_ext <<_LT_EOF
28674 Foo (void) { a = 0; }
28681 _lt_libdeps_save_CFLAGS=$CFLAGS
28682 case "$CC $CFLAGS " in #(
28683 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
28684 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
28687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
28688 (eval $ac_compile) 2>&5
28690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28691 test $ac_status = 0; }; then
28692 # Parse the compiler output and extract the necessary
28693 # objects, libraries and library flags.
28695 # Sentinel used to keep track of whether or not we are before
28696 # the conftest object file.
28697 pre_test_object_deps_done=no
28699 for p in `eval "$output_verbose_link_cmd"`; do
28700 case ${prev}${p} in
28703 # Some compilers place space between "-{L,R}" and the path.
28704 # Remove the space.
28705 if test $p = "-L" ||
28706 test $p = "-R"; then
28711 # Expand the sysroot to ease extracting the directories later.
28712 if test -z "$prev"; then
28714 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
28715 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
28716 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
28720 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
28722 if test "$pre_test_object_deps_done" = no; then
28725 # Internal compiler library paths should come after those
28726 # provided the user. The postdeps already come after the
28727 # user supplied libs so there is no need to process them.
28728 if test -z "$compiler_lib_search_path_CXX"; then
28729 compiler_lib_search_path_CXX="${prev}${p}"
28731 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
28734 # The "-l" case would never come before the object being
28735 # linked, so don't bother handling this case.
28738 if test -z "$postdeps_CXX"; then
28739 postdeps_CXX="${prev}${p}"
28741 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
28747 *.lto.$objext) ;; # Ignore GCC LTO objects
28749 # This assumes that the test object file only shows up
28750 # once in the compiler output.
28751 if test "$p" = "conftest.$objext"; then
28752 pre_test_object_deps_done=yes
28756 if test "$pre_test_object_deps_done" = no; then
28757 if test -z "$predep_objects_CXX"; then
28758 predep_objects_CXX="$p"
28760 predep_objects_CXX="$predep_objects_CXX $p"
28763 if test -z "$postdep_objects_CXX"; then
28764 postdep_objects_CXX="$p"
28766 postdep_objects_CXX="$postdep_objects_CXX $p"
28771 *) ;; # Ignore the rest.
28779 echo "libtool.m4: error: problem compiling CXX test program"
28782 $RM -f confest.$objext
28783 CFLAGS=$_lt_libdeps_save_CFLAGS
28785 # PORTME: override above test on systems where it is broken
28788 # Interix 3.5 installs completely hosed .la files for C++, so rather than
28789 # hack all around it, let's just trust "g++" to DTRT.
28790 predep_objects_CXX=
28791 postdep_objects_CXX=
28796 case `$CC -V 2>&1 | sed 5q` in
28800 # The more standards-conforming stlport4 library is
28801 # incompatible with the Cstd library. Avoid specifying
28802 # it if it's in CXXFLAGS. Ignore libCrun as
28803 # -library=stlport4 depends on it.
28804 case " $CXX $CXXFLAGS " in
28805 *" -library=stlport4 "*)
28806 solaris_use_stlport4=yes
28810 if test "$solaris_use_stlport4" != yes; then
28811 postdeps_CXX='-library=Cstd -library=Crun'
28818 case $cc_basename in
28820 # The more standards-conforming stlport4 library is
28821 # incompatible with the Cstd library. Avoid specifying
28822 # it if it's in CXXFLAGS. Ignore libCrun as
28823 # -library=stlport4 depends on it.
28824 case " $CXX $CXXFLAGS " in
28825 *" -library=stlport4 "*)
28826 solaris_use_stlport4=yes
28830 # Adding this requires a known-good setup of shared libraries for
28831 # Sun compiler versions before 5.6, else PIC objects from an old
28832 # archive will be linked into the output, leading to subtle bugs.
28833 if test "$solaris_use_stlport4" != yes; then
28834 postdeps_CXX='-library=Cstd -library=Crun'
28842 case " $postdeps_CXX " in
28843 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
28845 compiler_lib_search_dirs_CXX=
28846 if test -n "${compiler_lib_search_path_CXX}"; then
28847 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
28880 lt_prog_compiler_wl_CXX=
28881 lt_prog_compiler_pic_CXX=
28882 lt_prog_compiler_static_CXX=
28885 # C++ specific cases for pic, static, wl, etc.
28886 if test "$GXX" = yes; then
28887 lt_prog_compiler_wl_CXX='-Wl,'
28888 lt_prog_compiler_static_CXX='-static'
28892 # All AIX code is PIC.
28893 if test "$host_cpu" = ia64; then
28894 # AIX 5 now supports IA64 processor
28895 lt_prog_compiler_static_CXX='-Bstatic'
28902 # see comment about AmigaOS4 .so support
28903 lt_prog_compiler_pic_CXX='-fPIC'
28906 # FIXME: we need at least 68020 code to build shared libraries, but
28907 # adding the `-m68020' flag to GCC prevents building anything better,
28909 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
28914 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
28915 # PIC is the default for these OSes.
28917 mingw* | cygwin* | os2* | pw32* | cegcc*)
28918 # This hack is so that the source file can tell whether it is being
28919 # built for inclusion in a dll (and should export symbols for example).
28920 # Although the cygwin gcc ignores -fPIC, still need this for old-style
28921 # (--disable-auto-import) libraries
28922 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
28924 darwin* | rhapsody*)
28925 # PIC is the default on this platform
28926 # Common symbols not allowed in MH_DYLIB files
28927 lt_prog_compiler_pic_CXX='-fno-common'
28930 # DJGPP does not support shared libraries at all
28931 lt_prog_compiler_pic_CXX=
28934 # PIC is the default for Haiku.
28935 # The "-static" flag exists, but is broken.
28936 lt_prog_compiler_static_CXX=
28939 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
28940 # Instead, we relocate shared libraries at runtime.
28943 if test -d /usr/nec; then
28944 lt_prog_compiler_pic_CXX=-Kconform_pic
28948 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
28949 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
28950 # sets the default TLS model and affects inlining.
28955 lt_prog_compiler_pic_CXX='-fPIC'
28960 # QNX uses GNU C++, but need to define -shared option too, otherwise
28961 # it will coredump.
28962 lt_prog_compiler_pic_CXX='-fPIC -shared'
28965 lt_prog_compiler_pic_CXX='-fPIC'
28971 # All AIX code is PIC.
28972 if test "$host_cpu" = ia64; then
28973 # AIX 5 now supports IA64 processor
28974 lt_prog_compiler_static_CXX='-Bstatic'
28976 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
28980 case $cc_basename in
28982 # Green Hills C++ Compiler
28983 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
28987 mingw* | cygwin* | os2* | pw32* | cegcc*)
28988 # This hack is so that the source file can tell whether it is being
28989 # built for inclusion in a dll (and should export symbols for example).
28990 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
28993 case $cc_basename in
28995 lt_prog_compiler_pic_CXX='-KPIC'
28998 # Green Hills C++ Compiler
28999 lt_prog_compiler_pic_CXX='-pic'
29005 freebsd* | dragonfly*)
29006 # FreeBSD uses GNU C++
29008 hpux9* | hpux10* | hpux11*)
29009 case $cc_basename in
29011 lt_prog_compiler_wl_CXX='-Wl,'
29012 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
29013 if test "$host_cpu" != ia64; then
29014 lt_prog_compiler_pic_CXX='+Z'
29018 lt_prog_compiler_wl_CXX='-Wl,'
29019 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
29025 lt_prog_compiler_pic_CXX='+Z'
29034 # This is c89, which is MS Visual C++ (no shared libs)
29035 # Anyone wants to do a port?
29037 irix5* | irix6* | nonstopux*)
29038 case $cc_basename in
29040 lt_prog_compiler_wl_CXX='-Wl,'
29041 lt_prog_compiler_static_CXX='-non_shared'
29042 # CC pic flag -KPIC is the default.
29048 linux* | k*bsd*-gnu | kopensolaris*-gnu)
29049 case $cc_basename in
29052 lt_prog_compiler_wl_CXX='--backend -Wl,'
29053 lt_prog_compiler_pic_CXX='-fPIC'
29056 # old Intel C++ for x86_64 which still supported -KPIC.
29057 lt_prog_compiler_wl_CXX='-Wl,'
29058 lt_prog_compiler_pic_CXX='-KPIC'
29059 lt_prog_compiler_static_CXX='-static'
29062 # Intel C++, used to be incompatible with GCC.
29063 # ICC 10 doesn't accept -KPIC any more.
29064 lt_prog_compiler_wl_CXX='-Wl,'
29065 lt_prog_compiler_pic_CXX='-fPIC'
29066 lt_prog_compiler_static_CXX='-static'
29069 # Portland Group C++ compiler
29070 lt_prog_compiler_wl_CXX='-Wl,'
29071 lt_prog_compiler_pic_CXX='-fpic'
29072 lt_prog_compiler_static_CXX='-Bstatic'
29076 # Make sure the PIC flag is empty. It appears that all Alpha
29077 # Linux and Compaq Tru64 Unix objects are PIC.
29078 lt_prog_compiler_pic_CXX=
29079 lt_prog_compiler_static_CXX='-non_shared'
29081 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
29082 # IBM XL 8.0, 9.0 on PPC and BlueGene
29083 lt_prog_compiler_wl_CXX='-Wl,'
29084 lt_prog_compiler_pic_CXX='-qpic'
29085 lt_prog_compiler_static_CXX='-qstaticlink'
29088 case `$CC -V 2>&1 | sed 5q` in
29091 lt_prog_compiler_pic_CXX='-KPIC'
29092 lt_prog_compiler_static_CXX='-Bstatic'
29093 lt_prog_compiler_wl_CXX='-Qoption ld '
29104 case $cc_basename in
29106 lt_prog_compiler_pic_CXX='-W c,exportall'
29115 # QNX uses GNU C++, but need to define -shared option too, otherwise
29116 # it will coredump.
29117 lt_prog_compiler_pic_CXX='-fPIC -shared'
29119 osf3* | osf4* | osf5*)
29120 case $cc_basename in
29122 lt_prog_compiler_wl_CXX='--backend -Wl,'
29125 # Rational C++ 2.4.1
29126 lt_prog_compiler_pic_CXX='-pic'
29129 # Digital/Compaq C++
29130 lt_prog_compiler_wl_CXX='-Wl,'
29131 # Make sure the PIC flag is empty. It appears that all Alpha
29132 # Linux and Compaq Tru64 Unix objects are PIC.
29133 lt_prog_compiler_pic_CXX=
29134 lt_prog_compiler_static_CXX='-non_shared'
29143 case $cc_basename in
29145 # Sun C++ 4.2, 5.x and Centerline C++
29146 lt_prog_compiler_pic_CXX='-KPIC'
29147 lt_prog_compiler_static_CXX='-Bstatic'
29148 lt_prog_compiler_wl_CXX='-Qoption ld '
29151 # Green Hills C++ Compiler
29152 lt_prog_compiler_pic_CXX='-PIC'
29159 case $cc_basename in
29162 lt_prog_compiler_pic_CXX='-pic'
29163 lt_prog_compiler_static_CXX='-Bstatic'
29167 lt_prog_compiler_pic_CXX='-pic'
29173 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
29174 case $cc_basename in
29176 lt_prog_compiler_wl_CXX='-Wl,'
29177 lt_prog_compiler_pic_CXX='-KPIC'
29178 lt_prog_compiler_static_CXX='-Bstatic'
29183 case $cc_basename in
29185 # NonStop-UX NCC 3.20
29186 lt_prog_compiler_pic_CXX='-KPIC'
29195 lt_prog_compiler_can_build_shared_CXX=no
29201 # For platforms which do not support PIC, -DPIC is meaningless:
29203 lt_prog_compiler_pic_CXX=
29206 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
29210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
29211 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
29212 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
29213 $as_echo_n "(cached) " >&6
29215 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
29217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
29218 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
29219 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
29222 # Check to make sure the PIC flag actually works.
29224 if test -n "$lt_prog_compiler_pic_CXX"; then
29225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
29226 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
29227 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
29228 $as_echo_n "(cached) " >&6
29230 lt_cv_prog_compiler_pic_works_CXX=no
29231 ac_outfile=conftest.$ac_objext
29232 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
29233 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
29234 # Insert the option either (1) after the last *FLAGS variable, or
29235 # (2) before a word containing "conftest.", or (3) at the end.
29236 # Note that $ac_compile itself does not contain backslashes and begins
29237 # with a dollar sign (not a hyphen), so the echo should work correctly.
29238 # The option is referenced via a variable to avoid confusing sed.
29239 lt_compile=`echo "$ac_compile" | $SED \
29240 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
29241 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
29242 -e 's:$: $lt_compiler_flag:'`
29243 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
29244 (eval "$lt_compile" 2>conftest.err)
29246 cat conftest.err >&5
29247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248 if (exit $ac_status) && test -s "$ac_outfile"; then
29249 # The compiler can only warn and ignore the option if not recognized
29250 # So say no if there are warnings other than the usual output.
29251 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
29252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
29253 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
29254 lt_cv_prog_compiler_pic_works_CXX=yes
29260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
29261 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
29263 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
29264 case $lt_prog_compiler_pic_CXX in
29266 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
29269 lt_prog_compiler_pic_CXX=
29270 lt_prog_compiler_can_build_shared_CXX=no
29280 # Check to make sure the static flag actually works.
29282 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
29283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
29284 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
29285 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
29286 $as_echo_n "(cached) " >&6
29288 lt_cv_prog_compiler_static_works_CXX=no
29289 save_LDFLAGS="$LDFLAGS"
29290 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
29291 echo "$lt_simple_link_test_code" > conftest.$ac_ext
29292 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
29293 # The linker can only warn and ignore the option if not recognized
29294 # So say no if there are warnings
29295 if test -s conftest.err; then
29296 # Append any errors to the config.log.
29297 cat conftest.err 1>&5
29298 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
29299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
29300 if diff conftest.exp conftest.er2 >/dev/null; then
29301 lt_cv_prog_compiler_static_works_CXX=yes
29304 lt_cv_prog_compiler_static_works_CXX=yes
29308 LDFLAGS="$save_LDFLAGS"
29311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
29312 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
29314 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
29317 lt_prog_compiler_static_CXX=
29323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
29324 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
29325 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
29326 $as_echo_n "(cached) " >&6
29328 lt_cv_prog_compiler_c_o_CXX=no
29329 $RM -r conftest 2>/dev/null
29333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
29335 lt_compiler_flag="-o out/conftest2.$ac_objext"
29336 # Insert the option either (1) after the last *FLAGS variable, or
29337 # (2) before a word containing "conftest.", or (3) at the end.
29338 # Note that $ac_compile itself does not contain backslashes and begins
29339 # with a dollar sign (not a hyphen), so the echo should work correctly.
29340 lt_compile=`echo "$ac_compile" | $SED \
29341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
29342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
29343 -e 's:$: $lt_compiler_flag:'`
29344 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
29345 (eval "$lt_compile" 2>out/conftest.err)
29347 cat out/conftest.err >&5
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 if (exit $ac_status) && test -s out/conftest2.$ac_objext
29351 # The compiler can only warn and ignore the option if not recognized
29352 # So say no if there are warnings
29353 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
29354 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
29355 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
29356 lt_cv_prog_compiler_c_o_CXX=yes
29361 # SGI C++ compiler will create directory out/ii_files/ for
29362 # template instantiation
29363 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
29364 $RM out/* && rmdir out
29370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
29371 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
29375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
29376 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
29377 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
29378 $as_echo_n "(cached) " >&6
29380 lt_cv_prog_compiler_c_o_CXX=no
29381 $RM -r conftest 2>/dev/null
29385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
29387 lt_compiler_flag="-o out/conftest2.$ac_objext"
29388 # Insert the option either (1) after the last *FLAGS variable, or
29389 # (2) before a word containing "conftest.", or (3) at the end.
29390 # Note that $ac_compile itself does not contain backslashes and begins
29391 # with a dollar sign (not a hyphen), so the echo should work correctly.
29392 lt_compile=`echo "$ac_compile" | $SED \
29393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
29394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
29395 -e 's:$: $lt_compiler_flag:'`
29396 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
29397 (eval "$lt_compile" 2>out/conftest.err)
29399 cat out/conftest.err >&5
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 if (exit $ac_status) && test -s out/conftest2.$ac_objext
29403 # The compiler can only warn and ignore the option if not recognized
29404 # So say no if there are warnings
29405 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
29406 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
29407 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
29408 lt_cv_prog_compiler_c_o_CXX=yes
29413 # SGI C++ compiler will create directory out/ii_files/ for
29414 # template instantiation
29415 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
29416 $RM out/* && rmdir out
29422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
29423 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
29428 hard_links="nottested"
29429 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
29430 # do not overwrite the value of need_locks provided by the user
29431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
29432 $as_echo_n "checking if we can lock with hard links... " >&6; }
29435 ln conftest.a conftest.b 2>/dev/null && hard_links=no
29437 ln conftest.a conftest.b 2>&5 || hard_links=no
29438 ln conftest.a conftest.b 2>/dev/null && hard_links=no
29439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
29440 $as_echo "$hard_links" >&6; }
29441 if test "$hard_links" = no; then
29442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
29443 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
29452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
29453 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
29455 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
29456 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
29459 # If we're using GNU nm, then we don't want the "-C" option.
29460 # -C means demangle to AIX nm, but means don't demangle with GNU nm
29461 # Also, AIX nm treats weak defined symbols like other global defined
29462 # symbols, whereas GNU nm marks them as "W".
29463 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
29464 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
29466 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
29470 export_symbols_cmds_CXX="$ltdll_cmds"
29472 cygwin* | mingw* | cegcc*)
29473 case $cc_basename in
29476 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
29477 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
29482 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
29486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
29487 $as_echo "$ld_shlibs_CXX" >&6; }
29488 test "$ld_shlibs_CXX" = no && can_build_shared=no
29490 with_gnu_ld_CXX=$with_gnu_ld
29498 # Do we need to explicitly link libc?
29500 case "x$archive_cmds_need_lc_CXX" in
29502 # Assume -lc should be added
29503 archive_cmds_need_lc_CXX=yes
29505 if test "$enable_shared" = yes && test "$GCC" = yes; then
29506 case $archive_cmds_CXX in
29508 # FIXME: we may have to deal with multi-command sequences.
29511 # Test whether the compiler implicitly links with -lc since on some
29512 # systems, -lgcc has to come before -lc. If gcc already passes -lc
29513 # to ld, don't add -lc before -lgcc.
29514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
29515 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
29516 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
29517 $as_echo_n "(cached) " >&6
29520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
29522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
29523 (eval $ac_compile) 2>&5
29525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29526 test $ac_status = 0; } 2>conftest.err; then
29529 libobjs=conftest.$ac_objext
29531 wl=$lt_prog_compiler_wl_CXX
29532 pic_flag=$lt_prog_compiler_pic_CXX
29538 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
29539 allow_undefined_flag_CXX=
29540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
29541 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
29543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29544 test $ac_status = 0; }
29546 lt_cv_archive_cmds_need_lc_CXX=no
29548 lt_cv_archive_cmds_need_lc_CXX=yes
29550 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
29552 cat conftest.err 1>&5
29557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
29558 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
29559 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
29629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
29630 $as_echo_n "checking dynamic linker characteristics... " >&6; }
29632 library_names_spec=
29633 libname_spec='lib$name'
29637 postuninstall_cmds=
29641 shlibpath_overrides_runpath=unknown
29643 dynamic_linker="$host_os ld.so"
29644 sys_lib_dlsearch_path_spec="/lib /usr/lib"
29645 need_lib_prefix=unknown
29646 hardcode_into_libs=no
29648 # when you set need_version to no, make sure it does not cause -set_version
29649 # flags to be left without arguments
29650 need_version=unknown
29655 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
29656 shlibpath_var=LIBPATH
29658 # AIX 3 has no versioning support, so we append a major version to the name.
29659 soname_spec='${libname}${release}${shared_ext}$major'
29666 hardcode_into_libs=yes
29667 if test "$host_cpu" = ia64; then
29668 # AIX 5 supports IA64
29669 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
29670 shlibpath_var=LD_LIBRARY_PATH
29672 # With GCC up to 2.95.x, collect2 would create an import file
29673 # for dependence libraries. The import file would start with
29674 # the line `#! .'. This would cause the generated library to
29675 # depend on `.', always an invalid library. This was fixed in
29676 # development snapshots of GCC prior to 3.0.
29678 aix4 | aix4.[01] | aix4.[01].*)
29679 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
29681 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
29684 can_build_shared=no
29688 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
29689 # soname into executable. Probably we can add versioning support to
29690 # collect2, so additional links can be useful in future.
29691 if test "$aix_use_runtimelinking" = yes; then
29692 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
29693 # instead of lib<name>.a to let people know that these are not
29694 # typical AIX shared libraries.
29695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29697 # We preserve .a as extension for shared libraries through AIX4.2
29698 # and later when we are not doing run time linking.
29699 library_names_spec='${libname}${release}.a $libname.a'
29700 soname_spec='${libname}${release}${shared_ext}$major'
29702 shlibpath_var=LIBPATH
29709 # Since July 2007 AmigaOS4 officially supports .so libraries.
29710 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
29711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29714 library_names_spec='$libname.ixlibrary $libname.a'
29715 # Create ${libname}_ixlibrary.a entries in /sys/libs.
29716 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
29722 library_names_spec='${libname}${shared_ext}'
29723 dynamic_linker="$host_os ld.so"
29724 shlibpath_var=LIBRARY_PATH
29730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29731 soname_spec='${libname}${release}${shared_ext}$major'
29732 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
29733 shlibpath_var=LD_LIBRARY_PATH
29734 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
29735 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
29736 # the default ld.so.conf also contains /usr/contrib/lib and
29737 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
29738 # libtool to hard-code these into programs
29741 cygwin* | mingw* | pw32* | cegcc*)
29742 version_type=windows
29747 case $GCC,$cc_basename in
29750 library_names_spec='$libname.dll.a'
29751 # DLL is installed to $(libdir)/../bin by postinstall_cmds
29752 postinstall_cmds='base_file=`basename \${file}`~
29753 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
29754 dldir=$destdir/`dirname \$dlpath`~
29755 test -d \$dldir || mkdir -p \$dldir~
29756 $install_prog $dir/$dlname \$dldir/$dlname~
29757 chmod a+x \$dldir/$dlname~
29758 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
29759 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
29761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
29762 dlpath=$dir/\$dldll~
29764 shlibpath_overrides_runpath=yes
29768 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
29769 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29773 # MinGW DLLs use traditional 'lib' prefix
29774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29777 # pw32 DLLs use 'pw' prefix rather than 'lib'
29778 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29781 dynamic_linker='Win32 ld.exe'
29786 libname_spec='$name'
29787 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29788 library_names_spec='${libname}.dll.lib'
29792 sys_lib_search_path_spec=
29795 for lt_path in $LIB
29798 # Let DOS variable expansion print the short 8.3 style file name.
29799 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
29800 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
29803 # Convert to MSYS style.
29804 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
29807 # Convert to unix form, then to dos form, then back to unix form
29808 # but this time dos style (no spaces!) so that the unix form looks
29809 # like /cygdrive/c/PROGRA~1:/cygdr...
29810 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
29811 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
29812 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
29815 sys_lib_search_path_spec="$LIB"
29816 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
29817 # It is most probably a Windows format PATH.
29818 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
29820 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
29822 # FIXME: find the short name or the path components, as spaces are
29823 # common. (e.g. "Program Files" -> "PROGRA~1")
29827 # DLL is installed to $(libdir)/../bin by postinstall_cmds
29828 postinstall_cmds='base_file=`basename \${file}`~
29829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
29830 dldir=$destdir/`dirname \$dlpath`~
29831 test -d \$dldir || mkdir -p \$dldir~
29832 $install_prog $dir/$dlname \$dldir/$dlname'
29833 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
29834 dlpath=$dir/\$dldll~
29836 shlibpath_overrides_runpath=yes
29837 dynamic_linker='Win32 link.exe'
29841 # Assume MSVC wrapper
29842 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
29843 dynamic_linker='Win32 ld.exe'
29846 # FIXME: first we should search . and the directory the executable is in
29850 darwin* | rhapsody*)
29851 dynamic_linker="$host_os dyld"
29852 version_type=darwin
29855 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
29856 soname_spec='${libname}${release}${major}$shared_ext'
29857 shlibpath_overrides_runpath=yes
29858 shlibpath_var=DYLD_LIBRARY_PATH
29859 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
29861 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
29868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
29869 soname_spec='${libname}${release}${shared_ext}$major'
29870 shlibpath_var=LD_LIBRARY_PATH
29877 freebsd* | dragonfly*)
29878 # DragonFly does not have aout. When/if they implement a new
29879 # versioning mechanism, adjust this.
29880 if test -x /usr/bin/objformat; then
29881 objformat=`/usr/bin/objformat`
29884 freebsd[123]*) objformat=aout ;;
29885 *) objformat=elf ;;
29888 version_type=freebsd-$objformat
29889 case $version_type in
29891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
29896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
29900 shlibpath_var=LD_LIBRARY_PATH
29903 shlibpath_overrides_runpath=yes
29905 freebsd3.[01]* | freebsdelf3.[01]*)
29906 shlibpath_overrides_runpath=yes
29907 hardcode_into_libs=yes
29909 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
29910 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
29911 shlibpath_overrides_runpath=no
29912 hardcode_into_libs=yes
29914 *) # from 4.6 on, and DragonFly
29915 shlibpath_overrides_runpath=yes
29916 hardcode_into_libs=yes
29925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
29926 soname_spec='${libname}${release}${shared_ext}$major'
29927 shlibpath_var=LD_LIBRARY_PATH
29928 hardcode_into_libs=yes
29935 dynamic_linker="$host_os runtime_loader"
29936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
29937 soname_spec='${libname}${release}${shared_ext}$major'
29938 shlibpath_var=LIBRARY_PATH
29939 shlibpath_overrides_runpath=yes
29940 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
29941 hardcode_into_libs=yes
29944 hpux9* | hpux10* | hpux11*)
29945 # Give a soname corresponding to the major version so that dld.sl refuses to
29946 # link against other versions.
29953 hardcode_into_libs=yes
29954 dynamic_linker="$host_os dld.so"
29955 shlibpath_var=LD_LIBRARY_PATH
29956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
29957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29958 soname_spec='${libname}${release}${shared_ext}$major'
29959 if test "X$HPUX_IA64_MODE" = X32; then
29960 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
29962 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
29964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
29968 hardcode_into_libs=yes
29969 dynamic_linker="$host_os dld.sl"
29970 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
29971 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
29972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29973 soname_spec='${libname}${release}${shared_ext}$major'
29974 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
29975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
29979 dynamic_linker="$host_os dld.sl"
29980 shlibpath_var=SHLIB_PATH
29981 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
29982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29983 soname_spec='${libname}${release}${shared_ext}$major'
29986 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
29987 postinstall_cmds='chmod 555 $lib'
29988 # or fails outright, so override atomically:
29989 install_override_mode=555
29996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
29997 soname_spec='${libname}${release}${shared_ext}$major'
29998 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
29999 shlibpath_var=LD_LIBRARY_PATH
30000 shlibpath_overrides_runpath=no
30001 hardcode_into_libs=yes
30004 irix5* | irix6* | nonstopux*)
30006 nonstopux*) version_type=nonstopux ;;
30008 if test "$lt_cv_prog_gnu_ld" = yes; then
30016 soname_spec='${libname}${release}${shared_ext}$major'
30017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
30019 irix5* | nonstopux*)
30020 libsuff= shlibsuff=
30023 case $LD in # libtool.m4 will add one of these switches to LD
30024 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
30025 libsuff= shlibsuff= libmagic=32-bit;;
30026 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
30027 libsuff=32 shlibsuff=N32 libmagic=N32;;
30028 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
30029 libsuff=64 shlibsuff=64 libmagic=64-bit;;
30030 *) libsuff= shlibsuff= libmagic=never-match;;
30034 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
30035 shlibpath_overrides_runpath=no
30036 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
30037 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
30038 hardcode_into_libs=yes
30041 # No shared lib support for Linux oldld, aout, or coff.
30042 linux*oldld* | linux*aout* | linux*coff*)
30046 # This must be Linux ELF.
30047 linux* | k*bsd*-gnu | kopensolaris*-gnu)
30051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30052 soname_spec='${libname}${release}${shared_ext}$major'
30053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
30054 shlibpath_var=LD_LIBRARY_PATH
30055 shlibpath_overrides_runpath=no
30057 # Some binutils ld are patched to set DT_RUNPATH
30058 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
30059 $as_echo_n "(cached) " >&6
30061 lt_cv_shlibpath_overrides_runpath=no
30062 save_LDFLAGS=$LDFLAGS
30063 save_libdir=$libdir
30064 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
30065 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
30066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30067 /* end confdefs.h. */
30077 if ac_fn_cxx_try_link "$LINENO"; then :
30078 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
30079 lt_cv_shlibpath_overrides_runpath=yes
30082 rm -f core conftest.err conftest.$ac_objext \
30083 conftest$ac_exeext conftest.$ac_ext
30084 LDFLAGS=$save_LDFLAGS
30085 libdir=$save_libdir
30089 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
30091 # This implies no fast_install, which is unacceptable.
30092 # Some rework will be needed to allow for fast_install
30093 # before this can be enabled.
30094 hardcode_into_libs=yes
30096 # Append ld.so.conf contents to the search path
30097 if test -f /etc/ld.so.conf; then
30098 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' ' '`
30099 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
30102 # We used to test for /lib/ld.so.1 and disable shared libraries on
30103 # powerpc, because MkLinux only supported shared libraries with the
30104 # GNU dynamic linker. Since this was broken with cross compilers,
30105 # most powerpc-linux boxes support dynamic linking these days and
30106 # people can always --disable-shared, the test was removed, and we
30107 # assume the GNU/Linux dynamic linker is in use.
30108 dynamic_linker='GNU/Linux ld.so'
30115 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
30116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
30117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
30118 dynamic_linker='NetBSD (a.out) ld.so'
30120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
30121 soname_spec='${libname}${release}${shared_ext}$major'
30122 dynamic_linker='NetBSD ld.elf_so'
30124 shlibpath_var=LD_LIBRARY_PATH
30125 shlibpath_overrides_runpath=yes
30126 hardcode_into_libs=yes
30131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30132 shlibpath_var=LD_LIBRARY_PATH
30133 shlibpath_overrides_runpath=yes
30140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30141 soname_spec='${libname}${release}${shared_ext}$major'
30142 shlibpath_var=LD_LIBRARY_PATH
30143 shlibpath_overrides_runpath=no
30144 hardcode_into_libs=yes
30145 dynamic_linker='ldqnx.so'
30150 sys_lib_dlsearch_path_spec="/usr/lib"
30152 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
30154 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
30155 *) need_version=no ;;
30157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
30158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
30159 shlibpath_var=LD_LIBRARY_PATH
30160 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
30162 openbsd2.[89] | openbsd2.[89].*)
30163 shlibpath_overrides_runpath=no
30166 shlibpath_overrides_runpath=yes
30170 shlibpath_overrides_runpath=yes
30175 libname_spec='$name'
30178 library_names_spec='$libname${shared_ext} $libname.a'
30179 dynamic_linker='OS/2 ld.exe'
30180 shlibpath_var=LIBPATH
30183 osf3* | osf4* | osf5*)
30187 soname_spec='${libname}${release}${shared_ext}$major'
30188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30189 shlibpath_var=LD_LIBRARY_PATH
30190 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
30191 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
30202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30203 soname_spec='${libname}${release}${shared_ext}$major'
30204 shlibpath_var=LD_LIBRARY_PATH
30205 shlibpath_overrides_runpath=yes
30206 hardcode_into_libs=yes
30207 # ldd complains unless libraries are executable
30208 postinstall_cmds='chmod +x $lib'
30213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
30214 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
30215 shlibpath_var=LD_LIBRARY_PATH
30216 shlibpath_overrides_runpath=yes
30217 if test "$with_gnu_ld" = yes; then
30225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30226 soname_spec='${libname}${release}${shared_ext}$major'
30227 shlibpath_var=LD_LIBRARY_PATH
30228 case $host_vendor in
30230 shlibpath_overrides_runpath=no
30232 runpath_var=LD_RUN_PATH
30240 shlibpath_overrides_runpath=no
30241 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
30247 if test -d /usr/nec ;then
30249 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
30250 soname_spec='$libname${shared_ext}.$major'
30251 shlibpath_var=LD_LIBRARY_PATH
30255 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
30256 version_type=freebsd-elf
30259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
30260 soname_spec='${libname}${release}${shared_ext}$major'
30261 shlibpath_var=LD_LIBRARY_PATH
30262 shlibpath_overrides_runpath=yes
30263 hardcode_into_libs=yes
30264 if test "$with_gnu_ld" = yes; then
30265 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
30267 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
30270 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
30274 sys_lib_dlsearch_path_spec='/usr/lib'
30278 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
30282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30283 shlibpath_var=LD_LIBRARY_PATH
30284 shlibpath_overrides_runpath=no
30285 hardcode_into_libs=yes
30290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30291 soname_spec='${libname}${release}${shared_ext}$major'
30292 shlibpath_var=LD_LIBRARY_PATH
30299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
30300 $as_echo "$dynamic_linker" >&6; }
30301 test "$dynamic_linker" = no && can_build_shared=no
30303 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
30304 if test "$GCC" = yes; then
30305 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
30308 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
30309 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
30311 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
30312 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
30352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
30353 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
30354 hardcode_action_CXX=
30355 if test -n "$hardcode_libdir_flag_spec_CXX" ||
30356 test -n "$runpath_var_CXX" ||
30357 test "X$hardcode_automatic_CXX" = "Xyes" ; then
30359 # We can hardcode non-existent directories.
30360 if test "$hardcode_direct_CXX" != no &&
30361 # If the only mechanism to avoid hardcoding is shlibpath_var, we
30362 # have to relink, otherwise we might link with an installed library
30363 # when we should be linking with a yet-to-be-installed one
30364 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
30365 test "$hardcode_minus_L_CXX" != no; then
30366 # Linking always hardcodes the temporary library directory.
30367 hardcode_action_CXX=relink
30369 # We can link without hardcoding, and we can hardcode nonexisting dirs.
30370 hardcode_action_CXX=immediate
30373 # We cannot hardcode anything, or else we can only hardcode existing
30375 hardcode_action_CXX=unsupported
30377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
30378 $as_echo "$hardcode_action_CXX" >&6; }
30380 if test "$hardcode_action_CXX" = relink ||
30381 test "$inherit_rpath_CXX" = yes; then
30382 # Fast installation is not supported
30383 enable_fast_install=no
30384 elif test "$shlibpath_overrides_runpath" = yes ||
30385 test "$enable_shared" = no; then
30386 # Fast installation is not necessary
30387 enable_fast_install=needless
30396 fi # test -n "$compiler"
30399 CFLAGS=$lt_save_CFLAGS
30403 with_gnu_ld=$lt_save_with_gnu_ld
30404 lt_cv_path_LDCXX=$lt_cv_path_LD
30405 lt_cv_path_LD=$lt_save_path_LD
30406 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
30407 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
30408 fi # test "$_lt_caught_CXX_error" != yes
30411 ac_cpp='$CPP $CPPFLAGS'
30412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30420 # Check whether --with-gtest was given.
30421 if test "${with_gtest+set}" = set; then :
30422 withval=$with_gtest; try_gtest=$withval
30428 case "$try_gtest" in
30430 # Extract the first word of "gtest-config", so it can be a program name with args.
30431 set dummy gtest-config; ac_word=$2
30432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30433 $as_echo_n "checking for $ac_word... " >&6; }
30434 if ${ac_cv_path_GTEST_CONFIG+:} false; then :
30435 $as_echo_n "(cached) " >&6
30437 case $GTEST_CONFIG in
30439 ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
30442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30443 for as_dir in $PATH
30446 test -z "$as_dir" && as_dir=.
30447 for ac_exec_ext in '' $ac_executable_extensions; do
30448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30449 ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30460 GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
30461 if test -n "$GTEST_CONFIG"; then
30462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
30463 $as_echo "$GTEST_CONFIG" >&6; }
30465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30466 $as_echo "no" >&6; }
30470 { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
30471 case x${GTEST_CONFIG} in
30474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
30475 $as_echo_n "checking gtest version... " >&6; }
30476 gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
30477 case "$gtest_version_test" in
30481 GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
30482 GTEST_LIBS=`$GTEST_CONFIG --libs`
30483 GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
30484 GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`
30492 gtest_version=`$GTEST_CONFIG --version`
30495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
30496 $as_echo "($gtest_version) ok" >&6; }
30498 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
30499 $as_echo "($gtest_version) not ok" >&6; }
30502 { gtest_version_test=; unset gtest_version_test;}
30503 { gtest_version=; unset gtest_version;}
30507 GTEST_AVAILABLE_TRUE=
30508 GTEST_AVAILABLE_FALSE='#'
30510 GTEST_AVAILABLE_TRUE='#'
30511 GTEST_AVAILABLE_FALSE=
30523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
30524 $as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
30525 # Check whether --enable-problem-tests was given.
30526 if test "${enable_problem_tests+set}" = set; then :
30527 enableval=$enable_problem_tests; sntp_ept=$enableval
30533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_ept" >&5
30534 $as_echo "$sntp_ept" >&6; }
30536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-kodDatabase" >&5
30537 $as_echo_n "checking if we can run test-kodDatabase... " >&6; }
30538 sntp_test_kodDatabase="no"
30539 case "$sntp_ept:$cross:$host" in
30540 no:0:*-apple-darwin12.6.0) ;;
30541 *) sntp_test_kodDatabase="yes" ;;
30543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_test_kodDatabase" >&5
30544 $as_echo "$sntp_test_kodDatabase" >&6; }
30545 if test x$sntp_test_kodDatabase = xyes; then
30546 BUILD_TEST_KODDATABASE_TRUE=
30547 BUILD_TEST_KODDATABASE_FALSE='#'
30549 BUILD_TEST_KODDATABASE_TRUE='#'
30550 BUILD_TEST_KODDATABASE_FALSE=
30554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-kodFile" >&5
30555 $as_echo_n "checking if we can run test-kodFile... " >&6; }
30556 sntp_test_kodFile="no"
30557 case "$sntp_ept:$cross:$host" in
30558 no:0:*-apple-darwin12.6.0) ;;
30559 *) sntp_test_kodFile="yes" ;;
30561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_test_kodFile" >&5
30562 $as_echo "$sntp_test_kodFile" >&6; }
30563 if test x$sntp_test_kodFile = xyes; then
30564 BUILD_TEST_KODFILE_TRUE=
30565 BUILD_TEST_KODFILE_FALSE='#'
30567 BUILD_TEST_KODFILE_TRUE='#'
30568 BUILD_TEST_KODFILE_FALSE=
30574 # All libraries should be in various LIB_* variables now.
30576 # Sadly not. There is a gettext() check somewhere, and on Solaris this pulls
30577 # in -lintl -lgen, outside our "scope".
30579 ac_config_files="$ac_config_files Makefile"
30581 ac_config_files="$ac_config_files include/Makefile"
30583 ac_config_files="$ac_config_files scripts/Makefile"
30585 ac_config_files="$ac_config_files tests/Makefile"
30587 ac_config_files="$ac_config_files tests/fileHandlingTest.h"
30589 ac_config_files="$ac_config_files unity/Makefile"
30592 cat >confcache <<\_ACEOF
30593 # This file is a shell script that caches the results of configure
30594 # tests run on this system so they can be shared between configure
30595 # scripts and configure runs, see configure's option --config-cache.
30596 # It is not useful on other systems. If it contains results you don't
30597 # want to keep, you may remove or edit it.
30599 # config.status only pays attention to the cache file if you give it
30600 # the --recheck option to rerun configure.
30602 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30604 # following values.
30608 # The following way of writing the cache mishandles newlines in values,
30609 # but we know of no workaround that is simple, portable, and efficient.
30610 # So, we kill variables containing newlines.
30611 # Ultrix sh set writes to stderr and can't be redirected directly,
30612 # and sets the high bit in the cache file unless we assign to the vars.
30614 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30615 eval ac_val=\$$ac_var
30619 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30620 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30623 _ | IFS | as_nl) ;; #(
30624 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30625 *) { eval $ac_var=; unset $ac_var;} ;;
30631 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30632 *${as_nl}ac_space=\ *)
30633 # `set' does not quote correctly, so add quotes: double-quote
30634 # substitution turns \\\\ into \\, and sed turns \\ into \.
30637 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30640 # `set' quotes correctly as required by POSIX, so do not add quotes.
30641 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30650 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30652 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30654 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30655 if test -w "$cache_file"; then
30656 if test "x$cache_file" != "x/dev/null"; then
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30658 $as_echo "$as_me: updating cache $cache_file" >&6;}
30659 if test ! -f "$cache_file" || test -h "$cache_file"; then
30660 cat confcache >"$cache_file"
30662 case $cache_file in #(
30664 mv -f confcache "$cache_file"$$ &&
30665 mv -f "$cache_file"$$ "$cache_file" ;; #(
30667 mv -f confcache "$cache_file" ;;
30672 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30673 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30678 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30679 # Let make expand exec_prefix.
30680 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30682 DEFS=-DHAVE_CONFIG_H
30687 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30688 # 1. Remove the extension, and $U if already installed.
30689 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30690 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30691 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30692 # will be set to the directory where LIBOBJS objects are built.
30693 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30694 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30696 LIBOBJS=$ac_libobjs
30698 LTLIBOBJS=$ac_ltlibobjs
30701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
30702 $as_echo_n "checking that generated files are newer than configure... " >&6; }
30703 if test -n "$am_sleep_pid"; then
30704 # Hide warnings about reused PIDs.
30705 wait $am_sleep_pid 2>/dev/null
30707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
30708 $as_echo "done" >&6; }
30709 if test -n "$EXEEXT"; then
30711 am__EXEEXT_FALSE='#'
30713 am__EXEEXT_TRUE='#'
30717 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30718 as_fn_error $? "conditional \"AMDEP\" was never defined.
30719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30721 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30722 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
30723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30725 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30726 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
30727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30730 if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
30731 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
30732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30734 if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
30735 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
30736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30738 if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
30739 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
30740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30742 if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
30743 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
30744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30746 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
30747 as_fn_error $? "conditional \"PTHREADS\" was never defined.
30748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30750 if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
30751 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
30752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30754 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
30755 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
30756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30758 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
30759 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
30760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30762 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
30763 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
30764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30766 if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
30767 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
30768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30770 if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
30771 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
30772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30774 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30775 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
30776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30778 if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
30779 as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
30780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30782 if test -z "${BUILD_TEST_KODDATABASE_TRUE}" && test -z "${BUILD_TEST_KODDATABASE_FALSE}"; then
30783 as_fn_error $? "conditional \"BUILD_TEST_KODDATABASE\" was never defined.
30784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30786 if test -z "${BUILD_TEST_KODFILE_TRUE}" && test -z "${BUILD_TEST_KODFILE_FALSE}"; then
30787 as_fn_error $? "conditional \"BUILD_TEST_KODFILE\" was never defined.
30788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30791 : "${CONFIG_STATUS=./config.status}"
30793 ac_clean_files_save=$ac_clean_files
30794 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30795 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30796 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30798 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30800 # Generated by $as_me.
30801 # Run this file to recreate the current configuration.
30802 # Compiler output produced by configure, useful for debugging
30803 # configure, is in config.log if it exists.
30806 ac_cs_recheck=false
30809 SHELL=\${CONFIG_SHELL-$SHELL}
30812 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30813 ## -------------------- ##
30814 ## M4sh Initialization. ##
30815 ## -------------------- ##
30817 # Be more Bourne compatible
30818 DUALCASE=1; export DUALCASE # for MKS sh
30819 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30822 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30823 # is contrary to our usage. Disable this feature.
30824 alias -g '${1+"$@"}'='"$@"'
30825 setopt NO_GLOB_SUBST
30827 case `(set -o) 2>/dev/null` in #(
30839 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30840 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30841 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30842 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30843 # Prefer a ksh shell builtin over an external printf program on Solaris,
30844 # but without wasting forks for bash or zsh.
30845 if test -z "$BASH_VERSION$ZSH_VERSION" \
30846 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30847 as_echo='print -r --'
30848 as_echo_n='print -rn --'
30849 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30850 as_echo='printf %s\n'
30851 as_echo_n='printf %s'
30853 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30854 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30855 as_echo_n='/usr/ucb/echo -n'
30857 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30858 as_echo_n_body='eval
30862 expr "X$arg" : "X\\(.*\\)$as_nl";
30863 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30865 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30867 export as_echo_n_body
30868 as_echo_n='sh -c $as_echo_n_body as_echo'
30870 export as_echo_body
30871 as_echo='sh -c $as_echo_body as_echo'
30874 # The user is always right.
30875 if test "${PATH_SEPARATOR+set}" != set; then
30877 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30878 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30885 # We need space, tab and new line, in precisely that order. Quoting is
30886 # there to prevent editors from complaining about space-tab.
30887 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30888 # splitting by setting IFS to empty value.)
30891 # Find who we are. Look in the path if we contain no directory separator.
30894 *[\\/]* ) as_myself=$0 ;;
30895 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30896 for as_dir in $PATH
30899 test -z "$as_dir" && as_dir=.
30900 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30906 # We did not find ourselves, most probably we were run as `sh COMMAND'
30907 # in which case we are not to be found in the path.
30908 if test "x$as_myself" = x; then
30911 if test ! -f "$as_myself"; then
30912 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30916 # Unset variables that we do not need and which cause bugs (e.g. in
30917 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30918 # suppresses any "Segmentation fault" message there. '((' could
30919 # trigger a bug in pdksh 5.2.14.
30920 for as_var in BASH_ENV ENV MAIL MAILPATH
30921 do eval test x\${$as_var+set} = xset \
30922 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30935 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30938 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30939 # ----------------------------------------
30940 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30941 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30942 # script with STATUS, using 1 if that was 0.
30945 as_status=$1; test $as_status -eq 0 && as_status=1
30947 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30948 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30950 $as_echo "$as_me: error: $2" >&2
30951 as_fn_exit $as_status
30955 # as_fn_set_status STATUS
30956 # -----------------------
30957 # Set $? to STATUS, without forking.
30958 as_fn_set_status ()
30961 } # as_fn_set_status
30963 # as_fn_exit STATUS
30964 # -----------------
30965 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30969 as_fn_set_status $1
30975 # Portably unset VAR.
30978 { eval $1=; unset $1;}
30980 as_unset=as_fn_unset
30981 # as_fn_append VAR VALUE
30982 # ----------------------
30983 # Append the text in VALUE to the end of the definition contained in VAR. Take
30984 # advantage of any shell optimizations that allow amortized linear growth over
30985 # repeated appends, instead of the typical quadratic growth present in naive
30987 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30988 eval 'as_fn_append ()
30999 # as_fn_arith ARG...
31000 # ------------------
31001 # Perform arithmetic evaluation on the ARGs, and store the result in the
31002 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31003 # must be portable across $(()) and expr.
31004 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31005 eval 'as_fn_arith ()
31012 as_val=`expr "$@" || test $? -eq 1`
31017 if expr a : '\(a\)' >/dev/null 2>&1 &&
31018 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31024 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31025 as_basename=basename
31030 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31036 as_me=`$as_basename -- "$0" ||
31037 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31038 X"$0" : 'X\(//\)$' \| \
31039 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31041 sed '/^.*\/\([^/][^/]*\)\/*$/{
31055 # Avoid depending upon Character Ranges.
31056 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31057 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31058 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31059 as_cr_digits='0123456789'
31060 as_cr_alnum=$as_cr_Letters$as_cr_digits
31062 ECHO_C= ECHO_N= ECHO_T=
31063 case `echo -n x` in #(((((
31065 case `echo 'xy\c'` in
31066 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31068 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31075 rm -f conf$$ conf$$.exe conf$$.file
31076 if test -d conf$$.dir; then
31077 rm -f conf$$.dir/conf$$.file
31080 mkdir conf$$.dir 2>/dev/null
31082 if (echo >conf$$.file) 2>/dev/null; then
31083 if ln -s conf$$.file conf$$ 2>/dev/null; then
31085 # ... but there are two gotchas:
31086 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31087 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31088 # In both cases, we have to default to `cp -pR'.
31089 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31091 elif ln conf$$.file conf$$ 2>/dev/null; then
31099 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31100 rmdir conf$$.dir 2>/dev/null
31105 # Create "$as_dir" as a directory, including parents if necessary.
31110 -*) as_dir=./$as_dir;;
31112 test -d "$as_dir" || eval $as_mkdir_p || {
31116 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31117 *) as_qdir=$as_dir;;
31119 as_dirs="'$as_qdir' $as_dirs"
31120 as_dir=`$as_dirname -- "$as_dir" ||
31121 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31122 X"$as_dir" : 'X\(//\)[^/]' \| \
31123 X"$as_dir" : 'X\(//\)$' \| \
31124 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31125 $as_echo X"$as_dir" |
31126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31130 /^X\(\/\/\)[^/].*/{
31143 test -d "$as_dir" && break
31145 test -z "$as_dirs" || eval "mkdir $as_dirs"
31146 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31150 if mkdir -p . 2>/dev/null; then
31151 as_mkdir_p='mkdir -p "$as_dir"'
31153 test -d ./-p && rmdir ./-p
31158 # as_fn_executable_p FILE
31159 # -----------------------
31160 # Test if FILE is an executable regular file.
31161 as_fn_executable_p ()
31163 test -f "$1" && test -x "$1"
31164 } # as_fn_executable_p
31165 as_test_x='test -x'
31166 as_executable_p=as_fn_executable_p
31168 # Sed expression to map a string onto a valid CPP name.
31169 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31171 # Sed expression to map a string onto a valid variable name.
31172 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31176 ## ----------------------------------- ##
31177 ## Main body of $CONFIG_STATUS script. ##
31178 ## ----------------------------------- ##
31180 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31183 # Save the log message, to keep $0 and so on meaningful, and to
31184 # report actual input values of CONFIG_FILES etc. instead of their
31185 # values after options handling.
31187 This file was extended by sntp $as_me 4.2.8p8, which was
31188 generated by GNU Autoconf 2.69. Invocation command line was
31190 CONFIG_FILES = $CONFIG_FILES
31191 CONFIG_HEADERS = $CONFIG_HEADERS
31192 CONFIG_LINKS = $CONFIG_LINKS
31193 CONFIG_COMMANDS = $CONFIG_COMMANDS
31196 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31201 case $ac_config_files in *"
31202 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31205 case $ac_config_headers in *"
31206 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31211 # Files that config.status was made for.
31212 config_files="$ac_config_files"
31213 config_headers="$ac_config_headers"
31214 config_commands="$ac_config_commands"
31218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31220 \`$as_me' instantiates files and other configuration actions
31221 from templates according to the current configuration. Unless the files
31222 and actions are specified as TAGs, all are instantiated by default.
31224 Usage: $0 [OPTION]... [TAG]...
31226 -h, --help print this help, then exit
31227 -V, --version print version number and configuration settings, then exit
31228 --config print configuration, then exit
31229 -q, --quiet, --silent
31230 do not print progress messages
31231 -d, --debug don't remove temporary files
31232 --recheck update $as_me by reconfiguring in the same conditions
31233 --file=FILE[:TEMPLATE]
31234 instantiate the configuration file FILE
31235 --header=FILE[:TEMPLATE]
31236 instantiate the configuration header FILE
31238 Configuration files:
31241 Configuration headers:
31244 Configuration commands:
31247 Report bugs to <http://bugs.ntp.org./>.
31248 sntp home page: <http://www.ntp.org./>."
31251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31252 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31254 sntp config.status 4.2.8p8
31255 configured by $0, generated by GNU Autoconf 2.69,
31256 with options \\"\$ac_cs_config\\"
31258 Copyright (C) 2012 Free Software Foundation, Inc.
31259 This config.status script is free software; the Free Software Foundation
31260 gives unlimited permission to copy, distribute and modify it."
31267 test -n "\$AWK" || AWK=awk
31270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31271 # The default lists apply if the user does not specify any file.
31277 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31278 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31282 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31294 # Handling of the options.
31295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31297 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31298 $as_echo "$ac_cs_version"; exit ;;
31299 --config | --confi | --conf | --con | --co | --c )
31300 $as_echo "$ac_cs_config"; exit ;;
31301 --debug | --debu | --deb | --de | --d | -d )
31303 --file | --fil | --fi | --f )
31306 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31307 '') as_fn_error $? "missing file argument" ;;
31309 as_fn_append CONFIG_FILES " '$ac_optarg'"
31310 ac_need_defaults=false;;
31311 --header | --heade | --head | --hea )
31314 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31316 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31317 ac_need_defaults=false;;
31319 # Conflict between --help and --header
31320 as_fn_error $? "ambiguous option: \`$1'
31321 Try \`$0 --help' for more information.";;
31322 --help | --hel | -h )
31323 $as_echo "$ac_cs_usage"; exit ;;
31324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31325 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31328 # This is an error.
31329 -*) as_fn_error $? "unrecognized option: \`$1'
31330 Try \`$0 --help' for more information." ;;
31332 *) as_fn_append ac_config_targets " $1"
31333 ac_need_defaults=false ;;
31339 ac_configure_extra_args=
31341 if $ac_cs_silent; then
31343 ac_configure_extra_args="$ac_configure_extra_args --silent"
31347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31348 if \$ac_cs_recheck; then
31349 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31351 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31352 CONFIG_SHELL='$SHELL'
31353 export CONFIG_SHELL
31358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31362 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31363 ## Running $as_me. ##
31369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31373 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31376 # The HP-UX ksh and POSIX shell print the target directory to stdout
31377 # if CDPATH is set.
31378 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31380 sed_quote_subst='$sed_quote_subst'
31381 double_quote_subst='$double_quote_subst'
31382 delay_variable_subst='$delay_variable_subst'
31383 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31384 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31385 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31386 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31387 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31388 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31389 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31390 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31391 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31392 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31393 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31394 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31395 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31396 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31397 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31398 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31399 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31400 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31401 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31402 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31403 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31404 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31405 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31406 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31407 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31408 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31409 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31410 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31411 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31412 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31413 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31414 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31415 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31416 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31417 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31418 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31419 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31420 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31421 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31422 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31423 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31424 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31425 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31426 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31427 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31428 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31429 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31430 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31431 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31432 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31433 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31434 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31435 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31436 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31437 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31438 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"`'
31439 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31440 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31441 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31442 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31443 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31444 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31445 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31446 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31447 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31448 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31449 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31450 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31451 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31452 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31453 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31454 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31455 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31456 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31457 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31458 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31459 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31460 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31461 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31462 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31463 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31464 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31465 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31466 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31467 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31468 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31469 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31470 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31471 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31472 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31473 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31474 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31475 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31476 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31477 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31478 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31479 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31480 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31481 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31482 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31483 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31484 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31485 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31486 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31487 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31488 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31489 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31490 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31491 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31492 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31493 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31494 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31495 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31496 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31497 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31498 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31499 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31500 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31501 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31502 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31503 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31504 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31505 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31506 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31507 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31508 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31509 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31510 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31511 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31512 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31513 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31514 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31515 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31516 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31517 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31518 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31519 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31520 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31521 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31522 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31523 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31524 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31525 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31526 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31527 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31528 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31529 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31530 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31531 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31532 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31533 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31534 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31535 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31536 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31537 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31538 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31539 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31540 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31541 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31542 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31543 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31544 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31545 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31546 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31547 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31548 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31549 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31550 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31551 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31552 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31553 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31554 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31555 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31556 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31557 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31558 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31559 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31560 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31561 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31562 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31563 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31564 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31565 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31566 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31567 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31570 LTCFLAGS='$LTCFLAGS'
31571 compiler='$compiler_DEFAULT'
31573 # A function that is used when there is no print builtin or printf.
31574 func_fallback_echo ()
31576 eval 'cat <<_LTECHO_EOF
31581 # Quote evaled strings.
31595 deplibs_check_method \
31600 sharedlib_from_linklib_cmd \
31603 archiver_list_spec \
31609 lt_cv_sys_global_symbol_pipe \
31610 lt_cv_sys_global_symbol_to_cdecl \
31611 lt_cv_sys_global_symbol_to_c_name_address \
31612 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31613 nm_file_list_spec \
31614 lt_prog_compiler_no_builtin_flag \
31615 lt_prog_compiler_pic \
31616 lt_prog_compiler_wl \
31617 lt_prog_compiler_static \
31618 lt_cv_prog_compiler_c_o \
31627 export_dynamic_flag_spec \
31628 whole_archive_flag_spec \
31629 compiler_needs_object \
31631 allow_undefined_flag \
31632 no_undefined_flag \
31633 hardcode_libdir_flag_spec \
31634 hardcode_libdir_flag_spec_ld \
31635 hardcode_libdir_separator \
31639 variables_saved_for_relink \
31641 library_names_spec \
31643 install_override_mode \
31647 compiler_lib_search_dirs \
31652 compiler_lib_search_path \
31656 lt_prog_compiler_no_builtin_flag_CXX \
31657 lt_prog_compiler_pic_CXX \
31658 lt_prog_compiler_wl_CXX \
31659 lt_prog_compiler_static_CXX \
31660 lt_cv_prog_compiler_c_o_CXX \
31661 export_dynamic_flag_spec_CXX \
31662 whole_archive_flag_spec_CXX \
31663 compiler_needs_object_CXX \
31665 allow_undefined_flag_CXX \
31666 no_undefined_flag_CXX \
31667 hardcode_libdir_flag_spec_CXX \
31668 hardcode_libdir_flag_spec_ld_CXX \
31669 hardcode_libdir_separator_CXX \
31670 exclude_expsyms_CXX \
31671 include_expsyms_CXX \
31672 file_list_spec_CXX \
31673 compiler_lib_search_dirs_CXX \
31674 predep_objects_CXX \
31675 postdep_objects_CXX \
31678 compiler_lib_search_path_CXX; do
31679 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31680 *[\\\\\\\`\\"\\\$]*)
31681 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31684 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31689 # Double-quote double-evaled strings.
31690 for var in reload_cmds \
31691 old_postinstall_cmds \
31692 old_postuninstall_cmds \
31694 extract_expsyms_cmds \
31695 old_archive_from_new_cmds \
31696 old_archive_from_expsyms_cmds \
31698 archive_expsym_cmds \
31700 module_expsym_cmds \
31701 export_symbols_cmds \
31705 postuninstall_cmds \
31707 sys_lib_search_path_spec \
31708 sys_lib_dlsearch_path_spec \
31710 old_archive_cmds_CXX \
31711 old_archive_from_new_cmds_CXX \
31712 old_archive_from_expsyms_cmds_CXX \
31714 archive_expsym_cmds_CXX \
31716 module_expsym_cmds_CXX \
31717 export_symbols_cmds_CXX \
31719 postlink_cmds_CXX; do
31720 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31721 *[\\\\\\\`\\"\\\$]*)
31722 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31725 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31730 ac_aux_dir='$ac_aux_dir'
31731 xsi_shell='$xsi_shell'
31732 lt_shell_append='$lt_shell_append'
31734 # See if we are running on zsh, and set the options which allow our
31735 # commands through without removal of \ escapes INIT.
31736 if test -n "\${ZSH_VERSION+set}" ; then
31737 setopt NO_GLOB_SUBST
31743 TIMESTAMP='$TIMESTAMP'
31754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31756 # Handling of arguments.
31757 for ac_config_target in $ac_config_targets
31759 case $ac_config_target in
31760 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31761 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31762 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31763 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
31764 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31765 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
31766 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31767 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
31768 "tests/fileHandlingTest.h") CONFIG_FILES="$CONFIG_FILES tests/fileHandlingTest.h" ;;
31769 "unity/Makefile") CONFIG_FILES="$CONFIG_FILES unity/Makefile" ;;
31771 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31776 # If the user did not use the arguments to specify the items to instantiate,
31777 # then the envvar interface is used. Set only those that are not.
31778 # We use the long form for the default assignment because of an extremely
31779 # bizarre bug on SunOS 4.1.3.
31780 if $ac_need_defaults; then
31781 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31782 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31783 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31786 # Have a temporary directory for convenience. Make it in the build tree
31787 # simply because there is no reason against having it here, and in addition,
31788 # creating and moving files from /tmp can sometimes cause problems.
31789 # Hook for its removal unless debugging.
31790 # Note that there is a small window in which the directory will not be cleaned:
31791 # after its creation but before its name has been assigned to `$tmp'.
31795 trap 'exit_status=$?
31796 : "${ac_tmp:=$tmp}"
31797 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31799 trap 'as_fn_exit 1' 1 2 13 15
31801 # Create a (secure) tmp directory for tmp files.
31804 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31808 tmp=./conf$$-$RANDOM
31809 (umask 077 && mkdir "$tmp")
31810 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31813 # Set up the scripts for CONFIG_FILES section.
31814 # No need to generate them if there are no CONFIG_FILES.
31815 # This happens for instance with `./config.status config.h'.
31816 if test -n "$CONFIG_FILES"; then
31819 ac_cr=`echo X | tr X '\015'`
31820 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31821 # But we know of no other shell where ac_cr would be empty at this
31822 # point, so we can use a bashism as a fallback.
31823 if test "x$ac_cr" = x; then
31824 eval ac_cr=\$\'\\r\'
31826 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31827 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31830 ac_cs_awk_cr=$ac_cr
31833 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31838 echo "cat >conf$$subs.awk <<_ACEOF" &&
31839 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31841 } >conf$$subs.sh ||
31842 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31843 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31845 for ac_last_try in false false false false false :; do
31846 . ./conf$$subs.sh ||
31847 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31849 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31850 if test $ac_delim_n = $ac_delim_num; then
31852 elif $ac_last_try; then
31853 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31855 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31858 rm -f conf$$subs.sh
31860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31861 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31865 s/^/S["/; s/!.*/"]=/
31875 s/\(.\{148\}\)..*/\1/
31877 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31882 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31889 s/\(.\{148\}\)..*/\1/
31891 s/["\\]/\\&/g; s/^/"/; s/$/"/
31895 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31900 ' <conf$$subs.awk | sed '
31905 ' >>$CONFIG_STATUS || ac_write_fail=1
31906 rm -f conf$$subs.awk
31907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31909 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31910 for (key in S) S_is_set[key] = 1
31916 nfields = split(line, field, "@")
31918 len = length(field[1])
31919 for (i = 2; i < nfields; i++) {
31921 keylen = length(key)
31922 if (S_is_set[key]) {
31924 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31925 len += length(value) + length(field[++i])
31936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31937 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31938 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31941 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31942 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31945 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31946 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31947 # trailing colons and then remove the whole line if VPATH becomes empty
31948 # (actually we leave an empty line to preserve line numbers).
31949 if test "x$srcdir" = x.; then
31950 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31969 fi # test -n "$CONFIG_FILES"
31971 # Set up the scripts for CONFIG_HEADERS section.
31972 # No need to generate them if there are no CONFIG_HEADERS.
31973 # This happens for instance with `./config.status Makefile'.
31974 if test -n "$CONFIG_HEADERS"; then
31975 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31979 # Transform confdefs.h into an awk script `defines.awk', embedded as
31980 # here-document in config.status, that substitutes the proper values into
31981 # config.h.in to produce config.h.
31983 # Create a delimiter string that does not exist in confdefs.h, to ease
31984 # handling of long lines.
31986 for ac_last_try in false false :; do
31987 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31988 if test -z "$ac_tt"; then
31990 elif $ac_last_try; then
31991 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31993 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31997 # For the awk script, D is an array of macro values keyed by name,
31998 # likewise P contains macro parameters if any. Preserve backslash
31999 # newline sequences.
32001 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32003 s/.\{148\}/&'"$ac_delim"'/g
32006 s/^[ ]*#[ ]*define[ ][ ]*/ /
32013 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32015 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32019 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32020 D["\1"]=" \3\\\\\\n"\\/p
32022 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32027 s/.\{148\}/&'"$ac_delim"'/g
32032 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32035 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32037 ' <confdefs.h | sed '
32038 s/'"$ac_delim"'/"\\\
32039 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32042 for (key in D) D_is_set[key] = 1
32045 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32047 split(line, arg, " ")
32048 if (arg[1] == "#") {
32052 defundef = substr(arg[1], 2)
32055 split(mac1, mac2, "(") #)
32057 prefix = substr(line, 1, index(line, defundef) - 1)
32058 if (D_is_set[macro]) {
32059 # Preserve the white space surrounding the "#".
32060 print prefix "define", macro P[macro] D[macro]
32063 # Replace #undef with comments. This is necessary, for example,
32064 # in the case of _POSIX_SOURCE, which is predefined and required
32065 # on some systems where configure will not decide to define it.
32066 if (defundef == "undef") {
32067 print "/*", prefix defundef, macro, "*/"
32075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32076 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32077 fi # test -n "$CONFIG_HEADERS"
32080 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32085 :[FHLC]) ac_mode=$ac_tag; continue;;
32087 case $ac_mode$ac_tag in
32089 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32090 :[FH]-) ac_tag=-:-;;
32091 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32108 -) ac_f="$ac_tmp/stdin";;
32109 *) # Look for the file first in the build tree, then in the source tree
32110 # (if the path is not absolute). The absolute path cannot be DOS-style,
32111 # because $ac_f cannot contain `:'.
32115 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32117 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32119 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32120 as_fn_append ac_file_inputs " '$ac_f'"
32123 # Let's still pretend it is `configure' which instantiates (i.e., don't
32124 # use $as_me), people would be surprised to read:
32125 # /* config.h. Generated by config.status. */
32126 configure_input='Generated from '`
32127 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32129 if test x"$ac_file" != x-; then
32130 configure_input="$ac_file. $configure_input"
32131 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32132 $as_echo "$as_me: creating $ac_file" >&6;}
32134 # Neutralize special characters interpreted by sed in replacement strings.
32135 case $configure_input in #(
32136 *\&* | *\|* | *\\* )
32137 ac_sed_conf_input=`$as_echo "$configure_input" |
32138 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32139 *) ac_sed_conf_input=$configure_input;;
32143 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32144 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32149 ac_dir=`$as_dirname -- "$ac_file" ||
32150 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32151 X"$ac_file" : 'X\(//\)[^/]' \| \
32152 X"$ac_file" : 'X\(//\)$' \| \
32153 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32154 $as_echo X"$ac_file" |
32155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32159 /^X\(\/\/\)[^/].*/{
32172 as_dir="$ac_dir"; as_fn_mkdir_p
32176 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32178 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32179 # A ".." for each directory in $ac_dir_suffix.
32180 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32181 case $ac_top_builddir_sub in
32182 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32183 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32186 ac_abs_top_builddir=$ac_pwd
32187 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32188 # for backward compatibility:
32189 ac_top_builddir=$ac_top_build_prefix
32192 .) # We are building in place.
32194 ac_top_srcdir=$ac_top_builddir_sub
32195 ac_abs_top_srcdir=$ac_pwd ;;
32196 [\\/]* | ?:[\\/]* ) # Absolute name.
32197 ac_srcdir=$srcdir$ac_dir_suffix;
32198 ac_top_srcdir=$srcdir
32199 ac_abs_top_srcdir=$srcdir ;;
32200 *) # Relative name.
32201 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32202 ac_top_srcdir=$ac_top_build_prefix$srcdir
32203 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32205 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32215 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32216 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32218 ac_MKDIR_P=$MKDIR_P
32220 [\\/$]* | ?:[\\/]* ) ;;
32221 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32226 # If the template does not know about datarootdir, expand it.
32227 # FIXME: This hack should be removed a few years after 2.60.
32228 ac_datarootdir_hack=; ac_datarootdir_seen=
32239 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32240 *datarootdir*) ac_datarootdir_seen=yes;;
32241 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32243 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32246 ac_datarootdir_hack='
32247 s&@datadir@&$datadir&g
32248 s&@docdir@&$docdir&g
32249 s&@infodir@&$infodir&g
32250 s&@localedir@&$localedir&g
32251 s&@mandir@&$mandir&g
32252 s&\\\${datarootdir}&$datarootdir&g' ;;
32256 # Neutralize VPATH when `$srcdir' = `.'.
32257 # Shell code in configure.ac might set extrasub.
32258 # FIXME: do we really want to maintain this feature?
32259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32260 ac_sed_extra="$ac_vpsub
32263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32265 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32266 s|@configure_input@|$ac_sed_conf_input|;t t
32267 s&@top_builddir@&$ac_top_builddir_sub&;t t
32268 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32269 s&@srcdir@&$ac_srcdir&;t t
32270 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32271 s&@top_srcdir@&$ac_top_srcdir&;t t
32272 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32273 s&@builddir@&$ac_builddir&;t t
32274 s&@abs_builddir@&$ac_abs_builddir&;t t
32275 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32276 s&@INSTALL@&$ac_INSTALL&;t t
32277 s&@MKDIR_P@&$ac_MKDIR_P&;t t
32278 $ac_datarootdir_hack
32280 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
32281 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32283 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32284 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32285 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32286 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32288 which seems to be undefined. Please make sure it is defined" >&5
32289 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32290 which seems to be undefined. Please make sure it is defined" >&2;}
32292 rm -f "$ac_tmp/stdin"
32294 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32295 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32297 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32303 if test x"$ac_file" != x-; then
32305 $as_echo "/* $configure_input */" \
32306 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32307 } >"$ac_tmp/config.h" \
32308 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32309 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32310 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32311 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32314 mv "$ac_tmp/config.h" "$ac_file" \
32315 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32318 $as_echo "/* $configure_input */" \
32319 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32320 || as_fn_error $? "could not create -" "$LINENO" 5
32322 # Compute "$ac_file"'s index in $config_headers.
32325 for _am_header in $config_headers :; do
32326 case $_am_header in
32327 $_am_arg | $_am_arg:* )
32330 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32333 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32334 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32335 X"$_am_arg" : 'X\(//\)[^/]' \| \
32336 X"$_am_arg" : 'X\(//\)$' \| \
32337 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32338 $as_echo X"$_am_arg" |
32339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32343 /^X\(\/\/\)[^/].*/{
32355 s/.*/./; q'`/stamp-h$_am_stamp_count
32358 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32359 $as_echo "$as_me: executing $ac_file commands" >&6;}
32364 case $ac_file$ac_mode in
32365 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32366 # Older Autoconf quotes --file arguments for eval, but not when files
32367 # are listed without --file. Let's play safe and only enable the eval
32368 # if we detect the quoting.
32369 case $CONFIG_FILES in
32370 *\'*) eval set x "$CONFIG_FILES" ;;
32371 *) set x $CONFIG_FILES ;;
32376 # Strip MF so we end up with the name of the file.
32377 mf=`echo "$mf" | sed -e 's/:.*$//'`
32378 # Check whether this is an Automake generated Makefile or not.
32379 # We used to match only the files named 'Makefile.in', but
32380 # some people rename them; so instead we look at the file content.
32381 # Grep'ing the first line is not enough: some people post-process
32382 # each Makefile.in and add a new line on top of each file to say so.
32383 # Grep'ing the whole file is not good either: AIX grep has a line
32384 # limit of 2048, but all sed's we know have understand at least 4000.
32385 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
32386 dirpart=`$as_dirname -- "$mf" ||
32387 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32388 X"$mf" : 'X\(//\)[^/]' \| \
32389 X"$mf" : 'X\(//\)$' \| \
32390 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32396 /^X\(\/\/\)[^/].*/{
32412 # Extract the definition of DEPDIR, am__include, and am__quote
32413 # from the Makefile without running 'make'.
32414 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32415 test -z "$DEPDIR" && continue
32416 am__include=`sed -n 's/^am__include = //p' < "$mf"`
32417 test -z "$am__include" && continue
32418 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32419 # Find all dependency output files, they are included files with
32420 # $(DEPDIR) in their names. We invoke sed twice because it is the
32421 # simplest approach to changing $(DEPDIR) to its actual value in the
32423 for file in `sed -n "
32424 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32425 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
32426 # Make sure the directory exists.
32427 test -f "$dirpart/$file" && continue
32428 fdir=`$as_dirname -- "$file" ||
32429 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32430 X"$file" : 'X\(//\)[^/]' \| \
32431 X"$file" : 'X\(//\)$' \| \
32432 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32433 $as_echo X"$file" |
32434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32438 /^X\(\/\/\)[^/].*/{
32451 as_dir=$dirpart/$fdir; as_fn_mkdir_p
32452 # echo "creating $dirpart/$file"
32453 echo '# dummy' > "$dirpart/$file"
32460 # See if we are running on zsh, and set the options which allow our
32461 # commands through without removal of \ escapes.
32462 if test -n "${ZSH_VERSION+set}" ; then
32463 setopt NO_GLOB_SUBST
32466 cfgfile="${ofile}T"
32467 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32470 cat <<_LT_EOF >> "$cfgfile"
32473 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32474 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32475 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32476 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32478 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32479 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32481 # Written by Gordon Matzigkeit, 1996
32483 # This file is part of GNU Libtool.
32485 # GNU Libtool is free software; you can redistribute it and/or
32486 # modify it under the terms of the GNU General Public License as
32487 # published by the Free Software Foundation; either version 2 of
32488 # the License, or (at your option) any later version.
32490 # As a special exception to the GNU General Public License,
32491 # if you distribute this file as part of a program or library that
32492 # is built using GNU Libtool, you may include this file under the
32493 # same distribution terms that you use for the rest of that program.
32495 # GNU Libtool is distributed in the hope that it will be useful,
32496 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32497 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32498 # GNU General Public License for more details.
32500 # You should have received a copy of the GNU General Public License
32501 # along with GNU Libtool; see the file COPYING. If not, a copy
32502 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32503 # obtained by writing to the Free Software Foundation, Inc.,
32504 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32507 # The names of the tagged configurations supported by this script.
32508 available_tags="CXX "
32510 # ### BEGIN LIBTOOL CONFIG
32512 # A sed program that does not truncate output.
32515 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32516 Xsed="\$SED -e 1s/^X//"
32518 # A grep program that handles long lines.
32524 # A literal string matcher.
32527 # Shell to use when invoking shell scripts.
32530 # An echo program that protects backslashes.
32533 # Whether or not to build shared libraries.
32534 build_libtool_libs=$enable_shared
32536 # Which release of libtool.m4 was used?
32537 macro_version=$macro_version
32538 macro_revision=$macro_revision
32540 # Whether or not to build static libraries.
32541 build_old_libs=$enable_static
32543 # What type of objects to build.
32546 # Whether or not to optimize for fast installation.
32547 fast_install=$enable_fast_install
32550 host_alias=$host_alias
32554 # The build system.
32555 build_alias=$build_alias
32559 # A BSD- or MS-compatible name lister.
32562 # Whether we need soft or hard links.
32565 # What is the maximum length of a command?
32566 max_cmd_len=$max_cmd_len
32568 # Object file suffix (normally "o").
32571 # Executable file suffix (normally "").
32574 # whether the shell understands "unset".
32577 # turn spaces into newlines.
32580 # turn newlines into spaces.
32583 # convert \$build file names to \$host format.
32584 to_host_file_cmd=$lt_cv_to_host_file_cmd
32586 # convert \$build files to toolchain format.
32587 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32589 # An object symbol dumper.
32590 OBJDUMP=$lt_OBJDUMP
32592 # Method to check whether dependent libraries are shared objects.
32593 deplibs_check_method=$lt_deplibs_check_method
32595 # Command to use when deplibs_check_method = "file_magic".
32596 file_magic_cmd=$lt_file_magic_cmd
32598 # How to find potential files when deplibs_check_method = "file_magic".
32599 file_magic_glob=$lt_file_magic_glob
32601 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32602 want_nocaseglob=$lt_want_nocaseglob
32604 # DLL creation program.
32605 DLLTOOL=$lt_DLLTOOL
32607 # Command to associate shared and link libraries.
32608 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32613 # Flags to create an archive.
32614 AR_FLAGS=$lt_AR_FLAGS
32616 # How to feed a file listing to the archiver.
32617 archiver_list_spec=$lt_archiver_list_spec
32619 # A symbol stripping program.
32622 # Commands used to install an old-style archive.
32624 old_postinstall_cmds=$lt_old_postinstall_cmds
32625 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32627 # Whether to use a lock for old archive extraction.
32628 lock_old_archive_extraction=$lock_old_archive_extraction
32633 # LTCC compiler flags.
32634 LTCFLAGS=$lt_CFLAGS
32636 # Take the output of nm and produce a listing of raw symbols and C names.
32637 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32639 # Transform the output of nm in a proper C declaration.
32640 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32642 # Transform the output of nm in a C name address pair.
32643 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32645 # Transform the output of nm in a C name address pair when lib prefix is needed.
32646 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32648 # Specify filename containing input files for \$NM.
32649 nm_file_list_spec=$lt_nm_file_list_spec
32651 # The root where to search for dependent libraries,and in which our libraries should be installed.
32652 lt_sysroot=$lt_sysroot
32654 # The name of the directory that contains temporary libtool files.
32657 # Used to examine libraries when file_magic_cmd begins with "file".
32658 MAGIC_CMD=$MAGIC_CMD
32660 # Must we lock files when doing compilation?
32661 need_locks=$lt_need_locks
32664 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32666 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32667 DSYMUTIL=$lt_DSYMUTIL
32669 # Tool to change global to local symbols on Mac OS X.
32672 # Tool to manipulate fat objects and archives on Mac OS X.
32675 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32678 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32679 OTOOL64=$lt_OTOOL64
32681 # Old archive suffix (normally "a").
32684 # Shared library suffix (normally ".so").
32685 shrext_cmds=$lt_shrext_cmds
32687 # The commands to extract the exported symbol list from a shared archive.
32688 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32690 # Variables whose values should be saved in libtool wrapper scripts and
32691 # restored at link time.
32692 variables_saved_for_relink=$lt_variables_saved_for_relink
32694 # Do we need the "lib" prefix for modules?
32695 need_lib_prefix=$need_lib_prefix
32697 # Do we need a version for libraries?
32698 need_version=$need_version
32700 # Library versioning type.
32701 version_type=$version_type
32703 # Shared library runtime path variable.
32704 runpath_var=$runpath_var
32706 # Shared library path variable.
32707 shlibpath_var=$shlibpath_var
32709 # Is shlibpath searched before the hard-coded library search path?
32710 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32712 # Format of library name prefix.
32713 libname_spec=$lt_libname_spec
32715 # List of archive names. First name is the real one, the rest are links.
32716 # The last name is the one that the linker finds with -lNAME
32717 library_names_spec=$lt_library_names_spec
32719 # The coded name of the library, if different from the real name.
32720 soname_spec=$lt_soname_spec
32722 # Permission mode override for installation of shared libraries.
32723 install_override_mode=$lt_install_override_mode
32725 # Command to use after installation of a shared archive.
32726 postinstall_cmds=$lt_postinstall_cmds
32728 # Command to use after uninstallation of a shared archive.
32729 postuninstall_cmds=$lt_postuninstall_cmds
32731 # Commands used to finish a libtool library installation in a directory.
32732 finish_cmds=$lt_finish_cmds
32734 # As "finish_cmds", except a single script fragment to be evaled but
32736 finish_eval=$lt_finish_eval
32738 # Whether we should hardcode library paths into libraries.
32739 hardcode_into_libs=$hardcode_into_libs
32741 # Compile-time system search path for libraries.
32742 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32744 # Run-time system search path for libraries.
32745 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32747 # Whether dlopen is supported.
32748 dlopen_support=$enable_dlopen
32750 # Whether dlopen of programs is supported.
32751 dlopen_self=$enable_dlopen_self
32753 # Whether dlopen of statically linked programs is supported.
32754 dlopen_self_static=$enable_dlopen_self_static
32756 # Commands to strip libraries.
32757 old_striplib=$lt_old_striplib
32758 striplib=$lt_striplib
32761 # The linker used to build libraries.
32764 # How to create reloadable object files.
32765 reload_flag=$lt_reload_flag
32766 reload_cmds=$lt_reload_cmds
32768 # Commands used to build an old-style archive.
32769 old_archive_cmds=$lt_old_archive_cmds
32771 # A language specific compiler.
32774 # Is the compiler the GNU compiler?
32777 # Compiler flag to turn off builtin functions.
32778 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32780 # Additional compiler flags for building library objects.
32781 pic_flag=$lt_lt_prog_compiler_pic
32783 # How to pass a linker flag through the compiler.
32784 wl=$lt_lt_prog_compiler_wl
32786 # Compiler flag to prevent dynamic linking.
32787 link_static_flag=$lt_lt_prog_compiler_static
32789 # Does compiler simultaneously support -c and -o options?
32790 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32792 # Whether or not to add -lc for building shared libraries.
32793 build_libtool_need_lc=$archive_cmds_need_lc
32795 # Whether or not to disallow shared libs when runtime libs are static.
32796 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32798 # Compiler flag to allow reflexive dlopens.
32799 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32801 # Compiler flag to generate shared objects directly from archives.
32802 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32804 # Whether the compiler copes with passing no objects directly.
32805 compiler_needs_object=$lt_compiler_needs_object
32807 # Create an old-style archive from a shared archive.
32808 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32810 # Create a temporary old-style archive to link instead of a shared archive.
32811 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32813 # Commands used to build a shared archive.
32814 archive_cmds=$lt_archive_cmds
32815 archive_expsym_cmds=$lt_archive_expsym_cmds
32817 # Commands used to build a loadable module if different from building
32818 # a shared archive.
32819 module_cmds=$lt_module_cmds
32820 module_expsym_cmds=$lt_module_expsym_cmds
32822 # Whether we are building with GNU ld or not.
32823 with_gnu_ld=$lt_with_gnu_ld
32825 # Flag that allows shared libraries with undefined symbols to be built.
32826 allow_undefined_flag=$lt_allow_undefined_flag
32828 # Flag that enforces no undefined symbols.
32829 no_undefined_flag=$lt_no_undefined_flag
32831 # Flag to hardcode \$libdir into a binary during linking.
32832 # This must work even if \$libdir does not exist
32833 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32835 # If ld is used when linking, flag to hardcode \$libdir into a binary
32836 # during linking. This must work even if \$libdir does not exist.
32837 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32839 # Whether we need a single "-rpath" flag with a separated argument.
32840 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32842 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32843 # DIR into the resulting binary.
32844 hardcode_direct=$hardcode_direct
32846 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32847 # DIR into the resulting binary and the resulting library dependency is
32848 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32849 # library is relocated.
32850 hardcode_direct_absolute=$hardcode_direct_absolute
32852 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32853 # into the resulting binary.
32854 hardcode_minus_L=$hardcode_minus_L
32856 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32857 # into the resulting binary.
32858 hardcode_shlibpath_var=$hardcode_shlibpath_var
32860 # Set to "yes" if building a shared library automatically hardcodes DIR
32861 # into the library and all subsequent libraries and executables linked
32863 hardcode_automatic=$hardcode_automatic
32865 # Set to yes if linker adds runtime paths of dependent libraries
32866 # to runtime path list.
32867 inherit_rpath=$inherit_rpath
32869 # Whether libtool must link a program against all its dependency libraries.
32870 link_all_deplibs=$link_all_deplibs
32872 # Set to "yes" if exported symbols are required.
32873 always_export_symbols=$always_export_symbols
32875 # The commands to list exported symbols.
32876 export_symbols_cmds=$lt_export_symbols_cmds
32878 # Symbols that should not be listed in the preloaded symbols.
32879 exclude_expsyms=$lt_exclude_expsyms
32881 # Symbols that must always be exported.
32882 include_expsyms=$lt_include_expsyms
32884 # Commands necessary for linking programs (against libraries) with templates.
32885 prelink_cmds=$lt_prelink_cmds
32887 # Commands necessary for finishing linking programs.
32888 postlink_cmds=$lt_postlink_cmds
32890 # Specify filename containing input files.
32891 file_list_spec=$lt_file_list_spec
32893 # How to hardcode a shared library path into an executable.
32894 hardcode_action=$hardcode_action
32896 # The directories searched by this compiler when creating a shared library.
32897 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32899 # Dependencies to place before and after the objects being linked to
32900 # create a shared library.
32901 predep_objects=$lt_predep_objects
32902 postdep_objects=$lt_postdep_objects
32903 predeps=$lt_predeps
32904 postdeps=$lt_postdeps
32906 # The library search path used internally by the compiler when linking
32907 # a shared library.
32908 compiler_lib_search_path=$lt_compiler_lib_search_path
32910 # ### END LIBTOOL CONFIG
32916 cat <<\_LT_EOF >> "$cfgfile"
32917 # AIX sometimes has problems with the GCC collect2 program. For some
32918 # reason, if we set the COLLECT_NAMES environment variable, the problems
32919 # vanish in a puff of smoke.
32920 if test "X${COLLECT_NAMES+set}" != Xset; then
32922 export COLLECT_NAMES
32929 ltmain="$ac_aux_dir/ltmain.sh"
32932 # We use sed instead of cat because bash on DJGPP gets confused if
32933 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32934 # text mode, it properly converts lines to CR/LF. This bash problem
32935 # is reportedly fixed, but why not run on old versions too?
32936 sed '$q' "$ltmain" >> "$cfgfile" \
32937 || (rm -f "$cfgfile"; exit 1)
32939 if test x"$xsi_shell" = xyes; then
32940 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32944 \ */*) func_dirname_result="${1%/*}${2}" ;;\
32945 \ * ) func_dirname_result="${3}" ;;\
32947 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32948 && mv -f "$cfgfile.tmp" "$cfgfile" \
32949 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32950 test 0 -eq $? || _lt_function_replace_fail=:
32953 sed -e '/^func_basename ()$/,/^} # func_basename /c\
32956 \ func_basename_result="${1##*/}"\
32957 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32958 && mv -f "$cfgfile.tmp" "$cfgfile" \
32959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32960 test 0 -eq $? || _lt_function_replace_fail=:
32963 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32964 func_dirname_and_basename ()\
32967 \ */*) func_dirname_result="${1%/*}${2}" ;;\
32968 \ * ) func_dirname_result="${3}" ;;\
32970 \ func_basename_result="${1##*/}"\
32971 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32972 && mv -f "$cfgfile.tmp" "$cfgfile" \
32973 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32974 test 0 -eq $? || _lt_function_replace_fail=:
32977 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32980 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
32981 \ # positional parameters, so assign one to ordinary parameter first.\
32982 \ func_stripname_result=${3}\
32983 \ func_stripname_result=${func_stripname_result#"${1}"}\
32984 \ func_stripname_result=${func_stripname_result%"${2}"}\
32985 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
32986 && mv -f "$cfgfile.tmp" "$cfgfile" \
32987 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32988 test 0 -eq $? || _lt_function_replace_fail=:
32991 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
32992 func_split_long_opt ()\
32994 \ func_split_long_opt_name=${1%%=*}\
32995 \ func_split_long_opt_arg=${1#*=}\
32996 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
32997 && mv -f "$cfgfile.tmp" "$cfgfile" \
32998 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32999 test 0 -eq $? || _lt_function_replace_fail=:
33002 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33003 func_split_short_opt ()\
33005 \ func_split_short_opt_arg=${1#??}\
33006 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33007 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33008 && mv -f "$cfgfile.tmp" "$cfgfile" \
33009 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33010 test 0 -eq $? || _lt_function_replace_fail=:
33013 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33017 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33018 \ *) func_lo2o_result=${1} ;;\
33020 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33021 && mv -f "$cfgfile.tmp" "$cfgfile" \
33022 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33023 test 0 -eq $? || _lt_function_replace_fail=:
33026 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33029 func_xform_result=${1%.*}.lo\
33030 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33031 && mv -f "$cfgfile.tmp" "$cfgfile" \
33032 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33033 test 0 -eq $? || _lt_function_replace_fail=:
33036 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33039 func_arith_result=$(( $* ))\
33040 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33041 && mv -f "$cfgfile.tmp" "$cfgfile" \
33042 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33043 test 0 -eq $? || _lt_function_replace_fail=:
33046 sed -e '/^func_len ()$/,/^} # func_len /c\
33049 func_len_result=${#1}\
33050 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33051 && mv -f "$cfgfile.tmp" "$cfgfile" \
33052 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33053 test 0 -eq $? || _lt_function_replace_fail=:
33057 if test x"$lt_shell_append" = xyes; then
33058 sed -e '/^func_append ()$/,/^} # func_append /c\
33061 eval "${1}+=\\${2}"\
33062 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33063 && mv -f "$cfgfile.tmp" "$cfgfile" \
33064 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33065 test 0 -eq $? || _lt_function_replace_fail=:
33068 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33069 func_append_quoted ()\
33071 \ func_quote_for_eval "${2}"\
33072 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33073 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33074 && mv -f "$cfgfile.tmp" "$cfgfile" \
33075 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33076 test 0 -eq $? || _lt_function_replace_fail=:
33079 # Save a `func_append' function call where possible by direct use of '+='
33080 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33081 && mv -f "$cfgfile.tmp" "$cfgfile" \
33082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33083 test 0 -eq $? || _lt_function_replace_fail=:
33085 # Save a `func_append' function call even when '+=' is not available
33086 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33087 && mv -f "$cfgfile.tmp" "$cfgfile" \
33088 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33089 test 0 -eq $? || _lt_function_replace_fail=:
33092 if test x"$_lt_function_replace_fail" = x":"; then
33093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33094 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33098 mv -f "$cfgfile" "$ofile" ||
33099 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33103 cat <<_LT_EOF >> "$ofile"
33105 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33107 # The linker used to build libraries.
33110 # How to create reloadable object files.
33111 reload_flag=$lt_reload_flag_CXX
33112 reload_cmds=$lt_reload_cmds_CXX
33114 # Commands used to build an old-style archive.
33115 old_archive_cmds=$lt_old_archive_cmds_CXX
33117 # A language specific compiler.
33118 CC=$lt_compiler_CXX
33120 # Is the compiler the GNU compiler?
33123 # Compiler flag to turn off builtin functions.
33124 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33126 # Additional compiler flags for building library objects.
33127 pic_flag=$lt_lt_prog_compiler_pic_CXX
33129 # How to pass a linker flag through the compiler.
33130 wl=$lt_lt_prog_compiler_wl_CXX
33132 # Compiler flag to prevent dynamic linking.
33133 link_static_flag=$lt_lt_prog_compiler_static_CXX
33135 # Does compiler simultaneously support -c and -o options?
33136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33138 # Whether or not to add -lc for building shared libraries.
33139 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33141 # Whether or not to disallow shared libs when runtime libs are static.
33142 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33144 # Compiler flag to allow reflexive dlopens.
33145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33147 # Compiler flag to generate shared objects directly from archives.
33148 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33150 # Whether the compiler copes with passing no objects directly.
33151 compiler_needs_object=$lt_compiler_needs_object_CXX
33153 # Create an old-style archive from a shared archive.
33154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33156 # Create a temporary old-style archive to link instead of a shared archive.
33157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33159 # Commands used to build a shared archive.
33160 archive_cmds=$lt_archive_cmds_CXX
33161 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33163 # Commands used to build a loadable module if different from building
33164 # a shared archive.
33165 module_cmds=$lt_module_cmds_CXX
33166 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33168 # Whether we are building with GNU ld or not.
33169 with_gnu_ld=$lt_with_gnu_ld_CXX
33171 # Flag that allows shared libraries with undefined symbols to be built.
33172 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33174 # Flag that enforces no undefined symbols.
33175 no_undefined_flag=$lt_no_undefined_flag_CXX
33177 # Flag to hardcode \$libdir into a binary during linking.
33178 # This must work even if \$libdir does not exist
33179 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33181 # If ld is used when linking, flag to hardcode \$libdir into a binary
33182 # during linking. This must work even if \$libdir does not exist.
33183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33185 # Whether we need a single "-rpath" flag with a separated argument.
33186 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33188 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33189 # DIR into the resulting binary.
33190 hardcode_direct=$hardcode_direct_CXX
33192 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33193 # DIR into the resulting binary and the resulting library dependency is
33194 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33195 # library is relocated.
33196 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33198 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33199 # into the resulting binary.
33200 hardcode_minus_L=$hardcode_minus_L_CXX
33202 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33203 # into the resulting binary.
33204 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33206 # Set to "yes" if building a shared library automatically hardcodes DIR
33207 # into the library and all subsequent libraries and executables linked
33209 hardcode_automatic=$hardcode_automatic_CXX
33211 # Set to yes if linker adds runtime paths of dependent libraries
33212 # to runtime path list.
33213 inherit_rpath=$inherit_rpath_CXX
33215 # Whether libtool must link a program against all its dependency libraries.
33216 link_all_deplibs=$link_all_deplibs_CXX
33218 # Set to "yes" if exported symbols are required.
33219 always_export_symbols=$always_export_symbols_CXX
33221 # The commands to list exported symbols.
33222 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33224 # Symbols that should not be listed in the preloaded symbols.
33225 exclude_expsyms=$lt_exclude_expsyms_CXX
33227 # Symbols that must always be exported.
33228 include_expsyms=$lt_include_expsyms_CXX
33230 # Commands necessary for linking programs (against libraries) with templates.
33231 prelink_cmds=$lt_prelink_cmds_CXX
33233 # Commands necessary for finishing linking programs.
33234 postlink_cmds=$lt_postlink_cmds_CXX
33236 # Specify filename containing input files.
33237 file_list_spec=$lt_file_list_spec_CXX
33239 # How to hardcode a shared library path into an executable.
33240 hardcode_action=$hardcode_action_CXX
33242 # The directories searched by this compiler when creating a shared library.
33243 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33245 # Dependencies to place before and after the objects being linked to
33246 # create a shared library.
33247 predep_objects=$lt_predep_objects_CXX
33248 postdep_objects=$lt_postdep_objects_CXX
33249 predeps=$lt_predeps_CXX
33250 postdeps=$lt_postdeps_CXX
33252 # The library search path used internally by the compiler when linking
33253 # a shared library.
33254 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33256 # ### END LIBTOOL TAG CONFIG: CXX
33267 ac_clean_files=$ac_clean_files_save
33269 test $ac_write_fail = 0 ||
33270 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33273 # configure is writing to config.log, and then calls config.status.
33274 # config.status does its own redirection, appending to config.log.
33275 # Unfortunately, on DOS this fails, as config.log is still kept open
33276 # by configure, so config.status won't be able to write to it; its
33277 # output is simply discarded. So we exec the FD to /dev/null,
33278 # effectively closing config.log, so it can be properly (re)opened and
33279 # appended to by config.status. When coming back to configure, we
33280 # need to make the FD available again.
33281 if test "$no_create" != yes; then
33283 ac_config_status_args=
33284 test "$silent" = yes &&
33285 ac_config_status_args="$ac_config_status_args --quiet"
33287 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33289 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33290 # would make configure fail if this is the last instruction.
33291 $ac_cs_success || as_fn_exit 1
33295 # CONFIG_SUBDIRS section.
33297 if test "$no_recursion" != yes; then
33299 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
33300 # so they do not pile up.
33301 ac_sub_configure_args=
33303 eval "set x $ac_configure_args"
33307 if test -n "$ac_prev"; then
33312 -cache-file | --cache-file | --cache-fil | --cache-fi \
33313 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33314 ac_prev=cache_file ;;
33315 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33316 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33319 --config-cache | -C)
33321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33325 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33327 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33329 --disable-option-checking)
33333 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33335 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
33339 # Always prepend --prefix to ensure using the same prefix
33340 # in subdir configurations.
33341 ac_arg="--prefix=$prefix"
33343 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33345 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33348 if test "$silent" = yes; then
33349 ac_sub_configure_args="--silent $ac_sub_configure_args"
33352 # Always prepend --disable-option-checking to silence warnings, since
33353 # different subdirs can have different --enable and --with options.
33354 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
33357 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33359 # Do not complain, so a configure script can configure whichever
33360 # parts of a large source tree are present.
33361 test -d "$srcdir/$ac_dir" || continue
33363 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33364 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
33365 $as_echo "$ac_msg" >&6
33366 as_dir="$ac_dir"; as_fn_mkdir_p
33370 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33372 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33373 # A ".." for each directory in $ac_dir_suffix.
33374 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33375 case $ac_top_builddir_sub in
33376 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33377 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33380 ac_abs_top_builddir=$ac_pwd
33381 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33382 # for backward compatibility:
33383 ac_top_builddir=$ac_top_build_prefix
33386 .) # We are building in place.
33388 ac_top_srcdir=$ac_top_builddir_sub
33389 ac_abs_top_srcdir=$ac_pwd ;;
33390 [\\/]* | ?:[\\/]* ) # Absolute name.
33391 ac_srcdir=$srcdir$ac_dir_suffix;
33392 ac_top_srcdir=$srcdir
33393 ac_abs_top_srcdir=$srcdir ;;
33394 *) # Relative name.
33395 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33396 ac_top_srcdir=$ac_top_build_prefix$srcdir
33397 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33399 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33404 # Check for guested configure; otherwise get Cygnus style configure.
33405 if test -f "$ac_srcdir/configure.gnu"; then
33406 ac_sub_configure=$ac_srcdir/configure.gnu
33407 elif test -f "$ac_srcdir/configure"; then
33408 ac_sub_configure=$ac_srcdir/configure
33409 elif test -f "$ac_srcdir/configure.in"; then
33410 # This should be Cygnus configure.
33411 ac_sub_configure=$ac_aux_dir/configure
33413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
33414 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33418 # The recursion is here.
33419 if test -n "$ac_sub_configure"; then
33420 # Make the cache file name correct relative to the subdirectory.
33421 case $cache_file in
33422 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33423 *) # Relative name.
33424 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33427 { $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
33428 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33429 # The eval makes quoting arguments work.
33430 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33431 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33432 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
33438 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33440 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}