2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sntp 4.2.8p7.
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.8p7'
594 PACKAGE_STRING='sntp 4.2.8p7'
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 GTEST_AVAILABLE_FALSE
653 UNITYBUILD_AVAILABLE_FALSE
654 UNITYBUILD_AVAILABLE_TRUE
665 NTP_FORCE_LIBEVENT_DIST
671 INSTALL_LIBOPTS_FALSE
674 GL_GENERATE_STDNORETURN_H_FALSE
675 GL_GENERATE_STDNORETURN_H_TRUE
698 LIBISC_PTHREADS_NOTHREADS
711 NTP_CROSSCOMPILE_FALSE
712 NTP_CROSSCOMPILE_TRUE
715 INSTALL_UPDATE_LEAP_FALSE
716 INSTALL_UPDATE_LEAP_TRUE
757 INSTALL_NTPSWEEP_FALSE
758 INSTALL_NTPSWEEP_TRUE
800 WANT_CALC_TICKADJ_MS_FALSE
801 WANT_CALC_TICKADJ_MS_TRUE
846 INSTALL_STRIP_PROGRAM
888 program_transform_name
901 enable_option_checking
903 enable_dependency_tracking
908 enable_thread_support
924 enable_libopts_install
931 enable_local_libevent
941 ac_precious_vars='build_alias
954 ac_subdirs_all='libevent'
956 # Initialize some variables set by options.
958 ac_init_version=false
959 ac_unrecognized_opts=
961 # The variables have the same names as the options, with
962 # dashes changed to underlines.
970 program_transform_name=s,x,x,
978 # Installation directory options.
979 # These are left unexpanded so users can "make install exec_prefix=/foo"
980 # and all the variables that are supposed to be based on exec_prefix
981 # by default will actually change.
982 # Use braces instead of parens because sh, perl, etc. also accept them.
983 # (The list follows the same order as the GNU Coding Standards.)
984 bindir='${exec_prefix}/bin'
985 sbindir='${exec_prefix}/sbin'
986 libexecdir='${exec_prefix}/libexec'
987 datarootdir='${prefix}/share'
988 datadir='${datarootdir}'
989 sysconfdir='${prefix}/etc'
990 sharedstatedir='${prefix}/com'
991 localstatedir='${prefix}/var'
992 includedir='${prefix}/include'
993 oldincludedir='/usr/include'
994 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
995 infodir='${datarootdir}/info'
1000 libdir='${exec_prefix}/lib'
1001 localedir='${datarootdir}/locale'
1002 mandir='${datarootdir}/man'
1008 # If the previous option needs an argument, assign it.
1009 if test -n "$ac_prev"; then
1010 eval $ac_prev=\$ac_option
1016 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021 # Accept the important Cygnus configure options, so we can diagnose typos.
1023 case $ac_dashdash$ac_option in
1027 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030 bindir=$ac_optarg ;;
1032 -build | --build | --buil | --bui | --bu)
1033 ac_prev=build_alias ;;
1034 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035 build_alias=$ac_optarg ;;
1037 -cache-file | --cache-file | --cache-fil | --cache-fi \
1038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039 ac_prev=cache_file ;;
1040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042 cache_file=$ac_optarg ;;
1044 --config-cache | -C)
1045 cache_file=config.cache ;;
1047 -datadir | --datadir | --datadi | --datad)
1049 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1050 datadir=$ac_optarg ;;
1052 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053 | --dataroo | --dataro | --datar)
1054 ac_prev=datarootdir ;;
1055 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057 datarootdir=$ac_optarg ;;
1059 -disable-* | --disable-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error $? "invalid feature name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1068 "enable_$ac_useropt"
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1073 eval enable_$ac_useropt=no ;;
1075 -docdir | --docdir | --docdi | --doc | --do)
1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078 docdir=$ac_optarg ;;
1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083 dvidir=$ac_optarg ;;
1085 -enable-* | --enable-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error $? "invalid feature name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1094 "enable_$ac_useropt"
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1099 eval enable_$ac_useropt=\$ac_optarg ;;
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 htmldir=$ac_optarg ;;
1132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1144 -libdir | --libdir | --libdi | --libd)
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1161 -localstatedir | --localstatedir | --localstatedi | --localstated \
1162 | --localstate | --localstat | --localsta | --localst | --locals)
1163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166 localstatedir=$ac_optarg ;;
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1235 -psdir | --psdir | --psdi | --psd | --ps)
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 sbindir=$ac_optarg ;;
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 sharedstatedir=$ac_optarg ;;
1261 -site | --site | --sit)
1263 -site=* | --site=* | --sit=*)
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1290 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 as_fn_error $? "invalid package name: $ac_useropt"
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1303 eval with_$ac_useropt=\$ac_optarg ;;
1305 -without-* | --without-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 as_fn_error $? "invalid package name: $ac_useropt"
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1319 eval with_$ac_useropt=no ;;
1322 # Obsolete; use --with-x.
1325 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1326 | --x-incl | --x-inc | --x-in | --x-i)
1327 ac_prev=x_includes ;;
1328 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1329 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1330 x_includes=$ac_optarg ;;
1332 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1333 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1334 ac_prev=x_libraries ;;
1335 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1336 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1337 x_libraries=$ac_optarg ;;
1339 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1340 Try \`$0 --help' for more information"
1344 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1345 # Reject names that are not valid shell variable names.
1346 case $ac_envvar in #(
1347 '' | [0-9]* | *[!_$as_cr_alnum]* )
1348 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1350 eval $ac_envvar=\$ac_optarg
1351 export $ac_envvar ;;
1354 # FIXME: should be removed in autoconf 3.0.
1355 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1356 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1357 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1358 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1364 if test -n "$ac_prev"; then
1365 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1366 as_fn_error $? "missing argument to $ac_option"
1369 if test -n "$ac_unrecognized_opts"; then
1370 case $enable_option_checking in
1372 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1373 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1377 # Check all directory arguments for consistency.
1378 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1379 datadir sysconfdir sharedstatedir localstatedir includedir \
1380 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1381 libdir localedir mandir
1383 eval ac_val=\$$ac_var
1384 # Remove trailing slashes.
1387 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1388 eval $ac_var=\$ac_val;;
1390 # Be sure to have absolute directory names.
1392 [\\/$]* | ?:[\\/]* ) continue;;
1393 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1395 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1398 # There might be people who depend on the old broken behavior: `$host'
1399 # used to hold the argument of --host etc.
1400 # FIXME: To remove some day.
1403 target=$target_alias
1405 # FIXME: To remove some day.
1406 if test "x$host_alias" != x; then
1407 if test "x$build_alias" = x; then
1408 cross_compiling=maybe
1409 elif test "x$build_alias" != "x$host_alias"; then
1415 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1417 test "$silent" = yes && exec 6>/dev/null
1420 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1421 ac_ls_di=`ls -di .` &&
1422 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1423 as_fn_error $? "working directory cannot be determined"
1424 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1425 as_fn_error $? "pwd does not report name of working directory"
1428 # Find the source files, if location was not specified.
1429 if test -z "$srcdir"; then
1430 ac_srcdir_defaulted=yes
1431 # Try the directory containing this script, then the parent directory.
1432 ac_confdir=`$as_dirname -- "$as_myself" ||
1433 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1434 X"$as_myself" : 'X\(//\)[^/]' \| \
1435 X"$as_myself" : 'X\(//\)$' \| \
1436 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1437 $as_echo X"$as_myself" |
1438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1460 ac_srcdir_defaulted=no
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1464 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1466 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1468 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1470 # When building in place, set srcdir=.
1471 if test "$ac_abs_confdir" = "$ac_pwd"; then
1474 # Remove unnecessary trailing slashes from srcdir.
1475 # Double slashes in file names in object file debugging info
1476 # mess up M-x gdb in Emacs.
1478 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1480 for ac_var in $ac_precious_vars; do
1481 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_env_${ac_var}_value=\$${ac_var}
1483 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1488 # Report the --help message.
1490 if test "$ac_init_help" = "long"; then
1491 # Omit some internal or obsolete options to make the list less imposing.
1492 # This message is too long to be a string in the A/UX 3.1 sh.
1494 \`configure' configures sntp 4.2.8p7 to adapt to many kinds of systems.
1496 Usage: $0 [OPTION]... [VAR=VALUE]...
1498 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1499 VAR=VALUE. See below for descriptions of some of the useful variables.
1501 Defaults for the options are specified in brackets.
1504 -h, --help display this help and exit
1505 --help=short display options specific to this package
1506 --help=recursive display the short help of all the included packages
1507 -V, --version display version information and exit
1508 -q, --quiet, --silent do not print \`checking ...' messages
1509 --cache-file=FILE cache test results in FILE [disabled]
1510 -C, --config-cache alias for \`--cache-file=config.cache'
1511 -n, --no-create do not create output files
1512 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1514 Installation directories:
1515 --prefix=PREFIX install architecture-independent files in PREFIX
1516 [$ac_default_prefix]
1517 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1520 By default, \`make install' will install all the files in
1521 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1522 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1523 for instance \`--prefix=\$HOME'.
1525 For better control, use the options below.
1527 Fine tuning of the installation directories:
1528 --bindir=DIR user executables [EPREFIX/bin]
1529 --sbindir=DIR system admin executables [EPREFIX/sbin]
1530 --libexecdir=DIR program executables [EPREFIX/libexec]
1531 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1532 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1533 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1534 --libdir=DIR object code libraries [EPREFIX/lib]
1535 --includedir=DIR C header files [PREFIX/include]
1536 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1537 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1538 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1539 --infodir=DIR info documentation [DATAROOTDIR/info]
1540 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1541 --mandir=DIR man documentation [DATAROOTDIR/man]
1542 --docdir=DIR documentation root [DATAROOTDIR/doc/sntp]
1543 --htmldir=DIR html documentation [DOCDIR]
1544 --dvidir=DIR dvi documentation [DOCDIR]
1545 --pdfdir=DIR pdf documentation [DOCDIR]
1546 --psdir=DIR ps documentation [DOCDIR]
1552 --program-prefix=PREFIX prepend PREFIX to installed program names
1553 --program-suffix=SUFFIX append SUFFIX to installed program names
1554 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1557 --build=BUILD configure for building on BUILD [guessed]
1558 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1562 if test -n "$ac_init_help"; then
1563 case $ac_init_help in
1564 short | recursive ) echo "Configuration of sntp 4.2.8p7:";;
1569 --disable-option-checking ignore unrecognized --enable/--with options
1570 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1571 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1572 --enable-silent-rules less verbose build output (undo: "make V=1")
1573 --disable-silent-rules verbose build output (undo: "make V=0")
1574 --enable-dependency-tracking
1575 do not reject slow dependency extractors
1576 --disable-dependency-tracking
1577 speeds up one-time build
1578 defaults: + yes, - no, s system-specific
1579 --enable-debugging + include ntpd debugging code
1580 --enable-thread-support s use threads (+ if available)
1581 --enable-c99-snprintf s force replacement
1582 --enable-clockctl s Use /dev/clockctl for non-root clock control
1583 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1584 --enable-solarisprivs + Use Solaris privileges for non-root clock control
1585 --enable-shared[=PKGS] build shared libraries [default=no]
1586 --enable-static[=PKGS] build static libraries [default=yes]
1587 --enable-fast-install[=PKGS]
1588 optimize for fast installation [default=yes]
1589 --disable-libtool-lock avoid locking (might break parallel builds)
1590 --disable-nls disable nls support in libopts
1591 --enable-local-libopts Use the supplied libopts tearoff code
1592 --enable-libopts-install
1593 Install libopts with client installation
1594 --disable-optional-args not wanting optional option args
1595 --enable-local-libevent Force using the supplied libevent tearoff code
1596 --enable-ipv6 s use IPv6?
1598 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]].
1601 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1602 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1603 --with-locfile=XXX os-specific or "legacy"
1604 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1605 --with-lineeditlibs edit,editline (readline may be specified if desired)
1606 --with-threads with threads [auto]
1607 --with-yielding-select with yielding select [auto]
1608 --with-pic try to use only PIC/non-PIC objects [default=use
1610 --with-sysroot=DIR Search for dependent libraries within DIR
1611 (or the compiler's sysroot if not specified).
1612 --without-sntp - disable building sntp and sntp/tests
1613 --with-autoopts-config specify the config-info script
1614 --with-regex-header a reg expr header is specified
1615 --with-libregex libregex installation prefix
1616 --with-libregex-cflags libregex compile flags
1617 --with-libregex-libs libregex link command arguments
1618 --with-crypto + =openssl,libcrypto
1620 --with-openssl-libdir + =/something/reasonable
1622 --with-openssl-incdir + =/something/reasonable
1624 --without-rpath s Disable auto-added -R linker paths
1626 --with-kame - =/usr/local/v6
1627 --with-gtest Use the gtest framework (Default: if it's available)
1629 Some influential environment variables:
1630 CC C compiler command
1631 CFLAGS C compiler flags
1632 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1633 nonstandard directory <lib dir>
1634 LIBS libraries to pass to the linker, e.g. -l<library>
1635 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1636 you have headers in a nonstandard directory <include dir>
1638 CXX C++ compiler command
1639 CXXFLAGS C++ compiler flags
1640 CXXCPP C++ preprocessor
1642 Use these variables to override the choices made by `configure' or to help
1643 it to find libraries and programs with nonstandard names/locations.
1645 Report bugs to <http://bugs.ntp.org./>.
1646 sntp home page: <http://www.ntp.org./>.
1651 if test "$ac_init_help" = "recursive"; then
1652 # If there are subdirs, report their specific --help.
1653 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1654 test -d "$ac_dir" ||
1655 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1663 # A ".." for each directory in $ac_dir_suffix.
1664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1665 case $ac_top_builddir_sub in
1666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670 ac_abs_top_builddir=$ac_pwd
1671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1672 # for backward compatibility:
1673 ac_top_builddir=$ac_top_build_prefix
1676 .) # We are building in place.
1678 ac_top_srcdir=$ac_top_builddir_sub
1679 ac_abs_top_srcdir=$ac_pwd ;;
1680 [\\/]* | ?:[\\/]* ) # Absolute name.
1681 ac_srcdir=$srcdir$ac_dir_suffix;
1682 ac_top_srcdir=$srcdir
1683 ac_abs_top_srcdir=$srcdir ;;
1685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1686 ac_top_srcdir=$ac_top_build_prefix$srcdir
1687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691 cd "$ac_dir" || { ac_status=$?; continue; }
1692 # Check for guested configure.
1693 if test -f "$ac_srcdir/configure.gnu"; then
1695 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1696 elif test -f "$ac_srcdir/configure"; then
1698 $SHELL "$ac_srcdir/configure" --help=recursive
1700 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702 cd "$ac_pwd" || { ac_status=$?; break; }
1706 test -n "$ac_init_help" && exit $ac_status
1707 if $ac_init_version; then
1709 sntp configure 4.2.8p7
1710 generated by GNU Autoconf 2.69
1712 Copyright (C) 2012 Free Software Foundation, Inc.
1713 This configure script is free software; the Free Software Foundation
1714 gives unlimited permission to copy, distribute and modify it.
1719 ## ------------------------ ##
1720 ## Autoconf initialization. ##
1721 ## ------------------------ ##
1723 # ac_fn_c_try_compile LINENO
1724 # --------------------------
1725 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_c_try_compile ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext
1730 if { { ac_try="$ac_compile"
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_compile") 2>conftest.err
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest.$ac_objext; then :
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1759 } # ac_fn_c_try_compile
1761 # ac_fn_c_try_cpp LINENO
1762 # ----------------------
1763 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 if { { ac_try="$ac_cpp conftest.$ac_ext"
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } > conftest.i && {
1783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 as_fn_set_status $ac_retval
1798 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1799 # -------------------------------------------------------
1800 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1801 # the include files in INCLUDES and setting the cache variable VAR
1803 ac_fn_c_check_header_mongrel ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if eval \${$3+:} false; then :
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810 $as_echo_n "(cached) " >&6
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1816 # Is the header compilable?
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1818 $as_echo_n "checking $2 usability... " >&6; }
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825 ac_header_compiler=yes
1827 ac_header_compiler=no
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1831 $as_echo "$ac_header_compiler" >&6; }
1833 # Is the header present?
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1835 $as_echo_n "checking $2 presence... " >&6; }
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1840 if ac_fn_c_try_cpp "$LINENO"; then :
1841 ac_header_preproc=yes
1843 ac_header_preproc=no
1845 rm -f conftest.err conftest.i conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1847 $as_echo "$ac_header_preproc" >&6; }
1849 # So? What about this header?
1850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1853 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1855 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1859 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1861 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1863 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1865 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1868 ( $as_echo "## ------------------------------------ ##
1869 ## Report this to http://bugs.ntp.org./ ##
1870 ## ------------------------------------ ##"
1871 ) | sed "s/^/$as_me: WARNING: /" >&2
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1879 eval "$3=\$ac_header_compiler"
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 } # ac_fn_c_check_header_mongrel
1889 # ac_fn_c_try_run LINENO
1890 # ----------------------
1891 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1892 # that executables *can* be run.
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 if { { ac_try="$ac_link"
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>&5
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1907 { { case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_try") 2>&5
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; }; }; then :
1919 $as_echo "$as_me: program exited with status $ac_status" >&5
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=$ac_status
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1931 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1932 # -------------------------------------------------------
1933 # Tests whether HEADER exists and can be compiled using the include files in
1934 # INCLUDES, setting the cache variable VAR accordingly.
1935 ac_fn_c_check_header_compile ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1948 if ac_fn_c_try_compile "$LINENO"; then :
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 } # ac_fn_c_check_header_compile
1962 # ac_fn_c_try_link LINENO
1963 # -----------------------
1964 # Try to link conftest.$ac_ext, and return whether this succeeded.
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 rm -f conftest.$ac_objext conftest$ac_exeext
1969 if { { ac_try="$ac_link"
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_link") 2>conftest.err
1978 if test -s conftest.err; then
1979 grep -v '^ *+' conftest.err >conftest.er1
1980 cat conftest.er1 >&5
1981 mv -f conftest.er1 conftest.err
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } && {
1985 test -z "$ac_c_werror_flag" ||
1986 test ! -s conftest.err
1987 } && test -s conftest$ac_exeext && {
1988 test "$cross_compiling" = yes ||
1989 test -x conftest$ac_exeext
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1998 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1999 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2000 # interfere with the next link command; also delete a directory that is
2001 # left behind by Apple's compiler. We do this before executing the actions.
2002 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 as_fn_set_status $ac_retval
2006 } # ac_fn_c_try_link
2008 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2009 # -------------------------------------------
2010 # Tests whether TYPE exists after having included INCLUDES, setting cache
2011 # variable VAR accordingly.
2012 ac_fn_c_check_type ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if eval \${$3+:} false; then :
2018 $as_echo_n "(cached) " >&6
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2046 if ac_fn_c_try_compile "$LINENO"; then :
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 } # ac_fn_c_check_type
2062 # ac_fn_c_check_func LINENO FUNC VAR
2063 # ----------------------------------
2064 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2065 ac_fn_c_check_func ()
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if eval \${$3+:} false; then :
2071 $as_echo_n "(cached) " >&6
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2075 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2077 #define $2 innocuous_$2
2079 /* System header to define __stub macros and hopefully few prototypes,
2080 which can conflict with char $2 (); below.
2081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2082 <limits.h> exists even on freestanding compilers. */
2085 # include <limits.h>
2087 # include <assert.h>
2092 /* Override any GCC internal prototype to avoid an error.
2093 Use char because int might match the return type of a GCC
2094 builtin and then its argument prototype would still apply. */
2099 /* The GNU C library defines this for functions which it implements
2100 to always fail with ENOSYS. Some functions are actually named
2101 something starting with __ and the normal name is an alias. */
2102 #if defined __stub_$2 || defined __stub___$2
2114 if ac_fn_c_try_link "$LINENO"; then :
2119 rm -f core conftest.err conftest.$ac_objext \
2120 conftest$ac_exeext conftest.$ac_ext
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127 } # ac_fn_c_check_func
2129 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2130 # ---------------------------------------------
2131 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2133 ac_fn_c_check_decl ()
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 as_decl_name=`echo $2|sed 's/ *(.*//'`
2137 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2139 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2140 if eval \${$3+:} false; then :
2141 $as_echo_n "(cached) " >&6
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2149 #ifndef $as_decl_name
2151 (void) $as_decl_use;
2153 (void) $as_decl_name;
2161 if ac_fn_c_try_compile "$LINENO"; then :
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173 } # ac_fn_c_check_decl
2175 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2176 # --------------------------------------------
2177 # Tries to find the compile-time value of EXPR in a program that includes
2178 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2180 ac_fn_c_compute_int ()
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 if test "$cross_compiling" = yes; then
2184 # Depending upon the size, compute the lo and hi bounds.
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2191 static int test_array [1 - 2 * !(($2) >= 0)];
2193 return test_array [0];
2199 if ac_fn_c_try_compile "$LINENO"; then :
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2208 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2210 return test_array [0];
2216 if ac_fn_c_try_compile "$LINENO"; then :
2217 ac_hi=$ac_mid; break
2219 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2220 if test $ac_lo -le $ac_mid; then
2224 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2235 static int test_array [1 - 2 * !(($2) < 0)];
2237 return test_array [0];
2243 if ac_fn_c_try_compile "$LINENO"; then :
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2252 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2254 return test_array [0];
2260 if ac_fn_c_try_compile "$LINENO"; then :
2261 ac_lo=$ac_mid; break
2263 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2264 if test $ac_mid -le $ac_hi; then
2268 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 # Binary search between lo and hi bounds.
2279 while test "x$ac_lo" != "x$ac_hi"; do
2280 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2287 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2289 return test_array [0];
2295 if ac_fn_c_try_compile "$LINENO"; then :
2298 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2310 static long int longval () { return $2; }
2311 static unsigned long int ulongval () { return $2; }
2318 FILE *f = fopen ("conftest.val", "w");
2323 long int i = longval ();
2326 fprintf (f, "%ld", i);
2330 unsigned long int i = ulongval ();
2333 fprintf (f, "%lu", i);
2335 /* Do not output a trailing newline, as this causes \r\n confusion
2336 on some platforms. */
2337 return ferror (f) || fclose (f) != 0;
2343 if ac_fn_c_try_run "$LINENO"; then :
2344 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2349 conftest.$ac_objext conftest.beam conftest.$ac_ext
2353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354 as_fn_set_status $ac_retval
2356 } # ac_fn_c_compute_int
2358 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2359 # ----------------------------------------------------
2360 # Tries to find if the field MEMBER exists in type AGGR, after including
2361 # INCLUDES, setting cache variable VAR accordingly.
2362 ac_fn_c_check_member ()
2364 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2366 $as_echo_n "checking for $2.$3... " >&6; }
2367 if eval \${$4+:} false; then :
2368 $as_echo_n "(cached) " >&6
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2383 if ac_fn_c_try_compile "$LINENO"; then :
2386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2387 /* end confdefs.h. */
2393 if (sizeof ac_aggr.$3)
2399 if ac_fn_c_try_compile "$LINENO"; then :
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2410 $as_echo "$ac_res" >&6; }
2411 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2413 } # ac_fn_c_check_member
2415 # ac_fn_cxx_try_compile LINENO
2416 # ----------------------------
2417 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2418 ac_fn_cxx_try_compile ()
2420 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2421 rm -f conftest.$ac_objext
2422 if { { ac_try="$ac_compile"
2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425 *) ac_try_echo=$ac_try;;
2427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2428 $as_echo "$ac_try_echo"; } >&5
2429 (eval "$ac_compile") 2>conftest.err
2431 if test -s conftest.err; then
2432 grep -v '^ *+' conftest.err >conftest.er1
2433 cat conftest.er1 >&5
2434 mv -f conftest.er1 conftest.err
2436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2437 test $ac_status = 0; } && {
2438 test -z "$ac_cxx_werror_flag" ||
2439 test ! -s conftest.err
2440 } && test -s conftest.$ac_objext; then :
2443 $as_echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2448 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2449 as_fn_set_status $ac_retval
2451 } # ac_fn_cxx_try_compile
2453 # ac_fn_cxx_try_cpp LINENO
2454 # ------------------------
2455 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2456 ac_fn_cxx_try_cpp ()
2458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2459 if { { ac_try="$ac_cpp conftest.$ac_ext"
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2465 $as_echo "$ac_try_echo"; } >&5
2466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2468 if test -s conftest.err; then
2469 grep -v '^ *+' conftest.err >conftest.er1
2470 cat conftest.er1 >&5
2471 mv -f conftest.er1 conftest.err
2473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2474 test $ac_status = 0; } > conftest.i && {
2475 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2476 test ! -s conftest.err
2480 $as_echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2486 as_fn_set_status $ac_retval
2488 } # ac_fn_cxx_try_cpp
2490 # ac_fn_cxx_try_link LINENO
2491 # -------------------------
2492 # Try to link conftest.$ac_ext, and return whether this succeeded.
2493 ac_fn_cxx_try_link ()
2495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496 rm -f conftest.$ac_objext conftest$ac_exeext
2497 if { { ac_try="$ac_link"
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2503 $as_echo "$ac_try_echo"; } >&5
2504 (eval "$ac_link") 2>conftest.err
2506 if test -s conftest.err; then
2507 grep -v '^ *+' conftest.err >conftest.er1
2508 cat conftest.er1 >&5
2509 mv -f conftest.er1 conftest.err
2511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2512 test $ac_status = 0; } && {
2513 test -z "$ac_cxx_werror_flag" ||
2514 test ! -s conftest.err
2515 } && test -s conftest$ac_exeext && {
2516 test "$cross_compiling" = yes ||
2517 test -x conftest$ac_exeext
2521 $as_echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2526 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2527 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2528 # interfere with the next link command; also delete a directory that is
2529 # left behind by Apple's compiler. We do this before executing the actions.
2530 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2532 as_fn_set_status $ac_retval
2534 } # ac_fn_cxx_try_link
2535 cat >config.log <<_ACEOF
2536 This file contains any messages produced by compilers while
2537 running configure, to aid debugging if configure makes a mistake.
2539 It was created by sntp $as_me 4.2.8p7, which was
2540 generated by GNU Autoconf 2.69. Invocation command line was
2552 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2553 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2554 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2555 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2556 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2558 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2559 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2561 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2562 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2563 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2564 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2565 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2566 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2567 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 test -z "$as_dir" && as_dir=.
2576 $as_echo "PATH: $as_dir"
2592 # Keep a trace of the command line.
2593 # Strip out --no-create and --no-recursion so they do not pile up.
2594 # Strip out --silent because we don't want to record it for future runs.
2595 # Also quote any args containing shell meta-characters.
2596 # Make two passes to allow for proper duplicate-argument suppression.
2600 ac_must_keep_next=false
2606 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2607 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2608 | -silent | --silent | --silen | --sile | --sil)
2611 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2614 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2616 as_fn_append ac_configure_args1 " '$ac_arg'"
2617 if test $ac_must_keep_next = true; then
2618 ac_must_keep_next=false # Got value, back to normal.
2621 *=* | --config-cache | -C | -disable-* | --disable-* \
2622 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2623 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2624 | -with-* | --with-* | -without-* | --without-* | --x)
2625 case "$ac_configure_args0 " in
2626 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2629 -* ) ac_must_keep_next=true ;;
2632 as_fn_append ac_configure_args " '$ac_arg'"
2637 { ac_configure_args0=; unset ac_configure_args0;}
2638 { ac_configure_args1=; unset ac_configure_args1;}
2640 # When interrupted or exit'd, cleanup temporary files, and complete
2641 # config.log. We remove comments because anyway the quotes in there
2642 # would cause problems or look ugly.
2643 # WARNING: Use '\'' to represent an apostrophe within the trap.
2644 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2645 trap 'exit_status=$?
2646 # Save into config.log some information that might help in debugging.
2650 $as_echo "## ---------------- ##
2651 ## Cache variables. ##
2652 ## ---------------- ##"
2654 # The following way of writing the cache mishandles newlines in values,
2656 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2657 eval ac_val=\$$ac_var
2661 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2662 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2665 _ | IFS | as_nl) ;; #(
2666 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2667 *) { eval $ac_var=; unset $ac_var;} ;;
2672 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2673 *${as_nl}ac_space=\ *)
2675 "s/'\''/'\''\\\\'\'''\''/g;
2676 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2679 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2686 $as_echo "## ----------------- ##
2687 ## Output variables. ##
2688 ## ----------------- ##"
2690 for ac_var in $ac_subst_vars
2692 eval ac_val=\$$ac_var
2694 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2696 $as_echo "$ac_var='\''$ac_val'\''"
2700 if test -n "$ac_subst_files"; then
2701 $as_echo "## ------------------- ##
2702 ## File substitutions. ##
2703 ## ------------------- ##"
2705 for ac_var in $ac_subst_files
2707 eval ac_val=\$$ac_var
2709 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2711 $as_echo "$ac_var='\''$ac_val'\''"
2716 if test -s confdefs.h; then
2717 $as_echo "## ----------- ##
2724 test "$ac_signal" != 0 &&
2725 $as_echo "$as_me: caught signal $ac_signal"
2726 $as_echo "$as_me: exit $exit_status"
2728 rm -f core *.core core.conftest.* &&
2729 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2732 for ac_signal in 1 2 13 15; do
2733 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2737 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2738 rm -f -r conftest* confdefs.h
2740 $as_echo "/* confdefs.h */" > confdefs.h
2742 # Predefined preprocessor variables.
2744 cat >>confdefs.h <<_ACEOF
2745 #define PACKAGE_NAME "$PACKAGE_NAME"
2748 cat >>confdefs.h <<_ACEOF
2749 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2752 cat >>confdefs.h <<_ACEOF
2753 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2756 cat >>confdefs.h <<_ACEOF
2757 #define PACKAGE_STRING "$PACKAGE_STRING"
2760 cat >>confdefs.h <<_ACEOF
2761 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2764 cat >>confdefs.h <<_ACEOF
2765 #define PACKAGE_URL "$PACKAGE_URL"
2769 # Let the site file select an alternate cache file if it wants to.
2770 # Prefer an explicitly selected file to automatically selected ones.
2773 if test -n "$CONFIG_SITE"; then
2774 # We do not want a PATH search for config.site.
2775 case $CONFIG_SITE in #((
2776 -*) ac_site_file1=./$CONFIG_SITE;;
2777 */*) ac_site_file1=$CONFIG_SITE;;
2778 *) ac_site_file1=./$CONFIG_SITE;;
2780 elif test "x$prefix" != xNONE; then
2781 ac_site_file1=$prefix/share/config.site
2782 ac_site_file2=$prefix/etc/config.site
2784 ac_site_file1=$ac_default_prefix/share/config.site
2785 ac_site_file2=$ac_default_prefix/etc/config.site
2787 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2789 test "x$ac_site_file" = xNONE && continue
2790 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2792 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2793 sed 's/^/| /' "$ac_site_file" >&5
2795 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2797 as_fn_error $? "failed to load site script $ac_site_file
2798 See \`config.log' for more details" "$LINENO" 5; }
2802 if test -r "$cache_file"; then
2803 # Some versions of bash will fail to source /dev/null (special files
2804 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2805 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2807 $as_echo "$as_me: loading cache $cache_file" >&6;}
2809 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2810 *) . "./$cache_file";;
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2815 $as_echo "$as_me: creating cache $cache_file" >&6;}
2819 as_fn_append ac_header_list " stdarg.h"
2820 # Check that the precious variables saved in the cache have kept the same
2822 ac_cache_corrupted=false
2823 for ac_var in $ac_precious_vars; do
2824 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2825 eval ac_new_set=\$ac_env_${ac_var}_set
2826 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2827 eval ac_new_val=\$ac_env_${ac_var}_value
2828 case $ac_old_set,$ac_new_set in
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2831 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2832 ac_cache_corrupted=: ;;
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2835 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2836 ac_cache_corrupted=: ;;
2839 if test "x$ac_old_val" != "x$ac_new_val"; then
2840 # differences in whitespace do not lead to failure.
2841 ac_old_val_w=`echo x $ac_old_val`
2842 ac_new_val_w=`echo x $ac_new_val`
2843 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2845 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2846 ac_cache_corrupted=:
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2849 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2850 eval $ac_var=\$ac_old_val
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2853 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2855 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2858 # Pass precious variables to config.status.
2859 if test "$ac_new_set" = set; then
2861 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2862 *) ac_arg=$ac_var=$ac_new_val ;;
2864 case " $ac_configure_args " in
2865 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2866 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2870 if $ac_cache_corrupted; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2874 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2875 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2877 ## -------------------- ##
2878 ## Main body of script. ##
2879 ## -------------------- ##
2882 ac_cpp='$CPP $CPPFLAGS'
2883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890 for ac_dir in libevent/build-aux "$srcdir"/libevent/build-aux; do
2891 if test -f "$ac_dir/install-sh"; then
2893 ac_install_sh="$ac_aux_dir/install-sh -c"
2895 elif test -f "$ac_dir/install.sh"; then
2897 ac_install_sh="$ac_aux_dir/install.sh -c"
2899 elif test -f "$ac_dir/shtool"; then
2901 ac_install_sh="$ac_aux_dir/shtool install -c"
2905 if test -z "$ac_aux_dir"; then
2906 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libevent/build-aux \"$srcdir\"/libevent/build-aux" "$LINENO" 5
2909 # These three variables are undocumented and unsupported,
2910 # and are intended to be withdrawn in a future Autoconf release.
2911 # They can cause serious problems if a builder's source tree is in a directory
2912 # whose full name contains unusual characters.
2913 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2914 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2915 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2919 ac_cpp='$CPP $CPPFLAGS'
2920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2925 # Bump sntp_configure_cache_version for each change to configure.ac or
2926 # .m4 files which invalidates cached values from previous configure
2929 # If the change affects cache variables used only by the main NTP
2930 # configure.ac, then only its version number should be bumped, while
2931 # the subdir configure.ac version numbers should be unchanged. The
2932 # same is true for a test/variable that is used only by one subdir
2933 # being changed incompatibly; only that subdir's cache version needs
2936 # If a change affects variables shared by all NTP configure scripts,
2937 # please bump the version numbers of each. If you are not sure, the
2938 # safe choice is to bump all on any cache-invalidating change.
2940 # In order to avoid the risk of version stamp collision between -stable
2941 # and -dev branches, do not simply increment the version, instead use
2942 # the date YYYYMMDD optionally with -HHMM if there is more than one
2945 sntp_configure_cache_version=20120806
2947 # When the version of config.cache and configure do not
2948 # match, NTP_CACHEVERSION will flush the cache.
2954 case "$ntp_cv_sntp_cache_version" in
2955 $sntp_configure_cache_version)
2956 # same version, good
2960 # No cache, predates ntp_cv_sntp_cache_version, or is empty.
2961 case "$cache_file" in
2966 case "$NTP_CACHEVERSION_PARENT" in
2968 # Do not clear the cache immediately after it is created
2969 # empty as it is noisy. Differentiate a newly-created
2970 # config.cache from one predating the cache version
2971 # mechanism by looking for the first cached variable set
2973 case "$ac_cv_path_install" in
2975 # empty config.cache file
2980 # Parent configure just created cache from empty,
2981 # flushing would be counterproductive.
2988 # configure cache version mismatches config.cache version
2992 case "$ntp_cache_flush" in
2994 c_version="${ntp_cv_sntp_cache_version:-(no version found)}"
2996 # Do we flush all variables or exclude others' version stamps?
2998 case "$NTP_CACHEVERSION_PARENT" in
3000 # Clear all *_cv_* variables including our child subdirs'
3001 # ntp_cv_*_cache_version variables. This prevents subdir
3002 # configure scripts from noticing a version mismatch just
3003 # after the top configure in the invocation cleared and
3004 # recreated the cache.
3006 c_varname_list=`set |
3007 sed -n -e 's/=.*$//' \
3012 # This is not the top configure this particular invocation.
3013 # Clear all *_cv_* variables sparing the version stamps
3014 # of other configure scripts, so we don't trigger
3015 # useless repeated clearings.
3017 c_varname_list=`set |
3018 sed -n -e 's/=.*$//' \
3019 -e '/ntp_cv_.*_cache_version/d' \
3024 for c_varname in $c_varname_list
3026 { eval $c_varname=; unset $c_varname; }
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3030 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $sntp_configure_cache_version" >&5
3032 $as_echo "$as_me: configure script cache version: $sntp_configure_cache_version" >&6;}
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3034 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
3035 { c_varname=; unset c_varname;}
3036 { c_varname_list=; unset c_varname_list;}
3037 { c_version=; unset c_version;}
3040 { ntp_cache_flush=; unset ntp_cache_flush;}
3042 # save configure version in config.cache for next time
3043 ntp_cv_sntp_cache_version="$sntp_configure_cache_version"
3045 # let any subdir configure.ac NTP_CACHEVERSION invocations
3046 # know they are not the top level.
3047 NTP_CACHEVERSION_PARENT='sntp' ; export NTP_CACHEVERSION_PARENT
3050 am__api_version='1.15'
3052 # Find a good install program. We prefer a C program (faster),
3053 # so one script is as good as another. But avoid the broken or
3054 # incompatible versions:
3055 # SysV /etc/install, /usr/sbin/install
3056 # SunOS /usr/etc/install
3057 # IRIX /sbin/install
3059 # AmigaOS /C/install, which installs bootblocks on floppy discs
3060 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3061 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3062 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3063 # OS/2's system install, which has a completely different semantic
3064 # ./install, which can be erroneously created by make from ./install.sh.
3065 # Reject install programs that cannot install multiple files.
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3067 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3068 if test -z "$INSTALL"; then
3069 if ${ac_cv_path_install+:} false; then :
3070 $as_echo_n "(cached) " >&6
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 test -z "$as_dir" && as_dir=.
3077 # Account for people who put trailing slashes in PATH elements.
3078 case $as_dir/ in #((
3079 ./ | .// | /[cC]/* | \
3080 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3081 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3084 # OSF1 and SCO ODT 3.0 have their own names for install.
3085 # Don't use installbsd from OSF since it installs stuff as root
3087 for ac_prog in ginstall scoinst install; do
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3090 if test $ac_prog = install &&
3091 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3092 # AIX install. It has an incompatible calling convention.
3094 elif test $ac_prog = install &&
3095 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3096 # program-specific install script used by HP pwplus--don't use.
3099 rm -rf conftest.one conftest.two conftest.dir
3100 echo one > conftest.one
3101 echo two > conftest.two
3103 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3104 test -s conftest.one && test -s conftest.two &&
3105 test -s conftest.dir/conftest.one &&
3106 test -s conftest.dir/conftest.two
3108 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3121 rm -rf conftest.one conftest.two conftest.dir
3124 if test "${ac_cv_path_install+set}" = set; then
3125 INSTALL=$ac_cv_path_install
3127 # As a last resort, use the slow shell script. Don't cache a
3128 # value for INSTALL within a source directory, because that will
3129 # break other packages using the cache if that directory is
3130 # removed, or if the value is a relative name.
3131 INSTALL=$ac_install_sh
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3135 $as_echo "$INSTALL" >&6; }
3137 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3138 # It thinks the first close brace ends the variable substitution.
3139 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3141 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3143 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3146 $as_echo_n "checking whether build environment is sane... " >&6; }
3147 # Reject unsafe characters in $srcdir or the absolute working directory
3148 # name. Accept space and tab only in the latter.
3152 *[\\\"\#\$\&\'\`$am_lf]*)
3153 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3156 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3157 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3160 # Do 'set' in a subshell so we don't clobber the current shell's
3161 # arguments. Must try -L first in case configure is actually a
3162 # symlink; some systems play weird games with the mod time of symlinks
3163 # (eg FreeBSD returns the mod time of the symlink's containing
3167 for am_try in 1 2; do
3168 echo "timestamp, slept: $am_has_slept" > conftest.file
3169 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3170 if test "$*" = "X"; then
3172 set X `ls -t "$srcdir/configure" conftest.file`
3174 if test "$*" != "X $srcdir/configure conftest.file" \
3175 && test "$*" != "X conftest.file $srcdir/configure"; then
3177 # If neither matched, then we have a broken ls. This can happen
3178 # if, for instance, CONFIG_SHELL is bash and it inherits a
3179 # broken ls alias from the environment. This has actually
3180 # happened. Such a system could not be considered "sane".
3181 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3182 alias in your environment" "$LINENO" 5
3184 if test "$2" = conftest.file || test $am_try -eq 2; then
3191 test "$2" = conftest.file
3197 as_fn_error $? "newly created file is older than distributed files!
3198 Check your system clock" "$LINENO" 5
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201 $as_echo "yes" >&6; }
3202 # If we didn't sleep, we still need to ensure time stamps of config.status and
3203 # generated files are strictly newer.
3205 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3212 test "$program_prefix" != NONE &&
3213 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3214 # Use a double $ so make ignores it.
3215 test "$program_suffix" != NONE &&
3216 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3217 # Double any \ or $.
3218 # By default was `s,x,x', remove it if useless.
3219 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3220 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3222 # Expand $ac_aux_dir to an absolute path.
3223 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3225 if test x"${MISSING+set}" != xset; then
3228 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3230 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3233 # Use eval to expand $SHELL
3234 if eval "$MISSING --is-lightweight"; then
3235 am_missing_run="$MISSING "
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3239 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3242 if test x"${install_sh+set}" != xset; then
3245 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3247 install_sh="\${SHELL} $am_aux_dir/install-sh"
3251 # Installed binaries are usually stripped using 'strip' when the user
3252 # run "make install-strip". However 'strip' might not be the right
3253 # tool to use in cross-compilation environments, therefore Automake
3254 # will honor the 'STRIP' environment variable to overrule this program.
3255 if test "$cross_compiling" != no; then
3256 if test -n "$ac_tool_prefix"; then
3257 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3258 set dummy ${ac_tool_prefix}strip; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_STRIP+:} false; then :
3262 $as_echo_n "(cached) " >&6
3264 if test -n "$STRIP"; then
3265 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 STRIP=$ac_cv_prog_STRIP
3285 if test -n "$STRIP"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3287 $as_echo "$STRIP" >&6; }
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3295 if test -z "$ac_cv_prog_STRIP"; then
3297 # Extract the first word of "strip", so it can be a program name with args.
3298 set dummy strip; ac_word=$2
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 $as_echo_n "checking for $ac_word... " >&6; }
3301 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3302 $as_echo_n "(cached) " >&6
3304 if test -n "$ac_ct_STRIP"; then
3305 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314 ac_cv_prog_ac_ct_STRIP="strip"
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3325 if test -n "$ac_ct_STRIP"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3327 $as_echo "$ac_ct_STRIP" >&6; }
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3333 if test "x$ac_ct_STRIP" = x; then
3336 case $cross_compiling:$ac_tool_warned in
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3340 ac_tool_warned=yes ;;
3345 STRIP="$ac_cv_prog_STRIP"
3349 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3352 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3353 if test -z "$MKDIR_P"; then
3354 if ${ac_cv_path_mkdir+:} false; then :
3355 $as_echo_n "(cached) " >&6
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3361 test -z "$as_dir" && as_dir=.
3362 for ac_prog in mkdir gmkdir; do
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3365 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3366 'mkdir (GNU coreutils) '* | \
3367 'mkdir (coreutils) '* | \
3368 'mkdir (fileutils) '4.1*)
3369 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3379 test -d ./--version && rmdir ./--version
3380 if test "${ac_cv_path_mkdir+set}" = set; then
3381 MKDIR_P="$ac_cv_path_mkdir -p"
3383 # As a last resort, use the slow shell script. Don't cache a
3384 # value for MKDIR_P within a source directory, because that will
3385 # break other packages using the cache if that directory is
3386 # removed, or if the value is a relative name.
3387 MKDIR_P="$ac_install_sh -d"
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3391 $as_echo "$MKDIR_P" >&6; }
3393 for ac_prog in gawk mawk nawk awk
3395 # Extract the first word of "$ac_prog", so it can be a program name with args.
3396 set dummy $ac_prog; ac_word=$2
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 $as_echo_n "checking for $ac_word... " >&6; }
3399 if ${ac_cv_prog_AWK+:} false; then :
3400 $as_echo_n "(cached) " >&6
3402 if test -n "$AWK"; then
3403 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412 ac_cv_prog_AWK="$ac_prog"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 if test -n "$AWK"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3425 $as_echo "$AWK" >&6; }
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3432 test -n "$AWK" && break
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3436 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3438 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3439 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3440 $as_echo_n "(cached) " >&6
3442 cat >conftest.make <<\_ACEOF
3445 @echo '@@@%%%=$(MAKE)=@@@%%%'
3447 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3448 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3450 eval ac_cv_prog_make_${ac_make}_set=yes;;
3452 eval ac_cv_prog_make_${ac_make}_set=no;;
3456 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3458 $as_echo "yes" >&6; }
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462 $as_echo "no" >&6; }
3463 SET_MAKE="MAKE=${MAKE-make}"
3466 rm -rf .tst 2>/dev/null
3467 mkdir .tst 2>/dev/null
3468 if test -d .tst; then
3473 rmdir .tst 2>/dev/null
3475 # Check whether --enable-silent-rules was given.
3476 if test "${enable_silent_rules+set}" = set; then :
3477 enableval=$enable_silent_rules;
3480 case $enable_silent_rules in # (((
3481 yes) AM_DEFAULT_VERBOSITY=0;;
3482 no) AM_DEFAULT_VERBOSITY=1;;
3483 *) AM_DEFAULT_VERBOSITY=1;;
3485 am_make=${MAKE-make}
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3487 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3488 if ${am_cv_make_support_nested_variables+:} false; then :
3489 $as_echo_n "(cached) " >&6
3491 if $as_echo 'TRUE=$(BAR$(V))
3497 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3498 am_cv_make_support_nested_variables=yes
3500 am_cv_make_support_nested_variables=no
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3504 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3505 if test $am_cv_make_support_nested_variables = yes; then
3507 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3509 AM_V=$AM_DEFAULT_VERBOSITY
3510 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3514 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3515 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3516 # is not polluted with repeated "-I."
3517 am__isrc=' -I$(srcdir)'
3518 # test to see if srcdir already configured
3519 if test -f $srcdir/config.status; then
3520 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3524 # test whether we have cygpath
3525 if test -z "$CYGPATH_W"; then
3526 if (cygpath --version) >/dev/null 2>/dev/null; then
3527 CYGPATH_W='cygpath -w'
3534 # Define the identity of the package.
3539 cat >>confdefs.h <<_ACEOF
3540 #define PACKAGE "$PACKAGE"
3544 cat >>confdefs.h <<_ACEOF
3545 #define VERSION "$VERSION"
3548 # Some tools Automake needs.
3550 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3553 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3556 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3559 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3562 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3564 # For better backward compatibility. To be removed once Automake 1.9.x
3565 # dies out for good. For more background, see:
3566 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3567 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3568 mkdir_p='$(MKDIR_P)'
3570 # We need awk for the "check" target (and possibly the TAP driver). The
3571 # system "awk" is bad on some platforms.
3572 # Always define AMTAR for backward compatibility. Yes, it's still used
3573 # in the wild :-( We should find a proper way to deprecate it ...
3577 # We'll loop over all known methods to create a tar archive until one works.
3578 _am_tools='gnutar pax cpio none'
3580 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3587 # POSIX will say in a future version that running "rm -f" with no argument
3588 # is OK; and we want to be able to make that assumption in our Makefile
3589 # recipes. So use an aggressive probe to check that the usage we want is
3590 # actually supported "in the wild" to an acceptable degree.
3591 # See automake bug#10828.
3592 # To make any issue more visible, cause the running configure to be aborted
3593 # by default if the 'rm' program in use doesn't match our expectations; the
3594 # user can still override this though.
3595 if rm -f && rm -fr && rm -rf; then : OK; else
3599 Your 'rm' program seems unable to run without file operands specified
3600 on the command line, even when the '-f' option is present. This is contrary
3601 to the behaviour of most rm programs out there, and not conforming with
3602 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3604 Please tell bug-automake@gnu.org about your system, including the value
3605 of your $PATH and any error possibly output before this message. This
3606 can help us improve future automake versions.
3609 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3610 echo 'Configuration will proceed anyway, since you have set the' >&2
3611 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3615 Aborting the configuration process, to ensure you take notice of the issue.
3617 You can download and install GNU coreutils to get an 'rm' implementation
3618 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3620 If you want to complete the configuration process using your problematic
3621 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3622 to "yes", and re-run configure.
3625 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3629 # Check whether --enable-silent-rules was given.
3630 if test "${enable_silent_rules+set}" = set; then :
3631 enableval=$enable_silent_rules;
3634 case $enable_silent_rules in # (((
3635 yes) AM_DEFAULT_VERBOSITY=0;;
3636 no) AM_DEFAULT_VERBOSITY=1;;
3637 *) AM_DEFAULT_VERBOSITY=0;;
3639 am_make=${MAKE-make}
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3641 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3642 if ${am_cv_make_support_nested_variables+:} false; then :
3643 $as_echo_n "(cached) " >&6
3645 if $as_echo 'TRUE=$(BAR$(V))
3651 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3652 am_cv_make_support_nested_variables=yes
3654 am_cv_make_support_nested_variables=no
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3658 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3659 if test $am_cv_make_support_nested_variables = yes; then
3661 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3663 AM_V=$AM_DEFAULT_VERBOSITY
3664 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3669 # Make sure we can run config.sub.
3670 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3671 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3674 $as_echo_n "checking build system type... " >&6; }
3675 if ${ac_cv_build+:} false; then :
3676 $as_echo_n "(cached) " >&6
3678 ac_build_alias=$build_alias
3679 test "x$ac_build_alias" = x &&
3680 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3681 test "x$ac_build_alias" = x &&
3682 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3683 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3684 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3688 $as_echo "$ac_cv_build" >&6; }
3689 case $ac_cv_build in
3691 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3694 ac_save_IFS=$IFS; IFS='-'
3700 # Remember, the first character of IFS is used to create $*,
3701 # except with old shells:
3704 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3708 $as_echo_n "checking host system type... " >&6; }
3709 if ${ac_cv_host+:} false; then :
3710 $as_echo_n "(cached) " >&6
3712 if test "x$host_alias" = x; then
3713 ac_cv_host=$ac_cv_build
3715 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3716 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3721 $as_echo "$ac_cv_host" >&6; }
3724 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3727 ac_save_IFS=$IFS; IFS='-'
3733 # Remember, the first character of IFS is used to create $*,
3734 # except with old shells:
3737 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3741 cat >>confdefs.h <<_ACEOF
3742 #define STR_SYSTEM "$host"
3745 ac_config_headers="$ac_config_headers config.h"
3748 DEPDIR="${am__leading_dot}deps"
3750 ac_config_commands="$ac_config_commands depfiles"
3753 am_make=${MAKE-make}
3754 cat > confinc << 'END'
3756 @echo this is the am__doit target
3759 # If we don't find an include directive, just comment out the code.
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3761 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3765 # First try GNU make style include.
3766 echo "include confinc" > confmf
3767 # Ignore all kinds of additional output from 'make'.
3768 case `$am_make -s -f confmf 2> /dev/null` in #(
3769 *the\ am__doit\ target*)
3775 # Now try BSD make style include.
3776 if test "$am__include" = "#"; then
3777 echo '.include "confinc"' > confmf
3778 case `$am_make -s -f confmf 2> /dev/null` in #(
3779 *the\ am__doit\ target*)
3780 am__include=.include
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3789 $as_echo "$_am_result" >&6; }
3790 rm -f confinc confmf
3792 # Check whether --enable-dependency-tracking was given.
3793 if test "${enable_dependency_tracking+set}" = set; then :
3794 enableval=$enable_dependency_tracking;
3797 if test "x$enable_dependency_tracking" != xno; then
3798 am_depcomp="$ac_aux_dir/depcomp"
3802 if test "x$enable_dependency_tracking" != xno; then
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816 if test -n "$ac_tool_prefix"; then
3817 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3818 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820 $as_echo_n "checking for $ac_word... " >&6; }
3821 if ${ac_cv_prog_CC+:} false; then :
3822 $as_echo_n "(cached) " >&6
3824 if test -n "$CC"; then
3825 ac_cv_prog_CC="$CC" # Let the user override the test.
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3834 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 if test -n "$CC"; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3847 $as_echo "$CC" >&6; }
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3855 if test -z "$ac_cv_prog_CC"; then
3857 # Extract the first word of "gcc", so it can be a program name with args.
3858 set dummy gcc; ac_word=$2
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860 $as_echo_n "checking for $ac_word... " >&6; }
3861 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3862 $as_echo_n "(cached) " >&6
3864 if test -n "$ac_ct_CC"; then
3865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3874 ac_cv_prog_ac_ct_CC="gcc"
3875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3885 if test -n "$ac_ct_CC"; then
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3887 $as_echo "$ac_ct_CC" >&6; }
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890 $as_echo "no" >&6; }
3893 if test "x$ac_ct_CC" = x; then
3896 case $cross_compiling:$ac_tool_warned in
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3900 ac_tool_warned=yes ;;
3908 if test -z "$CC"; then
3909 if test -n "$ac_tool_prefix"; then
3910 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3911 set dummy ${ac_tool_prefix}cc; ac_word=$2
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913 $as_echo_n "checking for $ac_word... " >&6; }
3914 if ${ac_cv_prog_CC+:} false; then :
3915 $as_echo_n "(cached) " >&6
3917 if test -n "$CC"; then
3918 ac_cv_prog_CC="$CC" # Let the user override the test.
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927 ac_cv_prog_CC="${ac_tool_prefix}cc"
3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 if test -n "$CC"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3940 $as_echo "$CC" >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3949 if test -z "$CC"; then
3950 # Extract the first word of "cc", so it can be a program name with args.
3951 set dummy cc; ac_word=$2
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3953 $as_echo_n "checking for $ac_word... " >&6; }
3954 if ${ac_cv_prog_CC+:} false; then :
3955 $as_echo_n "(cached) " >&6
3957 if test -n "$CC"; then
3958 ac_cv_prog_CC="$CC" # Let the user override the test.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3969 ac_prog_rejected=yes
3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 if test $ac_prog_rejected = yes; then
3981 # We found a bogon in the path, so make sure we never use it.
3982 set dummy $ac_cv_prog_CC
3984 if test $# != 0; then
3985 # We chose a different compiler from the bogus one.
3986 # However, it has the same basename, so the bogon will be chosen
3987 # first if we set CC to just the basename; use the full file name.
3989 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3995 if test -n "$CC"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3997 $as_echo "$CC" >&6; }
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4005 if test -z "$CC"; then
4006 if test -n "$ac_tool_prefix"; then
4007 for ac_prog in cl.exe
4009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4012 $as_echo_n "checking for $ac_word... " >&6; }
4013 if ${ac_cv_prog_CC+:} false; then :
4014 $as_echo_n "(cached) " >&6
4016 if test -n "$CC"; then
4017 ac_cv_prog_CC="$CC" # Let the user override the test.
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 test -z "$as_dir" && as_dir=.
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4026 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 if test -n "$CC"; then
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4039 $as_echo "$CC" >&6; }
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4042 $as_echo "no" >&6; }
4046 test -n "$CC" && break
4049 if test -z "$CC"; then
4051 for ac_prog in cl.exe
4053 # Extract the first word of "$ac_prog", so it can be a program name with args.
4054 set dummy $ac_prog; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4058 $as_echo_n "(cached) " >&6
4060 if test -n "$ac_ct_CC"; then
4061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_ac_ct_CC="$ac_prog"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4081 if test -n "$ac_ct_CC"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4083 $as_echo "$ac_ct_CC" >&6; }
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4090 test -n "$ac_ct_CC" && break
4093 if test "x$ac_ct_CC" = x; then
4096 case $cross_compiling:$ac_tool_warned in
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4100 ac_tool_warned=yes ;;
4109 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111 as_fn_error $? "no acceptable C compiler found in \$PATH
4112 See \`config.log' for more details" "$LINENO" 5; }
4114 # Provide some information about the compiler.
4115 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4118 for ac_option in --version -v -V -qversion; do
4119 { { ac_try="$ac_compiler $ac_option >&5"
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4125 $as_echo "$ac_try_echo"; } >&5
4126 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4128 if test -s conftest.err; then
4130 ... rest of stderr output deleted ...
4131 10q' conftest.err >conftest.er1
4132 cat conftest.er1 >&5
4134 rm -f conftest.er1 conftest.err
4135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136 test $ac_status = 0; }
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4150 ac_clean_files_save=$ac_clean_files
4151 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4152 # Try to create an executable without -o first, disregard a.out.
4153 # It will help us diagnose broken compilers, and finding out an intuition
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4156 $as_echo_n "checking whether the C compiler works... " >&6; }
4157 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4159 # The possible output files:
4160 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4163 for ac_file in $ac_files
4166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4167 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4172 if { { ac_try="$ac_link_default"
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4178 $as_echo "$ac_try_echo"; } >&5
4179 (eval "$ac_link_default") 2>&5
4181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4182 test $ac_status = 0; }; then :
4183 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4184 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4185 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4186 # so that the user can short-circuit this test for compilers unknown to
4188 for ac_file in $ac_files ''
4190 test -f "$ac_file" || continue
4192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4195 # We found the default executable, but exeext='' is most
4199 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4201 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4203 # We set ac_cv_exeext here because the later test for it is not
4204 # safe: cross compilers may not add the suffix if given an `-o'
4205 # argument, so we may need to know it at that point already.
4206 # Even if this section looks crufty: it has the advantage of
4213 test "$ac_cv_exeext" = no && ac_cv_exeext=
4218 if test -z "$ac_file"; then :
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4221 $as_echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4226 as_fn_error 77 "C compiler cannot create executables
4227 See \`config.log' for more details" "$LINENO" 5; }
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4230 $as_echo "yes" >&6; }
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4233 $as_echo_n "checking for C compiler default output file name... " >&6; }
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4235 $as_echo "$ac_file" >&6; }
4236 ac_exeext=$ac_cv_exeext
4238 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4239 ac_clean_files=$ac_clean_files_save
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4241 $as_echo_n "checking for suffix of executables... " >&6; }
4242 if { { ac_try="$ac_link"
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4248 $as_echo "$ac_try_echo"; } >&5
4249 (eval "$ac_link") 2>&5
4251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4252 test $ac_status = 0; }; then :
4253 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4254 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4255 # work properly (i.e., refer to `conftest.exe'), while it won't with
4257 for ac_file in conftest.exe conftest conftest.*; do
4258 test -f "$ac_file" || continue
4260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4261 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4270 See \`config.log' for more details" "$LINENO" 5; }
4272 rm -f conftest conftest$ac_cv_exeext
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4274 $as_echo "$ac_cv_exeext" >&6; }
4276 rm -f conftest.$ac_ext
4277 EXEEXT=$ac_cv_exeext
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4285 FILE *f = fopen ("conftest.out", "w");
4286 return ferror (f) || fclose (f) != 0;
4292 ac_clean_files="$ac_clean_files conftest.out"
4293 # Check that the compiler produces executables we can run. If not, either
4294 # the compiler is broken, or we cross compile.
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4296 $as_echo_n "checking whether we are cross compiling... " >&6; }
4297 if test "$cross_compiling" != yes; then
4298 { { ac_try="$ac_link"
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_link") 2>&5
4307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308 test $ac_status = 0; }
4309 if { ac_try='./conftest$ac_cv_exeext'
4310 { { case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 $as_echo "$ac_try_echo"; } >&5
4316 (eval "$ac_try") 2>&5
4318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319 test $ac_status = 0; }; }; then
4322 if test "$cross_compiling" = maybe; then
4325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4327 as_fn_error $? "cannot run C compiled programs.
4328 If you meant to cross compile, use \`--host'.
4329 See \`config.log' for more details" "$LINENO" 5; }
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4334 $as_echo "$cross_compiling" >&6; }
4336 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4337 ac_clean_files=$ac_clean_files_save
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4339 $as_echo_n "checking for suffix of object files... " >&6; }
4340 if ${ac_cv_objext+:} false; then :
4341 $as_echo_n "(cached) " >&6
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4354 rm -f conftest.o conftest.obj
4355 if { { ac_try="$ac_compile"
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4361 $as_echo "$ac_try_echo"; } >&5
4362 (eval "$ac_compile") 2>&5
4364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4365 test $ac_status = 0; }; then :
4366 for ac_file in conftest.o conftest.obj conftest.*; do
4367 test -f "$ac_file" || continue;
4369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4370 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4375 $as_echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4380 as_fn_error $? "cannot compute suffix of object files: cannot compile
4381 See \`config.log' for more details" "$LINENO" 5; }
4383 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4386 $as_echo "$ac_cv_objext" >&6; }
4387 OBJEXT=$ac_cv_objext
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4390 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4391 if ${ac_cv_c_compiler_gnu+:} false; then :
4392 $as_echo_n "(cached) " >&6
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4408 if ac_fn_c_try_compile "$LINENO"; then :
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4418 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4419 if test $ac_compiler_gnu = yes; then
4424 ac_test_CFLAGS=${CFLAGS+set}
4425 ac_save_CFLAGS=$CFLAGS
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4427 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4428 if ${ac_cv_prog_cc_g+:} false; then :
4429 $as_echo_n "(cached) " >&6
4431 ac_save_c_werror_flag=$ac_c_werror_flag
4432 ac_c_werror_flag=yes
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4446 if ac_fn_c_try_compile "$LINENO"; then :
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4461 if ac_fn_c_try_compile "$LINENO"; then :
4464 ac_c_werror_flag=$ac_save_c_werror_flag
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4477 if ac_fn_c_try_compile "$LINENO"; then :
4480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 ac_c_werror_flag=$ac_save_c_werror_flag
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4488 $as_echo "$ac_cv_prog_cc_g" >&6; }
4489 if test "$ac_test_CFLAGS" = set; then
4490 CFLAGS=$ac_save_CFLAGS
4491 elif test $ac_cv_prog_cc_g = yes; then
4492 if test "$GCC" = yes; then
4498 if test "$GCC" = yes; then
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4505 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4506 if ${ac_cv_prog_cc_c89+:} false; then :
4507 $as_echo_n "(cached) " >&6
4509 ac_cv_prog_cc_c89=no
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4516 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4517 struct buf { int x; };
4518 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4519 static char *e (p, i)
4525 static char *f (char * (*g) (char **, int), char **p, ...)
4530 s = g (p, va_arg (v,int));
4535 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4536 function prototypes and stuff, but not '\xHH' hex character constants.
4537 These don't provoke an error unfortunately, instead are silently treated
4538 as 'x'. The following induces an error, until -std is added to get
4539 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4540 array size at least. It's necessary to write '\x00'==0 to get something
4541 that's true only with -std. */
4542 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4544 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4545 inside strings and character constants. */
4547 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4549 int test (int i, double x);
4550 struct s1 {int (*f) (int a);};
4551 struct s2 {int (*f) (double a);};
4552 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4558 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4563 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4564 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4566 CC="$ac_save_CC $ac_arg"
4567 if ac_fn_c_try_compile "$LINENO"; then :
4568 ac_cv_prog_cc_c89=$ac_arg
4570 rm -f core conftest.err conftest.$ac_objext
4571 test "x$ac_cv_prog_cc_c89" != "xno" && break
4573 rm -f conftest.$ac_ext
4578 case "x$ac_cv_prog_cc_c89" in
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4581 $as_echo "none needed" >&6; } ;;
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4584 $as_echo "unsupported" >&6; } ;;
4586 CC="$CC $ac_cv_prog_cc_c89"
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4588 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4590 if test "x$ac_cv_prog_cc_c89" != xno; then :
4595 ac_cpp='$CPP $CPPFLAGS'
4596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4606 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4607 if ${am_cv_prog_cc_c_o+:} false; then :
4608 $as_echo_n "(cached) " >&6
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4621 # Make sure it works both with $CC and with simple cc.
4622 # Following AC_PROG_CC_C_O, we do the test twice because some
4623 # compilers refuse to overwrite an existing .o file with -o,
4624 # though they will create one.
4625 am_cv_prog_cc_c_o=yes
4627 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4628 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } \
4632 && test -f conftest2.$ac_objext; then
4635 am_cv_prog_cc_c_o=no
4639 rm -f core conftest*
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4643 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4644 if test "$am_cv_prog_cc_c_o" != yes; then
4645 # Losing compiler, so override with the script.
4646 # FIXME: It is wrong to rewrite CC.
4647 # But if we don't then we get into trouble of one sort or another.
4648 # A longer-term fix would be to have automake use am__CC in this case,
4649 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4650 CC="$am_aux_dir/compile $CC"
4653 ac_cpp='$CPP $CPPFLAGS'
4654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659 depcc="$CC" am_compiler_list=
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4662 $as_echo_n "checking dependency style of $depcc... " >&6; }
4663 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4664 $as_echo_n "(cached) " >&6
4666 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4667 # We make a subdir and do the tests there. Otherwise we can end up
4668 # making bogus files that we don't know about and never remove. For
4669 # instance it was reported that on HP-UX the gcc test will end up
4670 # making a dummy file named 'D' -- because '-MD' means "put the output
4674 # Copy depcomp to subdir because otherwise we won't find it if we're
4675 # using a relative directory.
4676 cp "$am_depcomp" conftest.dir
4678 # We will build objects and dependencies in a subdirectory because
4679 # it helps to detect inapplicable dependency modes. For instance
4680 # both Tru64's cc and ICC support -MD to output dependencies as a
4681 # side effect of compilation, but ICC will put the dependencies in
4682 # the current directory while Tru64 will put them in the object
4686 am_cv_CC_dependencies_compiler_type=none
4687 if test "$am_compiler_list" = ""; then
4688 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4691 case " $depcc " in #(
4692 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4695 for depmode in $am_compiler_list; do
4696 # Setup a source with many dependencies, because some compilers
4697 # like to wrap large dependency lists on column 80 (with \), and
4698 # we should not choose a depcomp mode which is confused by this.
4700 # We need to recreate these files for each test, as the compiler may
4701 # overwrite some of them when testing with obscure command lines.
4702 # This happens at least with the AIX C compiler.
4704 for i in 1 2 3 4 5 6; do
4705 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4706 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4707 # Solaris 10 /bin/sh.
4708 echo '/* dummy */' > sub/conftst$i.h
4710 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4712 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4713 # mode. It turns out that the SunPro C++ compiler does not properly
4714 # handle '-M -o', and we need to detect this. Also, some Intel
4715 # versions had trouble with output in subdirs.
4716 am__obj=sub/conftest.${OBJEXT-o}
4717 am__minus_obj="-o $am__obj"
4720 # This depmode causes a compiler race in universal mode.
4721 test "$am__universal" = false || continue
4724 # After this tag, mechanisms are not by side-effect, so they'll
4725 # only be used when explicitly requested.
4726 if test "x$enable_dependency_tracking" = xyes; then
4732 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4733 # This compiler won't grok '-c -o', but also, the minuso test has
4734 # not run yet. These depmodes are late enough in the game, and
4735 # so weak that their functioning should not be impacted.
4736 am__obj=conftest.${OBJEXT-o}
4741 if depmode=$depmode \
4742 source=sub/conftest.c object=$am__obj \
4743 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4744 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4745 >/dev/null 2>conftest.err &&
4746 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4747 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4748 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4749 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4750 # icc doesn't choke on unknown options, it will just issue warnings
4751 # or remarks (even with -Werror). So we grep stderr for any message
4752 # that says an option was ignored or not supported.
4753 # When given -MP, icc 7.0 and 7.1 complain thusly:
4754 # icc: Command line warning: ignoring option '-M'; no argument required
4755 # The diagnosis changed in icc 8.0:
4756 # icc: Command line remark: option '-MP' not supported
4757 if (grep 'ignoring option' conftest.err ||
4758 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4759 am_cv_CC_dependencies_compiler_type=$depmode
4768 am_cv_CC_dependencies_compiler_type=none
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4773 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4774 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4777 test "x$enable_dependency_tracking" != xno \
4778 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4780 am__fastdepCC_FALSE='#'
4782 am__fastdepCC_TRUE='#'
4783 am__fastdepCC_FALSE=
4789 ac_cpp='$CPP $CPPFLAGS'
4790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4794 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4795 # On Suns, sometimes $CPP names a directory.
4796 if test -n "$CPP" && test -d "$CPP"; then
4799 if test -z "$CPP"; then
4800 if ${ac_cv_prog_CPP+:} false; then :
4801 $as_echo_n "(cached) " >&6
4803 # Double quotes because CPP needs to be expanded
4804 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4807 for ac_c_preproc_warn_flag in '' yes
4809 # Use a header file that comes with gcc, so configuring glibc
4810 # with a fresh cross-compiler works.
4811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4812 # <limits.h> exists even on freestanding compilers.
4813 # On the NeXT, cc -E runs the code through the compiler's parser,
4814 # not just through cpp. "Syntax error" is here to catch this case.
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4818 # include <limits.h>
4820 # include <assert.h>
4824 if ac_fn_c_try_cpp "$LINENO"; then :
4827 # Broken: fails on valid input.
4830 rm -f conftest.err conftest.i conftest.$ac_ext
4832 # OK, works on sane cases. Now check whether nonexistent headers
4833 # can be detected and how.
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4836 #include <ac_nonexistent.h>
4838 if ac_fn_c_try_cpp "$LINENO"; then :
4839 # Broken: success on invalid input.
4842 # Passes both tests.
4846 rm -f conftest.err conftest.i conftest.$ac_ext
4849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4850 rm -f conftest.i conftest.err conftest.$ac_ext
4851 if $ac_preproc_ok; then :
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4864 $as_echo "$CPP" >&6; }
4866 for ac_c_preproc_warn_flag in '' yes
4868 # Use a header file that comes with gcc, so configuring glibc
4869 # with a fresh cross-compiler works.
4870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4871 # <limits.h> exists even on freestanding compilers.
4872 # On the NeXT, cc -E runs the code through the compiler's parser,
4873 # not just through cpp. "Syntax error" is here to catch this case.
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4877 # include <limits.h>
4879 # include <assert.h>
4883 if ac_fn_c_try_cpp "$LINENO"; then :
4886 # Broken: fails on valid input.
4889 rm -f conftest.err conftest.i conftest.$ac_ext
4891 # OK, works on sane cases. Now check whether nonexistent headers
4892 # can be detected and how.
4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4895 #include <ac_nonexistent.h>
4897 if ac_fn_c_try_cpp "$LINENO"; then :
4898 # Broken: success on invalid input.
4901 # Passes both tests.
4905 rm -f conftest.err conftest.i conftest.$ac_ext
4908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4909 rm -f conftest.i conftest.err conftest.$ac_ext
4910 if $ac_preproc_ok; then :
4913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4915 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4916 See \`config.log' for more details" "$LINENO" 5; }
4920 ac_cpp='$CPP $CPPFLAGS'
4921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4927 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4928 if ${ac_cv_path_GREP+:} false; then :
4929 $as_echo_n "(cached) " >&6
4931 if test -z "$GREP"; then
4932 ac_path_GREP_found=false
4933 # Loop through the user's path and test for each of PROGNAME-LIST
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4938 test -z "$as_dir" && as_dir=.
4939 for ac_prog in grep ggrep; do
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4942 as_fn_executable_p "$ac_path_GREP" || continue
4943 # Check for GNU ac_path_GREP and select it if it is found.
4944 # Check for GNU $ac_path_GREP
4945 case `"$ac_path_GREP" --version 2>&1` in
4947 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4950 $as_echo_n 0123456789 >"conftest.in"
4953 cat "conftest.in" "conftest.in" >"conftest.tmp"
4954 mv "conftest.tmp" "conftest.in"
4955 cp "conftest.in" "conftest.nl"
4956 $as_echo 'GREP' >> "conftest.nl"
4957 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4959 as_fn_arith $ac_count + 1 && ac_count=$as_val
4960 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4961 # Best one so far, save it but keep looking for a better one
4962 ac_cv_path_GREP="$ac_path_GREP"
4963 ac_path_GREP_max=$ac_count
4965 # 10*(2^10) chars as input seems more than enough
4966 test $ac_count -gt 10 && break
4968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4971 $ac_path_GREP_found && break 3
4976 if test -z "$ac_cv_path_GREP"; then
4977 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4980 ac_cv_path_GREP=$GREP
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4985 $as_echo "$ac_cv_path_GREP" >&6; }
4986 GREP="$ac_cv_path_GREP"
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4990 $as_echo_n "checking for egrep... " >&6; }
4991 if ${ac_cv_path_EGREP+:} false; then :
4992 $as_echo_n "(cached) " >&6
4994 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4995 then ac_cv_path_EGREP="$GREP -E"
4997 if test -z "$EGREP"; then
4998 ac_path_EGREP_found=false
4999 # Loop through the user's path and test for each of PROGNAME-LIST
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5004 test -z "$as_dir" && as_dir=.
5005 for ac_prog in egrep; do
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5008 as_fn_executable_p "$ac_path_EGREP" || continue
5009 # Check for GNU ac_path_EGREP and select it if it is found.
5010 # Check for GNU $ac_path_EGREP
5011 case `"$ac_path_EGREP" --version 2>&1` in
5013 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5016 $as_echo_n 0123456789 >"conftest.in"
5019 cat "conftest.in" "conftest.in" >"conftest.tmp"
5020 mv "conftest.tmp" "conftest.in"
5021 cp "conftest.in" "conftest.nl"
5022 $as_echo 'EGREP' >> "conftest.nl"
5023 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5024 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5025 as_fn_arith $ac_count + 1 && ac_count=$as_val
5026 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5027 # Best one so far, save it but keep looking for a better one
5028 ac_cv_path_EGREP="$ac_path_EGREP"
5029 ac_path_EGREP_max=$ac_count
5031 # 10*(2^10) chars as input seems more than enough
5032 test $ac_count -gt 10 && break
5034 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5037 $ac_path_EGREP_found && break 3
5042 if test -z "$ac_cv_path_EGREP"; then
5043 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5046 ac_cv_path_EGREP=$EGREP
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5052 $as_echo "$ac_cv_path_EGREP" >&6; }
5053 EGREP="$ac_cv_path_EGREP"
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5057 $as_echo_n "checking for ANSI C header files... " >&6; }
5058 if ${ac_cv_header_stdc+:} false; then :
5059 $as_echo_n "(cached) " >&6
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5076 if ac_fn_c_try_compile "$LINENO"; then :
5077 ac_cv_header_stdc=yes
5079 ac_cv_header_stdc=no
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083 if test $ac_cv_header_stdc = yes; then
5084 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5091 $EGREP "memchr" >/dev/null 2>&1; then :
5094 ac_cv_header_stdc=no
5100 if test $ac_cv_header_stdc = yes; then
5101 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103 /* end confdefs.h. */
5107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5108 $EGREP "free" >/dev/null 2>&1; then :
5111 ac_cv_header_stdc=no
5117 if test $ac_cv_header_stdc = yes; then
5118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5119 if test "$cross_compiling" = yes; then :
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5126 #if ((' ' & 0x0FF) == 0x020)
5127 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5128 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5130 # define ISLOWER(c) \
5131 (('a' <= (c) && (c) <= 'i') \
5132 || ('j' <= (c) && (c) <= 'r') \
5133 || ('s' <= (c) && (c) <= 'z'))
5134 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5137 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5142 for (i = 0; i < 256; i++)
5143 if (XOR (islower (i), ISLOWER (i))
5144 || toupper (i) != TOUPPER (i))
5149 if ac_fn_c_try_run "$LINENO"; then :
5152 ac_cv_header_stdc=no
5154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5155 conftest.$ac_objext conftest.beam conftest.$ac_ext
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5161 $as_echo "$ac_cv_header_stdc" >&6; }
5162 if test $ac_cv_header_stdc = yes; then
5164 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5168 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5169 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5170 inttypes.h stdint.h unistd.h
5172 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5173 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5175 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5176 cat >>confdefs.h <<_ACEOF
5177 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5188 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5189 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5196 if test "$MINIX" = yes; then
5198 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5201 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5204 $as_echo "#define _MINIX 1" >>confdefs.h
5211 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5218 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5219 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5220 $as_echo_n "(cached) " >&6
5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h. */
5225 # define __EXTENSIONS__ 1
5226 $ac_includes_default
5235 if ac_fn_c_try_compile "$LINENO"; then :
5236 ac_cv_safe_to_define___extensions__=yes
5238 ac_cv_safe_to_define___extensions__=no
5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5243 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5244 test $ac_cv_safe_to_define___extensions__ = yes &&
5245 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5247 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5249 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5251 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5253 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5258 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5259 if ${ac_cv_prog_cc_c89+:} false; then :
5260 $as_echo_n "(cached) " >&6
5262 ac_cv_prog_cc_c89=no
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5269 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5270 struct buf { int x; };
5271 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5272 static char *e (p, i)
5278 static char *f (char * (*g) (char **, int), char **p, ...)
5283 s = g (p, va_arg (v,int));
5288 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5289 function prototypes and stuff, but not '\xHH' hex character constants.
5290 These don't provoke an error unfortunately, instead are silently treated
5291 as 'x'. The following induces an error, until -std is added to get
5292 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5293 array size at least. It's necessary to write '\x00'==0 to get something
5294 that's true only with -std. */
5295 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5297 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5298 inside strings and character constants. */
5300 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5302 int test (int i, double x);
5303 struct s1 {int (*f) (int a);};
5304 struct s2 {int (*f) (double a);};
5305 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5311 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5316 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5317 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5319 CC="$ac_save_CC $ac_arg"
5320 if ac_fn_c_try_compile "$LINENO"; then :
5321 ac_cv_prog_cc_c89=$ac_arg
5323 rm -f core conftest.err conftest.$ac_objext
5324 test "x$ac_cv_prog_cc_c89" != "xno" && break
5326 rm -f conftest.$ac_ext
5331 case "x$ac_cv_prog_cc_c89" in
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5334 $as_echo "none needed" >&6; } ;;
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5337 $as_echo "unsupported" >&6; } ;;
5339 CC="$CC $ac_cv_prog_cc_c89"
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5341 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5343 if test "x$ac_cv_prog_cc_c89" != xno; then :
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5349 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5350 if ${ac_cv_prog_cc_c99+:} false; then :
5351 $as_echo_n "(cached) " >&6
5353 ac_cv_prog_cc_c99=no
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5358 #include <stdbool.h>
5363 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5364 #define debug(...) fprintf (stderr, __VA_ARGS__)
5365 #define showlist(...) puts (#__VA_ARGS__)
5366 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5368 test_varargs_macros (void)
5373 debug ("X = %d\n", x);
5374 showlist (The first, second, and third items.);
5375 report (x>y, "x is %d but y is %d", x, y);
5378 // Check long long types.
5379 #define BIG64 18446744073709551615ull
5380 #define BIG32 4294967295ul
5381 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5383 your preprocessor is broken;
5387 your preprocessor is broken;
5389 static long long int bignum = -9223372036854775807LL;
5390 static unsigned long long int ubignum = BIG64;
5392 struct incomplete_array
5400 const wchar_t *name;
5404 typedef const char *ccp;
5407 test_restrict (ccp restrict text)
5409 // See if C++-style comments work.
5410 // Iterate through items via the restricted pointer.
5411 // Also check for declarations in for loops.
5412 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5417 // Check varargs and va_copy.
5419 test_varargs (const char *format, ...)
5422 va_start (args, format);
5424 va_copy (args_copy, args);
5435 str = va_arg (args_copy, const char *);
5438 number = va_arg (args_copy, int);
5441 fnumber = va_arg (args_copy, double);
5456 _Bool success = false;
5459 if (test_restrict ("String literal") == 0)
5461 char *restrict newvar = "Another string";
5464 test_varargs ("s, d' f .", "string", 65, 34.234);
5465 test_varargs_macros ();
5467 // Check flexible array members.
5468 struct incomplete_array *ia =
5469 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5471 for (int i = 0; i < ia->datasize; ++i)
5472 ia->data[i] = i * 1.234;
5474 // Check named initializers.
5475 struct named_init ni = {
5477 .name = L"Test wide string",
5478 .average = 543.34343,
5483 int dynamic_array[ni.number];
5484 dynamic_array[ni.number - 1] = 543;
5486 // work around unused variable warnings
5487 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5488 || dynamic_array[ni.number - 1] != 543);
5494 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5496 CC="$ac_save_CC $ac_arg"
5497 if ac_fn_c_try_compile "$LINENO"; then :
5498 ac_cv_prog_cc_c99=$ac_arg
5500 rm -f core conftest.err conftest.$ac_objext
5501 test "x$ac_cv_prog_cc_c99" != "xno" && break
5503 rm -f conftest.$ac_ext
5508 case "x$ac_cv_prog_cc_c99" in
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5511 $as_echo "none needed" >&6; } ;;
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5514 $as_echo "unsupported" >&6; } ;;
5516 CC="$CC $ac_cv_prog_cc_c99"
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5518 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5520 if test "x$ac_cv_prog_cc_c99" != xno; then :
5530 ac_cpp='$CPP $CPPFLAGS'
5531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5534 if test -n "$ac_tool_prefix"; then
5535 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5536 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if ${ac_cv_prog_CC+:} false; then :
5540 $as_echo_n "(cached) " >&6
5542 if test -n "$CC"; then
5543 ac_cv_prog_CC="$CC" # Let the user override the test.
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 if test -n "$CC"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5565 $as_echo "$CC" >&6; }
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5573 if test -z "$ac_cv_prog_CC"; then
5575 # Extract the first word of "gcc", so it can be a program name with args.
5576 set dummy gcc; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5580 $as_echo_n "(cached) " >&6
5582 if test -n "$ac_ct_CC"; then
5583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592 ac_cv_prog_ac_ct_CC="gcc"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5603 if test -n "$ac_ct_CC"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5605 $as_echo "$ac_ct_CC" >&6; }
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5611 if test "x$ac_ct_CC" = x; then
5614 case $cross_compiling:$ac_tool_warned in
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5618 ac_tool_warned=yes ;;
5626 if test -z "$CC"; then
5627 if test -n "$ac_tool_prefix"; then
5628 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5629 set dummy ${ac_tool_prefix}cc; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if ${ac_cv_prog_CC+:} false; then :
5633 $as_echo_n "(cached) " >&6
5635 if test -n "$CC"; then
5636 ac_cv_prog_CC="$CC" # Let the user override the test.
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645 ac_cv_prog_CC="${ac_tool_prefix}cc"
5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 if test -n "$CC"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5658 $as_echo "$CC" >&6; }
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5667 if test -z "$CC"; then
5668 # Extract the first word of "cc", so it can be a program name with args.
5669 set dummy cc; ac_word=$2
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671 $as_echo_n "checking for $ac_word... " >&6; }
5672 if ${ac_cv_prog_CC+:} false; then :
5673 $as_echo_n "(cached) " >&6
5675 if test -n "$CC"; then
5676 ac_cv_prog_CC="$CC" # Let the user override the test.
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5687 ac_prog_rejected=yes
5691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 if test $ac_prog_rejected = yes; then
5699 # We found a bogon in the path, so make sure we never use it.
5700 set dummy $ac_cv_prog_CC
5702 if test $# != 0; then
5703 # We chose a different compiler from the bogus one.
5704 # However, it has the same basename, so the bogon will be chosen
5705 # first if we set CC to just the basename; use the full file name.
5707 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5713 if test -n "$CC"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5715 $as_echo "$CC" >&6; }
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5723 if test -z "$CC"; then
5724 if test -n "$ac_tool_prefix"; then
5725 for ac_prog in cl.exe
5727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if ${ac_cv_prog_CC+:} false; then :
5732 $as_echo_n "(cached) " >&6
5734 if test -n "$CC"; then
5735 ac_cv_prog_CC="$CC" # Let the user override the test.
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755 if test -n "$CC"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5757 $as_echo "$CC" >&6; }
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5764 test -n "$CC" && break
5767 if test -z "$CC"; then
5769 for ac_prog in cl.exe
5771 # Extract the first word of "$ac_prog", so it can be a program name with args.
5772 set dummy $ac_prog; ac_word=$2
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774 $as_echo_n "checking for $ac_word... " >&6; }
5775 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5776 $as_echo_n "(cached) " >&6
5778 if test -n "$ac_ct_CC"; then
5779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5788 ac_cv_prog_ac_ct_CC="$ac_prog"
5789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5799 if test -n "$ac_ct_CC"; then
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5801 $as_echo "$ac_ct_CC" >&6; }
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804 $as_echo "no" >&6; }
5808 test -n "$ac_ct_CC" && break
5811 if test "x$ac_ct_CC" = x; then
5814 case $cross_compiling:$ac_tool_warned in
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5818 ac_tool_warned=yes ;;
5827 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5829 as_fn_error $? "no acceptable C compiler found in \$PATH
5830 See \`config.log' for more details" "$LINENO" 5; }
5832 # Provide some information about the compiler.
5833 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5836 for ac_option in --version -v -V -qversion; do
5837 { { ac_try="$ac_compiler $ac_option >&5"
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5843 $as_echo "$ac_try_echo"; } >&5
5844 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5846 if test -s conftest.err; then
5848 ... rest of stderr output deleted ...
5849 10q' conftest.err >conftest.er1
5850 cat conftest.er1 >&5
5852 rm -f conftest.er1 conftest.err
5853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5854 test $ac_status = 0; }
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5858 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5859 if ${ac_cv_c_compiler_gnu+:} false; then :
5860 $as_echo_n "(cached) " >&6
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5876 if ac_fn_c_try_compile "$LINENO"; then :
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5886 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5887 if test $ac_compiler_gnu = yes; then
5892 ac_test_CFLAGS=${CFLAGS+set}
5893 ac_save_CFLAGS=$CFLAGS
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5895 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5896 if ${ac_cv_prog_cc_g+:} false; then :
5897 $as_echo_n "(cached) " >&6
5899 ac_save_c_werror_flag=$ac_c_werror_flag
5900 ac_c_werror_flag=yes
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5914 if ac_fn_c_try_compile "$LINENO"; then :
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5929 if ac_fn_c_try_compile "$LINENO"; then :
5932 ac_c_werror_flag=$ac_save_c_werror_flag
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h. */
5945 if ac_fn_c_try_compile "$LINENO"; then :
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953 ac_c_werror_flag=$ac_save_c_werror_flag
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5956 $as_echo "$ac_cv_prog_cc_g" >&6; }
5957 if test "$ac_test_CFLAGS" = set; then
5958 CFLAGS=$ac_save_CFLAGS
5959 elif test $ac_cv_prog_cc_g = yes; then
5960 if test "$GCC" = yes; then
5966 if test "$GCC" = yes; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5973 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5974 if ${ac_cv_prog_cc_c89+:} false; then :
5975 $as_echo_n "(cached) " >&6
5977 ac_cv_prog_cc_c89=no
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5984 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5985 struct buf { int x; };
5986 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5987 static char *e (p, i)
5993 static char *f (char * (*g) (char **, int), char **p, ...)
5998 s = g (p, va_arg (v,int));
6003 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6004 function prototypes and stuff, but not '\xHH' hex character constants.
6005 These don't provoke an error unfortunately, instead are silently treated
6006 as 'x'. The following induces an error, until -std is added to get
6007 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6008 array size at least. It's necessary to write '\x00'==0 to get something
6009 that's true only with -std. */
6010 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6012 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6013 inside strings and character constants. */
6015 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6017 int test (int i, double x);
6018 struct s1 {int (*f) (int a);};
6019 struct s2 {int (*f) (double a);};
6020 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6026 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6031 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6032 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6034 CC="$ac_save_CC $ac_arg"
6035 if ac_fn_c_try_compile "$LINENO"; then :
6036 ac_cv_prog_cc_c89=$ac_arg
6038 rm -f core conftest.err conftest.$ac_objext
6039 test "x$ac_cv_prog_cc_c89" != "xno" && break
6041 rm -f conftest.$ac_ext
6046 case "x$ac_cv_prog_cc_c89" in
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6049 $as_echo "none needed" >&6; } ;;
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6052 $as_echo "unsupported" >&6; } ;;
6054 CC="$CC $ac_cv_prog_cc_c89"
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6056 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6058 if test "x$ac_cv_prog_cc_c89" != xno; then :
6063 ac_cpp='$CPP $CPPFLAGS'
6064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6074 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6075 if ${am_cv_prog_cc_c_o+:} false; then :
6076 $as_echo_n "(cached) " >&6
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6089 # Make sure it works both with $CC and with simple cc.
6090 # Following AC_PROG_CC_C_O, we do the test twice because some
6091 # compilers refuse to overwrite an existing .o file with -o,
6092 # though they will create one.
6093 am_cv_prog_cc_c_o=yes
6095 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6096 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } \
6100 && test -f conftest2.$ac_objext; then
6103 am_cv_prog_cc_c_o=no
6107 rm -f core conftest*
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6111 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6112 if test "$am_cv_prog_cc_c_o" != yes; then
6113 # Losing compiler, so override with the script.
6114 # FIXME: It is wrong to rewrite CC.
6115 # But if we don't then we get into trouble of one sort or another.
6116 # A longer-term fix would be to have automake use am__CC in this case,
6117 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6118 CC="$am_aux_dir/compile $CC"
6121 ac_cpp='$CPP $CPPFLAGS'
6122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6127 depcc="$CC" am_compiler_list=
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6130 $as_echo_n "checking dependency style of $depcc... " >&6; }
6131 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6132 $as_echo_n "(cached) " >&6
6134 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6135 # We make a subdir and do the tests there. Otherwise we can end up
6136 # making bogus files that we don't know about and never remove. For
6137 # instance it was reported that on HP-UX the gcc test will end up
6138 # making a dummy file named 'D' -- because '-MD' means "put the output
6142 # Copy depcomp to subdir because otherwise we won't find it if we're
6143 # using a relative directory.
6144 cp "$am_depcomp" conftest.dir
6146 # We will build objects and dependencies in a subdirectory because
6147 # it helps to detect inapplicable dependency modes. For instance
6148 # both Tru64's cc and ICC support -MD to output dependencies as a
6149 # side effect of compilation, but ICC will put the dependencies in
6150 # the current directory while Tru64 will put them in the object
6154 am_cv_CC_dependencies_compiler_type=none
6155 if test "$am_compiler_list" = ""; then
6156 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6159 case " $depcc " in #(
6160 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6163 for depmode in $am_compiler_list; do
6164 # Setup a source with many dependencies, because some compilers
6165 # like to wrap large dependency lists on column 80 (with \), and
6166 # we should not choose a depcomp mode which is confused by this.
6168 # We need to recreate these files for each test, as the compiler may
6169 # overwrite some of them when testing with obscure command lines.
6170 # This happens at least with the AIX C compiler.
6172 for i in 1 2 3 4 5 6; do
6173 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6174 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6175 # Solaris 10 /bin/sh.
6176 echo '/* dummy */' > sub/conftst$i.h
6178 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6180 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6181 # mode. It turns out that the SunPro C++ compiler does not properly
6182 # handle '-M -o', and we need to detect this. Also, some Intel
6183 # versions had trouble with output in subdirs.
6184 am__obj=sub/conftest.${OBJEXT-o}
6185 am__minus_obj="-o $am__obj"
6188 # This depmode causes a compiler race in universal mode.
6189 test "$am__universal" = false || continue
6192 # After this tag, mechanisms are not by side-effect, so they'll
6193 # only be used when explicitly requested.
6194 if test "x$enable_dependency_tracking" = xyes; then
6200 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6201 # This compiler won't grok '-c -o', but also, the minuso test has
6202 # not run yet. These depmodes are late enough in the game, and
6203 # so weak that their functioning should not be impacted.
6204 am__obj=conftest.${OBJEXT-o}
6209 if depmode=$depmode \
6210 source=sub/conftest.c object=$am__obj \
6211 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6212 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6213 >/dev/null 2>conftest.err &&
6214 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6215 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6216 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6217 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6218 # icc doesn't choke on unknown options, it will just issue warnings
6219 # or remarks (even with -Werror). So we grep stderr for any message
6220 # that says an option was ignored or not supported.
6221 # When given -MP, icc 7.0 and 7.1 complain thusly:
6222 # icc: Command line warning: ignoring option '-M'; no argument required
6223 # The diagnosis changed in icc 8.0:
6224 # icc: Command line remark: option '-MP' not supported
6225 if (grep 'ignoring option' conftest.err ||
6226 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6227 am_cv_CC_dependencies_compiler_type=$depmode
6236 am_cv_CC_dependencies_compiler_type=none
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6241 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6242 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6245 test "x$enable_dependency_tracking" != xno \
6246 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6248 am__fastdepCC_FALSE='#'
6250 am__fastdepCC_TRUE='#'
6251 am__fastdepCC_FALSE=
6255 # Ralf Wildenhues: With per-target flags we need CC_C_O
6256 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
6258 if test $ac_cv_c_compiler_gnu = yes; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6260 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6261 if ${ac_cv_prog_gcc_traditional+:} false; then :
6262 $as_echo_n "(cached) " >&6
6264 ac_pattern="Autoconf.*'x'"
6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h. */
6270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6271 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6272 ac_cv_prog_gcc_traditional=yes
6274 ac_cv_prog_gcc_traditional=no
6279 if test $ac_cv_prog_gcc_traditional = no; then
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6286 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6287 ac_cv_prog_gcc_traditional=yes
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6294 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6295 if test $ac_cv_prog_gcc_traditional = yes; then
6296 CC="$CC -traditional"
6313 case "$ac_cv_prog_cc_c89" in
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6316 version 4.2.5 and higher." >&5
6317 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6318 version 4.2.5 and higher." >&2;}
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
6323 $as_echo_n "checking if $CC can handle #warning... " >&6; }
6324 if ${ntp_cv_cpp_warning+:} false; then :
6325 $as_echo_n "(cached) " >&6
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6338 if ac_fn_c_try_compile "$LINENO"; then :
6339 ntp_cv_cpp_warning=yes
6341 ntp_cv_cpp_warning=no
6344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
6348 $as_echo "$ntp_cv_cpp_warning" >&6; }
6349 case "$ntp_cv_cpp_warning" in
6352 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
6357 $as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
6358 if ${ntp_cv_cc_attribute+:} false; then :
6359 $as_echo_n "(cached) " >&6
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6367 void foo(void) __attribute__((__noreturn__));
6373 if ac_fn_c_try_compile "$LINENO"; then :
6374 ntp_cv_cc_attribute=yes
6376 ntp_cv_cc_attribute=no
6379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
6383 $as_echo "$ntp_cv_cc_attribute" >&6; }
6384 case "$ntp_cv_cc_attribute" in
6387 $as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
6394 SAVED_CFLAGS="$CFLAGS"
6395 CFLAGS="$CFLAGS -Wstrict-overflow"
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
6397 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
6398 if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
6399 $as_echo_n "(cached) " >&6
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6412 if ac_fn_c_try_compile "$LINENO"; then :
6413 ntp_cv_gcc_Wstrict_overflow=yes
6415 ntp_cv_gcc_Wstrict_overflow=no
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
6422 $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
6424 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
6427 CFLAGS="$SAVED_CFLAGS -Winit-self"
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
6429 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
6430 if ${ntp_cv_gcc_Winit_self+:} false; then :
6431 $as_echo_n "(cached) " >&6
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6445 if ac_fn_c_try_compile "$LINENO"; then :
6446 ntp_cv_gcc_Winit_self=yes
6448 ntp_cv_gcc_Winit_self=no
6451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
6456 $as_echo "$ntp_cv_gcc_Winit_self" >&6; }
6457 CFLAGS="$SAVED_CFLAGS"
6458 { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
6460 # $ntp_cv_gcc_Winit_self is tested later to add the
6461 # flag to CFLAGS_NTP.
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
6464 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
6465 if ${ntp_cv_gc_sections_runs+:} false; then :
6466 $as_echo_n "(cached) " >&6
6469 origCFLAGS="$CFLAGS"
6470 CFLAGS="$CFLAGS -Wl,--gc-sections"
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6484 int read_success_once;
6486 fpC = fopen("conftest.c", "r");
6490 cch = fread(buf, sizeof(buf), 1, fpC);
6491 read_success_once |= (0 != cch);
6493 if (!read_success_once)
6497 if (0 != fclose(fpC))
6507 if ac_fn_c_try_link "$LINENO"; then :
6509 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
6510 ntp_cv_gc_sections_runs=no
6512 ntp_cv_gc_sections_runs=no
6513 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
6517 ntp_cv_gc_sections_runs=no
6520 rm -f core conftest.err conftest.$ac_objext \
6521 conftest$ac_exeext conftest.$ac_ext
6522 CFLAGS="$origCFLAGS"
6523 { origCFLAGS=; unset origCFLAGS;}
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
6528 $as_echo "$ntp_cv_gc_sections_runs" >&6; }
6529 case "$ntp_cv_gc_sections_runs" in
6531 LDADD_LIBNTP="-Wl,--gc-sections"
6532 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
6538 CFLAGS_NTP="$CFLAGS_NTP -Wall"
6539 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
6540 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
6541 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
6542 # CFLAGS_NTP="$CFLAGS_NTP -Werror"
6543 # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
6544 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
6545 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
6546 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
6547 CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
6548 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
6549 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
6550 case "$ntp_cv_gcc_Winit_self" in
6552 CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
6554 case "$ntp_cv_gcc_Wstrict_overflow" in
6556 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
6558 # -W[no-]strict-prototypes might be added by NTP_OPENSSL
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6563 $as_echo_n "checking additional compiler flags... " >&6; }
6564 # allow ntp_os_cflags to be preset to skip this stuff
6565 case "${ntp_os_cflags+set}" in
6574 # turn on additional headers
6575 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6578 # avoid circular dependencies in yp headers, and more
6579 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
6580 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
6583 # XXX Only verified thru AIX6.
6584 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
6585 # avoid circular dependencies in yp headers
6586 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
6587 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
6588 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
6589 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
6590 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
6593 ntp_os_cflags="-DSYS_AMIGA"
6595 darwin*|macosx*|rhapsody*)
6596 ntp_os_cflags="-D_P1003_1B_VISIBLE"
6598 hpux10.*) # at least for hppa2.0-hp-hpux10.20
6603 # use Ansi compiler on HPUX, and some -Wp magic
6604 ntp_os_cflags="-Ae -Wp,-H18816"
6607 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6614 # use Ansi compiler on HPUX
6617 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6622 # do not use 64-bit compiler
6623 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
6627 ntp_os_cflags="-posix"
6629 solaris1*|solaris2.[0-5]|solaris2.5.*)
6631 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
6634 # turn on 64-bit file offset interface
6635 ntp_os_cflags="-D_LARGEFILE64_SOURCE"
6642 # Quick and dirty sanity check
6643 case "$VX_KERNEL" in
6645 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
6647 ntp_os_cflags="-DSYS_VXWORKS"
6652 case "$ntp_os_cflags" in
6654 ntp_os_cflags_msg="none needed"
6657 ntp_os_cflags_msg="$ntp_os_cflags"
6659 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
6661 $as_echo "$ntp_os_cflags_msg" >&6; }
6662 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
6665 $as_echo_n "checking additional linker flags... " >&6; }
6666 # HMS: The following might still need tweaking
6667 # allow ntp_os_ldflags to be preset to skip this stuff
6668 case "${ntp_os_ldflags+set}" in
6677 ntp_os_ldflags="-Wl,+allowdups"
6684 case "$ntp_os_ldflags" in
6686 ntp_os_ldflags_msg="none needed"
6689 ntp_os_ldflags_msg="$ntp_os_ldflags"
6691 LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
6693 $as_echo "$ntp_os_ldflags_msg" >&6; }
6694 { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6699 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6700 if ${ac_cv_c_bigendian+:} false; then :
6701 $as_echo_n "(cached) " >&6
6703 ac_cv_c_bigendian=unknown
6704 # See if we're dealing with a universal compiler.
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6707 #ifndef __APPLE_CC__
6708 not a universal capable compiler
6713 if ac_fn_c_try_compile "$LINENO"; then :
6715 # Check for potential -arch flags. It is not universal unless
6716 # there are at least two -arch flags with different values.
6719 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6720 if test -n "$ac_prev"; then
6722 i?86 | x86_64 | ppc | ppc64)
6723 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6726 ac_cv_c_bigendian=universal
6732 elif test "x$ac_word" = "x-arch"; then
6737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738 if test $ac_cv_c_bigendian = unknown; then
6739 # See if sys/param.h defines the BYTE_ORDER macro.
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6742 #include <sys/types.h>
6743 #include <sys/param.h>
6748 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6749 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6758 if ac_fn_c_try_compile "$LINENO"; then :
6759 # It does; now see whether it defined to BIG_ENDIAN or not.
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6762 #include <sys/types.h>
6763 #include <sys/param.h>
6768 #if BYTE_ORDER != BIG_ENDIAN
6776 if ac_fn_c_try_compile "$LINENO"; then :
6777 ac_cv_c_bigendian=yes
6779 ac_cv_c_bigendian=no
6781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785 if test $ac_cv_c_bigendian = unknown; then
6786 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6794 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6802 if ac_fn_c_try_compile "$LINENO"; then :
6803 # It does; now see whether it defined to _BIG_ENDIAN or not.
6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h. */
6819 if ac_fn_c_try_compile "$LINENO"; then :
6820 ac_cv_c_bigendian=yes
6822 ac_cv_c_bigendian=no
6824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6828 if test $ac_cv_c_bigendian = unknown; then
6829 # Compile a test program.
6830 if test "$cross_compiling" = yes; then :
6831 # Try to guess by grepping values from an object file.
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 short int ascii_mm[] =
6835 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6836 short int ascii_ii[] =
6837 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6838 int use_ascii (int i) {
6839 return ascii_mm[i] + ascii_ii[i];
6841 short int ebcdic_ii[] =
6842 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6843 short int ebcdic_mm[] =
6844 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6845 int use_ebcdic (int i) {
6846 return ebcdic_mm[i] + ebcdic_ii[i];
6853 return use_ascii (foo) == use_ebcdic (foo);
6858 if ac_fn_c_try_compile "$LINENO"; then :
6859 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6860 ac_cv_c_bigendian=yes
6862 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6863 if test "$ac_cv_c_bigendian" = unknown; then
6864 ac_cv_c_bigendian=no
6866 # finding both strings is unlikely to happen, but who knows?
6867 ac_cv_c_bigendian=unknown
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6875 $ac_includes_default
6880 /* Are we little or big endian? From Harbison&Steele. */
6884 char c[sizeof (long int)];
6887 return u.c[sizeof (long int) - 1] == 1;
6893 if ac_fn_c_try_run "$LINENO"; then :
6894 ac_cv_c_bigendian=no
6896 ac_cv_c_bigendian=yes
6898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6899 conftest.$ac_objext conftest.beam conftest.$ac_ext
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6905 $as_echo "$ac_cv_c_bigendian" >&6; }
6906 case $ac_cv_c_bigendian in #(
6908 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6914 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6918 as_fn_error $? "unknown endianness
6919 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6923 $as_echo_n "checking for working volatile... " >&6; }
6924 if ${ac_cv_c_volatile+:} false; then :
6925 $as_echo_n "(cached) " >&6
6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928 /* end confdefs.h. */
6935 int * volatile y = (int *) 0;
6941 if ac_fn_c_try_compile "$LINENO"; then :
6942 ac_cv_c_volatile=yes
6946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6949 $as_echo "$ac_cv_c_volatile" >&6; }
6950 if test $ac_cv_c_volatile = no; then
6952 $as_echo "#define volatile /**/" >>confdefs.h
6957 ac_cpp='$CPP $CPPFLAGS'
6958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6962 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6963 # On Suns, sometimes $CPP names a directory.
6964 if test -n "$CPP" && test -d "$CPP"; then
6967 if test -z "$CPP"; then
6968 if ${ac_cv_prog_CPP+:} false; then :
6969 $as_echo_n "(cached) " >&6
6971 # Double quotes because CPP needs to be expanded
6972 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6975 for ac_c_preproc_warn_flag in '' yes
6977 # Use a header file that comes with gcc, so configuring glibc
6978 # with a fresh cross-compiler works.
6979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6980 # <limits.h> exists even on freestanding compilers.
6981 # On the NeXT, cc -E runs the code through the compiler's parser,
6982 # not just through cpp. "Syntax error" is here to catch this case.
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6986 # include <limits.h>
6988 # include <assert.h>
6992 if ac_fn_c_try_cpp "$LINENO"; then :
6995 # Broken: fails on valid input.
6998 rm -f conftest.err conftest.i conftest.$ac_ext
7000 # OK, works on sane cases. Now check whether nonexistent headers
7001 # can be detected and how.
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7004 #include <ac_nonexistent.h>
7006 if ac_fn_c_try_cpp "$LINENO"; then :
7007 # Broken: success on invalid input.
7010 # Passes both tests.
7014 rm -f conftest.err conftest.i conftest.$ac_ext
7017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7018 rm -f conftest.i conftest.err conftest.$ac_ext
7019 if $ac_preproc_ok; then :
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7032 $as_echo "$CPP" >&6; }
7034 for ac_c_preproc_warn_flag in '' yes
7036 # Use a header file that comes with gcc, so configuring glibc
7037 # with a fresh cross-compiler works.
7038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7039 # <limits.h> exists even on freestanding compilers.
7040 # On the NeXT, cc -E runs the code through the compiler's parser,
7041 # not just through cpp. "Syntax error" is here to catch this case.
7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h. */
7045 # include <limits.h>
7047 # include <assert.h>
7051 if ac_fn_c_try_cpp "$LINENO"; then :
7054 # Broken: fails on valid input.
7057 rm -f conftest.err conftest.i conftest.$ac_ext
7059 # OK, works on sane cases. Now check whether nonexistent headers
7060 # can be detected and how.
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7063 #include <ac_nonexistent.h>
7065 if ac_fn_c_try_cpp "$LINENO"; then :
7066 # Broken: success on invalid input.
7069 # Passes both tests.
7073 rm -f conftest.err conftest.i conftest.$ac_ext
7076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7077 rm -f conftest.i conftest.err conftest.$ac_ext
7078 if $ac_preproc_ok; then :
7081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7083 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7084 See \`config.log' for more details" "$LINENO" 5; }
7088 ac_cpp='$CPP $CPPFLAGS'
7089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
7099 $as_echo_n "checking for install dir and man conventions... " >&6; }
7102 # Check whether --with-locfile was given.
7103 if test "${with_locfile+set}" = set; then :
7104 withval=$with_locfile;
7112 SENTINEL_DIR="$PWD" && \
7114 case "$with_locfile" in \
7116 scripts/genLocInfo -d "$SENTINEL_DIR" \
7119 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \
7122 ) > genLocInfo.i 2> genLocInfo.err
7125 case "$GENLOCINFO" in
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
7128 $as_echo "in file $GENLOCINFOFILE" >&6; }
7129 rm genLocInfo.err genLocInfo.i
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
7133 $as_echo "failed." >&6; }
7134 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
7138 if test "$CALC_TICKADJ_MS" ; then
7139 WANT_CALC_TICKADJ_MS_TRUE=
7140 WANT_CALC_TICKADJ_MS_FALSE='#'
7142 WANT_CALC_TICKADJ_MS_TRUE='#'
7143 WANT_CALC_TICKADJ_MS_FALSE=
7188 if test -z "$NTPSWEEP_NI" ; then
7189 INSTALL_NTPSWEEP_TRUE=
7190 INSTALL_NTPSWEEP_FALSE='#'
7192 INSTALL_NTPSWEEP_TRUE='#'
7193 INSTALL_NTPSWEEP_FALSE=
7236 if test -z "$UPDATE_LEAP_NI" ; then
7237 INSTALL_UPDATE_LEAP_TRUE=
7238 INSTALL_UPDATE_LEAP_FALSE='#'
7240 INSTALL_UPDATE_LEAP_TRUE='#'
7241 INSTALL_UPDATE_LEAP_FALSE=
7247 if test -n "$ac_tool_prefix"; then
7248 for ac_prog in ar lib "link -lib"
7250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253 $as_echo_n "checking for $ac_word... " >&6; }
7254 if ${ac_cv_prog_AR+:} false; then :
7255 $as_echo_n "(cached) " >&6
7257 if test -n "$AR"; then
7258 ac_cv_prog_AR="$AR" # Let the user override the test.
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7267 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 if test -n "$AR"; then
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7280 $as_echo "$AR" >&6; }
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7287 test -n "$AR" && break
7290 if test -z "$AR"; then
7292 for ac_prog in ar lib "link -lib"
7294 # Extract the first word of "$ac_prog", so it can be a program name with args.
7295 set dummy $ac_prog; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7299 $as_echo_n "(cached) " >&6
7301 if test -n "$ac_ct_AR"; then
7302 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311 ac_cv_prog_ac_ct_AR="$ac_prog"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7322 if test -n "$ac_ct_AR"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7324 $as_echo "$ac_ct_AR" >&6; }
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7331 test -n "$ac_ct_AR" && break
7334 if test "x$ac_ct_AR" = x; then
7337 case $cross_compiling:$ac_tool_warned in
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7341 ac_tool_warned=yes ;;
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7350 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
7351 if ${am_cv_ar_interface+:} false; then :
7352 $as_echo_n "(cached) " >&6
7355 ac_cpp='$CPP $CPPFLAGS'
7356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7360 am_cv_ar_interface=ar
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7363 int some_variable = 0;
7365 if ac_fn_c_try_compile "$LINENO"; then :
7366 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7368 (eval $am_ar_try) 2>&5
7370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7371 test $ac_status = 0; }
7372 if test "$ac_status" -eq 0; then
7373 am_cv_ar_interface=ar
7375 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7377 (eval $am_ar_try) 2>&5
7379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7380 test $ac_status = 0; }
7381 if test "$ac_status" -eq 0; then
7382 am_cv_ar_interface=lib
7384 am_cv_ar_interface=unknown
7387 rm -f conftest.lib libconftest.a
7390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7392 ac_cpp='$CPP $CPPFLAGS'
7393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7399 $as_echo "$am_cv_ar_interface" >&6; }
7401 case $am_cv_ar_interface in
7405 # Microsoft lib, so override with the ar-lib wrapper script.
7406 # FIXME: It is wrong to rewrite AR.
7407 # But if we don't then we get into trouble of one sort or another.
7408 # A longer-term fix would be to have automake use am__AR in this case,
7409 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7411 AR="$am_aux_dir/ar-lib $AR"
7414 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7422 # Expose a cross-compilation indicator to makefiles
7423 if test $build != $host; then
7424 NTP_CROSSCOMPILE_TRUE=
7425 NTP_CROSSCOMPILE_FALSE='#'
7427 NTP_CROSSCOMPILE_TRUE='#'
7428 NTP_CROSSCOMPILE_FALSE=
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7434 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7435 if ${ac_cv_path_SED+:} false; then :
7436 $as_echo_n "(cached) " >&6
7438 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7439 for ac_i in 1 2 3 4 5 6 7; do
7440 ac_script="$ac_script$as_nl$ac_script"
7442 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7443 { ac_script=; unset ac_script;}
7444 if test -z "$SED"; then
7445 ac_path_SED_found=false
7446 # Loop through the user's path and test for each of PROGNAME-LIST
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 test -z "$as_dir" && as_dir=.
7452 for ac_prog in sed gsed; do
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7455 as_fn_executable_p "$ac_path_SED" || continue
7456 # Check for GNU ac_path_SED and select it if it is found.
7457 # Check for GNU $ac_path_SED
7458 case `"$ac_path_SED" --version 2>&1` in
7460 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7463 $as_echo_n 0123456789 >"conftest.in"
7466 cat "conftest.in" "conftest.in" >"conftest.tmp"
7467 mv "conftest.tmp" "conftest.in"
7468 cp "conftest.in" "conftest.nl"
7469 $as_echo '' >> "conftest.nl"
7470 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7471 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7472 as_fn_arith $ac_count + 1 && ac_count=$as_val
7473 if test $ac_count -gt ${ac_path_SED_max-0}; then
7474 # Best one so far, save it but keep looking for a better one
7475 ac_cv_path_SED="$ac_path_SED"
7476 ac_path_SED_max=$ac_count
7478 # 10*(2^10) chars as input seems more than enough
7479 test $ac_count -gt 10 && break
7481 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7484 $ac_path_SED_found && break 3
7489 if test -z "$ac_cv_path_SED"; then
7490 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7498 $as_echo "$ac_cv_path_SED" >&6; }
7499 SED="$ac_cv_path_SED"
7502 test -z "$SED" && SED=sed
7503 Xsed="$SED -e 1s/^X//"
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7516 $as_echo_n "checking for fgrep... " >&6; }
7517 if ${ac_cv_path_FGREP+:} false; then :
7518 $as_echo_n "(cached) " >&6
7520 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7521 then ac_cv_path_FGREP="$GREP -F"
7523 if test -z "$FGREP"; then
7524 ac_path_FGREP_found=false
7525 # Loop through the user's path and test for each of PROGNAME-LIST
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7530 test -z "$as_dir" && as_dir=.
7531 for ac_prog in fgrep; do
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7534 as_fn_executable_p "$ac_path_FGREP" || continue
7535 # Check for GNU ac_path_FGREP and select it if it is found.
7536 # Check for GNU $ac_path_FGREP
7537 case `"$ac_path_FGREP" --version 2>&1` in
7539 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7542 $as_echo_n 0123456789 >"conftest.in"
7545 cat "conftest.in" "conftest.in" >"conftest.tmp"
7546 mv "conftest.tmp" "conftest.in"
7547 cp "conftest.in" "conftest.nl"
7548 $as_echo 'FGREP' >> "conftest.nl"
7549 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7551 as_fn_arith $ac_count + 1 && ac_count=$as_val
7552 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7553 # Best one so far, save it but keep looking for a better one
7554 ac_cv_path_FGREP="$ac_path_FGREP"
7555 ac_path_FGREP_max=$ac_count
7557 # 10*(2^10) chars as input seems more than enough
7558 test $ac_count -gt 10 && break
7560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7563 $ac_path_FGREP_found && break 3
7568 if test -z "$ac_cv_path_FGREP"; then
7569 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7572 ac_cv_path_FGREP=$FGREP
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7578 $as_echo "$ac_cv_path_FGREP" >&6; }
7579 FGREP="$ac_cv_path_FGREP"
7582 test -z "$GREP" && GREP=grep
7600 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7601 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7602 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7605 $as_echo_n "checking how to print strings... " >&6; }
7606 # Test print first, because it will be a builtin if present.
7607 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7608 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7610 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7613 # Use this function as a fallback that always works.
7614 func_fallback_echo ()
7616 eval 'cat <<_LTECHO_EOF
7620 ECHO='func_fallback_echo'
7623 # func_echo_all arg...
7624 # Invoke $ECHO with all args, space-separated.
7631 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7632 $as_echo "printf" >&6; } ;;
7633 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7634 $as_echo "print -r" >&6; } ;;
7635 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7636 $as_echo "cat" >&6; } ;;
7652 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7653 if test "x$ac_cv_type_pid_t" = xyes; then :
7657 cat >>confdefs.h <<_ACEOF
7663 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7664 if test "x$ac_cv_type_size_t" = xyes; then :
7668 cat >>confdefs.h <<_ACEOF
7669 #define size_t unsigned int
7675 # Check whether --enable-c99-snprintf was given.
7676 if test "${enable_c99_snprintf+set}" = set; then :
7677 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
7679 force_c99_snprintf=no
7683 case "$force_c99_snprintf" in
7685 hw_force_rpl_snprintf=yes
7686 hw_force_rpl_vsnprintf=yes
7694 for ac_header in $ac_header_list
7696 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7697 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7699 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7700 cat >>confdefs.h <<_ACEOF
7701 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7715 $as_echo_n "checking for unsigned long long int... " >&6; }
7716 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7717 $as_echo_n "(cached) " >&6
7719 ac_cv_type_unsigned_long_long_int=yes
7720 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h. */
7724 /* For now, do not test the preprocessor; as of 2007 there are too many
7725 implementations with broken preprocessors. Perhaps this can
7726 be revisited in 2012. In the meantime, code should not expect
7727 #if to work with literals wider than 32 bits. */
7728 /* Test literals. */
7729 long long int ll = 9223372036854775807ll;
7730 long long int nll = -9223372036854775807LL;
7731 unsigned long long int ull = 18446744073709551615ULL;
7732 /* Test constant expressions. */
7733 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7735 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7741 /* Test availability of runtime routines for shift and division. */
7742 long long int llmax = 9223372036854775807ll;
7743 unsigned long long int ullmax = 18446744073709551615ull;
7744 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7745 | (llmax / ll) | (llmax % ll)
7746 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7747 | (ullmax / ull) | (ullmax % ull));
7753 if ac_fn_c_try_link "$LINENO"; then :
7756 ac_cv_type_unsigned_long_long_int=no
7758 rm -f core conftest.err conftest.$ac_objext \
7759 conftest$ac_exeext conftest.$ac_ext
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7763 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7764 if test $ac_cv_type_unsigned_long_long_int = yes; then
7766 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7771 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
7772 if test "x$ac_cv_func_vsnprintf" = xyes; then :
7773 hw_cv_func_vsnprintf=yes
7775 hw_cv_func_vsnprintf=no
7778 if test "$hw_cv_func_vsnprintf" = yes; then :
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
7780 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
7781 if ${hw_cv_func_vsnprintf_c99+:} false; then :
7782 $as_echo_n "(cached) " >&6
7784 if test "$cross_compiling" = yes; then :
7785 hw_cv_func_vsnprintf_c99=no
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7793 static int testprintf(char *buf, size_t size, const char *format, ...)
7797 va_start(ap, format);
7798 result = vsnprintf(buf, size, format, ap);
7806 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
7807 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
7808 buf[0] != 'T' || buf[3] != '\0')
7814 if ac_fn_c_try_run "$LINENO"; then :
7815 hw_cv_func_vsnprintf_c99=yes
7817 hw_cv_func_vsnprintf_c99=no
7819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7820 conftest.$ac_objext conftest.beam conftest.$ac_ext
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
7825 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
7827 hw_cv_func_vsnprintf_c99=no
7830 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
7833 $as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
7834 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
7835 hw_use_rpl_vsnprintf=yes
7837 hw_use_rpl_vsnprintf=no
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
7840 $as_echo "$hw_use_rpl_vsnprintf" >&6; }
7841 if test "$hw_use_rpl_vsnprintf" = yes; then :
7843 $as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
7845 if test ${hw_nodef_vsnprintf=no} = no; then :
7847 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
7850 for ac_header in inttypes.h locale.h stddef.h stdint.h
7852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7853 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7854 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7855 cat >>confdefs.h <<_ACEOF
7856 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7863 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
7865 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
7867 cat >>confdefs.h <<_ACEOF
7868 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
7873 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
7875 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
7877 cat >>confdefs.h <<_ACEOF
7878 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
7886 $as_echo_n "checking for long double... " >&6; }
7887 if ${ac_cv_type_long_double+:} false; then :
7888 $as_echo_n "(cached) " >&6
7890 if test "$GCC" = yes; then
7891 ac_cv_type_long_double=yes
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7895 /* The Stardent Vistra knows sizeof (long double), but does
7897 long double foo = 0.0L;
7901 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7902 sizeof (double) <= sizeof (long double))];
7904 return test_array [0];
7910 if ac_fn_c_try_compile "$LINENO"; then :
7911 ac_cv_type_long_double=yes
7913 ac_cv_type_long_double=no
7915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
7919 $as_echo "$ac_cv_type_long_double" >&6; }
7920 if test $ac_cv_type_long_double = yes; then
7922 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7929 $as_echo_n "checking for long long int... " >&6; }
7930 if ${ac_cv_type_long_long_int+:} false; then :
7931 $as_echo_n "(cached) " >&6
7933 ac_cv_type_long_long_int=yes
7934 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7935 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7936 if test $ac_cv_type_long_long_int = yes; then
7937 if test "$cross_compiling" = yes; then :
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7945 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7946 # define LLONG_MAX (HALF - 1 + HALF)
7951 long long int n = 1;
7955 long long int m = n << i;
7958 if (LLONG_MAX / 2 < m)
7966 if ac_fn_c_try_run "$LINENO"; then :
7969 ac_cv_type_long_long_int=no
7971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7972 conftest.$ac_objext conftest.beam conftest.$ac_ext
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7979 $as_echo "$ac_cv_type_long_long_int" >&6; }
7980 if test $ac_cv_type_long_long_int = yes; then
7982 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7988 $as_echo_n "checking for unsigned long long int... " >&6; }
7989 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7990 $as_echo_n "(cached) " >&6
7992 ac_cv_type_unsigned_long_long_int=yes
7993 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7997 /* For now, do not test the preprocessor; as of 2007 there are too many
7998 implementations with broken preprocessors. Perhaps this can
7999 be revisited in 2012. In the meantime, code should not expect
8000 #if to work with literals wider than 32 bits. */
8001 /* Test literals. */
8002 long long int ll = 9223372036854775807ll;
8003 long long int nll = -9223372036854775807LL;
8004 unsigned long long int ull = 18446744073709551615ULL;
8005 /* Test constant expressions. */
8006 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8008 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8014 /* Test availability of runtime routines for shift and division. */
8015 long long int llmax = 9223372036854775807ll;
8016 unsigned long long int ullmax = 18446744073709551615ull;
8017 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8018 | (llmax / ll) | (llmax % ll)
8019 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8020 | (ullmax / ull) | (ullmax % ull));
8026 if ac_fn_c_try_link "$LINENO"; then :
8029 ac_cv_type_unsigned_long_long_int=no
8031 rm -f core conftest.err conftest.$ac_objext \
8032 conftest$ac_exeext conftest.$ac_ext
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8036 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8037 if test $ac_cv_type_unsigned_long_long_int = yes; then
8039 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8043 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8044 if test "x$ac_cv_type_size_t" = xyes; then :
8048 cat >>confdefs.h <<_ACEOF
8049 #define size_t unsigned int
8056 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
8057 if test "x$ac_cv_type_intmax_t" = xyes; then :
8059 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
8062 test $ac_cv_type_long_long_int = yes \
8063 && ac_type='long long int' \
8064 || ac_type='long int'
8066 cat >>confdefs.h <<_ACEOF
8067 #define intmax_t $ac_type
8075 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
8076 if test "x$ac_cv_type_uintmax_t" = xyes; then :
8078 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
8081 test $ac_cv_type_unsigned_long_long_int = yes \
8082 && ac_type='unsigned long long int' \
8083 || ac_type='unsigned long int'
8085 cat >>confdefs.h <<_ACEOF
8086 #define uintmax_t $ac_type
8093 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
8094 if test "x$ac_cv_type_uintptr_t" = xyes; then :
8096 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
8099 for ac_type in 'unsigned int' 'unsigned long int' \
8100 'unsigned long long int'; do
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8103 $ac_includes_default
8107 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
8109 return test_array [0];
8115 if ac_fn_c_try_compile "$LINENO"; then :
8117 cat >>confdefs.h <<_ACEOF
8118 #define uintptr_t $ac_type
8123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124 test -z "$ac_type" && break
8129 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8130 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8132 cat >>confdefs.h <<_ACEOF
8133 #define HAVE_PTRDIFF_T 1
8139 for ac_func in localeconv
8141 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
8142 if test "x$ac_cv_func_localeconv" = xyes; then :
8143 cat >>confdefs.h <<_ACEOF
8144 #define HAVE_LOCALECONV 1
8151 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8153 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8154 if ${ac_cv_c_const+:} false; then :
8155 $as_echo_n "(cached) " >&6
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8165 /* Ultrix mips cc rejects this sort of thing. */
8166 typedef int charset[2];
8167 const charset cs = { 0, 0 };
8168 /* SunOS 4.1.1 cc rejects this. */
8169 char const *const *pcpcc;
8171 /* NEC SVR4.0.2 mips cc rejects this. */
8172 struct point {int x, y;};
8173 static struct point const zero = {0,0};
8174 /* AIX XL C 1.02.0.0 rejects this.
8175 It does not let you subtract one const X* pointer from another in
8176 an arm of an if-expression whose if-part is not a constant
8178 const char *g = "string";
8179 pcpcc = &g + (g ? g-g : 0);
8180 /* HPUX 7.0 cc rejects these. */
8182 ppc = (char**) pcpcc;
8183 pcpcc = (char const *const *) ppc;
8184 { /* SCO 3.2v4 cc rejects this sort of thing. */
8187 char const *s = 0 ? (char *) 0 : (char const *) 0;
8192 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8194 const int *foo = &x[0];
8197 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8198 typedef const int *iptr;
8202 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8203 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8204 struct s { int j; const int *ap[3]; } bx;
8205 struct s *b = &bx; b->j = 5;
8207 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8211 return !cs[0] && !zero.x;
8218 if ac_fn_c_try_compile "$LINENO"; then :
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8226 $as_echo "$ac_cv_c_const" >&6; }
8227 if test $ac_cv_c_const = no; then
8229 $as_echo "#define const /**/" >>confdefs.h
8236 case " $LIBOBJS " in
8237 *" snprintf.$ac_objext "* ) ;;
8238 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8242 _hw_cv_func_xprintf_replace_done=yes
8248 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
8249 if test "x$ac_cv_func_snprintf" = xyes; then :
8250 hw_cv_func_snprintf=yes
8252 hw_cv_func_snprintf=no
8255 if test "$hw_cv_func_snprintf" = yes; then :
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
8257 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
8258 if ${hw_cv_func_snprintf_c99+:} false; then :
8259 $as_echo_n "(cached) " >&6
8261 if test "$cross_compiling" = yes; then :
8262 hw_cv_func_snprintf_c99=no
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8271 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
8272 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
8273 buf[0] != 'T' || buf[3] != '\0')
8279 if ac_fn_c_try_run "$LINENO"; then :
8280 hw_cv_func_snprintf_c99=yes
8282 hw_cv_func_snprintf_c99=no
8284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8285 conftest.$ac_objext conftest.beam conftest.$ac_ext
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
8290 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
8292 hw_cv_func_snprintf_c99=no
8295 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
8298 $as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
8299 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
8300 hw_use_rpl_snprintf=yes
8302 hw_use_rpl_snprintf=no
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
8305 $as_echo "$hw_use_rpl_snprintf" >&6; }
8306 if test "$hw_use_rpl_snprintf" = yes; then :
8308 $as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
8310 if test ${hw_nodef_snprintf=no} = no; then :
8312 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
8316 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8318 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8319 if ${ac_cv_c_const+:} false; then :
8320 $as_echo_n "(cached) " >&6
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8330 /* Ultrix mips cc rejects this sort of thing. */
8331 typedef int charset[2];
8332 const charset cs = { 0, 0 };
8333 /* SunOS 4.1.1 cc rejects this. */
8334 char const *const *pcpcc;
8336 /* NEC SVR4.0.2 mips cc rejects this. */
8337 struct point {int x, y;};
8338 static struct point const zero = {0,0};
8339 /* AIX XL C 1.02.0.0 rejects this.
8340 It does not let you subtract one const X* pointer from another in
8341 an arm of an if-expression whose if-part is not a constant
8343 const char *g = "string";
8344 pcpcc = &g + (g ? g-g : 0);
8345 /* HPUX 7.0 cc rejects these. */
8347 ppc = (char**) pcpcc;
8348 pcpcc = (char const *const *) ppc;
8349 { /* SCO 3.2v4 cc rejects this sort of thing. */
8352 char const *s = 0 ? (char *) 0 : (char const *) 0;
8357 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8359 const int *foo = &x[0];
8362 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8363 typedef const int *iptr;
8367 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8368 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8369 struct s { int j; const int *ap[3]; } bx;
8370 struct s *b = &bx; b->j = 5;
8372 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8376 return !cs[0] && !zero.x;
8383 if ac_fn_c_try_compile "$LINENO"; then :
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8391 $as_echo "$ac_cv_c_const" >&6; }
8392 if test $ac_cv_c_const = no; then
8394 $as_echo "#define const /**/" >>confdefs.h
8401 case " $LIBOBJS " in
8402 *" snprintf.$ac_objext "* ) ;;
8403 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8407 _hw_cv_func_xprintf_replace_done=yes
8416 # HMS: Save $LIBS and empty it.
8417 # any LIBS we add here should go in to LDADD_LIBNTP
8424 # [Bug 2332] because we need to know if we are using GNU ld...
8427 # Check whether --with-gnu-ld was given.
8428 if test "${with_gnu_ld+set}" = set; then :
8429 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8435 if test "$GCC" = yes; then
8436 # Check if gcc -print-prog-name=ld gives a path.
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8438 $as_echo_n "checking for ld used by $CC... " >&6; }
8441 # gcc leaves a trailing carriage return which upsets mingw
8442 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8444 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8447 # Accept absolute paths.
8449 re_direlt='/[^/][^/]*/\.\./'
8450 # Canonicalize the pathname of ld
8451 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8452 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8453 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8455 test -z "$LD" && LD="$ac_prog"
8458 # If it fails, then pretend we aren't using GCC.
8462 # If it is relative, then search for the first ld in PATH.
8466 elif test "$with_gnu_ld" = yes; then
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8468 $as_echo_n "checking for GNU ld... " >&6; }
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8471 $as_echo_n "checking for non-GNU ld... " >&6; }
8473 if ${lt_cv_path_LD+:} false; then :
8474 $as_echo_n "(cached) " >&6
8476 if test -z "$LD"; then
8477 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8478 for ac_dir in $PATH; do
8480 test -z "$ac_dir" && ac_dir=.
8481 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8482 lt_cv_path_LD="$ac_dir/$ac_prog"
8483 # Check to see if the program is GNU ld. I'd rather use --version,
8484 # but apparently some variants of GNU ld only accept -v.
8485 # Break only if it was the GNU/non-GNU ld that we prefer.
8486 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8487 *GNU* | *'with BFD'*)
8488 test "$with_gnu_ld" != no && break
8491 test "$with_gnu_ld" != yes && break
8498 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8503 if test -n "$LD"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8505 $as_echo "$LD" >&6; }
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508 $as_echo "no" >&6; }
8510 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8512 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8513 if ${lt_cv_prog_gnu_ld+:} false; then :
8514 $as_echo_n "(cached) " >&6
8516 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8517 case `$LD -v 2>&1 </dev/null` in
8518 *GNU* | *'with BFD'*)
8519 lt_cv_prog_gnu_ld=yes
8522 lt_cv_prog_gnu_ld=no
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8527 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8528 with_gnu_ld=$lt_cv_prog_gnu_ld
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
8541 $as_echo_n "checking for directory path separator... " >&6; }
8542 if ${ntp_cv_dir_sep+:} false; then :
8543 $as_echo_n "(cached) " >&6
8546 case "$ntp_cv_dir_sep" in
8549 *djgpp | *mingw32* | *emx*)
8550 ntp_cv_dir_sep="'\\'"
8553 ntp_cv_dir_sep="'/'"
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
8561 $as_echo "$ntp_cv_dir_sep" >&6; }
8563 cat >>confdefs.h <<_ACEOF
8564 #define DIR_SEP $ntp_cv_dir_sep
8569 NTP_ORIG_LIBS="$LIBS"
8571 # Check whether --with-lineeditlibs was given.
8572 if test "${with_lineeditlibs+set}" = set; then :
8573 withval=$with_lineeditlibs; use_lineeditlibs="$withval"
8575 use_lineeditlibs="edit,editline"
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
8580 $as_echo_n "checking line editing libraries... " >&6; }
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
8582 $as_echo "$use_lineeditlibs" >&6; }
8583 case "$use_lineeditlibs" in
8588 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
8589 for term_lib in "" termcap curses ncurses; do
8592 TRY_LIB="-l$lineedit_lib"
8595 TRY_LIB="-l$lineedit_lib -l$term_lib"
8598 LIBS="$NTP_ORIG_LIBS $TRY_LIB"
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
8600 $as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h. */
8604 /* Override any GCC internal prototype to avoid an error.
8605 Use char because int might match the return type of a GCC
8606 builtin and then its argument prototype would still apply. */
8619 if ac_fn_c_try_link "$LINENO"; then :
8620 ntp_lib_lineedit="$TRY_LIB"
8622 rm -f core conftest.err conftest.$ac_objext \
8623 conftest$ac_exeext conftest.$ac_ext
8624 case "$ntp_lib_lineedit" in
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8632 $as_echo "yes" >&6; }
8637 # do not try el_gets without a terminal library
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
8641 $as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8645 /* Override any GCC internal prototype to avoid an error.
8646 Use char because int might match the return type of a GCC
8647 builtin and then its argument prototype would still apply. */
8660 if ac_fn_c_try_link "$LINENO"; then :
8661 ntp_lib_lineedit="$TRY_LIB"
8663 rm -f core conftest.err conftest.$ac_objext \
8664 conftest$ac_exeext conftest.$ac_ext
8665 case "$ntp_lib_lineedit" in
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8672 $as_echo "yes" >&6; }
8675 esac # $ntp_lib_lineedit
8678 case "$ntp_lib_lineedit" in
8686 LIBS="$NTP_ORIG_LIBS"
8688 esac # $use_lineeditlibs
8690 case "$ntp_lib_lineedit" in
8692 ntp_lib_lineedit="no"
8697 EDITLINE_LIBS="$ntp_lib_lineedit"
8700 esac # $ntp_lib_lineedit
8702 case "$ntp_lib_lineedit" in
8706 for ac_header in readline.h readline/readline.h histedit.h
8708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8709 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8710 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8711 cat >>confdefs.h <<_ACEOF
8712 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8719 for ac_header in history.h readline/history.h
8721 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8722 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8723 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8724 cat >>confdefs.h <<_ACEOF
8725 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8733 case "$ac_cv_header_histedit_h" in
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
8736 $as_echo_n "checking number of arguments to el_init()... " >&6; }
8737 if ${ntp_cv_el_init_args+:} false; then :
8738 $as_echo_n "(cached) " >&6
8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741 /* end confdefs.h. */
8744 #include <histedit.h>
8750 el_init("conftest", stdin, stdout, stderr);
8757 if ac_fn_c_try_compile "$LINENO"; then :
8758 ntp_cv_el_init_args=4
8760 ntp_cv_el_init_args=3
8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
8767 $as_echo "$ntp_cv_el_init_args" >&6; }
8769 cat >>confdefs.h <<_ACEOF
8770 #define EL_INIT_ARGS $ntp_cv_el_init_args
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
8776 $as_echo_n "checking whether readline supports history... " >&6; }
8778 ntp_lib_lineedit_history="no"
8780 LIBS="$ORIG_LIBS $ntp_lib_lineedit"
8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h. */
8784 /* Override any GCC internal prototype to avoid an error.
8785 Use char because int might match the return type of a GCC
8786 builtin and then its argument prototype would still apply. */
8790 char add_history ();
8794 return add_history ();
8799 if ac_fn_c_try_link "$LINENO"; then :
8800 ntp_lib_lineedit_history="yes"
8802 rm -f core conftest.err conftest.$ac_objext \
8803 conftest$ac_exeext conftest.$ac_ext
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
8807 $as_echo "$ntp_lib_lineedit_history" >&6; }
8809 case "$ntp_lib_lineedit_history" in
8812 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
8815 esac # $ntp_lib_lineedit
8816 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
8817 { ORIG_LIBS=; unset ORIG_LIBS;}
8818 { TRY_LIB=; unset TRY_LIB;}
8819 { use_lineeditlibs=; unset use_lineeditlibs;}
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
8829 $as_echo_n "checking for library containing cos... " >&6; }
8830 if ${ac_cv_search_cos+:} false; then :
8831 $as_echo_n "(cached) " >&6
8833 ac_func_search_save_LIBS=$LIBS
8834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h. */
8837 /* Override any GCC internal prototype to avoid an error.
8838 Use char because int might match the return type of a GCC
8839 builtin and then its argument prototype would still apply. */
8852 for ac_lib in '' m; do
8853 if test -z "$ac_lib"; then
8854 ac_res="none required"
8857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8859 if ac_fn_c_try_link "$LINENO"; then :
8860 ac_cv_search_cos=$ac_res
8862 rm -f core conftest.err conftest.$ac_objext \
8864 if ${ac_cv_search_cos+:} false; then :
8868 if ${ac_cv_search_cos+:} false; then :
8874 LIBS=$ac_func_search_save_LIBS
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
8877 $as_echo "$ac_cv_search_cos" >&6; }
8878 ac_res=$ac_cv_search_cos
8879 if test "$ac_res" != no; then :
8880 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8888 { _libs=; unset _libs;}
8891 for ac_header in vfork.h
8893 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8894 if test "x$ac_cv_header_vfork_h" = xyes; then :
8895 cat >>confdefs.h <<_ACEOF
8896 #define HAVE_VFORK_H 1
8903 for ac_func in fork vfork
8905 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8906 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8907 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8908 cat >>confdefs.h <<_ACEOF
8909 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8915 if test "x$ac_cv_func_fork" = xyes; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8917 $as_echo_n "checking for working fork... " >&6; }
8918 if ${ac_cv_func_fork_works+:} false; then :
8919 $as_echo_n "(cached) " >&6
8921 if test "$cross_compiling" = yes; then :
8922 ac_cv_func_fork_works=cross
8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8926 $ac_includes_default
8931 /* By Ruediger Kuhlmann. */
8938 if ac_fn_c_try_run "$LINENO"; then :
8939 ac_cv_func_fork_works=yes
8941 ac_cv_func_fork_works=no
8943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8944 conftest.$ac_objext conftest.beam conftest.$ac_ext
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8949 $as_echo "$ac_cv_func_fork_works" >&6; }
8952 ac_cv_func_fork_works=$ac_cv_func_fork
8954 if test "x$ac_cv_func_fork_works" = xcross; then
8956 *-*-amigaos* | *-*-msdosdjgpp*)
8957 # Override, as these systems have only a dummy fork() stub
8958 ac_cv_func_fork_works=no
8961 ac_cv_func_fork_works=yes
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8965 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8967 ac_cv_func_vfork_works=$ac_cv_func_vfork
8968 if test "x$ac_cv_func_vfork" = xyes; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8970 $as_echo_n "checking for working vfork... " >&6; }
8971 if ${ac_cv_func_vfork_works+:} false; then :
8972 $as_echo_n "(cached) " >&6
8974 if test "$cross_compiling" = yes; then :
8975 ac_cv_func_vfork_works=cross
8977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978 /* end confdefs.h. */
8979 /* Thanks to Paul Eggert for this test. */
8980 $ac_includes_default
8981 #include <sys/wait.h>
8985 /* On some sparc systems, changes by the child to local and incoming
8986 argument registers are propagated back to the parent. The compiler
8987 is told about this with #include <vfork.h>, but some compilers
8988 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8989 static variable whose address is put into a register that is
8990 clobbered by the vfork. */
8993 sparc_address_test (int arg)
8995 sparc_address_test (arg) int arg;
9016 pid_t parent = getpid ();
9019 sparc_address_test (0);
9024 /* Here is another test for sparc vfork register problems. This
9025 test uses lots of local variables, at least as many local
9026 variables as main has allocated so far including compiler
9027 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9028 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9029 reuse the register of parent for one of the local variables,
9030 since it will think that parent can't possibly be used any more
9031 in this routine. Assigning to the local variable will thus
9032 munge parent in the parent process. */
9034 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9035 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9036 /* Convince the compiler that p..p7 are live; otherwise, it might
9037 use the same hardware register for all 8 local variables. */
9038 if (p != p1 || p != p2 || p != p3 || p != p4
9039 || p != p5 || p != p6 || p != p7)
9042 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9043 from child file descriptors. If the child closes a descriptor
9044 before it execs or exits, this munges the parent's descriptor
9045 as well. Test for this by closing stdout in the child. */
9046 _exit(close(fileno(stdout)) != 0);
9051 while (wait(&status) != child)
9054 /* Was there some problem with vforking? */
9057 /* Did the child fail? (This shouldn't happen.) */
9060 /* Did the vfork/compiler bug occur? */
9061 || parent != getpid()
9063 /* Did the file descriptor bug occur? */
9064 || fstat(fileno(stdout), &st) != 0
9069 if ac_fn_c_try_run "$LINENO"; then :
9070 ac_cv_func_vfork_works=yes
9072 ac_cv_func_vfork_works=no
9074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9075 conftest.$ac_objext conftest.beam conftest.$ac_ext
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9080 $as_echo "$ac_cv_func_vfork_works" >&6; }
9083 if test "x$ac_cv_func_fork_works" = xcross; then
9084 ac_cv_func_vfork_works=$ac_cv_func_vfork
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9086 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9089 if test "x$ac_cv_func_vfork_works" = xyes; then
9091 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9095 $as_echo "#define vfork fork" >>confdefs.h
9098 if test "x$ac_cv_func_fork_works" = xyes; then
9100 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9104 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9105 # for constant arguments. Useless!
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9107 $as_echo_n "checking for working alloca.h... " >&6; }
9108 if ${ac_cv_working_alloca_h+:} false; then :
9109 $as_echo_n "(cached) " >&6
9111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h. */
9117 char *p = (char *) alloca (2 * sizeof (int));
9123 if ac_fn_c_try_link "$LINENO"; then :
9124 ac_cv_working_alloca_h=yes
9126 ac_cv_working_alloca_h=no
9128 rm -f core conftest.err conftest.$ac_objext \
9129 conftest$ac_exeext conftest.$ac_ext
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9132 $as_echo "$ac_cv_working_alloca_h" >&6; }
9133 if test $ac_cv_working_alloca_h = yes; then
9135 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9140 $as_echo_n "checking for alloca... " >&6; }
9141 if ${ac_cv_func_alloca_works+:} false; then :
9142 $as_echo_n "(cached) " >&6
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9147 # define alloca __builtin_alloca
9150 # include <malloc.h>
9151 # define alloca _alloca
9153 # ifdef HAVE_ALLOCA_H
9154 # include <alloca.h>
9159 # ifndef alloca /* predefined by HP cc +Olibcalls */
9160 void *alloca (size_t);
9170 char *p = (char *) alloca (1);
9176 if ac_fn_c_try_link "$LINENO"; then :
9177 ac_cv_func_alloca_works=yes
9179 ac_cv_func_alloca_works=no
9181 rm -f core conftest.err conftest.$ac_objext \
9182 conftest$ac_exeext conftest.$ac_ext
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9185 $as_echo "$ac_cv_func_alloca_works" >&6; }
9187 if test $ac_cv_func_alloca_works = yes; then
9189 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9192 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9193 # that cause trouble. Some versions do not even contain alloca or
9194 # contain a buggy version. If you still want to use their alloca,
9195 # use ar to extract alloca.o from them instead of compiling alloca.c.
9197 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9199 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9203 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9204 if ${ac_cv_os_cray+:} false; then :
9205 $as_echo_n "(cached) " >&6
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9209 #if defined CRAY && ! defined CRAY2
9216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9217 $EGREP "webecray" >/dev/null 2>&1; then :
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9226 $as_echo "$ac_cv_os_cray" >&6; }
9227 if test $ac_cv_os_cray = yes; then
9228 for ac_func in _getb67 GETB67 getb67; do
9229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9230 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9231 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9233 cat >>confdefs.h <<_ACEOF
9234 #define CRAY_STACKSEG_END $ac_func
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9244 $as_echo_n "checking stack direction for C alloca... " >&6; }
9245 if ${ac_cv_c_stack_direction+:} false; then :
9246 $as_echo_n "(cached) " >&6
9248 if test "$cross_compiling" = yes; then :
9249 ac_cv_c_stack_direction=0
9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9253 $ac_includes_default
9255 find_stack_direction (int *addr, int depth)
9260 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
9261 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
9266 main (int argc, char **argv)
9268 return find_stack_direction (0, argc + !argv + 20) < 0;
9271 if ac_fn_c_try_run "$LINENO"; then :
9272 ac_cv_c_stack_direction=1
9274 ac_cv_c_stack_direction=-1
9276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9277 conftest.$ac_objext conftest.beam conftest.$ac_ext
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9282 $as_echo "$ac_cv_c_stack_direction" >&6; }
9283 cat >>confdefs.h <<_ACEOF
9284 #define STACK_DIRECTION $ac_cv_c_stack_direction
9290 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
9291 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
9297 cat >>confdefs.h <<_ACEOF
9298 #define HAVE_DECL_STRERROR_R $ac_have_decl
9301 for ac_func in strerror_r
9303 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
9304 if test "x$ac_cv_func_strerror_r" = xyes; then :
9305 cat >>confdefs.h <<_ACEOF
9306 #define HAVE_STRERROR_R 1
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
9313 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
9314 if ${ac_cv_func_strerror_r_char_p+:} false; then :
9315 $as_echo_n "(cached) " >&6
9318 ac_cv_func_strerror_r_char_p=no
9319 if test $ac_cv_have_decl_strerror_r = yes; then
9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9322 $ac_includes_default
9328 char x = *strerror_r (0, buf, sizeof buf);
9329 char *p = strerror_r (0, buf, sizeof buf);
9336 if ac_fn_c_try_compile "$LINENO"; then :
9337 ac_cv_func_strerror_r_char_p=yes
9339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9341 # strerror_r is not declared. Choose between
9342 # systems that have relatively inaccessible declarations for the
9343 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
9344 # former has a strerror_r that returns char*, while the latter
9345 # has a strerror_r that returns `int'.
9346 # This test should segfault on the DEC system.
9347 if test "$cross_compiling" = yes; then :
9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351 /* end confdefs.h. */
9352 $ac_includes_default
9353 extern char *strerror_r ();
9358 char x = *strerror_r (0, buf, sizeof buf);
9359 return ! isalpha (x);
9364 if ac_fn_c_try_run "$LINENO"; then :
9365 ac_cv_func_strerror_r_char_p=yes
9367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9368 conftest.$ac_objext conftest.beam conftest.$ac_ext
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
9375 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
9376 if test $ac_cv_func_strerror_r_char_p = yes; then
9378 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
9383 ac_busted_vpath_in_make=no
9385 *-*-irix6.1*) # 64 bit only
9388 *-*-irix6*) # 6.2 (and later?)
9389 ac_busted_vpath_in_make=yes
9392 ac_busted_vpath_in_make=yes
9395 ac_busted_vpath_in_make=yes
9399 case "$ac_busted_vpath_in_make$srcdir" in
9402 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
9404 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
9412 # Was *-*-aix[[4-9]]*
9413 # XXX only verified thru AIX6. But...
9414 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
9415 # that this support would be in 5.3, removed in 6, and added back.
9417 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
9418 # (returning ENOSYS). I didn't check 4.2. If, in the future,
9419 # IBM pulls its thumbs out long enough to implement clock_settime,
9420 # this conditional will need to change. Maybe use AC_TRY_RUN
9421 # instead to try to set the time to itself and check errno.
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
9425 $as_echo_n "checking for library containing clock_gettime... " >&6; }
9426 if ${ac_cv_search_clock_gettime+:} false; then :
9427 $as_echo_n "(cached) " >&6
9429 ac_func_search_save_LIBS=$LIBS
9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431 /* end confdefs.h. */
9433 /* Override any GCC internal prototype to avoid an error.
9434 Use char because int might match the return type of a GCC
9435 builtin and then its argument prototype would still apply. */
9439 char clock_gettime ();
9443 return clock_gettime ();
9448 for ac_lib in '' rt; do
9449 if test -z "$ac_lib"; then
9450 ac_res="none required"
9453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9455 if ac_fn_c_try_link "$LINENO"; then :
9456 ac_cv_search_clock_gettime=$ac_res
9458 rm -f core conftest.err conftest.$ac_objext \
9460 if ${ac_cv_search_clock_gettime+:} false; then :
9464 if ${ac_cv_search_clock_gettime+:} false; then :
9467 ac_cv_search_clock_gettime=no
9470 LIBS=$ac_func_search_save_LIBS
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
9473 $as_echo "$ac_cv_search_clock_gettime" >&6; }
9474 ac_res=$ac_cv_search_clock_gettime
9475 if test "$ac_res" != no; then :
9476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9477 case "$ac_cv_search_clock_gettime" in
9480 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
9485 for ac_func in clock_getres clock_gettime clock_settime
9487 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9488 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9489 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9490 cat >>confdefs.h <<_ACEOF
9491 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9500 for ac_func in getclock stime timegm strlcpy strlcat
9502 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9503 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9504 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9505 cat >>confdefs.h <<_ACEOF
9506 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
9517 $as_echo_n "checking for library containing snprintb... " >&6; }
9518 if ${ac_cv_search_snprintb+:} false; then :
9519 $as_echo_n "(cached) " >&6
9521 ac_func_search_save_LIBS=$LIBS
9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523 /* end confdefs.h. */
9525 /* Override any GCC internal prototype to avoid an error.
9526 Use char because int might match the return type of a GCC
9527 builtin and then its argument prototype would still apply. */
9540 for ac_lib in '' util; do
9541 if test -z "$ac_lib"; then
9542 ac_res="none required"
9545 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9547 if ac_fn_c_try_link "$LINENO"; then :
9548 ac_cv_search_snprintb=$ac_res
9550 rm -f core conftest.err conftest.$ac_objext \
9552 if ${ac_cv_search_snprintb+:} false; then :
9556 if ${ac_cv_search_snprintb+:} false; then :
9559 ac_cv_search_snprintb=no
9562 LIBS=$ac_func_search_save_LIBS
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
9565 $as_echo "$ac_cv_search_snprintb" >&6; }
9566 ac_res=$ac_cv_search_snprintb
9567 if test "$ac_res" != no; then :
9568 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9569 case "$ac_cv_search_snprintb" in
9572 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
9575 $as_echo "#define USE_SNPRINTB 1" >>confdefs.h
9581 for ac_header in errno.h sys/socket.h sys/types.h time.h
9583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9584 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9585 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9586 cat >>confdefs.h <<_ACEOF
9587 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9594 for ac_header in net/if.h
9596 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
9597 #ifdef HAVE_SYS_SOCKET_H
9598 # include <sys/socket.h>
9602 if test "x$ac_cv_header_net_if_h" = xyes; then :
9603 cat >>confdefs.h <<_ACEOF
9604 #define HAVE_NET_IF_H 1
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
9614 $as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
9615 if ${ntp_cv_predecl_mpinfou+:} false; then :
9616 $as_echo_n "(cached) " >&6
9619 np_cv_predecl_mpinfou=no
9620 case "$ac_cv_header_net_if_h" in
9622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623 /* end confdefs.h. */
9625 typedef union mpinfou {
9626 struct pdk_mpinfo *pdkptr;
9627 struct mpinfo *pikptr;
9629 #ifdef HAVE_SYS_SOCKET_H
9630 # include <sys/socket.h>
9644 if ac_fn_c_try_compile "$LINENO"; then :
9646 ntp_cv_predecl_mpinfou=yes
9647 ac_cv_header_net_if_h=yes
9651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
9657 $as_echo "$ntp_cv_predecl_mpinfou" >&6; }
9658 case "$ntp_cv_predecl_mpinfou" in
9660 cat >>confdefs.h <<_ACEOF
9661 #ifndef MPINFOU_PREDECLARED
9662 # define MPINFOU_PREDECLARED
9663 typedef union mpinfou {
9664 struct pdk_mpinfo *pdkptr;
9665 struct mpinfo *pikptr;
9675 for ac_header in linux/if_addr.h
9677 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
9678 #ifdef HAVE_SYS_SOCKET_H
9679 # include <sys/socket.h>
9683 if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
9684 cat >>confdefs.h <<_ACEOF
9685 #define HAVE_LINUX_IF_ADDR_H 1
9693 $as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h
9697 for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
9699 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9700 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9701 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9702 cat >>confdefs.h <<_ACEOF
9703 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9710 # sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
9711 for ac_header in sys/sysctl.h
9713 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
9714 #if defined HAVE_SYS_PARAM_H
9715 # include <sys/param.h>
9719 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
9720 cat >>confdefs.h <<_ACEOF
9721 #define HAVE_SYS_SYSCTL_H 1
9728 for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
9730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9731 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9732 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9733 cat >>confdefs.h <<_ACEOF
9734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9742 for ac_header in resolv.h
9744 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
9745 #ifdef HAVE_SYS_TYPES_H
9746 # include <sys/types.h>
9748 #ifdef HAVE_NETINET_IN_H
9749 # include <netinet/in.h>
9751 #ifdef HAVE_ARPA_NAMESER_H
9752 # include <arpa/nameser.h>
9756 if test "x$ac_cv_header_resolv_h" = xyes; then :
9757 cat >>confdefs.h <<_ACEOF
9758 #define HAVE_RESOLV_H 1
9766 for ac_header in net/if_var.h
9768 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
9769 #if HAVE_SYS_TYPES_H
9770 # include <sys/types.h>
9772 #ifdef HAVE_SYS_SOCKET_H
9773 # include <sys/socket.h>
9775 #ifdef HAVE_NETINET_IN_H
9776 # include <netinet/in.h>
9778 #ifdef HAVE_NET_IF_H
9779 # include <net/if.h>
9783 if test "x$ac_cv_header_net_if_var_h" = xyes; then :
9784 cat >>confdefs.h <<_ACEOF
9785 #define HAVE_NET_IF_VAR_H 1
9793 for ac_header in netinet/ip.h netinet/in_var.h
9795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9796 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
9797 #ifdef HAVE_SYS_TYPES_H
9798 # include <sys/types.h>
9800 #ifdef HAVE_SYS_SOCKET_H
9801 # include <sys/socket.h>
9803 #ifdef HAVE_NET_IF_H
9804 # include <net/if.h>
9806 #ifdef HAVE_NETINET_IN_H
9807 # include <netinet/in.h>
9809 #ifdef HAVE_NET_IF_VAR_H
9810 # include <net/if_var.h>
9812 #ifdef HAVE_NETINET_IN_SYSTM_H
9813 # include <netinet/in_systm.h>
9817 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9818 cat >>confdefs.h <<_ACEOF
9819 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9827 # HMS: Do we need to check for -lsocket before or after these tests?
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
9829 $as_echo_n "checking for library containing inet_pton... " >&6; }
9830 if ${ac_cv_search_inet_pton+:} false; then :
9831 $as_echo_n "(cached) " >&6
9833 ac_func_search_save_LIBS=$LIBS
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9837 /* Override any GCC internal prototype to avoid an error.
9838 Use char because int might match the return type of a GCC
9839 builtin and then its argument prototype would still apply. */
9847 return inet_pton ();
9852 for ac_lib in '' nsl; do
9853 if test -z "$ac_lib"; then
9854 ac_res="none required"
9857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9859 if ac_fn_c_try_link "$LINENO"; then :
9860 ac_cv_search_inet_pton=$ac_res
9862 rm -f core conftest.err conftest.$ac_objext \
9864 if ${ac_cv_search_inet_pton+:} false; then :
9868 if ${ac_cv_search_inet_pton+:} false; then :
9871 ac_cv_search_inet_pton=no
9874 LIBS=$ac_func_search_save_LIBS
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
9877 $as_echo "$ac_cv_search_inet_pton" >&6; }
9878 ac_res=$ac_cv_search_inet_pton
9879 if test "$ac_res" != no; then :
9880 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9881 case "$ac_cv_search_inet_pton" in
9884 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
9890 $as_echo_n "checking for library containing inet_ntop... " >&6; }
9891 if ${ac_cv_search_inet_ntop+:} false; then :
9892 $as_echo_n "(cached) " >&6
9894 ac_func_search_save_LIBS=$LIBS
9895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9898 /* Override any GCC internal prototype to avoid an error.
9899 Use char because int might match the return type of a GCC
9900 builtin and then its argument prototype would still apply. */
9908 return inet_ntop ();
9913 for ac_lib in '' resolv; do
9914 if test -z "$ac_lib"; then
9915 ac_res="none required"
9918 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
9920 if ac_fn_c_try_link "$LINENO"; then :
9921 ac_cv_search_inet_ntop=$ac_res
9923 rm -f core conftest.err conftest.$ac_objext \
9925 if ${ac_cv_search_inet_ntop+:} false; then :
9929 if ${ac_cv_search_inet_ntop+:} false; then :
9932 ac_cv_search_inet_ntop=no
9935 LIBS=$ac_func_search_save_LIBS
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
9938 $as_echo "$ac_cv_search_inet_ntop" >&6; }
9939 ac_res=$ac_cv_search_inet_ntop
9940 if test "$ac_res" != no; then :
9941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9942 case "$ac_cv_search_inet_ntop" in
9945 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
9951 # [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to
9952 # avoid keying on the OS name: If we find socket functions in
9953 # libsocket, next try for them in libxnet without libsocket, if found,
9954 # list both. If we simply tested libxnet first, we would find the
9955 # functions there and never add libsocket. See also [Bug 660]
9956 # http://bugs.ntp.org/show_bug.cgi?id=660#c9
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
9959 $as_echo_n "checking for library containing setsockopt... " >&6; }
9960 if ${ac_cv_search_setsockopt+:} false; then :
9961 $as_echo_n "(cached) " >&6
9963 ac_func_search_save_LIBS=$LIBS
9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h. */
9967 /* Override any GCC internal prototype to avoid an error.
9968 Use char because int might match the return type of a GCC
9969 builtin and then its argument prototype would still apply. */
9977 return setsockopt ();
9982 for ac_lib in '' socket; do
9983 if test -z "$ac_lib"; then
9984 ac_res="none required"
9987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9989 if ac_fn_c_try_link "$LINENO"; then :
9990 ac_cv_search_setsockopt=$ac_res
9992 rm -f core conftest.err conftest.$ac_objext \
9994 if ${ac_cv_search_setsockopt+:} false; then :
9998 if ${ac_cv_search_setsockopt+:} false; then :
10001 ac_cv_search_setsockopt=no
10003 rm conftest.$ac_ext
10004 LIBS=$ac_func_search_save_LIBS
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
10007 $as_echo "$ac_cv_search_setsockopt" >&6; }
10008 ac_res=$ac_cv_search_setsockopt
10009 if test "$ac_res" != no; then :
10010 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10011 case "$ac_cv_search_setsockopt" in
10012 'none required') ;;
10014 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
10019 case "$ac_cv_search_setsockopt" in
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
10023 $as_echo_n "checking for library containing getsockopt... " >&6; }
10024 if ${ac_cv_search_getsockopt+:} false; then :
10025 $as_echo_n "(cached) " >&6
10027 ac_func_search_save_LIBS=$LIBS
10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029 /* end confdefs.h. */
10031 /* Override any GCC internal prototype to avoid an error.
10032 Use char because int might match the return type of a GCC
10033 builtin and then its argument prototype would still apply. */
10037 char getsockopt ();
10041 return getsockopt ();
10046 for ac_lib in '' xnet; do
10047 if test -z "$ac_lib"; then
10048 ac_res="none required"
10051 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10053 if ac_fn_c_try_link "$LINENO"; then :
10054 ac_cv_search_getsockopt=$ac_res
10056 rm -f core conftest.err conftest.$ac_objext \
10058 if ${ac_cv_search_getsockopt+:} false; then :
10062 if ${ac_cv_search_getsockopt+:} false; then :
10065 ac_cv_search_getsockopt=no
10067 rm conftest.$ac_ext
10068 LIBS=$ac_func_search_save_LIBS
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
10071 $as_echo "$ac_cv_search_getsockopt" >&6; }
10072 ac_res=$ac_cv_search_getsockopt
10073 if test "$ac_res" != no; then :
10074 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10075 case "$ac_cv_search_getsockopt" in
10076 'none required') ;;
10078 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
10083 # XXX Possible trouble here - reading the comments above and looking at the
10084 # code below I wonder if we'll add -lxnet when we don't need it.
10085 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
10086 # there when it is not needed?
10087 case "$ac_cv_search_getsockopt" in
10089 LIBS="-lxnet -lsocket $saved_LIBS"
10091 *) LIBS="-lsocket $saved_LIBS"
10096 { saved_LIBS=; unset saved_LIBS;}
10098 # Bug 2427 - look for recvmsg here.
10099 for ac_func in recvmsg
10101 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
10102 if test "x$ac_cv_func_recvmsg" = xyes; then :
10103 cat >>confdefs.h <<_ACEOF
10104 #define HAVE_RECVMSG 1
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10112 $as_echo_n "checking for inline... " >&6; }
10113 if ${ac_cv_c_inline+:} false; then :
10114 $as_echo_n "(cached) " >&6
10117 for ac_kw in inline __inline__ __inline; do
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10120 #ifndef __cplusplus
10122 static $ac_kw foo_t static_foo () {return 0; }
10123 $ac_kw foo_t foo () {return 0; }
10127 if ac_fn_c_try_compile "$LINENO"; then :
10128 ac_cv_c_inline=$ac_kw
10130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10131 test "$ac_cv_c_inline" != no && break
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10136 $as_echo "$ac_cv_c_inline" >&6; }
10138 case $ac_cv_c_inline in
10141 case $ac_cv_c_inline in
10143 *) ac_val=$ac_cv_c_inline;;
10145 cat >>confdefs.h <<_ACEOF
10146 #ifndef __cplusplus
10147 #define inline $ac_val
10154 case "$ac_cv_c_inline" in
10159 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
10165 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10166 if ${ac_cv_header_time+:} false; then :
10167 $as_echo_n "(cached) " >&6
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10171 #include <sys/types.h>
10172 #include <sys/time.h>
10178 if ((struct tm *) 0)
10184 if ac_fn_c_try_compile "$LINENO"; then :
10185 ac_cv_header_time=yes
10187 ac_cv_header_time=no
10189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
10192 $as_echo "$ac_cv_header_time" >&6; }
10193 if test $ac_cv_header_time = yes; then
10195 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
10199 # The cast to long int works around a bug in the HP C Compiler
10200 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10201 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10202 # This bug is HP SR number 8606223364.
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
10204 $as_echo_n "checking size of time_t... " >&6; }
10205 if ${ac_cv_sizeof_time_t+:} false; then :
10206 $as_echo_n "(cached) " >&6
10208 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
10211 if test "$ac_cv_type_time_t" = yes; then
10212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10214 as_fn_error 77 "cannot compute sizeof (time_t)
10215 See \`config.log' for more details" "$LINENO" 5; }
10217 ac_cv_sizeof_time_t=0
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
10223 $as_echo "$ac_cv_sizeof_time_t" >&6; }
10227 cat >>confdefs.h <<_ACEOF
10228 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
10233 $as_echo_n "checking whether char is unsigned... " >&6; }
10234 if ${ac_cv_c_char_unsigned+:} false; then :
10235 $as_echo_n "(cached) " >&6
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10239 $ac_includes_default
10243 static int test_array [1 - 2 * !(((char) -1) < 0)];
10244 test_array [0] = 0;
10245 return test_array [0];
10251 if ac_fn_c_try_compile "$LINENO"; then :
10252 ac_cv_c_char_unsigned=no
10254 ac_cv_c_char_unsigned=yes
10256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
10259 $as_echo "$ac_cv_c_char_unsigned" >&6; }
10260 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
10261 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
10264 # The cast to long int works around a bug in the HP C Compiler
10265 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10266 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10267 # This bug is HP SR number 8606223364.
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
10269 $as_echo_n "checking size of signed char... " >&6; }
10270 if ${ac_cv_sizeof_signed_char+:} false; then :
10271 $as_echo_n "(cached) " >&6
10273 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
10276 if test "$ac_cv_type_signed_char" = yes; then
10277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10279 as_fn_error 77 "cannot compute sizeof (signed char)
10280 See \`config.log' for more details" "$LINENO" 5; }
10282 ac_cv_sizeof_signed_char=0
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
10288 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
10292 cat >>confdefs.h <<_ACEOF
10293 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
10297 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
10298 if test "x$ac_cv_type_s_char" = xyes; then :
10300 cat >>confdefs.h <<_ACEOF
10301 #define HAVE_S_CHAR 1
10306 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
10307 if test "x$ac_cv_type_long_long" = xyes; then :
10309 cat >>confdefs.h <<_ACEOF
10310 #define HAVE_LONG_LONG 1
10316 # The cast to long int works around a bug in the HP C Compiler
10317 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10318 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10319 # This bug is HP SR number 8606223364.
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10321 $as_echo_n "checking size of short... " >&6; }
10322 if ${ac_cv_sizeof_short+:} false; then :
10323 $as_echo_n "(cached) " >&6
10325 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10328 if test "$ac_cv_type_short" = yes; then
10329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10331 as_fn_error 77 "cannot compute sizeof (short)
10332 See \`config.log' for more details" "$LINENO" 5; }
10334 ac_cv_sizeof_short=0
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10340 $as_echo "$ac_cv_sizeof_short" >&6; }
10344 cat >>confdefs.h <<_ACEOF
10345 #define SIZEOF_SHORT $ac_cv_sizeof_short
10349 # The cast to long int works around a bug in the HP C Compiler
10350 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10351 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10352 # This bug is HP SR number 8606223364.
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10354 $as_echo_n "checking size of int... " >&6; }
10355 if ${ac_cv_sizeof_int+:} false; then :
10356 $as_echo_n "(cached) " >&6
10358 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10361 if test "$ac_cv_type_int" = yes; then
10362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10364 as_fn_error 77 "cannot compute sizeof (int)
10365 See \`config.log' for more details" "$LINENO" 5; }
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10373 $as_echo "$ac_cv_sizeof_int" >&6; }
10377 cat >>confdefs.h <<_ACEOF
10378 #define SIZEOF_INT $ac_cv_sizeof_int
10382 # The cast to long int works around a bug in the HP C Compiler
10383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10385 # This bug is HP SR number 8606223364.
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10387 $as_echo_n "checking size of long... " >&6; }
10388 if ${ac_cv_sizeof_long+:} false; then :
10389 $as_echo_n "(cached) " >&6
10391 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10394 if test "$ac_cv_type_long" = yes; then
10395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10397 as_fn_error 77 "cannot compute sizeof (long)
10398 See \`config.log' for more details" "$LINENO" 5; }
10400 ac_cv_sizeof_long=0
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10406 $as_echo "$ac_cv_sizeof_long" >&6; }
10410 cat >>confdefs.h <<_ACEOF
10411 #define SIZEOF_LONG $ac_cv_sizeof_long
10416 case "$ac_cv_type_long_long" in
10420 # The cast to long int works around a bug in the HP C Compiler
10421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10423 # This bug is HP SR number 8606223364.
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10425 $as_echo_n "checking size of long long... " >&6; }
10426 if ${ac_cv_sizeof_long_long+:} false; then :
10427 $as_echo_n "(cached) " >&6
10429 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10432 if test "$ac_cv_type_long_long" = yes; then
10433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10435 as_fn_error 77 "cannot compute sizeof (long long)
10436 See \`config.log' for more details" "$LINENO" 5; }
10438 ac_cv_sizeof_long_long=0
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10444 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10448 cat >>confdefs.h <<_ACEOF
10449 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10456 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
10458 # We have a typedef for s_char. Might as well believe it...
10461 # We have signed chars, can't say 'signed char', no s_char typedef.
10463 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
10467 # We have signed chars, can say 'signed char', no s_char typedef.
10469 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
10473 # We have unsigned chars, can't say 'signed char', no s_char typedef.
10474 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
10477 # We have unsigned chars, can say 'signed char', no s_char typedef.
10479 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
10485 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10486 if ${ac_cv_type_uid_t+:} false; then :
10487 $as_echo_n "(cached) " >&6
10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10491 #include <sys/types.h>
10494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10495 $EGREP "uid_t" >/dev/null 2>&1; then :
10496 ac_cv_type_uid_t=yes
10498 ac_cv_type_uid_t=no
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
10504 $as_echo "$ac_cv_type_uid_t" >&6; }
10505 if test $ac_cv_type_uid_t = no; then
10507 $as_echo "#define uid_t int" >>confdefs.h
10510 $as_echo "#define gid_t int" >>confdefs.h
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
10520 $as_echo_n "checking if we're including debugging code... " >&6; }
10521 # Check whether --enable-debugging was given.
10522 if test "${enable_debugging+set}" = set; then :
10523 enableval=$enable_debugging; ntp_ok=$enableval
10532 $as_echo "#define DEBUG 1" >>confdefs.h
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
10536 $as_echo "$ntp_ok" >&6; }
10540 # check if we can compile with pthreads
10541 for ac_header in semaphore.h
10543 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
10544 if test "x$ac_cv_header_semaphore_h" = xyes; then :
10545 cat >>confdefs.h <<_ACEOF
10546 #define HAVE_SEMAPHORE_H 1
10553 for ac_func in socketpair
10555 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
10556 if test "x$ac_cv_func_socketpair" = xyes; then :
10557 cat >>confdefs.h <<_ACEOF
10558 #define HAVE_SOCKETPAIR 1
10564 # Check whether --enable-thread-support was given.
10565 if test "${enable_thread_support+set}" = set; then :
10566 enableval=$enable_thread_support;
10568 enable_thread_support=yes
10573 case "$enable_thread_support" in
10576 ol_found_pthreads=no
10581 ac_cpp='$CPP $CPPFLAGS'
10582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10586 # OpenLDAP --with-threads
10588 # Check whether --with-threads was given.
10589 if test "${with_threads+set}" = set; then :
10590 withval=$with_threads;
10592 for ol_val in auto nt posix mach pth lwp yes no manual ; do
10593 if test "$withval" = "$ol_val" ; then
10597 if test "$ol_arg" = "invalid" ; then
10598 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
10600 ol_with_threads="$ol_arg"
10603 ol_with_threads="auto"
10605 # end --with-threads
10608 case "$ol_with_threads$host" in
10609 auto*-*-solaris2.[0-6])
10617 *-*-aix*) if test -z "$CC" ; then
10618 case "$ol_with_threads" in
10619 auto | yes | posix) ol_aix_threads=yes ;;
10625 if test $ol_aix_threads = yes ; then
10626 if test -z "${CC}" ; then
10627 for ac_prog in cc_r xlc_r cc
10629 # Extract the first word of "$ac_prog", so it can be a program name with args.
10630 set dummy $ac_prog; ac_word=$2
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10632 $as_echo_n "checking for $ac_word... " >&6; }
10633 if ${ac_cv_prog_CC+:} false; then :
10634 $as_echo_n "(cached) " >&6
10636 if test -n "$CC"; then
10637 ac_cv_prog_CC="$CC" # Let the user override the test.
10639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10640 for as_dir in $PATH
10643 test -z "$as_dir" && as_dir=.
10644 for ac_exec_ext in '' $ac_executable_extensions; do
10645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10646 ac_cv_prog_CC="$ac_prog"
10647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10657 if test -n "$CC"; then
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10659 $as_echo "$CC" >&6; }
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10666 test -n "$CC" && break
10670 if test "$CC" = cc ; then
10671 if test $ol_with_threads != auto ; then
10672 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
10675 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
10681 case ${CC} in cc_r | xlc_r)
10682 ol_with_threads=posix
10683 ol_cv_pthread_create=yes
10689 # OpenLDAP --with-yielding_select
10691 # Check whether --with-yielding_select was given.
10692 if test "${with_yielding_select+set}" = set; then :
10693 withval=$with_yielding_select;
10695 for ol_val in auto yes no manual ; do
10696 if test "$withval" = "$ol_val" ; then
10700 if test "$ol_arg" = "invalid" ; then
10701 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
10703 ol_with_yielding_select="$ol_arg"
10706 ol_with_yielding_select="auto"
10708 # end --with-yielding_select
10711 case $ol_with_threads in auto | yes | nt)
10714 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
10715 if test "x$ac_cv_func__beginthread" = xyes; then :
10720 if test $ac_cv_func__beginthread = yes ; then
10722 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
10724 ol_cv_nt_threads=yes
10728 if test "$ol_cv_nt_threads" = yes ; then
10730 ol_with_threads=found
10731 ol_with_yielding_select=yes
10734 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
10737 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
10741 if test $ol_with_threads = nt ; then
10742 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
10747 case $ol_with_threads in auto | yes | posix)
10749 for ac_header in pthread.h
10751 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10752 if test "x$ac_cv_header_pthread_h" = xyes; then :
10753 cat >>confdefs.h <<_ACEOF
10754 #define HAVE_PTHREAD_H 1
10762 if test $ac_cv_header_pthread_h = yes ; then
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
10764 $as_echo_n "checking POSIX thread version... " >&6; }
10765 if ${ol_cv_pthread_version+:} false; then :
10766 $as_echo_n "(cached) " >&6
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10772 # include <pthread.h>
10778 int i = PTHREAD_CREATE_JOINABLE;
10784 if ac_fn_c_try_compile "$LINENO"; then :
10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h. */
10788 #include <pthread.h>
10791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10792 $EGREP "pthread_detach" >/dev/null 2>&1; then :
10793 ol_cv_pthread_version=10
10795 ol_cv_pthread_version=8
10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802 /* end confdefs.h. */
10804 # include <pthread.h>
10805 # ifdef PTHREAD_CREATE_UNDETACHED
10810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10811 $EGREP "draft7" >/dev/null 2>&1; then :
10812 ol_cv_pthread_version=7
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10817 #include <pthread.h>
10820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10821 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
10822 ol_cv_pthread_version=6
10825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10828 # include <pthread.h>
10829 #ifdef PTHREAD_MUTEX_INITIALIZER
10834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10835 $EGREP "draft5" >/dev/null 2>&1; then :
10836 ol_cv_pthread_version=5
10838 ol_cv_pthread_version=4
10849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
10853 $as_echo "$ol_cv_pthread_version" >&6; }
10856 if test $ol_cv_pthread_version != 0 ; then
10858 cat >>confdefs.h <<_ACEOF
10859 #define HAVE_PTHREADS $ol_cv_pthread_version
10863 as_fn_error $? "unknown pthread version" "$LINENO" 5
10866 # consider threads found
10867 ol_with_threads=found
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
10871 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
10872 if ${ol_cv_header_linux_threads+:} false; then :
10873 $as_echo_n "(cached) " >&6
10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10877 #include <pthread.h>
10879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10880 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
10881 ol_cv_header_linux_threads=yes
10883 ol_cv_header_linux_threads=no
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
10890 $as_echo "$ol_cv_header_linux_threads" >&6; }
10891 if test $ol_cv_header_linux_threads = yes; then
10893 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
10899 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
10900 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
10901 $as_echo_n "(cached) " >&6
10903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10904 /* end confdefs.h. */
10905 #include <pthread.h>
10906 #ifdef _POSIX_THREAD_IS_GNU_PTH
10911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10912 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
10913 ol_cv_header_gnu_pth_pthread_h=yes
10915 ol_cv_header_gnu_pth_pthread_h=no
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
10922 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
10925 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
10926 for ac_header in sched.h
10928 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
10929 if test "x$ac_cv_header_sched_h" = xyes; then :
10930 cat >>confdefs.h <<_ACEOF
10931 #define HAVE_SCHED_H 1
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
10942 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
10943 if ${ol_cv_pthread_create+:} false; then :
10944 $as_echo_n "(cached) " >&6
10947 if test "$cross_compiling" = yes; then :
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10951 /* pthread test headers */
10952 #include <pthread.h>
10953 #if HAVE_PTHREADS < 7
10957 #define NULL (void*)0
10960 static void *task(p)
10963 return (void *) (p == NULL);
10970 /* pthread test function */
10971 #ifndef PTHREAD_CREATE_DETACHED
10972 #define PTHREAD_CREATE_DETACHED 1
10976 int detach = PTHREAD_CREATE_DETACHED;
10978 #if HAVE_PTHREADS > 4
10979 /* Final pthreads */
10980 pthread_attr_t attr;
10982 status = pthread_attr_init(&attr);
10983 if( status ) return status;
10985 #if HAVE_PTHREADS < 7
10986 status = pthread_attr_setdetachstate(&attr, &detach);
10987 if( status < 0 ) status = errno;
10989 status = pthread_attr_setdetachstate(&attr, detach);
10991 if( status ) return status;
10992 status = pthread_create( &t, &attr, task, NULL );
10993 #if HAVE_PTHREADS < 7
10994 if( status < 0 ) status = errno;
10996 if( status ) return status;
10998 /* Draft 4 pthreads */
10999 status = pthread_create( &t, pthread_attr_default, task, NULL );
11000 if( status ) return errno;
11002 /* give thread a chance to complete */
11003 /* it should remain joinable and hence detachable */
11006 status = pthread_detach( &t );
11007 if( status ) return errno;
11010 #ifdef HAVE_LINUX_THREADS
11011 pthread_kill_other_threads_np();
11020 if ac_fn_c_try_link "$LINENO"; then :
11021 ol_cv_pthread_create=yes
11023 ol_cv_pthread_create=no
11025 rm -f core conftest.err conftest.$ac_objext \
11026 conftest$ac_exeext conftest.$ac_ext
11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11032 /* pthread test headers */
11033 #include <pthread.h>
11034 #if HAVE_PTHREADS < 7
11038 #define NULL (void*)0
11041 static void *task(p)
11044 return (void *) (p == NULL);
11048 int main(argc, argv)
11053 /* pthread test function */
11054 #ifndef PTHREAD_CREATE_DETACHED
11055 #define PTHREAD_CREATE_DETACHED 1
11059 int detach = PTHREAD_CREATE_DETACHED;
11061 #if HAVE_PTHREADS > 4
11062 /* Final pthreads */
11063 pthread_attr_t attr;
11065 status = pthread_attr_init(&attr);
11066 if( status ) return status;
11068 #if HAVE_PTHREADS < 7
11069 status = pthread_attr_setdetachstate(&attr, &detach);
11070 if( status < 0 ) status = errno;
11072 status = pthread_attr_setdetachstate(&attr, detach);
11074 if( status ) return status;
11075 status = pthread_create( &t, &attr, task, NULL );
11076 #if HAVE_PTHREADS < 7
11077 if( status < 0 ) status = errno;
11079 if( status ) return status;
11081 /* Draft 4 pthreads */
11082 status = pthread_create( &t, pthread_attr_default, task, NULL );
11083 if( status ) return errno;
11085 /* give thread a chance to complete */
11086 /* it should remain joinable and hence detachable */
11089 status = pthread_detach( &t );
11090 if( status ) return errno;
11093 #ifdef HAVE_LINUX_THREADS
11094 pthread_kill_other_threads_np();
11102 if ac_fn_c_try_run "$LINENO"; then :
11103 ol_cv_pthread_create=yes
11105 ol_cv_pthread_create=no
11107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11108 conftest.$ac_objext conftest.beam conftest.$ac_ext
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
11113 $as_echo "$ol_cv_pthread_create" >&6; }
11115 if test $ol_cv_pthread_create != no ; then
11116 ol_link_threads=posix
11117 ol_link_pthreads=""
11120 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11121 if test "$ol_link_threads" = no ; then
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
11124 $as_echo_n "checking for pthread link with -kthread... " >&6; }
11125 if ${ol_cv_pthread_kthread+:} false; then :
11126 $as_echo_n "(cached) " >&6
11131 LIBS="-kthread $LIBS"
11133 if test "$cross_compiling" = yes; then :
11134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135 /* end confdefs.h. */
11137 /* pthread test headers */
11138 #include <pthread.h>
11139 #if HAVE_PTHREADS < 7
11143 #define NULL (void*)0
11146 static void *task(p)
11149 return (void *) (p == NULL);
11156 /* pthread test function */
11157 #ifndef PTHREAD_CREATE_DETACHED
11158 #define PTHREAD_CREATE_DETACHED 1
11162 int detach = PTHREAD_CREATE_DETACHED;
11164 #if HAVE_PTHREADS > 4
11165 /* Final pthreads */
11166 pthread_attr_t attr;
11168 status = pthread_attr_init(&attr);
11169 if( status ) return status;
11171 #if HAVE_PTHREADS < 7
11172 status = pthread_attr_setdetachstate(&attr, &detach);
11173 if( status < 0 ) status = errno;
11175 status = pthread_attr_setdetachstate(&attr, detach);
11177 if( status ) return status;
11178 status = pthread_create( &t, &attr, task, NULL );
11179 #if HAVE_PTHREADS < 7
11180 if( status < 0 ) status = errno;
11182 if( status ) return status;
11184 /* Draft 4 pthreads */
11185 status = pthread_create( &t, pthread_attr_default, task, NULL );
11186 if( status ) return errno;
11188 /* give thread a chance to complete */
11189 /* it should remain joinable and hence detachable */
11192 status = pthread_detach( &t );
11193 if( status ) return errno;
11196 #ifdef HAVE_LINUX_THREADS
11197 pthread_kill_other_threads_np();
11206 if ac_fn_c_try_link "$LINENO"; then :
11207 ol_cv_pthread_kthread=yes
11209 ol_cv_pthread_kthread=no
11211 rm -f core conftest.err conftest.$ac_objext \
11212 conftest$ac_exeext conftest.$ac_ext
11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11218 /* pthread test headers */
11219 #include <pthread.h>
11220 #if HAVE_PTHREADS < 7
11224 #define NULL (void*)0
11227 static void *task(p)
11230 return (void *) (p == NULL);
11234 int main(argc, argv)
11239 /* pthread test function */
11240 #ifndef PTHREAD_CREATE_DETACHED
11241 #define PTHREAD_CREATE_DETACHED 1
11245 int detach = PTHREAD_CREATE_DETACHED;
11247 #if HAVE_PTHREADS > 4
11248 /* Final pthreads */
11249 pthread_attr_t attr;
11251 status = pthread_attr_init(&attr);
11252 if( status ) return status;
11254 #if HAVE_PTHREADS < 7
11255 status = pthread_attr_setdetachstate(&attr, &detach);
11256 if( status < 0 ) status = errno;
11258 status = pthread_attr_setdetachstate(&attr, detach);
11260 if( status ) return status;
11261 status = pthread_create( &t, &attr, task, NULL );
11262 #if HAVE_PTHREADS < 7
11263 if( status < 0 ) status = errno;
11265 if( status ) return status;
11267 /* Draft 4 pthreads */
11268 status = pthread_create( &t, pthread_attr_default, task, NULL );
11269 if( status ) return errno;
11271 /* give thread a chance to complete */
11272 /* it should remain joinable and hence detachable */
11275 status = pthread_detach( &t );
11276 if( status ) return errno;
11279 #ifdef HAVE_LINUX_THREADS
11280 pthread_kill_other_threads_np();
11288 if ac_fn_c_try_run "$LINENO"; then :
11289 ol_cv_pthread_kthread=yes
11291 ol_cv_pthread_kthread=no
11293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11294 conftest.$ac_objext conftest.beam conftest.$ac_ext
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
11303 $as_echo "$ol_cv_pthread_kthread" >&6; }
11305 if test $ol_cv_pthread_kthread = yes ; then
11306 ol_link_pthreads="-kthread"
11307 ol_link_threads=posix
11311 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11312 if test "$ol_link_threads" = no ; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
11315 $as_echo_n "checking for pthread link with -pthread... " >&6; }
11316 if ${ol_cv_pthread_pthread+:} false; then :
11317 $as_echo_n "(cached) " >&6
11322 LIBS="-pthread $LIBS"
11324 if test "$cross_compiling" = yes; then :
11325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11326 /* end confdefs.h. */
11328 /* pthread test headers */
11329 #include <pthread.h>
11330 #if HAVE_PTHREADS < 7
11334 #define NULL (void*)0
11337 static void *task(p)
11340 return (void *) (p == NULL);
11347 /* pthread test function */
11348 #ifndef PTHREAD_CREATE_DETACHED
11349 #define PTHREAD_CREATE_DETACHED 1
11353 int detach = PTHREAD_CREATE_DETACHED;
11355 #if HAVE_PTHREADS > 4
11356 /* Final pthreads */
11357 pthread_attr_t attr;
11359 status = pthread_attr_init(&attr);
11360 if( status ) return status;
11362 #if HAVE_PTHREADS < 7
11363 status = pthread_attr_setdetachstate(&attr, &detach);
11364 if( status < 0 ) status = errno;
11366 status = pthread_attr_setdetachstate(&attr, detach);
11368 if( status ) return status;
11369 status = pthread_create( &t, &attr, task, NULL );
11370 #if HAVE_PTHREADS < 7
11371 if( status < 0 ) status = errno;
11373 if( status ) return status;
11375 /* Draft 4 pthreads */
11376 status = pthread_create( &t, pthread_attr_default, task, NULL );
11377 if( status ) return errno;
11379 /* give thread a chance to complete */
11380 /* it should remain joinable and hence detachable */
11383 status = pthread_detach( &t );
11384 if( status ) return errno;
11387 #ifdef HAVE_LINUX_THREADS
11388 pthread_kill_other_threads_np();
11397 if ac_fn_c_try_link "$LINENO"; then :
11398 ol_cv_pthread_pthread=yes
11400 ol_cv_pthread_pthread=no
11402 rm -f core conftest.err conftest.$ac_objext \
11403 conftest$ac_exeext conftest.$ac_ext
11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h. */
11409 /* pthread test headers */
11410 #include <pthread.h>
11411 #if HAVE_PTHREADS < 7
11415 #define NULL (void*)0
11418 static void *task(p)
11421 return (void *) (p == NULL);
11425 int main(argc, argv)
11430 /* pthread test function */
11431 #ifndef PTHREAD_CREATE_DETACHED
11432 #define PTHREAD_CREATE_DETACHED 1
11436 int detach = PTHREAD_CREATE_DETACHED;
11438 #if HAVE_PTHREADS > 4
11439 /* Final pthreads */
11440 pthread_attr_t attr;
11442 status = pthread_attr_init(&attr);
11443 if( status ) return status;
11445 #if HAVE_PTHREADS < 7
11446 status = pthread_attr_setdetachstate(&attr, &detach);
11447 if( status < 0 ) status = errno;
11449 status = pthread_attr_setdetachstate(&attr, detach);
11451 if( status ) return status;
11452 status = pthread_create( &t, &attr, task, NULL );
11453 #if HAVE_PTHREADS < 7
11454 if( status < 0 ) status = errno;
11456 if( status ) return status;
11458 /* Draft 4 pthreads */
11459 status = pthread_create( &t, pthread_attr_default, task, NULL );
11460 if( status ) return errno;
11462 /* give thread a chance to complete */
11463 /* it should remain joinable and hence detachable */
11466 status = pthread_detach( &t );
11467 if( status ) return errno;
11470 #ifdef HAVE_LINUX_THREADS
11471 pthread_kill_other_threads_np();
11479 if ac_fn_c_try_run "$LINENO"; then :
11480 ol_cv_pthread_pthread=yes
11482 ol_cv_pthread_pthread=no
11484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11485 conftest.$ac_objext conftest.beam conftest.$ac_ext
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
11494 $as_echo "$ol_cv_pthread_pthread" >&6; }
11496 if test $ol_cv_pthread_pthread = yes ; then
11497 ol_link_pthreads="-pthread"
11498 ol_link_threads=posix
11502 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
11503 if test "$ol_link_threads" = no ; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
11506 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
11507 if ${ol_cv_pthread_pthreads+:} false; then :
11508 $as_echo_n "(cached) " >&6
11513 LIBS="-pthreads $LIBS"
11515 if test "$cross_compiling" = yes; then :
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11519 /* pthread test headers */
11520 #include <pthread.h>
11521 #if HAVE_PTHREADS < 7
11525 #define NULL (void*)0
11528 static void *task(p)
11531 return (void *) (p == NULL);
11538 /* pthread test function */
11539 #ifndef PTHREAD_CREATE_DETACHED
11540 #define PTHREAD_CREATE_DETACHED 1
11544 int detach = PTHREAD_CREATE_DETACHED;
11546 #if HAVE_PTHREADS > 4
11547 /* Final pthreads */
11548 pthread_attr_t attr;
11550 status = pthread_attr_init(&attr);
11551 if( status ) return status;
11553 #if HAVE_PTHREADS < 7
11554 status = pthread_attr_setdetachstate(&attr, &detach);
11555 if( status < 0 ) status = errno;
11557 status = pthread_attr_setdetachstate(&attr, detach);
11559 if( status ) return status;
11560 status = pthread_create( &t, &attr, task, NULL );
11561 #if HAVE_PTHREADS < 7
11562 if( status < 0 ) status = errno;
11564 if( status ) return status;
11566 /* Draft 4 pthreads */
11567 status = pthread_create( &t, pthread_attr_default, task, NULL );
11568 if( status ) return errno;
11570 /* give thread a chance to complete */
11571 /* it should remain joinable and hence detachable */
11574 status = pthread_detach( &t );
11575 if( status ) return errno;
11578 #ifdef HAVE_LINUX_THREADS
11579 pthread_kill_other_threads_np();
11588 if ac_fn_c_try_link "$LINENO"; then :
11589 ol_cv_pthread_pthreads=yes
11591 ol_cv_pthread_pthreads=no
11593 rm -f core conftest.err conftest.$ac_objext \
11594 conftest$ac_exeext conftest.$ac_ext
11596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597 /* end confdefs.h. */
11600 /* pthread test headers */
11601 #include <pthread.h>
11602 #if HAVE_PTHREADS < 7
11606 #define NULL (void*)0
11609 static void *task(p)
11612 return (void *) (p == NULL);
11616 int main(argc, argv)
11621 /* pthread test function */
11622 #ifndef PTHREAD_CREATE_DETACHED
11623 #define PTHREAD_CREATE_DETACHED 1
11627 int detach = PTHREAD_CREATE_DETACHED;
11629 #if HAVE_PTHREADS > 4
11630 /* Final pthreads */
11631 pthread_attr_t attr;
11633 status = pthread_attr_init(&attr);
11634 if( status ) return status;
11636 #if HAVE_PTHREADS < 7
11637 status = pthread_attr_setdetachstate(&attr, &detach);
11638 if( status < 0 ) status = errno;
11640 status = pthread_attr_setdetachstate(&attr, detach);
11642 if( status ) return status;
11643 status = pthread_create( &t, &attr, task, NULL );
11644 #if HAVE_PTHREADS < 7
11645 if( status < 0 ) status = errno;
11647 if( status ) return status;
11649 /* Draft 4 pthreads */
11650 status = pthread_create( &t, pthread_attr_default, task, NULL );
11651 if( status ) return errno;
11653 /* give thread a chance to complete */
11654 /* it should remain joinable and hence detachable */
11657 status = pthread_detach( &t );
11658 if( status ) return errno;
11661 #ifdef HAVE_LINUX_THREADS
11662 pthread_kill_other_threads_np();
11670 if ac_fn_c_try_run "$LINENO"; then :
11671 ol_cv_pthread_pthreads=yes
11673 ol_cv_pthread_pthreads=no
11675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11676 conftest.$ac_objext conftest.beam conftest.$ac_ext
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
11685 $as_echo "$ol_cv_pthread_pthreads" >&6; }
11687 if test $ol_cv_pthread_pthreads = yes ; then
11688 ol_link_pthreads="-pthreads"
11689 ol_link_threads=posix
11693 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
11694 if test "$ol_link_threads" = no ; then
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
11697 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
11698 if ${ol_cv_pthread_mthreads+:} false; then :
11699 $as_echo_n "(cached) " >&6
11704 LIBS="-mthreads $LIBS"
11706 if test "$cross_compiling" = yes; then :
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11710 /* pthread test headers */
11711 #include <pthread.h>
11712 #if HAVE_PTHREADS < 7
11716 #define NULL (void*)0
11719 static void *task(p)
11722 return (void *) (p == NULL);
11729 /* pthread test function */
11730 #ifndef PTHREAD_CREATE_DETACHED
11731 #define PTHREAD_CREATE_DETACHED 1
11735 int detach = PTHREAD_CREATE_DETACHED;
11737 #if HAVE_PTHREADS > 4
11738 /* Final pthreads */
11739 pthread_attr_t attr;
11741 status = pthread_attr_init(&attr);
11742 if( status ) return status;
11744 #if HAVE_PTHREADS < 7
11745 status = pthread_attr_setdetachstate(&attr, &detach);
11746 if( status < 0 ) status = errno;
11748 status = pthread_attr_setdetachstate(&attr, detach);
11750 if( status ) return status;
11751 status = pthread_create( &t, &attr, task, NULL );
11752 #if HAVE_PTHREADS < 7
11753 if( status < 0 ) status = errno;
11755 if( status ) return status;
11757 /* Draft 4 pthreads */
11758 status = pthread_create( &t, pthread_attr_default, task, NULL );
11759 if( status ) return errno;
11761 /* give thread a chance to complete */
11762 /* it should remain joinable and hence detachable */
11765 status = pthread_detach( &t );
11766 if( status ) return errno;
11769 #ifdef HAVE_LINUX_THREADS
11770 pthread_kill_other_threads_np();
11779 if ac_fn_c_try_link "$LINENO"; then :
11780 ol_cv_pthread_mthreads=yes
11782 ol_cv_pthread_mthreads=no
11784 rm -f core conftest.err conftest.$ac_objext \
11785 conftest$ac_exeext conftest.$ac_ext
11787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h. */
11791 /* pthread test headers */
11792 #include <pthread.h>
11793 #if HAVE_PTHREADS < 7
11797 #define NULL (void*)0
11800 static void *task(p)
11803 return (void *) (p == NULL);
11807 int main(argc, argv)
11812 /* pthread test function */
11813 #ifndef PTHREAD_CREATE_DETACHED
11814 #define PTHREAD_CREATE_DETACHED 1
11818 int detach = PTHREAD_CREATE_DETACHED;
11820 #if HAVE_PTHREADS > 4
11821 /* Final pthreads */
11822 pthread_attr_t attr;
11824 status = pthread_attr_init(&attr);
11825 if( status ) return status;
11827 #if HAVE_PTHREADS < 7
11828 status = pthread_attr_setdetachstate(&attr, &detach);
11829 if( status < 0 ) status = errno;
11831 status = pthread_attr_setdetachstate(&attr, detach);
11833 if( status ) return status;
11834 status = pthread_create( &t, &attr, task, NULL );
11835 #if HAVE_PTHREADS < 7
11836 if( status < 0 ) status = errno;
11838 if( status ) return status;
11840 /* Draft 4 pthreads */
11841 status = pthread_create( &t, pthread_attr_default, task, NULL );
11842 if( status ) return errno;
11844 /* give thread a chance to complete */
11845 /* it should remain joinable and hence detachable */
11848 status = pthread_detach( &t );
11849 if( status ) return errno;
11852 #ifdef HAVE_LINUX_THREADS
11853 pthread_kill_other_threads_np();
11861 if ac_fn_c_try_run "$LINENO"; then :
11862 ol_cv_pthread_mthreads=yes
11864 ol_cv_pthread_mthreads=no
11866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11867 conftest.$ac_objext conftest.beam conftest.$ac_ext
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
11876 $as_echo "$ol_cv_pthread_mthreads" >&6; }
11878 if test $ol_cv_pthread_mthreads = yes ; then
11879 ol_link_pthreads="-mthreads"
11880 ol_link_threads=posix
11884 # Pthread try link: -thread (ol_cv_pthread_thread)
11885 if test "$ol_link_threads" = no ; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
11888 $as_echo_n "checking for pthread link with -thread... " >&6; }
11889 if ${ol_cv_pthread_thread+:} false; then :
11890 $as_echo_n "(cached) " >&6
11895 LIBS="-thread $LIBS"
11897 if test "$cross_compiling" = yes; then :
11898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h. */
11901 /* pthread test headers */
11902 #include <pthread.h>
11903 #if HAVE_PTHREADS < 7
11907 #define NULL (void*)0
11910 static void *task(p)
11913 return (void *) (p == NULL);
11920 /* pthread test function */
11921 #ifndef PTHREAD_CREATE_DETACHED
11922 #define PTHREAD_CREATE_DETACHED 1
11926 int detach = PTHREAD_CREATE_DETACHED;
11928 #if HAVE_PTHREADS > 4
11929 /* Final pthreads */
11930 pthread_attr_t attr;
11932 status = pthread_attr_init(&attr);
11933 if( status ) return status;
11935 #if HAVE_PTHREADS < 7
11936 status = pthread_attr_setdetachstate(&attr, &detach);
11937 if( status < 0 ) status = errno;
11939 status = pthread_attr_setdetachstate(&attr, detach);
11941 if( status ) return status;
11942 status = pthread_create( &t, &attr, task, NULL );
11943 #if HAVE_PTHREADS < 7
11944 if( status < 0 ) status = errno;
11946 if( status ) return status;
11948 /* Draft 4 pthreads */
11949 status = pthread_create( &t, pthread_attr_default, task, NULL );
11950 if( status ) return errno;
11952 /* give thread a chance to complete */
11953 /* it should remain joinable and hence detachable */
11956 status = pthread_detach( &t );
11957 if( status ) return errno;
11960 #ifdef HAVE_LINUX_THREADS
11961 pthread_kill_other_threads_np();
11970 if ac_fn_c_try_link "$LINENO"; then :
11971 ol_cv_pthread_thread=yes
11973 ol_cv_pthread_thread=no
11975 rm -f core conftest.err conftest.$ac_objext \
11976 conftest$ac_exeext conftest.$ac_ext
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11982 /* pthread test headers */
11983 #include <pthread.h>
11984 #if HAVE_PTHREADS < 7
11988 #define NULL (void*)0
11991 static void *task(p)
11994 return (void *) (p == NULL);
11998 int main(argc, argv)
12003 /* pthread test function */
12004 #ifndef PTHREAD_CREATE_DETACHED
12005 #define PTHREAD_CREATE_DETACHED 1
12009 int detach = PTHREAD_CREATE_DETACHED;
12011 #if HAVE_PTHREADS > 4
12012 /* Final pthreads */
12013 pthread_attr_t attr;
12015 status = pthread_attr_init(&attr);
12016 if( status ) return status;
12018 #if HAVE_PTHREADS < 7
12019 status = pthread_attr_setdetachstate(&attr, &detach);
12020 if( status < 0 ) status = errno;
12022 status = pthread_attr_setdetachstate(&attr, detach);
12024 if( status ) return status;
12025 status = pthread_create( &t, &attr, task, NULL );
12026 #if HAVE_PTHREADS < 7
12027 if( status < 0 ) status = errno;
12029 if( status ) return status;
12031 /* Draft 4 pthreads */
12032 status = pthread_create( &t, pthread_attr_default, task, NULL );
12033 if( status ) return errno;
12035 /* give thread a chance to complete */
12036 /* it should remain joinable and hence detachable */
12039 status = pthread_detach( &t );
12040 if( status ) return errno;
12043 #ifdef HAVE_LINUX_THREADS
12044 pthread_kill_other_threads_np();
12052 if ac_fn_c_try_run "$LINENO"; then :
12053 ol_cv_pthread_thread=yes
12055 ol_cv_pthread_thread=no
12057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12058 conftest.$ac_objext conftest.beam conftest.$ac_ext
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
12067 $as_echo "$ol_cv_pthread_thread" >&6; }
12069 if test $ol_cv_pthread_thread = yes ; then
12070 ol_link_pthreads="-thread"
12071 ol_link_threads=posix
12076 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12077 if test "$ol_link_threads" = no ; then
12078 # try -lpthread -lmach -lexc -lc_r
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12080 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
12081 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
12082 $as_echo_n "(cached) " >&6
12087 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12089 if test "$cross_compiling" = yes; then :
12090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091 /* end confdefs.h. */
12093 /* pthread test headers */
12094 #include <pthread.h>
12095 #if HAVE_PTHREADS < 7
12099 #define NULL (void*)0
12102 static void *task(p)
12105 return (void *) (p == NULL);
12112 /* pthread test function */
12113 #ifndef PTHREAD_CREATE_DETACHED
12114 #define PTHREAD_CREATE_DETACHED 1
12118 int detach = PTHREAD_CREATE_DETACHED;
12120 #if HAVE_PTHREADS > 4
12121 /* Final pthreads */
12122 pthread_attr_t attr;
12124 status = pthread_attr_init(&attr);
12125 if( status ) return status;
12127 #if HAVE_PTHREADS < 7
12128 status = pthread_attr_setdetachstate(&attr, &detach);
12129 if( status < 0 ) status = errno;
12131 status = pthread_attr_setdetachstate(&attr, detach);
12133 if( status ) return status;
12134 status = pthread_create( &t, &attr, task, NULL );
12135 #if HAVE_PTHREADS < 7
12136 if( status < 0 ) status = errno;
12138 if( status ) return status;
12140 /* Draft 4 pthreads */
12141 status = pthread_create( &t, pthread_attr_default, task, NULL );
12142 if( status ) return errno;
12144 /* give thread a chance to complete */
12145 /* it should remain joinable and hence detachable */
12148 status = pthread_detach( &t );
12149 if( status ) return errno;
12152 #ifdef HAVE_LINUX_THREADS
12153 pthread_kill_other_threads_np();
12162 if ac_fn_c_try_link "$LINENO"; then :
12163 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12165 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12167 rm -f core conftest.err conftest.$ac_objext \
12168 conftest$ac_exeext conftest.$ac_ext
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h. */
12174 /* pthread test headers */
12175 #include <pthread.h>
12176 #if HAVE_PTHREADS < 7
12180 #define NULL (void*)0
12183 static void *task(p)
12186 return (void *) (p == NULL);
12190 int main(argc, argv)
12195 /* pthread test function */
12196 #ifndef PTHREAD_CREATE_DETACHED
12197 #define PTHREAD_CREATE_DETACHED 1
12201 int detach = PTHREAD_CREATE_DETACHED;
12203 #if HAVE_PTHREADS > 4
12204 /* Final pthreads */
12205 pthread_attr_t attr;
12207 status = pthread_attr_init(&attr);
12208 if( status ) return status;
12210 #if HAVE_PTHREADS < 7
12211 status = pthread_attr_setdetachstate(&attr, &detach);
12212 if( status < 0 ) status = errno;
12214 status = pthread_attr_setdetachstate(&attr, detach);
12216 if( status ) return status;
12217 status = pthread_create( &t, &attr, task, NULL );
12218 #if HAVE_PTHREADS < 7
12219 if( status < 0 ) status = errno;
12221 if( status ) return status;
12223 /* Draft 4 pthreads */
12224 status = pthread_create( &t, pthread_attr_default, task, NULL );
12225 if( status ) return errno;
12227 /* give thread a chance to complete */
12228 /* it should remain joinable and hence detachable */
12231 status = pthread_detach( &t );
12232 if( status ) return errno;
12235 #ifdef HAVE_LINUX_THREADS
12236 pthread_kill_other_threads_np();
12244 if ac_fn_c_try_run "$LINENO"; then :
12245 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12247 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12250 conftest.$ac_objext conftest.beam conftest.$ac_ext
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
12259 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
12261 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12262 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12263 ol_link_threads=posix
12267 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12268 if test "$ol_link_threads" = no ; then
12269 # try -lpthread -lmach -lexc
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
12271 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
12272 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
12273 $as_echo_n "(cached) " >&6
12278 LIBS="-lpthread -lmach -lexc $LIBS"
12280 if test "$cross_compiling" = yes; then :
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h. */
12284 /* pthread test headers */
12285 #include <pthread.h>
12286 #if HAVE_PTHREADS < 7
12290 #define NULL (void*)0
12293 static void *task(p)
12296 return (void *) (p == NULL);
12303 /* pthread test function */
12304 #ifndef PTHREAD_CREATE_DETACHED
12305 #define PTHREAD_CREATE_DETACHED 1
12309 int detach = PTHREAD_CREATE_DETACHED;
12311 #if HAVE_PTHREADS > 4
12312 /* Final pthreads */
12313 pthread_attr_t attr;
12315 status = pthread_attr_init(&attr);
12316 if( status ) return status;
12318 #if HAVE_PTHREADS < 7
12319 status = pthread_attr_setdetachstate(&attr, &detach);
12320 if( status < 0 ) status = errno;
12322 status = pthread_attr_setdetachstate(&attr, detach);
12324 if( status ) return status;
12325 status = pthread_create( &t, &attr, task, NULL );
12326 #if HAVE_PTHREADS < 7
12327 if( status < 0 ) status = errno;
12329 if( status ) return status;
12331 /* Draft 4 pthreads */
12332 status = pthread_create( &t, pthread_attr_default, task, NULL );
12333 if( status ) return errno;
12335 /* give thread a chance to complete */
12336 /* it should remain joinable and hence detachable */
12339 status = pthread_detach( &t );
12340 if( status ) return errno;
12343 #ifdef HAVE_LINUX_THREADS
12344 pthread_kill_other_threads_np();
12353 if ac_fn_c_try_link "$LINENO"; then :
12354 ol_cv_pthread_lpthread_lmach_lexc=yes
12356 ol_cv_pthread_lpthread_lmach_lexc=no
12358 rm -f core conftest.err conftest.$ac_objext \
12359 conftest$ac_exeext conftest.$ac_ext
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12365 /* pthread test headers */
12366 #include <pthread.h>
12367 #if HAVE_PTHREADS < 7
12371 #define NULL (void*)0
12374 static void *task(p)
12377 return (void *) (p == NULL);
12381 int main(argc, argv)
12386 /* pthread test function */
12387 #ifndef PTHREAD_CREATE_DETACHED
12388 #define PTHREAD_CREATE_DETACHED 1
12392 int detach = PTHREAD_CREATE_DETACHED;
12394 #if HAVE_PTHREADS > 4
12395 /* Final pthreads */
12396 pthread_attr_t attr;
12398 status = pthread_attr_init(&attr);
12399 if( status ) return status;
12401 #if HAVE_PTHREADS < 7
12402 status = pthread_attr_setdetachstate(&attr, &detach);
12403 if( status < 0 ) status = errno;
12405 status = pthread_attr_setdetachstate(&attr, detach);
12407 if( status ) return status;
12408 status = pthread_create( &t, &attr, task, NULL );
12409 #if HAVE_PTHREADS < 7
12410 if( status < 0 ) status = errno;
12412 if( status ) return status;
12414 /* Draft 4 pthreads */
12415 status = pthread_create( &t, pthread_attr_default, task, NULL );
12416 if( status ) return errno;
12418 /* give thread a chance to complete */
12419 /* it should remain joinable and hence detachable */
12422 status = pthread_detach( &t );
12423 if( status ) return errno;
12426 #ifdef HAVE_LINUX_THREADS
12427 pthread_kill_other_threads_np();
12435 if ac_fn_c_try_run "$LINENO"; then :
12436 ol_cv_pthread_lpthread_lmach_lexc=yes
12438 ol_cv_pthread_lpthread_lmach_lexc=no
12440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12441 conftest.$ac_objext conftest.beam conftest.$ac_ext
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
12450 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
12452 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
12453 ol_link_pthreads="-lpthread -lmach -lexc"
12454 ol_link_threads=posix
12459 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
12460 if test "$ol_link_threads" = no ; then
12461 # try -lpthread -Wl,-woff,85
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
12463 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
12464 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
12465 $as_echo_n "(cached) " >&6
12470 LIBS="-lpthread -Wl,-woff,85 $LIBS"
12472 if test "$cross_compiling" = yes; then :
12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474 /* end confdefs.h. */
12476 /* pthread test headers */
12477 #include <pthread.h>
12478 #if HAVE_PTHREADS < 7
12482 #define NULL (void*)0
12485 static void *task(p)
12488 return (void *) (p == NULL);
12495 /* pthread test function */
12496 #ifndef PTHREAD_CREATE_DETACHED
12497 #define PTHREAD_CREATE_DETACHED 1
12501 int detach = PTHREAD_CREATE_DETACHED;
12503 #if HAVE_PTHREADS > 4
12504 /* Final pthreads */
12505 pthread_attr_t attr;
12507 status = pthread_attr_init(&attr);
12508 if( status ) return status;
12510 #if HAVE_PTHREADS < 7
12511 status = pthread_attr_setdetachstate(&attr, &detach);
12512 if( status < 0 ) status = errno;
12514 status = pthread_attr_setdetachstate(&attr, detach);
12516 if( status ) return status;
12517 status = pthread_create( &t, &attr, task, NULL );
12518 #if HAVE_PTHREADS < 7
12519 if( status < 0 ) status = errno;
12521 if( status ) return status;
12523 /* Draft 4 pthreads */
12524 status = pthread_create( &t, pthread_attr_default, task, NULL );
12525 if( status ) return errno;
12527 /* give thread a chance to complete */
12528 /* it should remain joinable and hence detachable */
12531 status = pthread_detach( &t );
12532 if( status ) return errno;
12535 #ifdef HAVE_LINUX_THREADS
12536 pthread_kill_other_threads_np();
12545 if ac_fn_c_try_link "$LINENO"; then :
12546 ol_cv_pthread_lib_lpthread_woff=yes
12548 ol_cv_pthread_lib_lpthread_woff=no
12550 rm -f core conftest.err conftest.$ac_objext \
12551 conftest$ac_exeext conftest.$ac_ext
12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12557 /* pthread test headers */
12558 #include <pthread.h>
12559 #if HAVE_PTHREADS < 7
12563 #define NULL (void*)0
12566 static void *task(p)
12569 return (void *) (p == NULL);
12573 int main(argc, argv)
12578 /* pthread test function */
12579 #ifndef PTHREAD_CREATE_DETACHED
12580 #define PTHREAD_CREATE_DETACHED 1
12584 int detach = PTHREAD_CREATE_DETACHED;
12586 #if HAVE_PTHREADS > 4
12587 /* Final pthreads */
12588 pthread_attr_t attr;
12590 status = pthread_attr_init(&attr);
12591 if( status ) return status;
12593 #if HAVE_PTHREADS < 7
12594 status = pthread_attr_setdetachstate(&attr, &detach);
12595 if( status < 0 ) status = errno;
12597 status = pthread_attr_setdetachstate(&attr, detach);
12599 if( status ) return status;
12600 status = pthread_create( &t, &attr, task, NULL );
12601 #if HAVE_PTHREADS < 7
12602 if( status < 0 ) status = errno;
12604 if( status ) return status;
12606 /* Draft 4 pthreads */
12607 status = pthread_create( &t, pthread_attr_default, task, NULL );
12608 if( status ) return errno;
12610 /* give thread a chance to complete */
12611 /* it should remain joinable and hence detachable */
12614 status = pthread_detach( &t );
12615 if( status ) return errno;
12618 #ifdef HAVE_LINUX_THREADS
12619 pthread_kill_other_threads_np();
12627 if ac_fn_c_try_run "$LINENO"; then :
12628 ol_cv_pthread_lib_lpthread_woff=yes
12630 ol_cv_pthread_lib_lpthread_woff=no
12632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12633 conftest.$ac_objext conftest.beam conftest.$ac_ext
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
12642 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
12644 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
12645 ol_link_pthreads="-lpthread -Wl,-woff,85"
12646 ol_link_threads=posix
12651 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
12652 if test "$ol_link_threads" = no ; then
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
12655 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
12656 if ${ol_cv_pthread_lpthread+:} false; then :
12657 $as_echo_n "(cached) " >&6
12662 LIBS="-lpthread $LIBS"
12664 if test "$cross_compiling" = yes; then :
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12668 /* pthread test headers */
12669 #include <pthread.h>
12670 #if HAVE_PTHREADS < 7
12674 #define NULL (void*)0
12677 static void *task(p)
12680 return (void *) (p == NULL);
12687 /* pthread test function */
12688 #ifndef PTHREAD_CREATE_DETACHED
12689 #define PTHREAD_CREATE_DETACHED 1
12693 int detach = PTHREAD_CREATE_DETACHED;
12695 #if HAVE_PTHREADS > 4
12696 /* Final pthreads */
12697 pthread_attr_t attr;
12699 status = pthread_attr_init(&attr);
12700 if( status ) return status;
12702 #if HAVE_PTHREADS < 7
12703 status = pthread_attr_setdetachstate(&attr, &detach);
12704 if( status < 0 ) status = errno;
12706 status = pthread_attr_setdetachstate(&attr, detach);
12708 if( status ) return status;
12709 status = pthread_create( &t, &attr, task, NULL );
12710 #if HAVE_PTHREADS < 7
12711 if( status < 0 ) status = errno;
12713 if( status ) return status;
12715 /* Draft 4 pthreads */
12716 status = pthread_create( &t, pthread_attr_default, task, NULL );
12717 if( status ) return errno;
12719 /* give thread a chance to complete */
12720 /* it should remain joinable and hence detachable */
12723 status = pthread_detach( &t );
12724 if( status ) return errno;
12727 #ifdef HAVE_LINUX_THREADS
12728 pthread_kill_other_threads_np();
12737 if ac_fn_c_try_link "$LINENO"; then :
12738 ol_cv_pthread_lpthread=yes
12740 ol_cv_pthread_lpthread=no
12742 rm -f core conftest.err conftest.$ac_objext \
12743 conftest$ac_exeext conftest.$ac_ext
12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h. */
12749 /* pthread test headers */
12750 #include <pthread.h>
12751 #if HAVE_PTHREADS < 7
12755 #define NULL (void*)0
12758 static void *task(p)
12761 return (void *) (p == NULL);
12765 int main(argc, argv)
12770 /* pthread test function */
12771 #ifndef PTHREAD_CREATE_DETACHED
12772 #define PTHREAD_CREATE_DETACHED 1
12776 int detach = PTHREAD_CREATE_DETACHED;
12778 #if HAVE_PTHREADS > 4
12779 /* Final pthreads */
12780 pthread_attr_t attr;
12782 status = pthread_attr_init(&attr);
12783 if( status ) return status;
12785 #if HAVE_PTHREADS < 7
12786 status = pthread_attr_setdetachstate(&attr, &detach);
12787 if( status < 0 ) status = errno;
12789 status = pthread_attr_setdetachstate(&attr, detach);
12791 if( status ) return status;
12792 status = pthread_create( &t, &attr, task, NULL );
12793 #if HAVE_PTHREADS < 7
12794 if( status < 0 ) status = errno;
12796 if( status ) return status;
12798 /* Draft 4 pthreads */
12799 status = pthread_create( &t, pthread_attr_default, task, NULL );
12800 if( status ) return errno;
12802 /* give thread a chance to complete */
12803 /* it should remain joinable and hence detachable */
12806 status = pthread_detach( &t );
12807 if( status ) return errno;
12810 #ifdef HAVE_LINUX_THREADS
12811 pthread_kill_other_threads_np();
12819 if ac_fn_c_try_run "$LINENO"; then :
12820 ol_cv_pthread_lpthread=yes
12822 ol_cv_pthread_lpthread=no
12824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12825 conftest.$ac_objext conftest.beam conftest.$ac_ext
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
12834 $as_echo "$ol_cv_pthread_lpthread" >&6; }
12836 if test $ol_cv_pthread_lpthread = yes ; then
12837 ol_link_pthreads="-lpthread"
12838 ol_link_threads=posix
12842 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
12843 if test "$ol_link_threads" = no ; then
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
12846 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
12847 if ${ol_cv_pthread_lc_r+:} false; then :
12848 $as_echo_n "(cached) " >&6
12855 if test "$cross_compiling" = yes; then :
12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h. */
12859 /* pthread test headers */
12860 #include <pthread.h>
12861 #if HAVE_PTHREADS < 7
12865 #define NULL (void*)0
12868 static void *task(p)
12871 return (void *) (p == NULL);
12878 /* pthread test function */
12879 #ifndef PTHREAD_CREATE_DETACHED
12880 #define PTHREAD_CREATE_DETACHED 1
12884 int detach = PTHREAD_CREATE_DETACHED;
12886 #if HAVE_PTHREADS > 4
12887 /* Final pthreads */
12888 pthread_attr_t attr;
12890 status = pthread_attr_init(&attr);
12891 if( status ) return status;
12893 #if HAVE_PTHREADS < 7
12894 status = pthread_attr_setdetachstate(&attr, &detach);
12895 if( status < 0 ) status = errno;
12897 status = pthread_attr_setdetachstate(&attr, detach);
12899 if( status ) return status;
12900 status = pthread_create( &t, &attr, task, NULL );
12901 #if HAVE_PTHREADS < 7
12902 if( status < 0 ) status = errno;
12904 if( status ) return status;
12906 /* Draft 4 pthreads */
12907 status = pthread_create( &t, pthread_attr_default, task, NULL );
12908 if( status ) return errno;
12910 /* give thread a chance to complete */
12911 /* it should remain joinable and hence detachable */
12914 status = pthread_detach( &t );
12915 if( status ) return errno;
12918 #ifdef HAVE_LINUX_THREADS
12919 pthread_kill_other_threads_np();
12928 if ac_fn_c_try_link "$LINENO"; then :
12929 ol_cv_pthread_lc_r=yes
12931 ol_cv_pthread_lc_r=no
12933 rm -f core conftest.err conftest.$ac_objext \
12934 conftest$ac_exeext conftest.$ac_ext
12936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12937 /* end confdefs.h. */
12940 /* pthread test headers */
12941 #include <pthread.h>
12942 #if HAVE_PTHREADS < 7
12946 #define NULL (void*)0
12949 static void *task(p)
12952 return (void *) (p == NULL);
12956 int main(argc, argv)
12961 /* pthread test function */
12962 #ifndef PTHREAD_CREATE_DETACHED
12963 #define PTHREAD_CREATE_DETACHED 1
12967 int detach = PTHREAD_CREATE_DETACHED;
12969 #if HAVE_PTHREADS > 4
12970 /* Final pthreads */
12971 pthread_attr_t attr;
12973 status = pthread_attr_init(&attr);
12974 if( status ) return status;
12976 #if HAVE_PTHREADS < 7
12977 status = pthread_attr_setdetachstate(&attr, &detach);
12978 if( status < 0 ) status = errno;
12980 status = pthread_attr_setdetachstate(&attr, detach);
12982 if( status ) return status;
12983 status = pthread_create( &t, &attr, task, NULL );
12984 #if HAVE_PTHREADS < 7
12985 if( status < 0 ) status = errno;
12987 if( status ) return status;
12989 /* Draft 4 pthreads */
12990 status = pthread_create( &t, pthread_attr_default, task, NULL );
12991 if( status ) return errno;
12993 /* give thread a chance to complete */
12994 /* it should remain joinable and hence detachable */
12997 status = pthread_detach( &t );
12998 if( status ) return errno;
13001 #ifdef HAVE_LINUX_THREADS
13002 pthread_kill_other_threads_np();
13010 if ac_fn_c_try_run "$LINENO"; then :
13011 ol_cv_pthread_lc_r=yes
13013 ol_cv_pthread_lc_r=no
13015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13016 conftest.$ac_objext conftest.beam conftest.$ac_ext
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
13025 $as_echo "$ol_cv_pthread_lc_r" >&6; }
13027 if test $ol_cv_pthread_lc_r = yes ; then
13028 ol_link_pthreads="-lc_r"
13029 ol_link_threads=posix
13034 # Pthread try link: -threads (ol_cv_pthread_threads)
13035 if test "$ol_link_threads" = no ; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
13038 $as_echo_n "checking for pthread link with -threads... " >&6; }
13039 if ${ol_cv_pthread_threads+:} false; then :
13040 $as_echo_n "(cached) " >&6
13045 LIBS="-threads $LIBS"
13047 if test "$cross_compiling" = yes; then :
13048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049 /* end confdefs.h. */
13051 /* pthread test headers */
13052 #include <pthread.h>
13053 #if HAVE_PTHREADS < 7
13057 #define NULL (void*)0
13060 static void *task(p)
13063 return (void *) (p == NULL);
13070 /* pthread test function */
13071 #ifndef PTHREAD_CREATE_DETACHED
13072 #define PTHREAD_CREATE_DETACHED 1
13076 int detach = PTHREAD_CREATE_DETACHED;
13078 #if HAVE_PTHREADS > 4
13079 /* Final pthreads */
13080 pthread_attr_t attr;
13082 status = pthread_attr_init(&attr);
13083 if( status ) return status;
13085 #if HAVE_PTHREADS < 7
13086 status = pthread_attr_setdetachstate(&attr, &detach);
13087 if( status < 0 ) status = errno;
13089 status = pthread_attr_setdetachstate(&attr, detach);
13091 if( status ) return status;
13092 status = pthread_create( &t, &attr, task, NULL );
13093 #if HAVE_PTHREADS < 7
13094 if( status < 0 ) status = errno;
13096 if( status ) return status;
13098 /* Draft 4 pthreads */
13099 status = pthread_create( &t, pthread_attr_default, task, NULL );
13100 if( status ) return errno;
13102 /* give thread a chance to complete */
13103 /* it should remain joinable and hence detachable */
13106 status = pthread_detach( &t );
13107 if( status ) return errno;
13110 #ifdef HAVE_LINUX_THREADS
13111 pthread_kill_other_threads_np();
13120 if ac_fn_c_try_link "$LINENO"; then :
13121 ol_cv_pthread_threads=yes
13123 ol_cv_pthread_threads=no
13125 rm -f core conftest.err conftest.$ac_objext \
13126 conftest$ac_exeext conftest.$ac_ext
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13132 /* pthread test headers */
13133 #include <pthread.h>
13134 #if HAVE_PTHREADS < 7
13138 #define NULL (void*)0
13141 static void *task(p)
13144 return (void *) (p == NULL);
13148 int main(argc, argv)
13153 /* pthread test function */
13154 #ifndef PTHREAD_CREATE_DETACHED
13155 #define PTHREAD_CREATE_DETACHED 1
13159 int detach = PTHREAD_CREATE_DETACHED;
13161 #if HAVE_PTHREADS > 4
13162 /* Final pthreads */
13163 pthread_attr_t attr;
13165 status = pthread_attr_init(&attr);
13166 if( status ) return status;
13168 #if HAVE_PTHREADS < 7
13169 status = pthread_attr_setdetachstate(&attr, &detach);
13170 if( status < 0 ) status = errno;
13172 status = pthread_attr_setdetachstate(&attr, detach);
13174 if( status ) return status;
13175 status = pthread_create( &t, &attr, task, NULL );
13176 #if HAVE_PTHREADS < 7
13177 if( status < 0 ) status = errno;
13179 if( status ) return status;
13181 /* Draft 4 pthreads */
13182 status = pthread_create( &t, pthread_attr_default, task, NULL );
13183 if( status ) return errno;
13185 /* give thread a chance to complete */
13186 /* it should remain joinable and hence detachable */
13189 status = pthread_detach( &t );
13190 if( status ) return errno;
13193 #ifdef HAVE_LINUX_THREADS
13194 pthread_kill_other_threads_np();
13202 if ac_fn_c_try_run "$LINENO"; then :
13203 ol_cv_pthread_threads=yes
13205 ol_cv_pthread_threads=no
13207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13208 conftest.$ac_objext conftest.beam conftest.$ac_ext
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
13217 $as_echo "$ol_cv_pthread_threads" >&6; }
13219 if test $ol_cv_pthread_threads = yes ; then
13220 ol_link_pthreads="-threads"
13221 ol_link_threads=posix
13226 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13227 if test "$ol_link_threads" = no ; then
13228 # try -lpthreads -lmach -lexc -lc_r
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13230 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
13231 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
13232 $as_echo_n "(cached) " >&6
13237 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13239 if test "$cross_compiling" = yes; then :
13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h. */
13243 /* pthread test headers */
13244 #include <pthread.h>
13245 #if HAVE_PTHREADS < 7
13249 #define NULL (void*)0
13252 static void *task(p)
13255 return (void *) (p == NULL);
13262 /* pthread test function */
13263 #ifndef PTHREAD_CREATE_DETACHED
13264 #define PTHREAD_CREATE_DETACHED 1
13268 int detach = PTHREAD_CREATE_DETACHED;
13270 #if HAVE_PTHREADS > 4
13271 /* Final pthreads */
13272 pthread_attr_t attr;
13274 status = pthread_attr_init(&attr);
13275 if( status ) return status;
13277 #if HAVE_PTHREADS < 7
13278 status = pthread_attr_setdetachstate(&attr, &detach);
13279 if( status < 0 ) status = errno;
13281 status = pthread_attr_setdetachstate(&attr, detach);
13283 if( status ) return status;
13284 status = pthread_create( &t, &attr, task, NULL );
13285 #if HAVE_PTHREADS < 7
13286 if( status < 0 ) status = errno;
13288 if( status ) return status;
13290 /* Draft 4 pthreads */
13291 status = pthread_create( &t, pthread_attr_default, task, NULL );
13292 if( status ) return errno;
13294 /* give thread a chance to complete */
13295 /* it should remain joinable and hence detachable */
13298 status = pthread_detach( &t );
13299 if( status ) return errno;
13302 #ifdef HAVE_LINUX_THREADS
13303 pthread_kill_other_threads_np();
13312 if ac_fn_c_try_link "$LINENO"; then :
13313 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13315 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13317 rm -f core conftest.err conftest.$ac_objext \
13318 conftest$ac_exeext conftest.$ac_ext
13320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h. */
13324 /* pthread test headers */
13325 #include <pthread.h>
13326 #if HAVE_PTHREADS < 7
13330 #define NULL (void*)0
13333 static void *task(p)
13336 return (void *) (p == NULL);
13340 int main(argc, argv)
13345 /* pthread test function */
13346 #ifndef PTHREAD_CREATE_DETACHED
13347 #define PTHREAD_CREATE_DETACHED 1
13351 int detach = PTHREAD_CREATE_DETACHED;
13353 #if HAVE_PTHREADS > 4
13354 /* Final pthreads */
13355 pthread_attr_t attr;
13357 status = pthread_attr_init(&attr);
13358 if( status ) return status;
13360 #if HAVE_PTHREADS < 7
13361 status = pthread_attr_setdetachstate(&attr, &detach);
13362 if( status < 0 ) status = errno;
13364 status = pthread_attr_setdetachstate(&attr, detach);
13366 if( status ) return status;
13367 status = pthread_create( &t, &attr, task, NULL );
13368 #if HAVE_PTHREADS < 7
13369 if( status < 0 ) status = errno;
13371 if( status ) return status;
13373 /* Draft 4 pthreads */
13374 status = pthread_create( &t, pthread_attr_default, task, NULL );
13375 if( status ) return errno;
13377 /* give thread a chance to complete */
13378 /* it should remain joinable and hence detachable */
13381 status = pthread_detach( &t );
13382 if( status ) return errno;
13385 #ifdef HAVE_LINUX_THREADS
13386 pthread_kill_other_threads_np();
13394 if ac_fn_c_try_run "$LINENO"; then :
13395 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13397 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13400 conftest.$ac_objext conftest.beam conftest.$ac_ext
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
13409 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
13411 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
13412 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
13413 ol_link_threads=posix
13417 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
13418 if test "$ol_link_threads" = no ; then
13419 # try -lpthreads -lmach -lexc
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
13421 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
13422 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
13423 $as_echo_n "(cached) " >&6
13428 LIBS="-lpthreads -lmach -lexc $LIBS"
13430 if test "$cross_compiling" = yes; then :
13431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432 /* end confdefs.h. */
13434 /* pthread test headers */
13435 #include <pthread.h>
13436 #if HAVE_PTHREADS < 7
13440 #define NULL (void*)0
13443 static void *task(p)
13446 return (void *) (p == NULL);
13453 /* pthread test function */
13454 #ifndef PTHREAD_CREATE_DETACHED
13455 #define PTHREAD_CREATE_DETACHED 1
13459 int detach = PTHREAD_CREATE_DETACHED;
13461 #if HAVE_PTHREADS > 4
13462 /* Final pthreads */
13463 pthread_attr_t attr;
13465 status = pthread_attr_init(&attr);
13466 if( status ) return status;
13468 #if HAVE_PTHREADS < 7
13469 status = pthread_attr_setdetachstate(&attr, &detach);
13470 if( status < 0 ) status = errno;
13472 status = pthread_attr_setdetachstate(&attr, detach);
13474 if( status ) return status;
13475 status = pthread_create( &t, &attr, task, NULL );
13476 #if HAVE_PTHREADS < 7
13477 if( status < 0 ) status = errno;
13479 if( status ) return status;
13481 /* Draft 4 pthreads */
13482 status = pthread_create( &t, pthread_attr_default, task, NULL );
13483 if( status ) return errno;
13485 /* give thread a chance to complete */
13486 /* it should remain joinable and hence detachable */
13489 status = pthread_detach( &t );
13490 if( status ) return errno;
13493 #ifdef HAVE_LINUX_THREADS
13494 pthread_kill_other_threads_np();
13503 if ac_fn_c_try_link "$LINENO"; then :
13504 ol_cv_pthread_lpthreads_lmach_lexc=yes
13506 ol_cv_pthread_lpthreads_lmach_lexc=no
13508 rm -f core conftest.err conftest.$ac_objext \
13509 conftest$ac_exeext conftest.$ac_ext
13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13515 /* pthread test headers */
13516 #include <pthread.h>
13517 #if HAVE_PTHREADS < 7
13521 #define NULL (void*)0
13524 static void *task(p)
13527 return (void *) (p == NULL);
13531 int main(argc, argv)
13536 /* pthread test function */
13537 #ifndef PTHREAD_CREATE_DETACHED
13538 #define PTHREAD_CREATE_DETACHED 1
13542 int detach = PTHREAD_CREATE_DETACHED;
13544 #if HAVE_PTHREADS > 4
13545 /* Final pthreads */
13546 pthread_attr_t attr;
13548 status = pthread_attr_init(&attr);
13549 if( status ) return status;
13551 #if HAVE_PTHREADS < 7
13552 status = pthread_attr_setdetachstate(&attr, &detach);
13553 if( status < 0 ) status = errno;
13555 status = pthread_attr_setdetachstate(&attr, detach);
13557 if( status ) return status;
13558 status = pthread_create( &t, &attr, task, NULL );
13559 #if HAVE_PTHREADS < 7
13560 if( status < 0 ) status = errno;
13562 if( status ) return status;
13564 /* Draft 4 pthreads */
13565 status = pthread_create( &t, pthread_attr_default, task, NULL );
13566 if( status ) return errno;
13568 /* give thread a chance to complete */
13569 /* it should remain joinable and hence detachable */
13572 status = pthread_detach( &t );
13573 if( status ) return errno;
13576 #ifdef HAVE_LINUX_THREADS
13577 pthread_kill_other_threads_np();
13585 if ac_fn_c_try_run "$LINENO"; then :
13586 ol_cv_pthread_lpthreads_lmach_lexc=yes
13588 ol_cv_pthread_lpthreads_lmach_lexc=no
13590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13591 conftest.$ac_objext conftest.beam conftest.$ac_ext
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
13600 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
13602 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
13603 ol_link_pthreads="-lpthreads -lmach -lexc"
13604 ol_link_threads=posix
13608 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
13609 if test "$ol_link_threads" = no ; then
13610 # try -lpthreads -lexc
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
13612 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
13613 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
13614 $as_echo_n "(cached) " >&6
13619 LIBS="-lpthreads -lexc $LIBS"
13621 if test "$cross_compiling" = yes; then :
13622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h. */
13625 /* pthread test headers */
13626 #include <pthread.h>
13627 #if HAVE_PTHREADS < 7
13631 #define NULL (void*)0
13634 static void *task(p)
13637 return (void *) (p == NULL);
13644 /* pthread test function */
13645 #ifndef PTHREAD_CREATE_DETACHED
13646 #define PTHREAD_CREATE_DETACHED 1
13650 int detach = PTHREAD_CREATE_DETACHED;
13652 #if HAVE_PTHREADS > 4
13653 /* Final pthreads */
13654 pthread_attr_t attr;
13656 status = pthread_attr_init(&attr);
13657 if( status ) return status;
13659 #if HAVE_PTHREADS < 7
13660 status = pthread_attr_setdetachstate(&attr, &detach);
13661 if( status < 0 ) status = errno;
13663 status = pthread_attr_setdetachstate(&attr, detach);
13665 if( status ) return status;
13666 status = pthread_create( &t, &attr, task, NULL );
13667 #if HAVE_PTHREADS < 7
13668 if( status < 0 ) status = errno;
13670 if( status ) return status;
13672 /* Draft 4 pthreads */
13673 status = pthread_create( &t, pthread_attr_default, task, NULL );
13674 if( status ) return errno;
13676 /* give thread a chance to complete */
13677 /* it should remain joinable and hence detachable */
13680 status = pthread_detach( &t );
13681 if( status ) return errno;
13684 #ifdef HAVE_LINUX_THREADS
13685 pthread_kill_other_threads_np();
13694 if ac_fn_c_try_link "$LINENO"; then :
13695 ol_cv_pthread_lpthreads_lexc=yes
13697 ol_cv_pthread_lpthreads_lexc=no
13699 rm -f core conftest.err conftest.$ac_objext \
13700 conftest$ac_exeext conftest.$ac_ext
13702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703 /* end confdefs.h. */
13706 /* pthread test headers */
13707 #include <pthread.h>
13708 #if HAVE_PTHREADS < 7
13712 #define NULL (void*)0
13715 static void *task(p)
13718 return (void *) (p == NULL);
13722 int main(argc, argv)
13727 /* pthread test function */
13728 #ifndef PTHREAD_CREATE_DETACHED
13729 #define PTHREAD_CREATE_DETACHED 1
13733 int detach = PTHREAD_CREATE_DETACHED;
13735 #if HAVE_PTHREADS > 4
13736 /* Final pthreads */
13737 pthread_attr_t attr;
13739 status = pthread_attr_init(&attr);
13740 if( status ) return status;
13742 #if HAVE_PTHREADS < 7
13743 status = pthread_attr_setdetachstate(&attr, &detach);
13744 if( status < 0 ) status = errno;
13746 status = pthread_attr_setdetachstate(&attr, detach);
13748 if( status ) return status;
13749 status = pthread_create( &t, &attr, task, NULL );
13750 #if HAVE_PTHREADS < 7
13751 if( status < 0 ) status = errno;
13753 if( status ) return status;
13755 /* Draft 4 pthreads */
13756 status = pthread_create( &t, pthread_attr_default, task, NULL );
13757 if( status ) return errno;
13759 /* give thread a chance to complete */
13760 /* it should remain joinable and hence detachable */
13763 status = pthread_detach( &t );
13764 if( status ) return errno;
13767 #ifdef HAVE_LINUX_THREADS
13768 pthread_kill_other_threads_np();
13776 if ac_fn_c_try_run "$LINENO"; then :
13777 ol_cv_pthread_lpthreads_lexc=yes
13779 ol_cv_pthread_lpthreads_lexc=no
13781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13782 conftest.$ac_objext conftest.beam conftest.$ac_ext
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
13791 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
13793 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
13794 ol_link_pthreads="-lpthreads -lexc"
13795 ol_link_threads=posix
13800 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
13801 if test "$ol_link_threads" = no ; then
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
13804 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
13805 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
13806 $as_echo_n "(cached) " >&6
13811 LIBS="-lpthreads $LIBS"
13813 if test "$cross_compiling" = yes; then :
13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h. */
13817 /* pthread test headers */
13818 #include <pthread.h>
13819 #if HAVE_PTHREADS < 7
13823 #define NULL (void*)0
13826 static void *task(p)
13829 return (void *) (p == NULL);
13836 /* pthread test function */
13837 #ifndef PTHREAD_CREATE_DETACHED
13838 #define PTHREAD_CREATE_DETACHED 1
13842 int detach = PTHREAD_CREATE_DETACHED;
13844 #if HAVE_PTHREADS > 4
13845 /* Final pthreads */
13846 pthread_attr_t attr;
13848 status = pthread_attr_init(&attr);
13849 if( status ) return status;
13851 #if HAVE_PTHREADS < 7
13852 status = pthread_attr_setdetachstate(&attr, &detach);
13853 if( status < 0 ) status = errno;
13855 status = pthread_attr_setdetachstate(&attr, detach);
13857 if( status ) return status;
13858 status = pthread_create( &t, &attr, task, NULL );
13859 #if HAVE_PTHREADS < 7
13860 if( status < 0 ) status = errno;
13862 if( status ) return status;
13864 /* Draft 4 pthreads */
13865 status = pthread_create( &t, pthread_attr_default, task, NULL );
13866 if( status ) return errno;
13868 /* give thread a chance to complete */
13869 /* it should remain joinable and hence detachable */
13872 status = pthread_detach( &t );
13873 if( status ) return errno;
13876 #ifdef HAVE_LINUX_THREADS
13877 pthread_kill_other_threads_np();
13886 if ac_fn_c_try_link "$LINENO"; then :
13887 ol_cv_pthread_lib_lpthreads=yes
13889 ol_cv_pthread_lib_lpthreads=no
13891 rm -f core conftest.err conftest.$ac_objext \
13892 conftest$ac_exeext conftest.$ac_ext
13894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13895 /* end confdefs.h. */
13898 /* pthread test headers */
13899 #include <pthread.h>
13900 #if HAVE_PTHREADS < 7
13904 #define NULL (void*)0
13907 static void *task(p)
13910 return (void *) (p == NULL);
13914 int main(argc, argv)
13919 /* pthread test function */
13920 #ifndef PTHREAD_CREATE_DETACHED
13921 #define PTHREAD_CREATE_DETACHED 1
13925 int detach = PTHREAD_CREATE_DETACHED;
13927 #if HAVE_PTHREADS > 4
13928 /* Final pthreads */
13929 pthread_attr_t attr;
13931 status = pthread_attr_init(&attr);
13932 if( status ) return status;
13934 #if HAVE_PTHREADS < 7
13935 status = pthread_attr_setdetachstate(&attr, &detach);
13936 if( status < 0 ) status = errno;
13938 status = pthread_attr_setdetachstate(&attr, detach);
13940 if( status ) return status;
13941 status = pthread_create( &t, &attr, task, NULL );
13942 #if HAVE_PTHREADS < 7
13943 if( status < 0 ) status = errno;
13945 if( status ) return status;
13947 /* Draft 4 pthreads */
13948 status = pthread_create( &t, pthread_attr_default, task, NULL );
13949 if( status ) return errno;
13951 /* give thread a chance to complete */
13952 /* it should remain joinable and hence detachable */
13955 status = pthread_detach( &t );
13956 if( status ) return errno;
13959 #ifdef HAVE_LINUX_THREADS
13960 pthread_kill_other_threads_np();
13968 if ac_fn_c_try_run "$LINENO"; then :
13969 ol_cv_pthread_lib_lpthreads=yes
13971 ol_cv_pthread_lib_lpthreads=no
13973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13974 conftest.$ac_objext conftest.beam conftest.$ac_ext
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
13983 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
13985 if test $ol_cv_pthread_lib_lpthreads = yes ; then
13986 ol_link_pthreads="-lpthreads"
13987 ol_link_threads=posix
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
13993 $as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
13995 if test $ol_link_threads != no ; then
13996 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
13998 save_CPPFLAGS="$CPPFLAGS"
14000 LIBS="$LTHREAD_LIBS $LIBS"
14002 for ac_func in sched_yield pthread_yield thr_yield
14004 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14005 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14006 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14007 cat >>confdefs.h <<_ACEOF
14008 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14015 if test $ac_cv_func_sched_yield = no &&
14016 test $ac_cv_func_pthread_yield = no &&
14017 test $ac_cv_func_thr_yield = no ; then
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
14019 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
14020 if ${ac_cv_lib_rt_sched_yield+:} false; then :
14021 $as_echo_n "(cached) " >&6
14023 ac_check_lib_save_LIBS=$LIBS
14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14028 /* Override any GCC internal prototype to avoid an error.
14029 Use char because int might match the return type of a GCC
14030 builtin and then its argument prototype would still apply. */
14034 char sched_yield ();
14038 return sched_yield ();
14043 if ac_fn_c_try_link "$LINENO"; then :
14044 ac_cv_lib_rt_sched_yield=yes
14046 ac_cv_lib_rt_sched_yield=no
14048 rm -f core conftest.err conftest.$ac_objext \
14049 conftest$ac_exeext conftest.$ac_ext
14050 LIBS=$ac_check_lib_save_LIBS
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
14053 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
14054 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
14055 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14057 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
14059 ac_cv_func_sched_yield=yes
14061 ac_cv_func_sched_yield=no
14065 if test $ac_cv_func_sched_yield = no &&
14066 test $ac_cv_func_pthread_yield = no &&
14067 test "$ac_cv_func_thr_yield" = no ; then
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
14069 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
14072 for ac_func in pthread_kill
14074 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
14075 if test "x$ac_cv_func_pthread_kill" = xyes; then :
14076 cat >>confdefs.h <<_ACEOF
14077 #define HAVE_PTHREAD_KILL 1
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
14085 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
14086 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
14087 $as_echo_n "(cached) " >&6
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14093 #include <pthread.h>
14094 pthread_rwlock_t rwlock;
14099 pthread_rwlock_destroy(&rwlock);
14104 if ac_fn_c_try_link "$LINENO"; then :
14105 ol_cv_func_pthread_rwlock_destroy=yes
14107 ol_cv_func_pthread_rwlock_destroy=no
14109 rm -f core conftest.err conftest.$ac_objext \
14110 conftest$ac_exeext conftest.$ac_ext
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
14114 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
14115 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
14117 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
14122 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
14123 if ${ol_cv_func_pthread_detach+:} false; then :
14124 $as_echo_n "(cached) " >&6
14127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14128 /* end confdefs.h. */
14130 #include <pthread.h>
14132 #define NULL (void*)0
14138 pthread_detach(NULL);
14143 if ac_fn_c_try_link "$LINENO"; then :
14144 ol_cv_func_pthread_detach=yes
14146 ol_cv_func_pthread_detach=no
14148 rm -f core conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
14153 $as_echo "$ol_cv_func_pthread_detach" >&6; }
14155 if test $ol_cv_func_pthread_detach = no ; then
14156 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
14160 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
14164 pthread_setconcurrency \
14165 pthread_getconcurrency \
14166 thr_setconcurrency \
14167 thr_getconcurrency \
14170 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14171 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14172 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14173 cat >>confdefs.h <<_ACEOF
14174 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14182 for ac_func in pthread_kill_other_threads_np
14184 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
14185 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
14186 cat >>confdefs.h <<_ACEOF
14187 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
14194 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
14195 if ${ol_cv_sys_linux_threads+:} false; then :
14196 $as_echo_n "(cached) " >&6
14198 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
14201 $as_echo "$ol_cv_sys_linux_threads" >&6; }
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
14207 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
14208 if ${ol_cv_linux_threads+:} false; then :
14209 $as_echo_n "(cached) " >&6
14212 if test $ol_cv_header_linux_threads = yes &&
14213 test $ol_cv_sys_linux_threads = yes; then
14214 ol_cv_linux_threads=yes
14215 elif test $ol_cv_header_linux_threads = no &&
14216 test $ol_cv_sys_linux_threads = no; then
14217 ol_cv_linux_threads=no
14219 ol_cv_linux_threads=error
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
14224 $as_echo "$ol_cv_linux_threads" >&6; }
14227 if test $ol_cv_linux_threads = error; then
14228 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
14232 $as_echo_n "checking if pthread_create() works... " >&6; }
14233 if ${ol_cv_pthread_create_works+:} false; then :
14234 $as_echo_n "(cached) " >&6
14237 if test "$cross_compiling" = yes; then :
14238 ol_cv_pthread_create_works=yes
14240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241 /* end confdefs.h. */
14244 /* pthread test headers */
14245 #include <pthread.h>
14246 #if HAVE_PTHREADS < 7
14250 #define NULL (void*)0
14253 static void *task(p)
14256 return (void *) (p == NULL);
14260 int main(argc, argv)
14265 /* pthread test function */
14266 #ifndef PTHREAD_CREATE_DETACHED
14267 #define PTHREAD_CREATE_DETACHED 1
14271 int detach = PTHREAD_CREATE_DETACHED;
14273 #if HAVE_PTHREADS > 4
14274 /* Final pthreads */
14275 pthread_attr_t attr;
14277 status = pthread_attr_init(&attr);
14278 if( status ) return status;
14280 #if HAVE_PTHREADS < 7
14281 status = pthread_attr_setdetachstate(&attr, &detach);
14282 if( status < 0 ) status = errno;
14284 status = pthread_attr_setdetachstate(&attr, detach);
14286 if( status ) return status;
14287 status = pthread_create( &t, &attr, task, NULL );
14288 #if HAVE_PTHREADS < 7
14289 if( status < 0 ) status = errno;
14291 if( status ) return status;
14293 /* Draft 4 pthreads */
14294 status = pthread_create( &t, pthread_attr_default, task, NULL );
14295 if( status ) return errno;
14297 /* give thread a chance to complete */
14298 /* it should remain joinable and hence detachable */
14301 status = pthread_detach( &t );
14302 if( status ) return errno;
14305 #ifdef HAVE_LINUX_THREADS
14306 pthread_kill_other_threads_np();
14314 if ac_fn_c_try_run "$LINENO"; then :
14315 ol_cv_pthread_create_works=yes
14317 ol_cv_pthread_create_works=no
14319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14320 conftest.$ac_objext conftest.beam conftest.$ac_ext
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
14325 $as_echo "$ol_cv_pthread_create_works" >&6; }
14327 if test $ol_cv_pthread_create_works = no ; then
14328 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
14331 ol_replace_broken_yield=no
14333 if test $ol_replace_broken_yield = yes ; then
14335 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
14339 if test x$ol_with_yielding_select = xauto ; then
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
14341 $as_echo_n "checking if select yields when using pthreads... " >&6; }
14342 if ${ol_cv_pthread_select_yields+:} false; then :
14343 $as_echo_n "(cached) " >&6
14346 if test "$cross_compiling" = yes; then :
14347 ol_cv_pthread_select_yields=cross
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14352 #include <sys/types.h>
14353 #include <sys/time.h>
14354 #include <unistd.h>
14355 #include <pthread.h>
14357 #define NULL (void*) 0
14360 static int fildes[2];
14362 static void *task(p)
14374 FD_SET(fildes[0], &rfds);
14376 /* we're not interested in any fds */
14377 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
14384 exit(0); /* if we exit here, the select blocked the whole process */
14387 int main(argc, argv)
14393 /* create a pipe to select */
14394 if(pipe(&fildes[0])) {
14399 #ifdef HAVE_PTHREAD_SETCONCURRENCY
14400 (void) pthread_setconcurrency(2);
14402 #ifdef HAVE_THR_SETCONCURRENCY
14403 /* Set Solaris LWP concurrency to 2 */
14404 thr_setconcurrency(2);
14408 #if HAVE_PTHREADS < 6
14409 pthread_create(&t, pthread_attr_default, task, NULL);
14411 pthread_create(&t, NULL, task, NULL);
14414 /* make sure task runs first */
14415 #ifdef HAVE_THR_YIELD
14417 #elif defined( HAVE_SCHED_YIELD )
14419 #elif defined( HAVE_PTHREAD_YIELD )
14426 if ac_fn_c_try_run "$LINENO"; then :
14427 ol_cv_pthread_select_yields=no
14429 ol_cv_pthread_select_yields=yes
14431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14432 conftest.$ac_objext conftest.beam conftest.$ac_ext
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
14437 $as_echo "$ol_cv_pthread_select_yields" >&6; }
14439 if test $ol_cv_pthread_select_yields = cross ; then
14440 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
14443 if test $ol_cv_pthread_select_yields = yes ; then
14444 ol_with_yielding_select=yes
14448 CPPFLAGS="$save_CPPFLAGS"
14451 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
14455 if test $ol_with_threads = posix ; then
14456 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
14461 case $ol_with_threads in auto | yes | mach)
14463 for ac_header in mach/cthreads.h cthreads.h
14465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14466 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14467 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14468 cat >>confdefs.h <<_ACEOF
14469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14476 if test $ac_cv_header_mach_cthreads_h = yes ; then
14477 ol_with_threads=found
14479 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
14480 if test "x$ac_cv_func_cthread_fork" = xyes; then :
14481 ol_link_threads=yes
14485 if test $ol_link_threads = no ; then
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
14487 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
14488 if ${ol_cv_cthread_all_load+:} false; then :
14489 $as_echo_n "(cached) " >&6
14493 LIBS="-all_load $LIBS"
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14496 #include <mach/cthreads.h>
14501 cthread_fork((void *)0, (void *)0);
14507 if ac_fn_c_try_link "$LINENO"; then :
14508 ol_cv_cthread_all_load=yes
14510 ol_cv_cthread_all_load=no
14512 rm -f core conftest.err conftest.$ac_objext \
14513 conftest$ac_exeext conftest.$ac_ext
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
14518 $as_echo "$ol_cv_cthread_all_load" >&6; }
14520 if test $ol_cv_cthread_all_load = yes ; then
14521 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
14522 ol_link_threads=mach
14523 ol_with_threads=found
14527 elif test $ac_cv_header_cthreads_h = yes ; then
14529 ol_with_threads=found
14532 LIBS="$LIBS -lthreads"
14533 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
14534 if test "x$ac_cv_func_cthread_fork" = xyes; then :
14535 ol_link_threads=yes
14540 if test $ol_link_threads = yes ; then
14541 LTHREAD_LIBS="-lthreads"
14542 ol_link_threads=mach
14543 ol_with_threads=found
14545 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
14548 elif test $ol_with_threads = mach ; then
14549 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
14552 if test $ol_link_threads = mach ; then
14554 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
14556 elif test $ol_with_threads = found ; then
14557 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
14562 case $ol_with_threads in auto | yes | pth)
14564 for ac_header in pth.h
14566 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
14567 if test "x$ac_cv_header_pth_h" = xyes; then :
14568 cat >>confdefs.h <<_ACEOF
14569 #define HAVE_PTH_H 1
14577 if test $ac_cv_header_pth_h = yes ; then
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
14579 $as_echo_n "checking for pth_version in -lpth... " >&6; }
14580 if ${ac_cv_lib_pth_pth_version+:} false; then :
14581 $as_echo_n "(cached) " >&6
14583 ac_check_lib_save_LIBS=$LIBS
14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14586 /* end confdefs.h. */
14588 /* Override any GCC internal prototype to avoid an error.
14589 Use char because int might match the return type of a GCC
14590 builtin and then its argument prototype would still apply. */
14594 char pth_version ();
14598 return pth_version ();
14603 if ac_fn_c_try_link "$LINENO"; then :
14604 ac_cv_lib_pth_pth_version=yes
14606 ac_cv_lib_pth_pth_version=no
14608 rm -f core conftest.err conftest.$ac_objext \
14609 conftest$ac_exeext conftest.$ac_ext
14610 LIBS=$ac_check_lib_save_LIBS
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
14613 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
14614 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
14621 if test $have_pth = yes ; then
14623 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
14625 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
14626 ol_link_threads=pth
14627 ol_with_threads=found
14629 if test x$ol_with_yielding_select = xauto ; then
14630 ol_with_yielding_select=yes
14637 case $ol_with_threads in auto | yes | lwp)
14639 for ac_header in thread.h synch.h
14641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14642 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14643 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14644 cat >>confdefs.h <<_ACEOF
14645 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14652 if test $ac_cv_header_thread_h = yes &&
14653 test $ac_cv_header_synch_h = yes ; then
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
14655 $as_echo_n "checking for thr_create in -lthread... " >&6; }
14656 if ${ac_cv_lib_thread_thr_create+:} false; then :
14657 $as_echo_n "(cached) " >&6
14659 ac_check_lib_save_LIBS=$LIBS
14660 LIBS="-lthread $LIBS"
14661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14662 /* end confdefs.h. */
14664 /* Override any GCC internal prototype to avoid an error.
14665 Use char because int might match the return type of a GCC
14666 builtin and then its argument prototype would still apply. */
14670 char thr_create ();
14674 return thr_create ();
14679 if ac_fn_c_try_link "$LINENO"; then :
14680 ac_cv_lib_thread_thr_create=yes
14682 ac_cv_lib_thread_thr_create=no
14684 rm -f core conftest.err conftest.$ac_objext \
14685 conftest$ac_exeext conftest.$ac_ext
14686 LIBS=$ac_check_lib_save_LIBS
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
14689 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
14690 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
14697 if test $have_thr = yes ; then
14699 $as_echo "#define HAVE_THR 1" >>confdefs.h
14701 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
14702 ol_link_threads=thr
14704 if test x$ol_with_yielding_select = xauto ; then
14705 ol_with_yielding_select=yes
14709 thr_setconcurrency \
14710 thr_getconcurrency \
14713 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14714 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14715 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14716 cat >>confdefs.h <<_ACEOF
14717 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14726 for ac_header in lwp/lwp.h
14728 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
14729 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
14730 cat >>confdefs.h <<_ACEOF
14731 #define HAVE_LWP_LWP_H 1
14738 if test $ac_cv_header_lwp_lwp_h = yes ; then
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
14740 $as_echo_n "checking for lwp_create in -llwp... " >&6; }
14741 if ${ac_cv_lib_lwp_lwp_create+:} false; then :
14742 $as_echo_n "(cached) " >&6
14744 ac_check_lib_save_LIBS=$LIBS
14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747 /* end confdefs.h. */
14749 /* Override any GCC internal prototype to avoid an error.
14750 Use char because int might match the return type of a GCC
14751 builtin and then its argument prototype would still apply. */
14755 char lwp_create ();
14759 return lwp_create ();
14764 if ac_fn_c_try_link "$LINENO"; then :
14765 ac_cv_lib_lwp_lwp_create=yes
14767 ac_cv_lib_lwp_lwp_create=no
14769 rm -f core conftest.err conftest.$ac_objext \
14770 conftest$ac_exeext conftest.$ac_ext
14771 LIBS=$ac_check_lib_save_LIBS
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
14774 $as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
14775 if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
14782 if test $have_lwp = yes ; then
14784 $as_echo "#define HAVE_LWP 1" >>confdefs.h
14786 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
14787 ol_link_threads=lwp
14789 if test x$ol_with_yielding_select = xauto ; then
14790 ol_with_yielding_select=no
14797 if test $ol_with_yielding_select = yes ; then
14799 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
14803 if test $ol_with_threads = manual ; then
14804 ol_link_threads=yes
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
14807 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
14809 for ac_header in pthread.h sched.h
14811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14812 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14813 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14814 cat >>confdefs.h <<_ACEOF
14815 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14822 for ac_func in sched_yield pthread_yield
14824 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14825 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14826 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14827 cat >>confdefs.h <<_ACEOF
14828 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
14836 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
14837 if ${ol_cv_header_linux_threads+:} false; then :
14838 $as_echo_n "(cached) " >&6
14840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14841 /* end confdefs.h. */
14842 #include <pthread.h>
14844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14845 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
14846 ol_cv_header_linux_threads=yes
14848 ol_cv_header_linux_threads=no
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
14855 $as_echo "$ol_cv_header_linux_threads" >&6; }
14856 if test $ol_cv_header_linux_threads = yes; then
14858 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
14863 for ac_header in mach/cthreads.h
14865 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
14866 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
14867 cat >>confdefs.h <<_ACEOF
14868 #define HAVE_MACH_CTHREADS_H 1
14875 for ac_header in lwp/lwp.h
14877 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
14878 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
14879 cat >>confdefs.h <<_ACEOF
14880 #define HAVE_LWP_LWP_H 1
14887 for ac_header in thread.h synch.h
14889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14890 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14891 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14892 cat >>confdefs.h <<_ACEOF
14893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14902 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
14904 $as_echo "#define REENTRANT 1" >>confdefs.h
14907 $as_echo "#define _REENTRANT 1" >>confdefs.h
14910 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
14913 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
14916 $as_echo "#define THREADSAFE 1" >>confdefs.h
14919 $as_echo "#define _THREADSAFE 1" >>confdefs.h
14922 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
14926 $as_echo_n "checking for thread specific errno... " >&6; }
14927 if ${ol_cv_errno_thread_specific+:} false; then :
14928 $as_echo_n "(cached) " >&6
14931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14932 /* end confdefs.h. */
14942 if ac_fn_c_try_link "$LINENO"; then :
14943 ol_cv_errno_thread_specific=yes
14945 ol_cv_errno_thread_specific=no
14947 rm -f core conftest.err conftest.$ac_objext \
14948 conftest$ac_exeext conftest.$ac_ext
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
14952 $as_echo "$ol_cv_errno_thread_specific" >&6; }
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
14955 $as_echo_n "checking for thread specific h_errno... " >&6; }
14956 if ${ol_cv_h_errno_thread_specific+:} false; then :
14957 $as_echo_n "(cached) " >&6
14960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961 /* end confdefs.h. */
14971 if ac_fn_c_try_link "$LINENO"; then :
14972 ol_cv_h_errno_thread_specific=yes
14974 ol_cv_h_errno_thread_specific=no
14976 rm -f core conftest.err conftest.$ac_objext \
14977 conftest$ac_exeext conftest.$ac_ext
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
14981 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
14983 if test $ol_cv_errno_thread_specific != yes ||
14984 test $ol_cv_h_errno_thread_specific != yes ; then
14985 LIBS="$LTHREAD_LIBS $LIBS"
14991 if test $ol_link_threads = no ; then
14992 if test $ol_with_threads = yes ; then
14993 as_fn_error $? "no suitable thread support" "$LINENO" 5
14996 if test $ol_with_threads = auto ; then
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
14998 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
15003 $as_echo "#define NO_THREADS 1" >>confdefs.h
15011 if test $ol_link_threads != no ; then
15013 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
15017 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15018 case "$ol_with_threads" in
15024 ol_found_pthreads=yes
15029 ac_cpp='$CPP $CPPFLAGS'
15030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15039 case "$ol_found_pthreads" in
15042 LIBS="$LTHREAD_LIBS $LIBS"
15043 saved_CFLAGS="$CFLAGS"
15044 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
15045 for ac_func in sem_timedwait
15047 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
15048 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
15049 cat >>confdefs.h <<_ACEOF
15050 #define HAVE_SEM_TIMEDWAIT 1
15057 { saved_LIBS=; unset saved_LIBS;}
15058 CFLAGS="$saved_CFLAGS"
15059 { saved_CFLAGS=; unset saved_CFLAGS;}
15060 case "$ac_cv_func_sem_timedwait" in
15062 PTHREAD_LIBS="$LTHREAD_LIBS"
15068 case "$have_pthreads" in
15070 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
15072 LIBS="$LTHREAD_LIBS $LIBS"
15073 saved_CFLAGS="$CFLAGS"
15074 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
15075 # The cast to long int works around a bug in the HP C Compiler
15076 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15077 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15078 # This bug is HP SR number 8606223364.
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
15080 $as_echo_n "checking size of pthread_t... " >&6; }
15081 if ${ac_cv_sizeof_pthread_t+:} false; then :
15082 $as_echo_n "(cached) " >&6
15084 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
15085 $ac_includes_default
15086 #include <pthread.h>
15092 if test "$ac_cv_type_pthread_t" = yes; then
15093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15095 as_fn_error 77 "cannot compute sizeof (pthread_t)
15096 See \`config.log' for more details" "$LINENO" 5; }
15098 ac_cv_sizeof_pthread_t=0
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
15104 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
15108 cat >>confdefs.h <<_ACEOF
15109 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
15113 LIBISC_PTHREADS_NOTHREADS=pthreads
15115 $as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
15118 # We'd like to use sigwait() too
15120 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
15121 if test "x$ac_cv_func_sigwait" = xyes; then :
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
15125 $as_echo_n "checking for sigwait in -lc... " >&6; }
15126 if ${ac_cv_lib_c_sigwait+:} false; then :
15127 $as_echo_n "(cached) " >&6
15129 ac_check_lib_save_LIBS=$LIBS
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15134 /* Override any GCC internal prototype to avoid an error.
15135 Use char because int might match the return type of a GCC
15136 builtin and then its argument prototype would still apply. */
15149 if ac_fn_c_try_link "$LINENO"; then :
15150 ac_cv_lib_c_sigwait=yes
15152 ac_cv_lib_c_sigwait=no
15154 rm -f core conftest.err conftest.$ac_objext \
15155 conftest$ac_exeext conftest.$ac_ext
15156 LIBS=$ac_check_lib_save_LIBS
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
15159 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
15160 if test "x$ac_cv_lib_c_sigwait" = xyes; then :
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
15164 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
15165 if ${ac_cv_lib_pthread_sigwait+:} false; then :
15166 $as_echo_n "(cached) " >&6
15168 ac_check_lib_save_LIBS=$LIBS
15169 LIBS="-lpthread $LIBS"
15170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15171 /* end confdefs.h. */
15173 /* Override any GCC internal prototype to avoid an error.
15174 Use char because int might match the return type of a GCC
15175 builtin and then its argument prototype would still apply. */
15188 if ac_fn_c_try_link "$LINENO"; then :
15189 ac_cv_lib_pthread_sigwait=yes
15191 ac_cv_lib_pthread_sigwait=no
15193 rm -f core conftest.err conftest.$ac_objext \
15194 conftest$ac_exeext conftest.$ac_ext
15195 LIBS=$ac_check_lib_save_LIBS
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
15198 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
15199 if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
15203 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
15204 if ${ac_cv_lib_pthread__Psigwait+:} false; then :
15205 $as_echo_n "(cached) " >&6
15207 ac_check_lib_save_LIBS=$LIBS
15208 LIBS="-lpthread $LIBS"
15209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210 /* end confdefs.h. */
15212 /* Override any GCC internal prototype to avoid an error.
15213 Use char because int might match the return type of a GCC
15214 builtin and then its argument prototype would still apply. */
15222 return _Psigwait ();
15227 if ac_fn_c_try_link "$LINENO"; then :
15228 ac_cv_lib_pthread__Psigwait=yes
15230 ac_cv_lib_pthread__Psigwait=no
15232 rm -f core conftest.err conftest.$ac_objext \
15233 conftest$ac_exeext conftest.$ac_ext
15234 LIBS=$ac_check_lib_save_LIBS
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
15237 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
15238 if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
15254 case "$host:$have_sigwait" in
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
15257 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
15258 if ${ac_cv_lib_c_r_sigwait+:} false; then :
15259 $as_echo_n "(cached) " >&6
15261 ac_check_lib_save_LIBS=$LIBS
15263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15264 /* end confdefs.h. */
15266 /* Override any GCC internal prototype to avoid an error.
15267 Use char because int might match the return type of a GCC
15268 builtin and then its argument prototype would still apply. */
15281 if ac_fn_c_try_link "$LINENO"; then :
15282 ac_cv_lib_c_r_sigwait=yes
15284 ac_cv_lib_c_r_sigwait=no
15286 rm -f core conftest.err conftest.$ac_objext \
15287 conftest$ac_exeext conftest.$ac_ext
15288 LIBS=$ac_check_lib_save_LIBS
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
15291 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
15292 if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
15298 case "$have_sigwait" in
15300 ac_cv_func_sigwait=yes
15302 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
15306 for ac_func in pthread_attr_getstacksize
15308 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
15309 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
15310 cat >>confdefs.h <<_ACEOF
15311 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
15317 for ac_func in pthread_attr_setstacksize sysconf
15319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15320 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15321 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15322 cat >>confdefs.h <<_ACEOF
15323 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15331 *-freebsd5.[012]|*-freebsd5.[012].*)
15333 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
15335 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
15338 *-bsdi3.*|*-bsdi4.0*)
15340 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
15345 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
15349 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
15351 for ac_func in pthread_setconcurrency
15353 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
15354 if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
15355 cat >>confdefs.h <<_ACEOF
15356 #define HAVE_PTHREAD_SETCONCURRENCY 1
15362 case "$ac_cv_func_pthread_setconcurrency" in
15365 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
15369 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
15371 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
15375 hack_shutup_pthreadonceinit=no
15378 hack_shutup_pthreadonceinit=yes
15381 hack_shutup_pthreadonceinit=yes
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
15385 $as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
15386 if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
15387 $as_echo_n "(cached) " >&6
15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h. */
15392 #include <pthread.h>
15398 static pthread_once_t once_test =
15406 if ac_fn_c_try_compile "$LINENO"; then :
15407 ntp_cv_braces_around_pthread_once_init=no
15409 ntp_cv_braces_around_pthread_once_init=yes
15412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
15416 $as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
15417 case "$ntp_cv_braces_around_pthread_once_init" in
15419 hack_shutup_pthreadonceinit=yes
15423 case "$hack_shutup_pthreadonceinit" in
15426 $as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
15430 { saved_LIBS=; unset saved_LIBS;}
15431 CFLAGS="$saved_CFLAGS"
15432 { saved_CFLAGS=; unset saved_CFLAGS;}
15435 LIBISC_PTHREADS_NOTHREADS=nothreads
15439 if test "$have_pthreads" != "no"; then
15453 case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
15456 $as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
15457 if ${ntp_cv_vsnprintf_percent_m+:} false; then :
15458 $as_echo_n "(cached) " >&6
15460 if test "$cross_compiling" = yes; then :
15461 ntp_cv_vsnprintf_percent_m=no
15464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15465 /* end confdefs.h. */
15467 #include <stdarg.h>
15470 #include <string.h>
15472 int call_vsnprintf(
15479 int call_vsnprintf(
15490 rc = vsnprintf(dst, sz, fmt, ap);
15504 strcpy(sbuf, strerror(ENOENT));
15506 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
15508 return strcmp(sbuf, pbuf);
15515 if ac_fn_c_try_run "$LINENO"; then :
15516 ntp_cv_vsnprintf_percent_m=yes
15518 ntp_cv_vsnprintf_percent_m=no
15520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15521 conftest.$ac_objext conftest.beam conftest.$ac_ext
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
15527 $as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
15528 case "$ntp_cv_vsnprintf_percent_m" in
15531 $as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
15536 for ac_header in sys/clockctl.h
15538 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
15539 if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
15540 cat >>confdefs.h <<_ACEOF
15541 #define HAVE_SYS_CLOCKCTL_H 1
15549 # Check whether --enable-clockctl was given.
15550 if test "${enable_clockctl+set}" = set; then :
15551 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
15553 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
15559 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
15561 $as_echo "$ntp_use_dev_clockctl" >&6; }
15564 for ac_header in sys/capability.h sys/prctl.h
15566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15567 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15568 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15569 cat >>confdefs.h <<_ACEOF
15570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
15579 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
15581 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
15585 ntp_have_linuxcaps=no
15587 *) ntp_have_linuxcaps=yes
15592 ntp_have_linuxcaps=no
15596 # Check whether --enable-linuxcaps was given.
15597 if test "${enable_linuxcaps+set}" = set; then :
15598 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
15604 $as_echo "$ntp_have_linuxcaps" >&6; }
15606 case "$ntp_have_linuxcaps" in
15609 $as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
15616 for ac_header in priv.h
15618 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
15619 if test "x$ac_cv_header_priv_h" = xyes; then :
15620 cat >>confdefs.h <<_ACEOF
15621 #define HAVE_PRIV_H 1
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
15630 $as_echo_n "checking if we have solaris privileges... " >&6; }
15632 case "$ac_cv_header_priv_h" in
15636 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
15637 if test "x$ac_cv_func_setppriv" = xyes; then :
15638 ntp_have_solarisprivs=yes
15640 ntp_have_solarisprivs=no
15648 # Check whether --enable-solarisprivs was given.
15649 if test "${enable_solarisprivs+set}" = set; then :
15650 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
15656 case "$ntp_have_solarisprivs" in
15659 $as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
15664 $as_echo "$ntp_have_solarisprivs" >&6; }
15666 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
15669 $as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
15676 $as_echo_n "checking for library containing res_9_init... " >&6; }
15677 if ${ac_cv_search_res_9_init+:} false; then :
15678 $as_echo_n "(cached) " >&6
15680 ac_func_search_save_LIBS=$LIBS
15681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682 /* end confdefs.h. */
15684 /* Override any GCC internal prototype to avoid an error.
15685 Use char because int might match the return type of a GCC
15686 builtin and then its argument prototype would still apply. */
15690 char res_9_init ();
15694 return res_9_init ();
15699 for ac_lib in '' resolv; do
15700 if test -z "$ac_lib"; then
15701 ac_res="none required"
15704 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15706 if ac_fn_c_try_link "$LINENO"; then :
15707 ac_cv_search_res_9_init=$ac_res
15709 rm -f core conftest.err conftest.$ac_objext \
15711 if ${ac_cv_search_res_9_init+:} false; then :
15715 if ${ac_cv_search_res_9_init+:} false; then :
15718 ac_cv_search_res_9_init=no
15720 rm conftest.$ac_ext
15721 LIBS=$ac_func_search_save_LIBS
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
15724 $as_echo "$ac_cv_search_res_9_init" >&6; }
15725 ac_res=$ac_cv_search_res_9_init
15726 if test "$ac_res" != no; then :
15727 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15732 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
15733 $as_echo_n "checking for library containing res_init... " >&6; }
15734 if ${ac_cv_search_res_init+:} false; then :
15735 $as_echo_n "(cached) " >&6
15737 ac_func_search_save_LIBS=$LIBS
15738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15739 /* end confdefs.h. */
15741 /* Override any GCC internal prototype to avoid an error.
15742 Use char because int might match the return type of a GCC
15743 builtin and then its argument prototype would still apply. */
15751 return res_init ();
15756 for ac_lib in '' resolv; do
15757 if test -z "$ac_lib"; then
15758 ac_res="none required"
15761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15763 if ac_fn_c_try_link "$LINENO"; then :
15764 ac_cv_search_res_init=$ac_res
15766 rm -f core conftest.err conftest.$ac_objext \
15768 if ${ac_cv_search_res_init+:} false; then :
15772 if ${ac_cv_search_res_init+:} false; then :
15775 ac_cv_search_res_init=no
15777 rm conftest.$ac_ext
15778 LIBS=$ac_func_search_save_LIBS
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
15781 $as_echo "$ac_cv_search_res_init" >&6; }
15782 ac_res=$ac_cv_search_res_init
15783 if test "$ac_res" != no; then :
15784 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15790 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
15792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15793 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
15794 # include <sys/types.h>
15796 #ifdef HAVE_NETINET_IN_H
15797 # include <netinet/in.h> /* inet_ functions / structs */
15799 #ifdef HAVE_ARPA_NAMESER_H
15800 # include <arpa/nameser.h> /* DNS HEADER struct */
15802 #ifdef HAVE_NETDB_H
15803 # include <netdb.h>
15806 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15807 cat >>confdefs.h <<_ACEOF
15808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15816 #HMS: Why do we do this check so "early"?
15817 for ac_func in res_init
15819 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
15820 if test "x$ac_cv_func_res_init" = xyes; then :
15821 cat >>confdefs.h <<_ACEOF
15822 #define HAVE_RES_INIT 1
15826 for ac_func in __res_init
15828 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
15829 if test "x$ac_cv_func___res_init" = xyes; then :
15830 cat >>confdefs.h <<_ACEOF
15831 #define HAVE___RES_INIT 1
15841 # We also need -lsocket, but we have tested for that already.
15842 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
15843 if test "x$ac_cv_func_inet_ntop" = xyes; then :
15847 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
15851 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
15852 if test "x$ac_cv_func_inet_pton" = xyes; then :
15856 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
15861 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15862 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15864 cat >>confdefs.h <<_ACEOF
15865 #define HAVE_UINTPTR_T 1
15870 ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
15871 if test "x$ac_cv_type_int32" = xyes; then :
15873 cat >>confdefs.h <<_ACEOF
15874 #define HAVE_INT32 1
15879 ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
15880 if test "x$ac_cv_type_u_int32" = xyes; then :
15882 cat >>confdefs.h <<_ACEOF
15883 #define HAVE_U_INT32 1
15892 case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
15895 $as_echo_n "checking for int32 with DNS headers included... " >&6; }
15896 if ${ntp_cv_type_int32_with_dns+:} false; then :
15897 $as_echo_n "(cached) " >&6
15899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15900 /* end confdefs.h. */
15902 #ifdef HAVE_ARPA_NAMESER_H
15903 # include <arpa/nameser.h>
15905 #include <resolv.h>
15911 size_t cb = sizeof(int32);
15918 if ac_fn_c_try_compile "$LINENO"; then :
15919 ntp_cv_type_int32_with_dns=yes
15921 ntp_cv_type_int32_with_dns=no
15924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
15928 $as_echo "$ntp_cv_type_int32_with_dns" >&6; }
15929 case "$ntp_cv_type_int32_with_dns" in
15932 $as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
15937 case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
15940 $as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
15941 if ${ntp_cv_type_u_int32_with_dns+:} false; then :
15942 $as_echo_n "(cached) " >&6
15944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945 /* end confdefs.h. */
15947 #ifdef HAVE_ARPA_NAMESER_H
15948 # include <arpa/nameser.h>
15950 #include <resolv.h>
15956 size_t cb = sizeof(u_int32);
15963 if ac_fn_c_try_compile "$LINENO"; then :
15964 ntp_cv_type_u_int32_with_dns=yes
15966 ntp_cv_type_u_int32_with_dns=no
15969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
15973 $as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
15974 case "$ntp_cv_type_u_int32_with_dns" in
15977 $as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
15982 for ac_header in sys/timepps.h
15984 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
15985 #ifdef HAVE_SYS_TIME_H
15986 # include <sys/time.h>
15988 #ifdef HAVE_ERRNO_H
15989 # include <errno.h>
15994 if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
15995 cat >>confdefs.h <<_ACEOF
15996 #define HAVE_SYS_TIMEPPS_H 1
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
16005 $as_echo_n "checking for struct timespec... " >&6; }
16006 if ${ntp_cv_struct_timespec+:} false; then :
16007 $as_echo_n "(cached) " >&6
16009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16010 /* end confdefs.h. */
16012 #include <sys/time.h>
16013 /* Under SunOS, timespec is in sys/timepps.h,
16014 which needs errno.h and FRAC */
16015 #ifdef HAVE_ERRNO_H
16016 # include <errno.h>
16018 #ifdef HAVE_SYS_TIMEPPS_H
16019 # define FRAC 4294967296
16020 # include <sys/timepps.h>
16034 if ac_fn_c_try_compile "$LINENO"; then :
16035 ntp_cv_struct_timespec=yes
16037 ntp_cv_struct_timespec=no
16040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
16044 $as_echo "$ntp_cv_struct_timespec" >&6; }
16045 case "$ntp_cv_struct_timespec" in
16048 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
16053 $as_echo_n "checking for struct ntptimeval... " >&6; }
16054 if ${ntp_cv_struct_ntptimeval+:} false; then :
16055 $as_echo_n "(cached) " >&6
16057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058 /* end confdefs.h. */
16060 #include <sys/time.h>
16061 #include <sys/timex.h>
16067 struct ntptimeval n;
16074 if ac_fn_c_try_compile "$LINENO"; then :
16075 ntp_cv_struct_ntptimeval=yes
16077 ntp_cv_struct_ntptimeval=no
16080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
16084 $as_echo "$ntp_cv_struct_ntptimeval" >&6; }
16085 case "$ntp_cv_struct_ntptimeval" in
16088 $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
16092 for ac_header in md5.h
16094 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
16095 #ifdef HAVE_SYS_TYPES_H
16096 # include <sys/types.h>
16101 if test "x$ac_cv_header_md5_h" = xyes; then :
16102 cat >>confdefs.h <<_ACEOF
16103 #define HAVE_MD5_H 1
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
16112 $as_echo_n "checking for library containing MD5Init... " >&6; }
16113 if ${ac_cv_search_MD5Init+:} false; then :
16114 $as_echo_n "(cached) " >&6
16116 ac_func_search_save_LIBS=$LIBS
16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16118 /* end confdefs.h. */
16120 /* Override any GCC internal prototype to avoid an error.
16121 Use char because int might match the return type of a GCC
16122 builtin and then its argument prototype would still apply. */
16135 for ac_lib in '' md5 md; do
16136 if test -z "$ac_lib"; then
16137 ac_res="none required"
16140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16142 if ac_fn_c_try_link "$LINENO"; then :
16143 ac_cv_search_MD5Init=$ac_res
16145 rm -f core conftest.err conftest.$ac_objext \
16147 if ${ac_cv_search_MD5Init+:} false; then :
16151 if ${ac_cv_search_MD5Init+:} false; then :
16154 ac_cv_search_MD5Init=no
16156 rm conftest.$ac_ext
16157 LIBS=$ac_func_search_save_LIBS
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
16160 $as_echo "$ac_cv_search_MD5Init" >&6; }
16161 ac_res=$ac_cv_search_MD5Init
16162 if test "$ac_res" != no; then :
16163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16167 for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
16169 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16170 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16171 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16172 cat >>confdefs.h <<_ACEOF
16173 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
16181 $as_echo_n "checking for SIGIO... " >&6; }
16182 if ${ntp_cv_hdr_def_sigio+:} false; then :
16183 $as_echo_n "(cached) " >&6
16185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16186 /* end confdefs.h. */
16188 #include <signal.h>
16195 if ac_fn_c_try_cpp "$LINENO"; then :
16196 ntp_cv_hdr_def_sigio=yes
16198 ntp_cv_hdr_def_sigio=no
16201 rm -f conftest.err conftest.i conftest.$ac_ext
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
16205 $as_echo "$ntp_cv_hdr_def_sigio" >&6; }
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
16208 $as_echo_n "checking if we want to use SIGIO... " >&6; }
16210 case "$ntp_cv_hdr_def_sigio" in
16214 alpha*-dec-osf4*|alpha*-dec-osf5*)
16259 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
16263 $as_echo "$ans" >&6; }
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
16266 $as_echo_n "checking for SIGPOLL... " >&6; }
16267 if ${ntp_cv_hdr_def_sigpoll+:} false; then :
16268 $as_echo_n "(cached) " >&6
16270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16271 /* end confdefs.h. */
16273 #include <signal.h>
16280 if ac_fn_c_try_cpp "$LINENO"; then :
16281 ntp_cv_hdr_def_sigpoll=yes
16283 ntp_cv_hdr_def_sigpoll=no
16286 rm -f conftest.err conftest.i conftest.$ac_ext
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
16290 $as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
16293 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
16295 case "$ntp_cv_hdr_def_sigpoll" in
16314 # XXX Only verified thru AIX6
16352 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
16356 $as_echo "$ans" >&6; }
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
16359 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
16361 case "$ntp_cv_hdr_def_sigpoll" in
16380 # XXX Only verified thru AIX6
16415 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
16419 $as_echo "$ans" >&6; }
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
16422 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
16423 if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
16424 $as_echo_n "(cached) " >&6
16426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16427 /* end confdefs.h. */
16429 #include <sys/time.h>
16435 gettimeofday(0, 0);
16436 settimeofday(0, 0);
16443 if ac_fn_c_try_compile "$LINENO"; then :
16444 ntp_cv_func_Xettimeofday_nargs=2
16446 ntp_cv_func_Xettimeofday_nargs=1
16449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
16453 $as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
16454 case "$ntp_cv_func_Xettimeofday_nargs" in
16457 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
16461 for ac_func in settimeofday
16463 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
16464 if test "x$ac_cv_func_settimeofday" = xyes; then :
16465 cat >>confdefs.h <<_ACEOF
16466 #define HAVE_SETTIMEOFDAY 1
16472 *-*-mpeix*) ac_cv_func_settimeofday=yes
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
16480 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
16481 ntp_warning='GRONK'
16483 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
16486 ans='clock_settime()'
16489 ntp_warning='But clock_settime() would be better (if we had it)'
16490 ans='settimeofday()'
16493 ntp_warning='Which is the worst of the three'
16499 ntp_warning='Which leaves us with nothing to use!'
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
16503 $as_echo "$ans" >&6; }
16504 case "$ntp_warning" in
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
16509 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
16514 LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
16516 { __LIBS=; unset __LIBS;}
16520 # Check whether --enable-shared was given.
16521 if test "${enable_shared+set}" = set; then :
16522 enableval=$enable_shared; p=${PACKAGE-default}
16524 yes) enable_shared=yes ;;
16525 no) enable_shared=no ;;
16528 # Look at the argument we got. We use all the common list separators.
16529 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16530 for pkg in $enableval; do
16532 if test "X$pkg" = "X$p"; then
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
16554 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
16559 macro_version='2.4.2'
16560 macro_revision='1.3337'
16574 ltmain="$ac_aux_dir/ltmain.sh"
16576 # Backslashify metacharacters that are still active within
16577 # double-quoted strings.
16578 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16580 # Same as above, but do not quote variable references.
16581 double_quote_subst='s/\(["`\\]\)/\\\1/g'
16583 # Sed substitution to delay expansion of an escaped shell variable in a
16584 # double_quote_subst'ed string.
16585 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16587 # Sed substitution to delay expansion of an escaped single quote.
16588 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
16590 # Sed substitution to avoid accidental globbing in evaled expressions
16591 no_glob_subst='s/\*/\\\*/g'
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
16594 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
16595 if ${lt_cv_path_NM+:} false; then :
16596 $as_echo_n "(cached) " >&6
16598 if test -n "$NM"; then
16599 # Let the user override the test.
16600 lt_cv_path_NM="$NM"
16602 lt_nm_to_check="${ac_tool_prefix}nm"
16603 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
16604 lt_nm_to_check="$lt_nm_to_check nm"
16606 for lt_tmp_nm in $lt_nm_to_check; do
16607 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16608 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
16610 test -z "$ac_dir" && ac_dir=.
16611 tmp_nm="$ac_dir/$lt_tmp_nm"
16612 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
16613 # Check to see if the nm accepts a BSD-compat flag.
16614 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
16615 # nm: unknown option "B" ignored
16616 # Tru64's nm complains that /dev/null is an invalid object file
16617 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
16618 */dev/null* | *'Invalid file or object type'*)
16619 lt_cv_path_NM="$tmp_nm -B"
16623 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
16625 lt_cv_path_NM="$tmp_nm -p"
16629 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
16630 continue # so that we can try to find one that supports BSD flags
16639 : ${lt_cv_path_NM=no}
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
16643 $as_echo "$lt_cv_path_NM" >&6; }
16644 if test "$lt_cv_path_NM" != "no"; then
16645 NM="$lt_cv_path_NM"
16647 # Didn't find any BSD compatible name lister, look for dumpbin.
16648 if test -n "$DUMPBIN"; then :
16649 # Let the user override the test.
16651 if test -n "$ac_tool_prefix"; then
16652 for ac_prog in dumpbin "link -dump"
16654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16657 $as_echo_n "checking for $ac_word... " >&6; }
16658 if ${ac_cv_prog_DUMPBIN+:} false; then :
16659 $as_echo_n "(cached) " >&6
16661 if test -n "$DUMPBIN"; then
16662 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
16664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16665 for as_dir in $PATH
16668 test -z "$as_dir" && as_dir=.
16669 for ac_exec_ext in '' $ac_executable_extensions; do
16670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16671 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
16672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16681 DUMPBIN=$ac_cv_prog_DUMPBIN
16682 if test -n "$DUMPBIN"; then
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
16684 $as_echo "$DUMPBIN" >&6; }
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16687 $as_echo "no" >&6; }
16691 test -n "$DUMPBIN" && break
16694 if test -z "$DUMPBIN"; then
16695 ac_ct_DUMPBIN=$DUMPBIN
16696 for ac_prog in dumpbin "link -dump"
16698 # Extract the first word of "$ac_prog", so it can be a program name with args.
16699 set dummy $ac_prog; ac_word=$2
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16701 $as_echo_n "checking for $ac_word... " >&6; }
16702 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
16703 $as_echo_n "(cached) " >&6
16705 if test -n "$ac_ct_DUMPBIN"; then
16706 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
16708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16709 for as_dir in $PATH
16712 test -z "$as_dir" && as_dir=.
16713 for ac_exec_ext in '' $ac_executable_extensions; do
16714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16715 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
16716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16725 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
16726 if test -n "$ac_ct_DUMPBIN"; then
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
16728 $as_echo "$ac_ct_DUMPBIN" >&6; }
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16731 $as_echo "no" >&6; }
16735 test -n "$ac_ct_DUMPBIN" && break
16738 if test "x$ac_ct_DUMPBIN" = x; then
16741 case $cross_compiling:$ac_tool_warned in
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16745 ac_tool_warned=yes ;;
16747 DUMPBIN=$ac_ct_DUMPBIN
16751 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
16753 DUMPBIN="$DUMPBIN -symbols"
16761 if test "$DUMPBIN" != ":"; then
16765 test -z "$NM" && NM=nm
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
16773 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
16774 if ${lt_cv_nm_interface+:} false; then :
16775 $as_echo_n "(cached) " >&6
16777 lt_cv_nm_interface="BSD nm"
16778 echo "int some_variable = 0;" > conftest.$ac_ext
16779 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
16780 (eval "$ac_compile" 2>conftest.err)
16781 cat conftest.err >&5
16782 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
16783 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
16784 cat conftest.err >&5
16785 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
16786 cat conftest.out >&5
16787 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
16788 lt_cv_nm_interface="MS dumpbin"
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
16793 $as_echo "$lt_cv_nm_interface" >&6; }
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16796 $as_echo_n "checking whether ln -s works... " >&6; }
16798 if test "$LN_S" = "ln -s"; then
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16800 $as_echo "yes" >&6; }
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16803 $as_echo "no, using $LN_S" >&6; }
16806 # find the maximum length of command line arguments
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
16808 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
16809 if ${lt_cv_sys_max_cmd_len+:} false; then :
16810 $as_echo_n "(cached) " >&6
16817 # On DJGPP, this test can blow up pretty badly due to problems in libc
16818 # (any single argument exceeding 2000 bytes causes a buffer overrun
16819 # during glob expansion). Even if it were fixed, the result of this
16820 # check would be larger than it should be.
16821 lt_cv_sys_max_cmd_len=12288; # 12K is about right
16825 # Under GNU Hurd, this test is not required because there is
16826 # no limit to the length of command line arguments.
16827 # Libtool will interpret -1 as no limit whatsoever
16828 lt_cv_sys_max_cmd_len=-1;
16831 cygwin* | mingw* | cegcc*)
16832 # On Win9x/ME, this test blows up -- it succeeds, but takes
16833 # about 5 minutes as the teststring grows exponentially.
16834 # Worse, since 9x/ME are not pre-emptively multitasking,
16835 # you end up with a "frozen" computer, even though with patience
16836 # the test eventually succeeds (with a max line length of 256k).
16837 # Instead, let's just punt: use the minimum linelength reported by
16838 # all of the supported platforms: 8192 (on NT/2K/XP).
16839 lt_cv_sys_max_cmd_len=8192;
16843 # On MiNT this can take a long time and run out of memory.
16844 lt_cv_sys_max_cmd_len=8192;
16848 # On AmigaOS with pdksh, this test takes hours, literally.
16849 # So we just punt and use a minimum line length of 8192.
16850 lt_cv_sys_max_cmd_len=8192;
16853 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
16854 # This has been around since 386BSD, at least. Likely further.
16855 if test -x /sbin/sysctl; then
16856 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16857 elif test -x /usr/sbin/sysctl; then
16858 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16860 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
16862 # And add a safety zone
16863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16868 # We know the value 262144 and hardcode it with a safety zone (like BSD)
16869 lt_cv_sys_max_cmd_len=196608
16873 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16874 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16875 # nice to cause kernel panics so lets avoid the loop below.
16876 # First set a reasonable default.
16877 lt_cv_sys_max_cmd_len=16384
16879 if test -x /sbin/sysconfig; then
16880 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16881 *1*) lt_cv_sys_max_cmd_len=-1 ;;
16886 lt_cv_sys_max_cmd_len=102400
16888 sysv5* | sco5v6* | sysv4.2uw2*)
16889 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
16890 if test -n "$kargmax"; then
16891 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
16893 lt_cv_sys_max_cmd_len=32768
16897 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
16898 if test -n "$lt_cv_sys_max_cmd_len"; then
16899 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16902 # Make teststring a little bigger before we do anything with it.
16903 # a 1K string should be a reasonable start.
16904 for i in 1 2 3 4 5 6 7 8 ; do
16905 teststring=$teststring$teststring
16907 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16908 # If test is not a shell built-in, we'll probably end up computing a
16909 # maximum length that is only half of the actual maximum length, but
16911 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
16912 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
16913 test $i != 17 # 1/2 MB should be enough
16916 teststring=$teststring$teststring
16918 # Only check the string length outside the loop.
16919 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
16921 # Add a significant safety factor because C++ compilers can tack on
16922 # massive amounts of additional arguments before passing them to the
16923 # linker. It appears as though 1/2 is a usable value.
16924 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16931 if test -n $lt_cv_sys_max_cmd_len ; then
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
16933 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16936 $as_echo "none" >&6; }
16938 max_cmd_len=$lt_cv_sys_max_cmd_len
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
16950 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
16951 # Try some XSI features
16953 ( _lt_dummy="a/b/c"
16954 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
16956 && eval 'test $(( 1 + 1 )) -eq 2 \
16957 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
16960 $as_echo "$xsi_shell" >&6; }
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
16964 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
16966 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
16968 && lt_shell_append=yes
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
16970 $as_echo "$lt_shell_append" >&6; }
16973 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16983 # test EBCDIC or ASCII
16984 case `echo X|tr X '\101'` in
16985 A) # ASCII based system
16986 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16987 lt_SP2NL='tr \040 \012'
16988 lt_NL2SP='tr \015\012 \040\040'
16990 *) # EBCDIC based system
16991 lt_SP2NL='tr \100 \n'
16992 lt_NL2SP='tr \r\n \100\100'
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
17005 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
17006 if ${lt_cv_to_host_file_cmd+:} false; then :
17007 $as_echo_n "(cached) " >&6
17012 *-*-mingw* ) # actually msys
17013 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
17016 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
17018 * ) # otherwise, assume *nix
17019 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
17025 *-*-mingw* ) # actually msys
17026 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
17029 lt_cv_to_host_file_cmd=func_convert_file_noop
17031 * ) # otherwise, assume *nix
17032 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
17036 * ) # unhandled hosts (and "normal" native builds)
17037 lt_cv_to_host_file_cmd=func_convert_file_noop
17043 to_host_file_cmd=$lt_cv_to_host_file_cmd
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
17045 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
17052 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
17053 if ${lt_cv_to_tool_file_cmd+:} false; then :
17054 $as_echo_n "(cached) " >&6
17056 #assume ordinary cross tools, or native build.
17057 lt_cv_to_tool_file_cmd=func_convert_file_noop
17061 *-*-mingw* ) # actually msys
17062 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
17070 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
17072 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
17079 $as_echo_n "checking for $LD option to reload object files... " >&6; }
17080 if ${lt_cv_ld_reload_flag+:} false; then :
17081 $as_echo_n "(cached) " >&6
17083 lt_cv_ld_reload_flag='-r'
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
17086 $as_echo "$lt_cv_ld_reload_flag" >&6; }
17087 reload_flag=$lt_cv_ld_reload_flag
17088 case $reload_flag in
17090 *) reload_flag=" $reload_flag" ;;
17092 reload_cmds='$LD$reload_flag -o $output$reload_objs'
17094 cygwin* | mingw* | pw32* | cegcc*)
17095 if test "$GCC" != yes; then
17100 if test "$GCC" = yes; then
17101 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
17103 reload_cmds='$LD$reload_flag -o $output$reload_objs'
17116 if test -n "$ac_tool_prefix"; then
17117 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
17118 set dummy ${ac_tool_prefix}objdump; ac_word=$2
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17120 $as_echo_n "checking for $ac_word... " >&6; }
17121 if ${ac_cv_prog_OBJDUMP+:} false; then :
17122 $as_echo_n "(cached) " >&6
17124 if test -n "$OBJDUMP"; then
17125 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
17127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17128 for as_dir in $PATH
17131 test -z "$as_dir" && as_dir=.
17132 for ac_exec_ext in '' $ac_executable_extensions; do
17133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17134 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
17135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17144 OBJDUMP=$ac_cv_prog_OBJDUMP
17145 if test -n "$OBJDUMP"; then
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
17147 $as_echo "$OBJDUMP" >&6; }
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17150 $as_echo "no" >&6; }
17155 if test -z "$ac_cv_prog_OBJDUMP"; then
17156 ac_ct_OBJDUMP=$OBJDUMP
17157 # Extract the first word of "objdump", so it can be a program name with args.
17158 set dummy objdump; ac_word=$2
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17160 $as_echo_n "checking for $ac_word... " >&6; }
17161 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
17162 $as_echo_n "(cached) " >&6
17164 if test -n "$ac_ct_OBJDUMP"; then
17165 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
17167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17168 for as_dir in $PATH
17171 test -z "$as_dir" && as_dir=.
17172 for ac_exec_ext in '' $ac_executable_extensions; do
17173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17174 ac_cv_prog_ac_ct_OBJDUMP="objdump"
17175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17184 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
17185 if test -n "$ac_ct_OBJDUMP"; then
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
17187 $as_echo "$ac_ct_OBJDUMP" >&6; }
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17190 $as_echo "no" >&6; }
17193 if test "x$ac_ct_OBJDUMP" = x; then
17196 case $cross_compiling:$ac_tool_warned in
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17200 ac_tool_warned=yes ;;
17202 OBJDUMP=$ac_ct_OBJDUMP
17205 OBJDUMP="$ac_cv_prog_OBJDUMP"
17208 test -z "$OBJDUMP" && OBJDUMP=objdump
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
17219 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
17220 if ${lt_cv_deplibs_check_method+:} false; then :
17221 $as_echo_n "(cached) " >&6
17223 lt_cv_file_magic_cmd='$MAGIC_CMD'
17224 lt_cv_file_magic_test_file=
17225 lt_cv_deplibs_check_method='unknown'
17226 # Need to set the preceding variable on all platforms that support
17227 # interlibrary dependencies.
17228 # 'none' -- dependencies not supported.
17229 # `unknown' -- same as none, but documents that we really don't know.
17230 # 'pass_all' -- all dependencies passed with no checks.
17231 # 'test_compile' -- check by making test program.
17232 # 'file_magic [[regex]]' -- check by looking for files in library path
17233 # which responds to the $file_magic_cmd with a given extended regex.
17234 # If you have `file' or equivalent on your system and you're not sure
17235 # whether `pass_all' will *always* work, you probably want this one.
17239 lt_cv_deplibs_check_method=pass_all
17243 lt_cv_deplibs_check_method=pass_all
17247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
17248 lt_cv_file_magic_cmd='/usr/bin/file -L'
17249 lt_cv_file_magic_test_file=/shlib/libc.so
17253 # func_win32_libid is a shell function defined in ltmain.sh
17254 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
17255 lt_cv_file_magic_cmd='func_win32_libid'
17259 # Base MSYS/MinGW do not provide the 'file' command needed by
17260 # func_win32_libid shell function, so use a weaker test based on 'objdump',
17261 # unless we find 'file', for example because we are cross-compiling.
17262 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
17263 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
17264 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
17265 lt_cv_file_magic_cmd='func_win32_libid'
17267 # Keep this pattern in sync with the one in func_win32_libid.
17268 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
17269 lt_cv_file_magic_cmd='$OBJDUMP -f'
17274 # use the weaker test based on 'objdump'. See mingw*.
17275 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
17276 lt_cv_file_magic_cmd='$OBJDUMP -f'
17279 darwin* | rhapsody*)
17280 lt_cv_deplibs_check_method=pass_all
17283 freebsd* | dragonfly*)
17284 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
17287 # Not sure whether the presence of OpenBSD here was a mistake.
17288 # Let's accept both of them until this is cleared up.
17289 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
17290 lt_cv_file_magic_cmd=/usr/bin/file
17291 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
17295 lt_cv_deplibs_check_method=pass_all
17300 lt_cv_deplibs_check_method=pass_all
17304 lt_cv_deplibs_check_method=pass_all
17307 hpux10.20* | hpux11*)
17308 lt_cv_file_magic_cmd=/usr/bin/file
17311 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
17312 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
17315 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]'
17316 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
17319 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
17320 lt_cv_file_magic_test_file=/usr/lib/libc.sl
17326 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
17327 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
17330 irix5* | irix6* | nonstopux*)
17332 *-32|*"-32 ") libmagic=32-bit;;
17333 *-n32|*"-n32 ") libmagic=N32;;
17334 *-64|*"-64 ") libmagic=64-bit;;
17335 *) libmagic=never-match;;
17337 lt_cv_deplibs_check_method=pass_all
17340 # This must be Linux ELF.
17341 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17342 lt_cv_deplibs_check_method=pass_all
17346 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
17347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
17349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
17354 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
17355 lt_cv_file_magic_cmd=/usr/bin/file
17356 lt_cv_file_magic_test_file=/usr/lib/libnls.so
17360 lt_cv_deplibs_check_method=pass_all
17364 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
17367 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
17371 osf3* | osf4* | osf5*)
17372 lt_cv_deplibs_check_method=pass_all
17376 lt_cv_deplibs_check_method=pass_all
17380 lt_cv_deplibs_check_method=pass_all
17383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17384 lt_cv_deplibs_check_method=pass_all
17388 case $host_vendor in
17390 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]'
17391 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
17394 lt_cv_deplibs_check_method=pass_all
17397 lt_cv_file_magic_cmd='/bin/file'
17398 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
17401 lt_cv_file_magic_cmd='/bin/file'
17402 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
17403 lt_cv_file_magic_test_file=/lib/libc.so
17406 lt_cv_deplibs_check_method=pass_all
17409 lt_cv_deplibs_check_method=pass_all
17415 lt_cv_deplibs_check_method=pass_all
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
17421 $as_echo "$lt_cv_deplibs_check_method" >&6; }
17425 if test "$build" = "$host"; then
17428 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
17429 want_nocaseglob=yes
17431 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
17437 file_magic_cmd=$lt_cv_file_magic_cmd
17438 deplibs_check_method=$lt_cv_deplibs_check_method
17439 test -z "$deplibs_check_method" && deplibs_check_method=unknown
17462 if test -n "$ac_tool_prefix"; then
17463 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
17464 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17466 $as_echo_n "checking for $ac_word... " >&6; }
17467 if ${ac_cv_prog_DLLTOOL+:} false; then :
17468 $as_echo_n "(cached) " >&6
17470 if test -n "$DLLTOOL"; then
17471 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17474 for as_dir in $PATH
17477 test -z "$as_dir" && as_dir=.
17478 for ac_exec_ext in '' $ac_executable_extensions; do
17479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17480 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
17481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17490 DLLTOOL=$ac_cv_prog_DLLTOOL
17491 if test -n "$DLLTOOL"; then
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
17493 $as_echo "$DLLTOOL" >&6; }
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17496 $as_echo "no" >&6; }
17501 if test -z "$ac_cv_prog_DLLTOOL"; then
17502 ac_ct_DLLTOOL=$DLLTOOL
17503 # Extract the first word of "dlltool", so it can be a program name with args.
17504 set dummy dlltool; ac_word=$2
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17506 $as_echo_n "checking for $ac_word... " >&6; }
17507 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
17508 $as_echo_n "(cached) " >&6
17510 if test -n "$ac_ct_DLLTOOL"; then
17511 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
17513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17514 for as_dir in $PATH
17517 test -z "$as_dir" && as_dir=.
17518 for ac_exec_ext in '' $ac_executable_extensions; do
17519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17520 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
17521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17530 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
17531 if test -n "$ac_ct_DLLTOOL"; then
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
17533 $as_echo "$ac_ct_DLLTOOL" >&6; }
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17536 $as_echo "no" >&6; }
17539 if test "x$ac_ct_DLLTOOL" = x; then
17542 case $cross_compiling:$ac_tool_warned in
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17546 ac_tool_warned=yes ;;
17548 DLLTOOL=$ac_ct_DLLTOOL
17551 DLLTOOL="$ac_cv_prog_DLLTOOL"
17554 test -z "$DLLTOOL" && DLLTOOL=dlltool
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
17566 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
17567 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
17568 $as_echo_n "(cached) " >&6
17570 lt_cv_sharedlib_from_linklib_cmd='unknown'
17573 cygwin* | mingw* | pw32* | cegcc*)
17574 # two different shell functions defined in ltmain.sh
17575 # decide which to use based on capabilities of $DLLTOOL
17576 case `$DLLTOOL --help 2>&1` in
17577 *--identify-strict*)
17578 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
17581 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
17586 # fallback: assume linklib IS sharedlib
17587 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
17593 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
17594 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
17595 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
17603 if test -n "$ac_tool_prefix"; then
17606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17609 $as_echo_n "checking for $ac_word... " >&6; }
17610 if ${ac_cv_prog_AR+:} false; then :
17611 $as_echo_n "(cached) " >&6
17613 if test -n "$AR"; then
17614 ac_cv_prog_AR="$AR" # Let the user override the test.
17616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17617 for as_dir in $PATH
17620 test -z "$as_dir" && as_dir=.
17621 for ac_exec_ext in '' $ac_executable_extensions; do
17622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17623 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
17624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17634 if test -n "$AR"; then
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
17636 $as_echo "$AR" >&6; }
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17639 $as_echo "no" >&6; }
17643 test -n "$AR" && break
17646 if test -z "$AR"; then
17650 # Extract the first word of "$ac_prog", so it can be a program name with args.
17651 set dummy $ac_prog; ac_word=$2
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17653 $as_echo_n "checking for $ac_word... " >&6; }
17654 if ${ac_cv_prog_ac_ct_AR+:} false; then :
17655 $as_echo_n "(cached) " >&6
17657 if test -n "$ac_ct_AR"; then
17658 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17661 for as_dir in $PATH
17664 test -z "$as_dir" && as_dir=.
17665 for ac_exec_ext in '' $ac_executable_extensions; do
17666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17667 ac_cv_prog_ac_ct_AR="$ac_prog"
17668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17677 ac_ct_AR=$ac_cv_prog_ac_ct_AR
17678 if test -n "$ac_ct_AR"; then
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
17680 $as_echo "$ac_ct_AR" >&6; }
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17683 $as_echo "no" >&6; }
17687 test -n "$ac_ct_AR" && break
17690 if test "x$ac_ct_AR" = x; then
17693 case $cross_compiling:$ac_tool_warned in
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17697 ac_tool_warned=yes ;;
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
17717 $as_echo_n "checking for archiver @FILE support... " >&6; }
17718 if ${lt_cv_ar_at_file+:} false; then :
17719 $as_echo_n "(cached) " >&6
17721 lt_cv_ar_at_file=no
17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17723 /* end confdefs.h. */
17733 if ac_fn_c_try_compile "$LINENO"; then :
17734 echo conftest.$ac_objext > conftest.lst
17735 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
17736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
17737 (eval $lt_ar_try) 2>&5
17739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17740 test $ac_status = 0; }
17741 if test "$ac_status" -eq 0; then
17742 # Ensure the archiver fails upon bogus file names.
17743 rm -f conftest.$ac_objext libconftest.a
17744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
17745 (eval $lt_ar_try) 2>&5
17747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17748 test $ac_status = 0; }
17749 if test "$ac_status" -ne 0; then
17753 rm -f conftest.* libconftest.a
17756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
17760 $as_echo "$lt_cv_ar_at_file" >&6; }
17762 if test "x$lt_cv_ar_at_file" = xno; then
17763 archiver_list_spec=
17765 archiver_list_spec=$lt_cv_ar_at_file
17774 if test -n "$ac_tool_prefix"; then
17775 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
17776 set dummy ${ac_tool_prefix}strip; ac_word=$2
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17778 $as_echo_n "checking for $ac_word... " >&6; }
17779 if ${ac_cv_prog_STRIP+:} false; then :
17780 $as_echo_n "(cached) " >&6
17782 if test -n "$STRIP"; then
17783 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
17785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17786 for as_dir in $PATH
17789 test -z "$as_dir" && as_dir=.
17790 for ac_exec_ext in '' $ac_executable_extensions; do
17791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17792 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
17793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17802 STRIP=$ac_cv_prog_STRIP
17803 if test -n "$STRIP"; then
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
17805 $as_echo "$STRIP" >&6; }
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17808 $as_echo "no" >&6; }
17813 if test -z "$ac_cv_prog_STRIP"; then
17815 # Extract the first word of "strip", so it can be a program name with args.
17816 set dummy strip; ac_word=$2
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17818 $as_echo_n "checking for $ac_word... " >&6; }
17819 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
17820 $as_echo_n "(cached) " >&6
17822 if test -n "$ac_ct_STRIP"; then
17823 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
17825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17826 for as_dir in $PATH
17829 test -z "$as_dir" && as_dir=.
17830 for ac_exec_ext in '' $ac_executable_extensions; do
17831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17832 ac_cv_prog_ac_ct_STRIP="strip"
17833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17842 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
17843 if test -n "$ac_ct_STRIP"; then
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
17845 $as_echo "$ac_ct_STRIP" >&6; }
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17848 $as_echo "no" >&6; }
17851 if test "x$ac_ct_STRIP" = x; then
17854 case $cross_compiling:$ac_tool_warned in
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17858 ac_tool_warned=yes ;;
17863 STRIP="$ac_cv_prog_STRIP"
17866 test -z "$STRIP" && STRIP=:
17873 if test -n "$ac_tool_prefix"; then
17874 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17875 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17877 $as_echo_n "checking for $ac_word... " >&6; }
17878 if ${ac_cv_prog_RANLIB+:} false; then :
17879 $as_echo_n "(cached) " >&6
17881 if test -n "$RANLIB"; then
17882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17885 for as_dir in $PATH
17888 test -z "$as_dir" && as_dir=.
17889 for ac_exec_ext in '' $ac_executable_extensions; do
17890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17891 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17901 RANLIB=$ac_cv_prog_RANLIB
17902 if test -n "$RANLIB"; then
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17904 $as_echo "$RANLIB" >&6; }
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17907 $as_echo "no" >&6; }
17912 if test -z "$ac_cv_prog_RANLIB"; then
17913 ac_ct_RANLIB=$RANLIB
17914 # Extract the first word of "ranlib", so it can be a program name with args.
17915 set dummy ranlib; ac_word=$2
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17917 $as_echo_n "checking for $ac_word... " >&6; }
17918 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
17919 $as_echo_n "(cached) " >&6
17921 if test -n "$ac_ct_RANLIB"; then
17922 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17925 for as_dir in $PATH
17928 test -z "$as_dir" && as_dir=.
17929 for ac_exec_ext in '' $ac_executable_extensions; do
17930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17931 ac_cv_prog_ac_ct_RANLIB="ranlib"
17932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17941 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17942 if test -n "$ac_ct_RANLIB"; then
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17944 $as_echo "$ac_ct_RANLIB" >&6; }
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17947 $as_echo "no" >&6; }
17950 if test "x$ac_ct_RANLIB" = x; then
17953 case $cross_compiling:$ac_tool_warned in
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17957 ac_tool_warned=yes ;;
17959 RANLIB=$ac_ct_RANLIB
17962 RANLIB="$ac_cv_prog_RANLIB"
17965 test -z "$RANLIB" && RANLIB=:
17972 # Determine commands to create old-style static archives.
17973 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
17974 old_postinstall_cmds='chmod 644 $oldlib'
17975 old_postuninstall_cmds=
17977 if test -n "$RANLIB"; then
17980 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
17983 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
17986 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
17991 lock_old_archive_extraction=yes ;;
17993 lock_old_archive_extraction=no ;;
18034 # If no C compiler was specified, use CC.
18037 # If no C compiler flags were specified, use CFLAGS.
18038 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18040 # Allow CC to be a program name with arguments.
18044 # Check for command to grab the raw symbol name followed by C symbol from nm.
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
18046 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
18047 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
18048 $as_echo_n "(cached) " >&6
18051 # These are sane defaults that work on at least a few old systems.
18052 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
18054 # Character class describing NM global symbol codes.
18055 symcode='[BCDEGRST]'
18057 # Regexp to match symbols that can be accessed directly from C.
18058 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
18060 # Define system-specific variables.
18065 cygwin* | mingw* | pw32* | cegcc*)
18066 symcode='[ABCDGISTW]'
18069 if test "$host_cpu" = ia64; then
18070 symcode='[ABCDEGRST]'
18073 irix* | nonstopux*)
18074 symcode='[BCDEGRST]'
18077 symcode='[BCDEGQRST]'
18088 sysv5* | sco5v6* | unixware* | OpenUNIX*)
18096 # If we're using GNU nm, then use its standard symbol codes.
18097 case `$NM -V 2>&1` in
18098 *GNU* | *'with BFD'*)
18099 symcode='[ABCDGIRSTW]' ;;
18102 # Transform an extracted symbol line into a proper C declaration.
18103 # Some systems (esp. on ia64) link data and code symbols differently,
18104 # so use this general approach.
18105 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
18107 # Transform an extracted symbol line into symbol name and symbol address
18108 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
18109 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'"
18111 # Handle CRLF in mingw tool chain
18115 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
18119 # Try without a prefix underscore, then with it.
18120 for ac_symprfx in "" "_"; do
18122 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
18123 symxfrm="\\1 $ac_symprfx\\2 \\2"
18125 # Write the raw and C identifiers.
18126 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
18127 # Fake it for dumpbin and say T for any non-static function
18128 # and D for any global variable.
18129 # Also find C++ and __fastcall symbols from MSVC++,
18130 # which start with @ or ?.
18131 lt_cv_sys_global_symbol_pipe="$AWK '"\
18132 " {last_section=section; section=\$ 3};"\
18133 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
18134 " \$ 0!~/External *\|/{next};"\
18135 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
18136 " {if(hide[section]) next};"\
18137 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
18138 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
18139 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
18140 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
18141 " ' prfx=^$ac_symprfx"
18143 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
18145 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
18147 # Check to see that the pipe works correctly.
18151 cat > conftest.$ac_ext <<_LT_EOF
18156 void nm_test_func(void);
18157 void nm_test_func(void){}
18161 int main(){nm_test_var='a';nm_test_func();return(0);}
18164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18165 (eval $ac_compile) 2>&5
18167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18168 test $ac_status = 0; }; then
18169 # Now try to grab the symbols.
18171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
18172 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
18174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18175 test $ac_status = 0; } && test -s "$nlist"; then
18176 # Try sorting and uniquifying the output.
18177 if sort "$nlist" | uniq > "$nlist"T; then
18178 mv -f "$nlist"T "$nlist"
18183 # Make sure that we snagged all the symbols we need.
18184 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
18185 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
18186 cat <<_LT_EOF > conftest.$ac_ext
18187 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
18188 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
18189 /* DATA imports from DLLs on WIN32 con't be const, because runtime
18190 relocations are performed -- see ld's documentation on pseudo-relocs. */
18191 # define LT_DLSYM_CONST
18192 #elif defined(__osf__)
18193 /* This system does not cope well with relocations in const data. */
18194 # define LT_DLSYM_CONST
18196 # define LT_DLSYM_CONST const
18204 # Now generate the symbol file.
18205 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
18207 cat <<_LT_EOF >> conftest.$ac_ext
18209 /* The mapping between symbol names and symbols. */
18210 LT_DLSYM_CONST struct {
18214 lt__PROGRAM__LTX_preloaded_symbols[] =
18216 { "@PROGRAM@", (void *) 0 },
18218 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
18219 cat <<\_LT_EOF >> conftest.$ac_ext
18223 /* This works around a problem in FreeBSD linker */
18224 #ifdef FREEBSD_WORKAROUND
18225 static const void *lt_preloaded_setup() {
18226 return lt__PROGRAM__LTX_preloaded_symbols;
18234 # Now try linking the two files.
18235 mv conftest.$ac_objext conftstm.$ac_objext
18236 lt_globsym_save_LIBS=$LIBS
18237 lt_globsym_save_CFLAGS=$CFLAGS
18238 LIBS="conftstm.$ac_objext"
18239 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
18240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18241 (eval $ac_link) 2>&5
18243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18244 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
18247 LIBS=$lt_globsym_save_LIBS
18248 CFLAGS=$lt_globsym_save_CFLAGS
18250 echo "cannot find nm_test_func in $nlist" >&5
18253 echo "cannot find nm_test_var in $nlist" >&5
18256 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
18259 echo "$progname: failed program was:" >&5
18260 cat conftest.$ac_ext >&5
18262 rm -rf conftest* conftst*
18264 # Do not use the global_symbol_pipe unless it works.
18265 if test "$pipe_works" = yes; then
18268 lt_cv_sys_global_symbol_pipe=
18274 if test -z "$lt_cv_sys_global_symbol_pipe"; then
18275 lt_cv_sys_global_symbol_to_cdecl=
18277 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
18279 $as_echo "failed" >&6; }
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18282 $as_echo "ok" >&6; }
18285 # Response file support.
18286 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
18287 nm_file_list_spec='@'
18288 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
18289 nm_file_list_spec='@'
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
18319 $as_echo_n "checking for sysroot... " >&6; }
18321 # Check whether --with-sysroot was given.
18322 if test "${with_sysroot+set}" = set; then :
18323 withval=$with_sysroot;
18330 case ${with_sysroot} in #(
18332 if test "$GCC" = yes; then
18333 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
18337 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
18343 $as_echo "${with_sysroot}" >&6; }
18344 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
18349 $as_echo "${lt_sysroot:-no}" >&6; }
18355 # Check whether --enable-libtool-lock was given.
18356 if test "${enable_libtool_lock+set}" = set; then :
18357 enableval=$enable_libtool_lock;
18360 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
18362 # Some flags need to be propagated to the compiler or linker for good
18366 # Find out which ABI we are using.
18367 echo 'int i;' > conftest.$ac_ext
18368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18369 (eval $ac_compile) 2>&5
18371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18372 test $ac_status = 0; }; then
18373 case `/usr/bin/file conftest.$ac_objext` in
18375 HPUX_IA64_MODE="32"
18378 HPUX_IA64_MODE="64"
18385 # Find out which ABI we are using.
18386 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
18387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18388 (eval $ac_compile) 2>&5
18390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18391 test $ac_status = 0; }; then
18392 if test "$lt_cv_prog_gnu_ld" = yes; then
18393 case `/usr/bin/file conftest.$ac_objext` in
18395 LD="${LD-ld} -melf32bsmip"
18398 LD="${LD-ld} -melf32bmipn32"
18401 LD="${LD-ld} -melf64bmip"
18405 case `/usr/bin/file conftest.$ac_objext` in
18421 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
18422 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
18423 # Find out which ABI we are using.
18424 echo 'int i;' > conftest.$ac_ext
18425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18426 (eval $ac_compile) 2>&5
18428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18429 test $ac_status = 0; }; then
18430 case `/usr/bin/file conftest.o` in
18433 x86_64-*kfreebsd*-gnu)
18434 LD="${LD-ld} -m elf_i386_fbsd"
18437 LD="${LD-ld} -m elf_i386"
18439 ppc64-*linux*|powerpc64-*linux*)
18440 LD="${LD-ld} -m elf32ppclinux"
18443 LD="${LD-ld} -m elf_s390"
18446 LD="${LD-ld} -m elf32_sparc"
18452 x86_64-*kfreebsd*-gnu)
18453 LD="${LD-ld} -m elf_x86_64_fbsd"
18456 LD="${LD-ld} -m elf_x86_64"
18458 ppc*-*linux*|powerpc*-*linux*)
18459 LD="${LD-ld} -m elf64ppc"
18461 s390*-*linux*|s390*-*tpf*)
18462 LD="${LD-ld} -m elf64_s390"
18465 LD="${LD-ld} -m elf64_sparc"
18475 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
18476 SAVE_CFLAGS="$CFLAGS"
18477 CFLAGS="$CFLAGS -belf"
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
18479 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
18480 if ${lt_cv_cc_needs_belf+:} false; then :
18481 $as_echo_n "(cached) " >&6
18484 ac_cpp='$CPP $CPPFLAGS'
18485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18490 /* end confdefs.h. */
18500 if ac_fn_c_try_link "$LINENO"; then :
18501 lt_cv_cc_needs_belf=yes
18503 lt_cv_cc_needs_belf=no
18505 rm -f core conftest.err conftest.$ac_objext \
18506 conftest$ac_exeext conftest.$ac_ext
18508 ac_cpp='$CPP $CPPFLAGS'
18509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
18515 $as_echo "$lt_cv_cc_needs_belf" >&6; }
18516 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
18517 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
18518 CFLAGS="$SAVE_CFLAGS"
18522 # Find out which ABI we are using.
18523 echo 'int i;' > conftest.$ac_ext
18524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18525 (eval $ac_compile) 2>&5
18527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18528 test $ac_status = 0; }; then
18529 case `/usr/bin/file conftest.o` in
18531 case $lt_cv_prog_gnu_ld in
18532 yes*) LD="${LD-ld} -m elf64_sparc" ;;
18534 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
18546 need_locks="$enable_libtool_lock"
18548 if test -n "$ac_tool_prefix"; then
18549 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
18550 set dummy ${ac_tool_prefix}mt; ac_word=$2
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18552 $as_echo_n "checking for $ac_word... " >&6; }
18553 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
18554 $as_echo_n "(cached) " >&6
18556 if test -n "$MANIFEST_TOOL"; then
18557 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
18559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18560 for as_dir in $PATH
18563 test -z "$as_dir" && as_dir=.
18564 for ac_exec_ext in '' $ac_executable_extensions; do
18565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18566 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
18567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18576 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
18577 if test -n "$MANIFEST_TOOL"; then
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
18579 $as_echo "$MANIFEST_TOOL" >&6; }
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18582 $as_echo "no" >&6; }
18587 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
18588 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
18589 # Extract the first word of "mt", so it can be a program name with args.
18590 set dummy mt; ac_word=$2
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18592 $as_echo_n "checking for $ac_word... " >&6; }
18593 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
18594 $as_echo_n "(cached) " >&6
18596 if test -n "$ac_ct_MANIFEST_TOOL"; then
18597 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
18599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18600 for as_dir in $PATH
18603 test -z "$as_dir" && as_dir=.
18604 for ac_exec_ext in '' $ac_executable_extensions; do
18605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18606 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
18607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18616 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
18617 if test -n "$ac_ct_MANIFEST_TOOL"; then
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
18619 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18622 $as_echo "no" >&6; }
18625 if test "x$ac_ct_MANIFEST_TOOL" = x; then
18628 case $cross_compiling:$ac_tool_warned in
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18632 ac_tool_warned=yes ;;
18634 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
18637 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
18640 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
18642 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
18643 if ${lt_cv_path_mainfest_tool+:} false; then :
18644 $as_echo_n "(cached) " >&6
18646 lt_cv_path_mainfest_tool=no
18647 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
18648 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
18649 cat conftest.err >&5
18650 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
18651 lt_cv_path_mainfest_tool=yes
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
18656 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
18657 if test "x$lt_cv_path_mainfest_tool" != xyes; then
18667 rhapsody* | darwin*)
18668 if test -n "$ac_tool_prefix"; then
18669 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
18670 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18672 $as_echo_n "checking for $ac_word... " >&6; }
18673 if ${ac_cv_prog_DSYMUTIL+:} false; then :
18674 $as_echo_n "(cached) " >&6
18676 if test -n "$DSYMUTIL"; then
18677 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
18679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18680 for as_dir in $PATH
18683 test -z "$as_dir" && as_dir=.
18684 for ac_exec_ext in '' $ac_executable_extensions; do
18685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18686 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
18687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18696 DSYMUTIL=$ac_cv_prog_DSYMUTIL
18697 if test -n "$DSYMUTIL"; then
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18699 $as_echo "$DSYMUTIL" >&6; }
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18702 $as_echo "no" >&6; }
18707 if test -z "$ac_cv_prog_DSYMUTIL"; then
18708 ac_ct_DSYMUTIL=$DSYMUTIL
18709 # Extract the first word of "dsymutil", so it can be a program name with args.
18710 set dummy dsymutil; ac_word=$2
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18712 $as_echo_n "checking for $ac_word... " >&6; }
18713 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
18714 $as_echo_n "(cached) " >&6
18716 if test -n "$ac_ct_DSYMUTIL"; then
18717 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
18719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18720 for as_dir in $PATH
18723 test -z "$as_dir" && as_dir=.
18724 for ac_exec_ext in '' $ac_executable_extensions; do
18725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18726 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
18727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18736 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
18737 if test -n "$ac_ct_DSYMUTIL"; then
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
18739 $as_echo "$ac_ct_DSYMUTIL" >&6; }
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18742 $as_echo "no" >&6; }
18745 if test "x$ac_ct_DSYMUTIL" = x; then
18748 case $cross_compiling:$ac_tool_warned in
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18752 ac_tool_warned=yes ;;
18754 DSYMUTIL=$ac_ct_DSYMUTIL
18757 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
18760 if test -n "$ac_tool_prefix"; then
18761 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
18762 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18764 $as_echo_n "checking for $ac_word... " >&6; }
18765 if ${ac_cv_prog_NMEDIT+:} false; then :
18766 $as_echo_n "(cached) " >&6
18768 if test -n "$NMEDIT"; then
18769 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
18771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18772 for as_dir in $PATH
18775 test -z "$as_dir" && as_dir=.
18776 for ac_exec_ext in '' $ac_executable_extensions; do
18777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18778 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
18779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18788 NMEDIT=$ac_cv_prog_NMEDIT
18789 if test -n "$NMEDIT"; then
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
18791 $as_echo "$NMEDIT" >&6; }
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18794 $as_echo "no" >&6; }
18799 if test -z "$ac_cv_prog_NMEDIT"; then
18800 ac_ct_NMEDIT=$NMEDIT
18801 # Extract the first word of "nmedit", so it can be a program name with args.
18802 set dummy nmedit; ac_word=$2
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18804 $as_echo_n "checking for $ac_word... " >&6; }
18805 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
18806 $as_echo_n "(cached) " >&6
18808 if test -n "$ac_ct_NMEDIT"; then
18809 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
18811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18812 for as_dir in $PATH
18815 test -z "$as_dir" && as_dir=.
18816 for ac_exec_ext in '' $ac_executable_extensions; do
18817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18818 ac_cv_prog_ac_ct_NMEDIT="nmedit"
18819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18828 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
18829 if test -n "$ac_ct_NMEDIT"; then
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
18831 $as_echo "$ac_ct_NMEDIT" >&6; }
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18834 $as_echo "no" >&6; }
18837 if test "x$ac_ct_NMEDIT" = x; then
18840 case $cross_compiling:$ac_tool_warned in
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18844 ac_tool_warned=yes ;;
18846 NMEDIT=$ac_ct_NMEDIT
18849 NMEDIT="$ac_cv_prog_NMEDIT"
18852 if test -n "$ac_tool_prefix"; then
18853 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
18854 set dummy ${ac_tool_prefix}lipo; ac_word=$2
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18856 $as_echo_n "checking for $ac_word... " >&6; }
18857 if ${ac_cv_prog_LIPO+:} false; then :
18858 $as_echo_n "(cached) " >&6
18860 if test -n "$LIPO"; then
18861 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
18863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18864 for as_dir in $PATH
18867 test -z "$as_dir" && as_dir=.
18868 for ac_exec_ext in '' $ac_executable_extensions; do
18869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18870 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
18871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18880 LIPO=$ac_cv_prog_LIPO
18881 if test -n "$LIPO"; then
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
18883 $as_echo "$LIPO" >&6; }
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18886 $as_echo "no" >&6; }
18891 if test -z "$ac_cv_prog_LIPO"; then
18893 # Extract the first word of "lipo", so it can be a program name with args.
18894 set dummy lipo; ac_word=$2
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18896 $as_echo_n "checking for $ac_word... " >&6; }
18897 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
18898 $as_echo_n "(cached) " >&6
18900 if test -n "$ac_ct_LIPO"; then
18901 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
18903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18904 for as_dir in $PATH
18907 test -z "$as_dir" && as_dir=.
18908 for ac_exec_ext in '' $ac_executable_extensions; do
18909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18910 ac_cv_prog_ac_ct_LIPO="lipo"
18911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18920 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
18921 if test -n "$ac_ct_LIPO"; then
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
18923 $as_echo "$ac_ct_LIPO" >&6; }
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18926 $as_echo "no" >&6; }
18929 if test "x$ac_ct_LIPO" = x; then
18932 case $cross_compiling:$ac_tool_warned in
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18936 ac_tool_warned=yes ;;
18941 LIPO="$ac_cv_prog_LIPO"
18944 if test -n "$ac_tool_prefix"; then
18945 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
18946 set dummy ${ac_tool_prefix}otool; ac_word=$2
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18948 $as_echo_n "checking for $ac_word... " >&6; }
18949 if ${ac_cv_prog_OTOOL+:} false; then :
18950 $as_echo_n "(cached) " >&6
18952 if test -n "$OTOOL"; then
18953 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
18955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18956 for as_dir in $PATH
18959 test -z "$as_dir" && as_dir=.
18960 for ac_exec_ext in '' $ac_executable_extensions; do
18961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18962 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
18963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18972 OTOOL=$ac_cv_prog_OTOOL
18973 if test -n "$OTOOL"; then
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
18975 $as_echo "$OTOOL" >&6; }
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18978 $as_echo "no" >&6; }
18983 if test -z "$ac_cv_prog_OTOOL"; then
18985 # Extract the first word of "otool", so it can be a program name with args.
18986 set dummy otool; ac_word=$2
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18988 $as_echo_n "checking for $ac_word... " >&6; }
18989 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
18990 $as_echo_n "(cached) " >&6
18992 if test -n "$ac_ct_OTOOL"; then
18993 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
18995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18996 for as_dir in $PATH
18999 test -z "$as_dir" && as_dir=.
19000 for ac_exec_ext in '' $ac_executable_extensions; do
19001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19002 ac_cv_prog_ac_ct_OTOOL="otool"
19003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19012 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
19013 if test -n "$ac_ct_OTOOL"; then
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
19015 $as_echo "$ac_ct_OTOOL" >&6; }
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19018 $as_echo "no" >&6; }
19021 if test "x$ac_ct_OTOOL" = x; then
19024 case $cross_compiling:$ac_tool_warned in
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19028 ac_tool_warned=yes ;;
19033 OTOOL="$ac_cv_prog_OTOOL"
19036 if test -n "$ac_tool_prefix"; then
19037 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
19038 set dummy ${ac_tool_prefix}otool64; ac_word=$2
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19040 $as_echo_n "checking for $ac_word... " >&6; }
19041 if ${ac_cv_prog_OTOOL64+:} false; then :
19042 $as_echo_n "(cached) " >&6
19044 if test -n "$OTOOL64"; then
19045 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
19047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19048 for as_dir in $PATH
19051 test -z "$as_dir" && as_dir=.
19052 for ac_exec_ext in '' $ac_executable_extensions; do
19053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19054 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
19055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19064 OTOOL64=$ac_cv_prog_OTOOL64
19065 if test -n "$OTOOL64"; then
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
19067 $as_echo "$OTOOL64" >&6; }
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19070 $as_echo "no" >&6; }
19075 if test -z "$ac_cv_prog_OTOOL64"; then
19076 ac_ct_OTOOL64=$OTOOL64
19077 # Extract the first word of "otool64", so it can be a program name with args.
19078 set dummy otool64; ac_word=$2
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19080 $as_echo_n "checking for $ac_word... " >&6; }
19081 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
19082 $as_echo_n "(cached) " >&6
19084 if test -n "$ac_ct_OTOOL64"; then
19085 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
19087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19088 for as_dir in $PATH
19091 test -z "$as_dir" && as_dir=.
19092 for ac_exec_ext in '' $ac_executable_extensions; do
19093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19094 ac_cv_prog_ac_ct_OTOOL64="otool64"
19095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19104 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
19105 if test -n "$ac_ct_OTOOL64"; then
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
19107 $as_echo "$ac_ct_OTOOL64" >&6; }
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19110 $as_echo "no" >&6; }
19113 if test "x$ac_ct_OTOOL64" = x; then
19116 case $cross_compiling:$ac_tool_warned in
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19120 ac_tool_warned=yes ;;
19122 OTOOL64=$ac_ct_OTOOL64
19125 OTOOL64="$ac_cv_prog_OTOOL64"
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
19155 $as_echo_n "checking for -single_module linker flag... " >&6; }
19156 if ${lt_cv_apple_cc_single_mod+:} false; then :
19157 $as_echo_n "(cached) " >&6
19159 lt_cv_apple_cc_single_mod=no
19160 if test -z "${LT_MULTI_MODULE}"; then
19161 # By default we will add the -single_module flag. You can override
19162 # by either setting the environment variable LT_MULTI_MODULE
19163 # non-empty at configure time, or by adding -multi_module to the
19165 rm -rf libconftest.dylib*
19166 echo "int foo(void){return 1;}" > conftest.c
19167 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
19168 -dynamiclib -Wl,-single_module conftest.c" >&5
19169 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
19170 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
19172 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
19173 lt_cv_apple_cc_single_mod=yes
19175 cat conftest.err >&5
19177 rm -rf libconftest.dylib*
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
19182 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
19184 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
19185 if ${lt_cv_ld_exported_symbols_list+:} false; then :
19186 $as_echo_n "(cached) " >&6
19188 lt_cv_ld_exported_symbols_list=no
19189 save_LDFLAGS=$LDFLAGS
19190 echo "_main" > conftest.sym
19191 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
19192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19193 /* end confdefs.h. */
19203 if ac_fn_c_try_link "$LINENO"; then :
19204 lt_cv_ld_exported_symbols_list=yes
19206 lt_cv_ld_exported_symbols_list=no
19208 rm -f core conftest.err conftest.$ac_objext \
19209 conftest$ac_exeext conftest.$ac_ext
19210 LDFLAGS="$save_LDFLAGS"
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
19214 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
19216 $as_echo_n "checking for -force_load linker flag... " >&6; }
19217 if ${lt_cv_ld_force_load+:} false; then :
19218 $as_echo_n "(cached) " >&6
19220 lt_cv_ld_force_load=no
19221 cat > conftest.c << _LT_EOF
19222 int forced_loaded() { return 2;}
19224 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
19225 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
19226 echo "$AR cru libconftest.a conftest.o" >&5
19227 $AR cru libconftest.a conftest.o 2>&5
19228 echo "$RANLIB libconftest.a" >&5
19229 $RANLIB libconftest.a 2>&5
19230 cat > conftest.c << _LT_EOF
19231 int main() { return 0;}
19233 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
19234 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
19236 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
19237 lt_cv_ld_force_load=yes
19239 cat conftest.err >&5
19241 rm -f conftest.err libconftest.a conftest conftest.c
19242 rm -rf conftest.dSYM
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
19246 $as_echo "$lt_cv_ld_force_load" >&6; }
19248 rhapsody* | darwin1.[012])
19249 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
19251 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
19252 darwin*) # darwin 5.x on
19253 # if running on 10.5 or later, the deployment target defaults
19254 # to the OS version, if on x86, and 10.4, the deployment
19255 # target defaults to 10.4. Don't you love it?
19256 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
19257 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
19258 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
19260 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
19262 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
19266 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
19267 _lt_dar_single_mod='$single_module'
19269 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
19270 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
19272 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
19274 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
19275 _lt_dsymutil='~$DSYMUTIL $lib || :'
19282 for ac_header in dlfcn.h
19284 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
19286 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
19287 cat >>confdefs.h <<_ACEOF
19288 #define HAVE_DLFCN_H 1
19306 enable_win32_dll=no
19310 # Check whether --enable-static was given.
19311 if test "${enable_static+set}" = set; then :
19312 enableval=$enable_static; p=${PACKAGE-default}
19314 yes) enable_static=yes ;;
19315 no) enable_static=no ;;
19318 # Look at the argument we got. We use all the common list separators.
19319 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
19320 for pkg in $enableval; do
19322 if test "X$pkg" = "X$p"; then
19342 # Check whether --with-pic was given.
19343 if test "${with_pic+set}" = set; then :
19344 withval=$with_pic; pic_mode="$withval"
19350 test -z "$pic_mode" && pic_mode=default
19358 # Check whether --enable-fast-install was given.
19359 if test "${enable_fast_install+set}" = set; then :
19360 enableval=$enable_fast_install; p=${PACKAGE-default}
19362 yes) enable_fast_install=yes ;;
19363 no) enable_fast_install=no ;;
19365 enable_fast_install=no
19366 # Look at the argument we got. We use all the common list separators.
19367 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
19368 for pkg in $enableval; do
19370 if test "X$pkg" = "X$p"; then
19371 enable_fast_install=yes
19378 enable_fast_install=yes
19391 # This can be used to rebuild libtool when needed
19392 LIBTOOL_DEPS="$ltmain"
19394 # Always use our own libtool.
19395 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19422 test -z "$LN_S" && LN_S="ln -s"
19437 if test -n "${ZSH_VERSION+set}" ; then
19438 setopt NO_GLOB_SUBST
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
19442 $as_echo_n "checking for objdir... " >&6; }
19443 if ${lt_cv_objdir+:} false; then :
19444 $as_echo_n "(cached) " >&6
19446 rm -f .libs 2>/dev/null
19447 mkdir .libs 2>/dev/null
19448 if test -d .libs; then
19451 # MS-DOS does not allow filenames that begin with a dot.
19454 rmdir .libs 2>/dev/null
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
19457 $as_echo "$lt_cv_objdir" >&6; }
19458 objdir=$lt_cv_objdir
19464 cat >>confdefs.h <<_ACEOF
19465 #define LT_OBJDIR "$lt_cv_objdir/"
19473 # AIX sometimes has problems with the GCC collect2 program. For some
19474 # reason, if we set the COLLECT_NAMES environment variable, the problems
19475 # vanish in a puff of smoke.
19476 if test "X${COLLECT_NAMES+set}" != Xset; then
19478 export COLLECT_NAMES
19483 # Global variables:
19485 can_build_shared=yes
19487 # All known linkers require a `.a' archive for static linking (except MSVC,
19488 # which needs '.lib').
19491 with_gnu_ld="$lt_cv_prog_gnu_ld"
19494 old_CFLAGS="$CFLAGS"
19496 # Set sane defaults for various variables
19497 test -z "$CC" && CC=cc
19498 test -z "$LTCC" && LTCC=$CC
19499 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
19500 test -z "$LD" && LD=ld
19501 test -z "$ac_objext" && ac_objext=o
19503 for cc_temp in $compiler""; do
19505 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19506 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19511 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19514 # Only perform the check for file, if the check method requires it
19515 test -z "$MAGIC_CMD" && MAGIC_CMD=file
19516 case $deplibs_check_method in
19518 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
19520 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
19521 if ${lt_cv_path_MAGIC_CMD+:} false; then :
19522 $as_echo_n "(cached) " >&6
19526 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
19529 lt_save_MAGIC_CMD="$MAGIC_CMD"
19530 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19531 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
19532 for ac_dir in $ac_dummy; do
19534 test -z "$ac_dir" && ac_dir=.
19535 if test -f $ac_dir/${ac_tool_prefix}file; then
19536 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
19537 if test -n "$file_magic_test_file"; then
19538 case $deplibs_check_method in
19540 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
19541 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
19542 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
19543 $EGREP "$file_magic_regex" > /dev/null; then
19548 *** Warning: the command libtool uses to detect shared libraries,
19549 *** $file_magic_cmd, produces output that libtool cannot recognize.
19550 *** The result is that libtool may fail to recognize shared libraries
19551 *** as such. This will affect the creation of libtool libraries that
19552 *** depend on shared libraries, but programs linked with such libtool
19553 *** libraries will work regardless of this problem. Nevertheless, you
19554 *** may want to report the problem to your system manager and/or to
19555 *** bug-libtool@gnu.org
19565 MAGIC_CMD="$lt_save_MAGIC_CMD"
19570 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
19571 if test -n "$MAGIC_CMD"; then
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
19573 $as_echo "$MAGIC_CMD" >&6; }
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19576 $as_echo "no" >&6; }
19583 if test -z "$lt_cv_path_MAGIC_CMD"; then
19584 if test -n "$ac_tool_prefix"; then
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
19586 $as_echo_n "checking for file... " >&6; }
19587 if ${lt_cv_path_MAGIC_CMD+:} false; then :
19588 $as_echo_n "(cached) " >&6
19592 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
19595 lt_save_MAGIC_CMD="$MAGIC_CMD"
19596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19597 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
19598 for ac_dir in $ac_dummy; do
19600 test -z "$ac_dir" && ac_dir=.
19601 if test -f $ac_dir/file; then
19602 lt_cv_path_MAGIC_CMD="$ac_dir/file"
19603 if test -n "$file_magic_test_file"; then
19604 case $deplibs_check_method in
19606 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
19607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
19608 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
19609 $EGREP "$file_magic_regex" > /dev/null; then
19614 *** Warning: the command libtool uses to detect shared libraries,
19615 *** $file_magic_cmd, produces output that libtool cannot recognize.
19616 *** The result is that libtool may fail to recognize shared libraries
19617 *** as such. This will affect the creation of libtool libraries that
19618 *** depend on shared libraries, but programs linked with such libtool
19619 *** libraries will work regardless of this problem. Nevertheless, you
19620 *** may want to report the problem to your system manager and/or to
19621 *** bug-libtool@gnu.org
19631 MAGIC_CMD="$lt_save_MAGIC_CMD"
19636 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
19637 if test -n "$MAGIC_CMD"; then
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
19639 $as_echo "$MAGIC_CMD" >&6; }
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19642 $as_echo "no" >&6; }
19655 # Use C for the default configuration in the libtool script
19659 ac_cpp='$CPP $CPPFLAGS'
19660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19665 # Source file extension for C test sources.
19668 # Object file extension for compiled C test sources.
19672 # Code to be used in simple compile tests
19673 lt_simple_compile_test_code="int some_variable = 0;"
19675 # Code to be used in simple link tests
19676 lt_simple_link_test_code='int main(){return(0);}'
19684 # If no C compiler was specified, use CC.
19687 # If no C compiler flags were specified, use CFLAGS.
19688 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19690 # Allow CC to be a program name with arguments.
19693 # Save the default compiler, since it gets overwritten when the other
19694 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
19695 compiler_DEFAULT=$CC
19697 # save warnings/boilerplate of simple test code
19698 ac_outfile=conftest.$ac_objext
19699 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19700 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19701 _lt_compiler_boilerplate=`cat conftest.err`
19704 ac_outfile=conftest.$ac_objext
19705 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19706 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19707 _lt_linker_boilerplate=`cat conftest.err`
19712 ## There is no encapsulation within the following macros, do not change
19713 ## the running order or otherwise move them around unless you know exactly
19714 ## what you are doing...
19715 if test -n "$compiler"; then
19717 lt_prog_compiler_no_builtin_flag=
19719 if test "$GCC" = yes; then
19720 case $cc_basename in
19722 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
19724 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19728 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
19729 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
19730 $as_echo_n "(cached) " >&6
19732 lt_cv_prog_compiler_rtti_exceptions=no
19733 ac_outfile=conftest.$ac_objext
19734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19735 lt_compiler_flag="-fno-rtti -fno-exceptions"
19736 # Insert the option either (1) after the last *FLAGS variable, or
19737 # (2) before a word containing "conftest.", or (3) at the end.
19738 # Note that $ac_compile itself does not contain backslashes and begins
19739 # with a dollar sign (not a hyphen), so the echo should work correctly.
19740 # The option is referenced via a variable to avoid confusing sed.
19741 lt_compile=`echo "$ac_compile" | $SED \
19742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19744 -e 's:$: $lt_compiler_flag:'`
19745 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19746 (eval "$lt_compile" 2>conftest.err)
19748 cat conftest.err >&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 if (exit $ac_status) && test -s "$ac_outfile"; then
19751 # The compiler can only warn and ignore the option if not recognized
19752 # So say no if there are warnings other than the usual output.
19753 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19755 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19756 lt_cv_prog_compiler_rtti_exceptions=yes
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19763 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19765 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19766 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
19778 lt_prog_compiler_wl=
19779 lt_prog_compiler_pic=
19780 lt_prog_compiler_static=
19783 if test "$GCC" = yes; then
19784 lt_prog_compiler_wl='-Wl,'
19785 lt_prog_compiler_static='-static'
19789 # All AIX code is PIC.
19790 if test "$host_cpu" = ia64; then
19791 # AIX 5 now supports IA64 processor
19792 lt_prog_compiler_static='-Bstatic'
19799 # see comment about AmigaOS4 .so support
19800 lt_prog_compiler_pic='-fPIC'
19803 # FIXME: we need at least 68020 code to build shared libraries, but
19804 # adding the `-m68020' flag to GCC prevents building anything better,
19806 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
19811 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19812 # PIC is the default for these OSes.
19815 mingw* | cygwin* | pw32* | os2* | cegcc*)
19816 # This hack is so that the source file can tell whether it is being
19817 # built for inclusion in a dll (and should export symbols for example).
19818 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19819 # (--disable-auto-import) libraries
19820 lt_prog_compiler_pic='-DDLL_EXPORT'
19823 darwin* | rhapsody*)
19824 # PIC is the default on this platform
19825 # Common symbols not allowed in MH_DYLIB files
19826 lt_prog_compiler_pic='-fno-common'
19830 # PIC is the default for Haiku.
19831 # The "-static" flag exists, but is broken.
19832 lt_prog_compiler_static=
19836 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19837 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19838 # sets the default TLS model and affects inlining.
19844 lt_prog_compiler_pic='-fPIC'
19850 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19851 # Instead, we relocate shared libraries at runtime.
19855 # Just because we use GCC doesn't mean we suddenly get shared libraries
19856 # on systems that don't support them.
19857 lt_prog_compiler_can_build_shared=no
19862 # QNX uses GNU C++, but need to define -shared option too, otherwise
19863 # it will coredump.
19864 lt_prog_compiler_pic='-fPIC -shared'
19868 if test -d /usr/nec; then
19869 lt_prog_compiler_pic=-Kconform_pic
19874 lt_prog_compiler_pic='-fPIC'
19878 case $cc_basename in
19879 nvcc*) # Cuda Compiler Driver 2.2
19880 lt_prog_compiler_wl='-Xlinker '
19881 lt_prog_compiler_pic='-Xcompiler -fPIC'
19885 # PORTME Check for flag to pass linker flags through the system compiler.
19888 lt_prog_compiler_wl='-Wl,'
19889 if test "$host_cpu" = ia64; then
19890 # AIX 5 now supports IA64 processor
19891 lt_prog_compiler_static='-Bstatic'
19893 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
19897 mingw* | cygwin* | pw32* | os2* | cegcc*)
19898 # This hack is so that the source file can tell whether it is being
19899 # built for inclusion in a dll (and should export symbols for example).
19900 lt_prog_compiler_pic='-DDLL_EXPORT'
19903 hpux9* | hpux10* | hpux11*)
19904 lt_prog_compiler_wl='-Wl,'
19905 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19906 # not for PA HP-UX.
19912 lt_prog_compiler_pic='+Z'
19915 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19916 lt_prog_compiler_static='${wl}-a ${wl}archive'
19919 irix5* | irix6* | nonstopux*)
19920 lt_prog_compiler_wl='-Wl,'
19921 # PIC (with -KPIC) is the default.
19922 lt_prog_compiler_static='-non_shared'
19925 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19926 case $cc_basename in
19927 # old Intel for x86_64 which still supported -KPIC.
19929 lt_prog_compiler_wl='-Wl,'
19930 lt_prog_compiler_pic='-KPIC'
19931 lt_prog_compiler_static='-static'
19933 # icc used to be incompatible with GCC.
19934 # ICC 10 doesn't accept -KPIC any more.
19936 lt_prog_compiler_wl='-Wl,'
19937 lt_prog_compiler_pic='-fPIC'
19938 lt_prog_compiler_static='-static'
19940 # Lahey Fortran 8.1.
19942 lt_prog_compiler_wl='-Wl,'
19943 lt_prog_compiler_pic='--shared'
19944 lt_prog_compiler_static='--static'
19947 # NAG Fortran compiler
19948 lt_prog_compiler_wl='-Wl,-Wl,,'
19949 lt_prog_compiler_pic='-PIC'
19950 lt_prog_compiler_static='-Bstatic'
19952 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
19953 # Portland Group compilers (*not* the Pentium gcc compiler,
19954 # which looks to be a dead project)
19955 lt_prog_compiler_wl='-Wl,'
19956 lt_prog_compiler_pic='-fpic'
19957 lt_prog_compiler_static='-Bstatic'
19960 lt_prog_compiler_wl='-Wl,'
19961 # All Alpha code is PIC.
19962 lt_prog_compiler_static='-non_shared'
19964 xl* | bgxl* | bgf* | mpixl*)
19965 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
19966 lt_prog_compiler_wl='-Wl,'
19967 lt_prog_compiler_pic='-qpic'
19968 lt_prog_compiler_static='-qstaticlink'
19971 case `$CC -V 2>&1 | sed 5q` in
19972 *Sun\ F* | *Sun*Fortran*)
19973 # Sun Fortran 8.3 passes all unrecognized flags to the linker
19974 lt_prog_compiler_pic='-KPIC'
19975 lt_prog_compiler_static='-Bstatic'
19976 lt_prog_compiler_wl=''
19980 lt_prog_compiler_pic='-KPIC'
19981 lt_prog_compiler_static='-Bstatic'
19982 lt_prog_compiler_wl='-Wl,'
19990 lt_prog_compiler_pic='-KPIC'
19991 lt_prog_compiler_static='-Bstatic'
19995 # QNX uses GNU C++, but need to define -shared option too, otherwise
19996 # it will coredump.
19997 lt_prog_compiler_pic='-fPIC -shared'
20000 osf3* | osf4* | osf5*)
20001 lt_prog_compiler_wl='-Wl,'
20002 # All OSF/1 code is PIC.
20003 lt_prog_compiler_static='-non_shared'
20007 lt_prog_compiler_static='-non_shared'
20011 lt_prog_compiler_pic='-KPIC'
20012 lt_prog_compiler_static='-Bstatic'
20013 case $cc_basename in
20014 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
20015 lt_prog_compiler_wl='-Qoption ld ';;
20017 lt_prog_compiler_wl='-Wl,';;
20022 lt_prog_compiler_wl='-Qoption ld '
20023 lt_prog_compiler_pic='-PIC'
20024 lt_prog_compiler_static='-Bstatic'
20027 sysv4 | sysv4.2uw2* | sysv4.3*)
20028 lt_prog_compiler_wl='-Wl,'
20029 lt_prog_compiler_pic='-KPIC'
20030 lt_prog_compiler_static='-Bstatic'
20034 if test -d /usr/nec ;then
20035 lt_prog_compiler_pic='-Kconform_pic'
20036 lt_prog_compiler_static='-Bstatic'
20040 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20041 lt_prog_compiler_wl='-Wl,'
20042 lt_prog_compiler_pic='-KPIC'
20043 lt_prog_compiler_static='-Bstatic'
20047 lt_prog_compiler_wl='-Wl,'
20048 lt_prog_compiler_can_build_shared=no
20052 lt_prog_compiler_pic='-pic'
20053 lt_prog_compiler_static='-Bstatic'
20057 lt_prog_compiler_can_build_shared=no
20063 # For platforms which do not support PIC, -DPIC is meaningless:
20065 lt_prog_compiler_pic=
20068 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
20072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20073 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20074 if ${lt_cv_prog_compiler_pic+:} false; then :
20075 $as_echo_n "(cached) " >&6
20077 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
20080 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
20081 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
20084 # Check to make sure the PIC flag actually works.
20086 if test -n "$lt_prog_compiler_pic"; then
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
20088 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
20089 if ${lt_cv_prog_compiler_pic_works+:} false; then :
20090 $as_echo_n "(cached) " >&6
20092 lt_cv_prog_compiler_pic_works=no
20093 ac_outfile=conftest.$ac_objext
20094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20095 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
20096 # Insert the option either (1) after the last *FLAGS variable, or
20097 # (2) before a word containing "conftest.", or (3) at the end.
20098 # Note that $ac_compile itself does not contain backslashes and begins
20099 # with a dollar sign (not a hyphen), so the echo should work correctly.
20100 # The option is referenced via a variable to avoid confusing sed.
20101 lt_compile=`echo "$ac_compile" | $SED \
20102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20104 -e 's:$: $lt_compiler_flag:'`
20105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20106 (eval "$lt_compile" 2>conftest.err)
20108 cat conftest.err >&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 if (exit $ac_status) && test -s "$ac_outfile"; then
20111 # The compiler can only warn and ignore the option if not recognized
20112 # So say no if there are warnings other than the usual output.
20113 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20116 lt_cv_prog_compiler_pic_works=yes
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
20123 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
20125 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
20126 case $lt_prog_compiler_pic in
20128 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
20131 lt_prog_compiler_pic=
20132 lt_prog_compiler_can_build_shared=no
20148 # Check to make sure the static flag actually works.
20150 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20152 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20153 if ${lt_cv_prog_compiler_static_works+:} false; then :
20154 $as_echo_n "(cached) " >&6
20156 lt_cv_prog_compiler_static_works=no
20157 save_LDFLAGS="$LDFLAGS"
20158 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20159 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20160 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20161 # The linker can only warn and ignore the option if not recognized
20162 # So say no if there are warnings
20163 if test -s conftest.err; then
20164 # Append any errors to the config.log.
20165 cat conftest.err 1>&5
20166 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20168 if diff conftest.exp conftest.er2 >/dev/null; then
20169 lt_cv_prog_compiler_static_works=yes
20172 lt_cv_prog_compiler_static_works=yes
20176 LDFLAGS="$save_LDFLAGS"
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
20180 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
20182 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
20185 lt_prog_compiler_static=
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20195 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20196 if ${lt_cv_prog_compiler_c_o+:} false; then :
20197 $as_echo_n "(cached) " >&6
20199 lt_cv_prog_compiler_c_o=no
20200 $RM -r conftest 2>/dev/null
20204 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20206 lt_compiler_flag="-o out/conftest2.$ac_objext"
20207 # Insert the option either (1) after the last *FLAGS variable, or
20208 # (2) before a word containing "conftest.", or (3) at the end.
20209 # Note that $ac_compile itself does not contain backslashes and begins
20210 # with a dollar sign (not a hyphen), so the echo should work correctly.
20211 lt_compile=`echo "$ac_compile" | $SED \
20212 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20214 -e 's:$: $lt_compiler_flag:'`
20215 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20216 (eval "$lt_compile" 2>out/conftest.err)
20218 cat out/conftest.err >&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20222 # The compiler can only warn and ignore the option if not recognized
20223 # So say no if there are warnings
20224 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20225 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20226 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20227 lt_cv_prog_compiler_c_o=yes
20232 # SGI C++ compiler will create directory out/ii_files/ for
20233 # template instantiation
20234 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20235 $RM out/* && rmdir out
20241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
20242 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20250 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20251 if ${lt_cv_prog_compiler_c_o+:} false; then :
20252 $as_echo_n "(cached) " >&6
20254 lt_cv_prog_compiler_c_o=no
20255 $RM -r conftest 2>/dev/null
20259 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20261 lt_compiler_flag="-o out/conftest2.$ac_objext"
20262 # Insert the option either (1) after the last *FLAGS variable, or
20263 # (2) before a word containing "conftest.", or (3) at the end.
20264 # Note that $ac_compile itself does not contain backslashes and begins
20265 # with a dollar sign (not a hyphen), so the echo should work correctly.
20266 lt_compile=`echo "$ac_compile" | $SED \
20267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20269 -e 's:$: $lt_compiler_flag:'`
20270 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20271 (eval "$lt_compile" 2>out/conftest.err)
20273 cat out/conftest.err >&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20277 # The compiler can only warn and ignore the option if not recognized
20278 # So say no if there are warnings
20279 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20280 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20281 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20282 lt_cv_prog_compiler_c_o=yes
20287 # SGI C++ compiler will create directory out/ii_files/ for
20288 # template instantiation
20289 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20290 $RM out/* && rmdir out
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
20297 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
20302 hard_links="nottested"
20303 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
20304 # do not overwrite the value of need_locks provided by the user
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20306 $as_echo_n "checking if we can lock with hard links... " >&6; }
20309 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20311 ln conftest.a conftest.b 2>&5 || hard_links=no
20312 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20314 $as_echo "$hard_links" >&6; }
20315 if test "$hard_links" = no; then
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20317 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20330 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20333 allow_undefined_flag=
20334 always_export_symbols=no
20336 archive_expsym_cmds=
20337 compiler_needs_object=no
20338 enable_shared_with_static_runtimes=no
20339 export_dynamic_flag_spec=
20340 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20341 hardcode_automatic=no
20343 hardcode_direct_absolute=no
20344 hardcode_libdir_flag_spec=
20345 hardcode_libdir_flag_spec_ld=
20346 hardcode_libdir_separator=
20347 hardcode_minus_L=no
20348 hardcode_shlibpath_var=unsupported
20350 link_all_deplibs=unknown
20352 module_expsym_cmds=
20353 old_archive_from_new_cmds=
20354 old_archive_from_expsyms_cmds=
20355 thread_safe_flag_spec=
20356 whole_archive_flag_spec=
20357 # include_expsyms should be a list of space-separated symbols to be *always*
20358 # included in the symbol list
20360 # exclude_expsyms can be an extended regexp of symbols to exclude
20361 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20362 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20363 # as well as any symbol that contains `d'.
20364 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20365 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20366 # platforms (ab)use it in PIC code, but their linkers get confused if
20367 # the symbol is explicitly referenced. Since portable code cannot
20368 # rely on this symbol name, it's probably fine to never include it in
20369 # preloaded symbol tables.
20370 # Exclude shared library initialization/finalization symbols.
20371 extract_expsyms_cmds=
20374 cygwin* | mingw* | pw32* | cegcc*)
20375 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20376 # When not using gcc, we currently assume that we are using
20377 # Microsoft Visual C++.
20378 if test "$GCC" != yes; then
20383 # we just hope/assume this is gcc and not c89 (= MSVC++)
20393 # On some targets, GNU ld is compatible enough with the native linker
20394 # that we're better off using the native interface for both.
20395 lt_use_gnu_ld_interface=no
20396 if test "$with_gnu_ld" = yes; then
20399 # The AIX port of GNU ld has always aspired to compatibility
20400 # with the native linker. However, as the warning in the GNU ld
20401 # block says, versions before 2.19.5* couldn't really create working
20402 # shared libraries, regardless of the interface used.
20403 case `$LD -v 2>&1` in
20404 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
20405 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
20406 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
20408 lt_use_gnu_ld_interface=yes
20413 lt_use_gnu_ld_interface=yes
20418 if test "$lt_use_gnu_ld_interface" = yes; then
20419 # If archive_cmds runs LD, not CC, wlarc should be empty
20422 # Set some defaults for GNU ld with shared library support. These
20423 # are reset later if shared libraries are not supported. Putting them
20424 # here allows them to be overridden if necessary.
20425 runpath_var=LD_RUN_PATH
20426 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20427 export_dynamic_flag_spec='${wl}--export-dynamic'
20428 # ancient GNU ld didn't support --whole-archive et. al.
20429 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
20430 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20432 whole_archive_flag_spec=
20434 supports_anon_versioning=no
20435 case `$LD -v 2>&1` in
20436 *GNU\ gold*) supports_anon_versioning=yes ;;
20437 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20438 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20439 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20440 *\ 2.11.*) ;; # other 2.11 versions
20441 *) supports_anon_versioning=yes ;;
20444 # See if GNU ld supports shared libraries.
20447 # On AIX/PPC, the GNU linker is very broken
20448 if test "$host_cpu" != ia64; then
20452 *** Warning: the GNU linker, at least up to release 2.19, is reported
20453 *** to be unable to reliably create shared libraries on AIX.
20454 *** Therefore, libtool is disabling shared libraries support. If you
20455 *** really care for shared libraries, you may want to install binutils
20456 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
20457 *** You will then need to restart the configuration process.
20466 # see comment about AmigaOS4 .so support
20467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20468 archive_expsym_cmds=''
20471 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)'
20472 hardcode_libdir_flag_spec='-L$libdir'
20473 hardcode_minus_L=yes
20479 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20480 allow_undefined_flag=unsupported
20481 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20482 # support --undefined. This deserves some investigation. FIXME
20483 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20489 cygwin* | mingw* | pw32* | cegcc*)
20490 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
20491 # as there is no search path for DLLs.
20492 hardcode_libdir_flag_spec='-L$libdir'
20493 export_dynamic_flag_spec='${wl}--export-all-symbols'
20494 allow_undefined_flag=unsupported
20495 always_export_symbols=no
20496 enable_shared_with_static_runtimes=yes
20497 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'
20498 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20500 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20502 # If the export-symbols file already is a .def file (1st line
20503 # is EXPORTS), use it as is; otherwise, prepend...
20504 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20505 cp $export_symbols $output_objdir/$soname.def;
20507 echo EXPORTS > $output_objdir/$soname.def;
20508 cat $export_symbols >> $output_objdir/$soname.def;
20510 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20518 link_all_deplibs=yes
20523 hardcode_shlibpath_var=no
20524 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
20525 export_dynamic_flag_spec='${wl}-E'
20526 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20527 # Instead, shared libraries are loaded at an image base (0x10000000 by
20528 # default) and relocated if they conflict, which is a slow very memory
20529 # consuming and fragmenting process. To avoid this, we pick a random,
20530 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20531 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20532 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
20533 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'
20536 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
20538 if test "$host_os" = linux-dietlibc; then
20539 case $cc_basename in
20540 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
20543 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
20544 && test "$tmp_diet" = no
20546 tmp_addflag=' $pic_flag'
20547 tmp_sharedflag='-shared'
20548 case $cc_basename,$host_cpu in
20549 pgcc*) # Portland Group C compiler
20550 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'
20551 tmp_addflag=' $pic_flag'
20553 pgf77* | pgf90* | pgf95* | pgfortran*)
20554 # Portland Group f77 and f90 compilers
20555 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'
20556 tmp_addflag=' $pic_flag -Mnomain' ;;
20557 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20558 tmp_addflag=' -i_dynamic' ;;
20559 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20560 tmp_addflag=' -i_dynamic -nofor_main' ;;
20561 ifc* | ifort*) # Intel Fortran compiler
20562 tmp_addflag=' -nofor_main' ;;
20563 lf95*) # Lahey Fortran 8.1
20564 whole_archive_flag_spec=
20565 tmp_sharedflag='--shared' ;;
20566 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
20567 tmp_sharedflag='-qmkshrobj'
20569 nvcc*) # Cuda Compiler Driver 2.2
20570 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'
20571 compiler_needs_object=yes
20574 case `$CC -V 2>&1 | sed 5q` in
20575 *Sun\ C*) # Sun C 5.9
20576 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'
20577 compiler_needs_object=yes
20578 tmp_sharedflag='-G' ;;
20579 *Sun\ F*) # Sun Fortran 8.3
20580 tmp_sharedflag='-G' ;;
20582 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20584 if test "x$supports_anon_versioning" = xyes; then
20585 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
20586 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20587 echo "local: *; };" >> $output_objdir/$libname.ver~
20588 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20591 case $cc_basename in
20592 xlf* | bgf* | bgxlf* | mpixlf*)
20593 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
20594 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
20595 hardcode_libdir_flag_spec=
20596 hardcode_libdir_flag_spec_ld='-rpath $libdir'
20597 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
20598 if test "x$supports_anon_versioning" = xyes; then
20599 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
20600 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20601 echo "local: *; };" >> $output_objdir/$libname.ver~
20602 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
20612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20613 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20616 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20617 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20622 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
20626 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20627 *** create shared libraries on Solaris systems. Therefore, libtool
20628 *** is disabling shared libraries support. We urge you to upgrade GNU
20629 *** binutils to release 2.9.1 or newer. Another option is to modify
20630 *** your PATH or compiler configuration so that the native linker is
20631 *** used, and then restart.
20634 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20635 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20636 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20642 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20643 case `$LD -v 2>&1` in
20644 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20648 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20649 *** reliably create shared libraries on SCO systems. Therefore, libtool
20650 *** is disabling shared libraries support. We urge you to upgrade GNU
20651 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20652 *** your PATH or compiler configuration so that the native linker is
20653 *** used, and then restart.
20658 # For security reasons, it is highly recommended that you always
20659 # use absolute paths for naming shared libraries, and exclude the
20660 # DT_RUNPATH tag from executables and libraries. But doing so
20661 # requires that you compile everything twice, which is a pain.
20662 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20663 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20665 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20674 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20676 hardcode_direct=yes
20677 hardcode_shlibpath_var=no
20681 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20682 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20683 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20690 if test "$ld_shlibs" = no; then
20692 hardcode_libdir_flag_spec=
20693 export_dynamic_flag_spec=
20694 whole_archive_flag_spec=
20697 # PORTME fill in a description of your system's linker (not GNU ld)
20700 allow_undefined_flag=unsupported
20701 always_export_symbols=yes
20702 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'
20703 # Note: this linker hardcodes the directories in LIBPATH if there
20704 # are no directories specified by -L.
20705 hardcode_minus_L=yes
20706 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20707 # Neither direct hardcoding nor static linking is supported with a
20709 hardcode_direct=unsupported
20714 if test "$host_cpu" = ia64; then
20715 # On IA64, the linker does run time linking by default, so we don't
20716 # have to do anything special.
20717 aix_use_runtimelinking=no
20718 exp_sym_flag='-Bexport'
20721 # If we're using GNU nm, then we don't want the "-C" option.
20722 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20723 # Also, AIX nm treats weak defined symbols like other global
20724 # defined symbols, whereas GNU nm marks them as "W".
20725 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20726 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'
20728 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'
20730 aix_use_runtimelinking=no
20732 # Test if we are trying to use run time linking or normal
20733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20734 # need to do runtime linking.
20735 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20736 for ld_flag in $LDFLAGS; do
20737 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20738 aix_use_runtimelinking=yes
20745 exp_sym_flag='-bexport'
20746 no_entry_flag='-bnoentry'
20749 # When large executables or shared objects are built, AIX ld can
20750 # have problems creating the table of contents. If linking a library
20751 # or program results in "error TOC overflow" add -mminimal-toc to
20752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20756 hardcode_direct=yes
20757 hardcode_direct_absolute=yes
20758 hardcode_libdir_separator=':'
20759 link_all_deplibs=yes
20760 file_list_spec='${wl}-f,'
20762 if test "$GCC" = yes; then
20763 case $host_os in aix4.[012]|aix4.[012].*)
20764 # We only want to do this on AIX 4.2 and lower, the check
20765 # below for broken collect2 doesn't work under 4.3+
20766 collect2name=`${CC} -print-prog-name=collect2`
20767 if test -f "$collect2name" &&
20768 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20770 # We have reworked collect2
20773 # We have old collect2
20774 hardcode_direct=unsupported
20775 # It fails to find uninstalled libraries when the uninstalled
20776 # path is not listed in the libpath. Setting hardcode_minus_L
20777 # to unsupported forces relinking
20778 hardcode_minus_L=yes
20779 hardcode_libdir_flag_spec='-L$libdir'
20780 hardcode_libdir_separator=
20784 shared_flag='-shared'
20785 if test "$aix_use_runtimelinking" = yes; then
20786 shared_flag="$shared_flag "'${wl}-G'
20790 if test "$host_cpu" = ia64; then
20791 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20792 # chokes on -Wl,-G. The following line is correct:
20795 if test "$aix_use_runtimelinking" = yes; then
20796 shared_flag='${wl}-G'
20798 shared_flag='${wl}-bM:SRE'
20803 export_dynamic_flag_spec='${wl}-bexpall'
20804 # It seems that -bexpall does not export symbols beginning with
20805 # underscore (_), so it is better to generate a list of symbols to export.
20806 always_export_symbols=yes
20807 if test "$aix_use_runtimelinking" = yes; then
20808 # Warning - without using the other runtime loading flags (-brtl),
20809 # -berok will link without error, but may produce a broken library.
20810 allow_undefined_flag='-berok'
20811 # Determine the default libpath from the value encoded in an
20812 # empty executable.
20813 if test "${lt_cv_aix_libpath+set}" = set; then
20814 aix_libpath=$lt_cv_aix_libpath
20816 if ${lt_cv_aix_libpath_+:} false; then :
20817 $as_echo_n "(cached) " >&6
20819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20820 /* end confdefs.h. */
20830 if ac_fn_c_try_link "$LINENO"; then :
20832 lt_aix_libpath_sed='
20833 /Import File Strings/,/^$/ {
20835 s/^0 *\([^ ]*\) *$/\1/
20839 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20840 # Check for a 64-bit object if we didn't find anything.
20841 if test -z "$lt_cv_aix_libpath_"; then
20842 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20845 rm -f core conftest.err conftest.$ac_objext \
20846 conftest$ac_exeext conftest.$ac_ext
20847 if test -z "$lt_cv_aix_libpath_"; then
20848 lt_cv_aix_libpath_="/usr/lib:/lib"
20853 aix_libpath=$lt_cv_aix_libpath_
20856 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
20857 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"
20859 if test "$host_cpu" = ia64; then
20860 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
20861 allow_undefined_flag="-z nodefs"
20862 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"
20864 # Determine the default libpath from the value encoded in an
20865 # empty executable.
20866 if test "${lt_cv_aix_libpath+set}" = set; then
20867 aix_libpath=$lt_cv_aix_libpath
20869 if ${lt_cv_aix_libpath_+:} false; then :
20870 $as_echo_n "(cached) " >&6
20872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20873 /* end confdefs.h. */
20883 if ac_fn_c_try_link "$LINENO"; then :
20885 lt_aix_libpath_sed='
20886 /Import File Strings/,/^$/ {
20888 s/^0 *\([^ ]*\) *$/\1/
20892 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20893 # Check for a 64-bit object if we didn't find anything.
20894 if test -z "$lt_cv_aix_libpath_"; then
20895 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20898 rm -f core conftest.err conftest.$ac_objext \
20899 conftest$ac_exeext conftest.$ac_ext
20900 if test -z "$lt_cv_aix_libpath_"; then
20901 lt_cv_aix_libpath_="/usr/lib:/lib"
20906 aix_libpath=$lt_cv_aix_libpath_
20909 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
20910 # Warning - without using the other run time loading flags,
20911 # -berok will link without error, but may produce a broken library.
20912 no_undefined_flag=' ${wl}-bernotok'
20913 allow_undefined_flag=' ${wl}-berok'
20914 if test "$with_gnu_ld" = yes; then
20915 # We only use this code for GNU lds that support --whole-archive.
20916 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20918 # Exported symbols can be pulled into shared objects from archives
20919 whole_archive_flag_spec='$convenience'
20921 archive_cmds_need_lc=yes
20922 # This is similar to how AIX traditionally builds its shared libraries.
20923 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'
20931 # see comment about AmigaOS4 .so support
20932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20933 archive_expsym_cmds=''
20936 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)'
20937 hardcode_libdir_flag_spec='-L$libdir'
20938 hardcode_minus_L=yes
20944 export_dynamic_flag_spec=-rdynamic
20947 cygwin* | mingw* | pw32* | cegcc*)
20948 # When not using gcc, we currently assume that we are using
20949 # Microsoft Visual C++.
20950 # hardcode_libdir_flag_spec is actually meaningless, as there is
20951 # no search path for DLLs.
20952 case $cc_basename in
20955 hardcode_libdir_flag_spec=' '
20956 allow_undefined_flag=unsupported
20957 always_export_symbols=yes
20959 # Tell ltmain to make .lib files, not .a files.
20961 # Tell ltmain to make .dll files, not .so files.
20963 # FIXME: Setting linknames here is a bad hack.
20964 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
20965 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20966 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
20968 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
20970 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
20972 # The linker will not automatically build a static lib if we build a DLL.
20973 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
20974 enable_shared_with_static_runtimes=yes
20975 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20977 old_postinstall_cmds='chmod 644 $oldlib'
20978 postlink_cmds='lt_outputfile="@OUTPUT@"~
20979 lt_tool_outputfile="@TOOL_OUTPUT@"~
20980 case $lt_outputfile in
20983 lt_outputfile="$lt_outputfile.exe"
20984 lt_tool_outputfile="$lt_tool_outputfile.exe"
20987 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
20988 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
20989 $RM "$lt_outputfile.manifest";
20993 # Assume MSVC wrapper
20994 hardcode_libdir_flag_spec=' '
20995 allow_undefined_flag=unsupported
20996 # Tell ltmain to make .lib files, not .a files.
20998 # Tell ltmain to make .dll files, not .so files.
21000 # FIXME: Setting linknames here is a bad hack.
21001 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
21002 # The linker will automatically build a .lib file if we build a DLL.
21003 old_archive_from_new_cmds='true'
21004 # FIXME: Should let the user specify the lib program.
21005 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
21006 enable_shared_with_static_runtimes=yes
21011 darwin* | rhapsody*)
21014 archive_cmds_need_lc=no
21016 hardcode_automatic=yes
21017 hardcode_shlibpath_var=unsupported
21018 if test "$lt_cv_ld_force_load" = "yes"; then
21019 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\"`'
21021 whole_archive_flag_spec=''
21023 link_all_deplibs=yes
21024 allow_undefined_flag="$_lt_dar_allow_undefined"
21025 case $cc_basename in
21026 ifort*) _lt_dar_can_shared=yes ;;
21027 *) _lt_dar_can_shared=$GCC ;;
21029 if test "$_lt_dar_can_shared" = "yes"; then
21030 output_verbose_link_cmd=func_echo_all
21031 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
21032 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
21033 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}"
21034 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}"
21043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21044 hardcode_libdir_flag_spec='-L$libdir'
21045 hardcode_shlibpath_var=no
21052 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21053 # support. Future versions do this automatically, but an explicit c++rt0.o
21054 # does not break anything, and helps significantly (at the cost of a little
21057 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21058 hardcode_libdir_flag_spec='-R$libdir'
21059 hardcode_direct=yes
21060 hardcode_shlibpath_var=no
21063 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21065 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21066 hardcode_direct=yes
21067 hardcode_minus_L=yes
21068 hardcode_shlibpath_var=no
21071 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21072 freebsd* | dragonfly*)
21073 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21074 hardcode_libdir_flag_spec='-R$libdir'
21075 hardcode_direct=yes
21076 hardcode_shlibpath_var=no
21080 if test "$GCC" = yes; then
21081 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'
21083 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'
21085 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
21086 hardcode_libdir_separator=:
21087 hardcode_direct=yes
21089 # hardcode_minus_L: Not really in the search PATH,
21090 # but as the default location of the library.
21091 hardcode_minus_L=yes
21092 export_dynamic_flag_spec='${wl}-E'
21096 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
21097 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21099 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21101 if test "$with_gnu_ld" = no; then
21102 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
21103 hardcode_libdir_flag_spec_ld='+b $libdir'
21104 hardcode_libdir_separator=:
21105 hardcode_direct=yes
21106 hardcode_direct_absolute=yes
21107 export_dynamic_flag_spec='${wl}-E'
21108 # hardcode_minus_L: Not really in the search PATH,
21109 # but as the default location of the library.
21110 hardcode_minus_L=yes
21115 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
21118 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21121 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21124 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21130 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21133 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21137 # Older versions of the 11.00 compiler do not understand -b yet
21138 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
21139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
21140 $as_echo_n "checking if $CC understands -b... " >&6; }
21141 if ${lt_cv_prog_compiler__b+:} false; then :
21142 $as_echo_n "(cached) " >&6
21144 lt_cv_prog_compiler__b=no
21145 save_LDFLAGS="$LDFLAGS"
21146 LDFLAGS="$LDFLAGS -b"
21147 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21148 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21149 # The linker can only warn and ignore the option if not recognized
21150 # So say no if there are warnings
21151 if test -s conftest.err; then
21152 # Append any errors to the config.log.
21153 cat conftest.err 1>&5
21154 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21156 if diff conftest.exp conftest.er2 >/dev/null; then
21157 lt_cv_prog_compiler__b=yes
21160 lt_cv_prog_compiler__b=yes
21164 LDFLAGS="$save_LDFLAGS"
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
21168 $as_echo "$lt_cv_prog_compiler__b" >&6; }
21170 if test x"$lt_cv_prog_compiler__b" = xyes; then
21171 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21173 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21179 if test "$with_gnu_ld" = no; then
21180 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
21181 hardcode_libdir_separator=:
21186 hardcode_shlibpath_var=no
21189 hardcode_direct=yes
21190 hardcode_direct_absolute=yes
21191 export_dynamic_flag_spec='${wl}-E'
21193 # hardcode_minus_L: Not really in the search PATH,
21194 # but as the default location of the library.
21195 hardcode_minus_L=yes
21201 irix5* | irix6* | nonstopux*)
21202 if test "$GCC" = yes; then
21203 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'
21204 # Try to use the -exported_symbol ld option, if it does not
21205 # work, assume that -exports_file does not work either and
21206 # implicitly export all symbols.
21207 # This should be the same for all languages, so no per-tag cache variable.
21208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
21209 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
21210 if ${lt_cv_irix_exported_symbol+:} false; then :
21211 $as_echo_n "(cached) " >&6
21213 save_LDFLAGS="$LDFLAGS"
21214 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
21215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21216 /* end confdefs.h. */
21217 int foo (void) { return 0; }
21219 if ac_fn_c_try_link "$LINENO"; then :
21220 lt_cv_irix_exported_symbol=yes
21222 lt_cv_irix_exported_symbol=no
21224 rm -f core conftest.err conftest.$ac_objext \
21225 conftest$ac_exeext conftest.$ac_ext
21226 LDFLAGS="$save_LDFLAGS"
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
21229 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
21230 if test "$lt_cv_irix_exported_symbol" = yes; then
21231 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'
21234 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'
21235 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'
21237 archive_cmds_need_lc='no'
21238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
21239 hardcode_libdir_separator=:
21241 link_all_deplibs=yes
21245 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21246 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21248 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21250 hardcode_libdir_flag_spec='-R$libdir'
21251 hardcode_direct=yes
21252 hardcode_shlibpath_var=no
21256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21257 hardcode_direct=yes
21258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
21259 hardcode_libdir_separator=:
21260 hardcode_shlibpath_var=no
21267 if test -f /usr/libexec/ld.so; then
21268 hardcode_direct=yes
21269 hardcode_shlibpath_var=no
21270 hardcode_direct_absolute=yes
21271 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21272 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21273 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21274 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
21275 export_dynamic_flag_spec='${wl}-E'
21278 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21279 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21280 hardcode_libdir_flag_spec='-R$libdir'
21283 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21284 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
21294 hardcode_libdir_flag_spec='-L$libdir'
21295 hardcode_minus_L=yes
21296 allow_undefined_flag=unsupported
21297 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'
21298 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21302 if test "$GCC" = yes; then
21303 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
21304 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'
21306 allow_undefined_flag=' -expect_unresolved \*'
21307 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'
21309 archive_cmds_need_lc='no'
21310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
21311 hardcode_libdir_separator=:
21314 osf4* | osf5*) # as osf3* with the addition of -msym flag
21315 if test "$GCC" = yes; then
21316 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
21317 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'
21318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
21320 allow_undefined_flag=' -expect_unresolved \*'
21321 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'
21322 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~
21323 $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'
21325 # Both c and cxx compiler support -rpath directly
21326 hardcode_libdir_flag_spec='-rpath $libdir'
21328 archive_cmds_need_lc='no'
21329 hardcode_libdir_separator=:
21333 no_undefined_flag=' -z defs'
21334 if test "$GCC" = yes; then
21336 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21337 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21338 $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'
21340 case `$CC -V 2>&1` in
21343 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21344 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21345 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
21349 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
21350 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21351 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
21355 hardcode_libdir_flag_spec='-R$libdir'
21356 hardcode_shlibpath_var=no
21358 solaris2.[0-5] | solaris2.[0-5].*) ;;
21360 # The compiler driver will combine and reorder linker options,
21361 # but understands `-z linker_flag'. GCC discards it without `$wl',
21362 # but is careful enough not to reorder.
21363 # Supported since Solaris 2.6 (maybe 2.5.1?)
21364 if test "$GCC" = yes; then
21365 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21367 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
21371 link_all_deplibs=yes
21375 if test "x$host_vendor" = xsequent; then
21376 # Use $CC to link under sequent, because it throws in some extra .o
21377 # files that make .init and .fini sections work.
21378 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21380 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21382 hardcode_libdir_flag_spec='-L$libdir'
21383 hardcode_direct=yes
21384 hardcode_minus_L=yes
21385 hardcode_shlibpath_var=no
21389 case $host_vendor in
21391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21392 hardcode_direct=yes # is this really true???
21395 ## LD is ld it makes a PLAMLIB
21396 ## CC just makes a GrossModule.
21397 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21398 reload_cmds='$CC -r -o $output$reload_objs'
21402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21403 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
21406 runpath_var='LD_RUN_PATH'
21407 hardcode_shlibpath_var=no
21411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21412 hardcode_shlibpath_var=no
21413 export_dynamic_flag_spec='-Bexport'
21417 if test -d /usr/nec; then
21418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21419 hardcode_shlibpath_var=no
21420 runpath_var=LD_RUN_PATH
21421 hardcode_runpath_var=yes
21426 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21427 no_undefined_flag='${wl}-z,text'
21428 archive_cmds_need_lc=no
21429 hardcode_shlibpath_var=no
21430 runpath_var='LD_RUN_PATH'
21432 if test "$GCC" = yes; then
21433 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21434 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21436 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21437 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21441 sysv5* | sco3.2v5* | sco5v6*)
21442 # Note: We can NOT use -z defs as we might desire, because we do not
21443 # link with -lc, and that would cause any symbols used from libc to
21444 # always be unresolved, which means just about no library would
21445 # ever link correctly. If we're not using GNU ld we use -z text
21446 # though, which does catch some bad symbols but isn't as heavy-handed
21448 no_undefined_flag='${wl}-z,text'
21449 allow_undefined_flag='${wl}-z,nodefs'
21450 archive_cmds_need_lc=no
21451 hardcode_shlibpath_var=no
21452 hardcode_libdir_flag_spec='${wl}-R,$libdir'
21453 hardcode_libdir_separator=':'
21454 link_all_deplibs=yes
21455 export_dynamic_flag_spec='${wl}-Bexport'
21456 runpath_var='LD_RUN_PATH'
21458 if test "$GCC" = yes; then
21459 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21460 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21462 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21463 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21469 hardcode_libdir_flag_spec='-L$libdir'
21470 hardcode_shlibpath_var=no
21478 if test x$host_vendor = xsni; then
21480 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21481 export_dynamic_flag_spec='${wl}-Blargedynsym'
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
21488 $as_echo "$ld_shlibs" >&6; }
21489 test "$ld_shlibs" = no && can_build_shared=no
21491 with_gnu_ld=$with_gnu_ld
21508 # Do we need to explicitly link libc?
21510 case "x$archive_cmds_need_lc" in
21512 # Assume -lc should be added
21513 archive_cmds_need_lc=yes
21515 if test "$enable_shared" = yes && test "$GCC" = yes; then
21516 case $archive_cmds in
21518 # FIXME: we may have to deal with multi-command sequences.
21521 # Test whether the compiler implicitly links with -lc since on some
21522 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21523 # to ld, don't add -lc before -lgcc.
21524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21525 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21526 if ${lt_cv_archive_cmds_need_lc+:} false; then :
21527 $as_echo_n "(cached) " >&6
21530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21533 (eval $ac_compile) 2>&5
21535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21536 test $ac_status = 0; } 2>conftest.err; then
21539 libobjs=conftest.$ac_objext
21541 wl=$lt_prog_compiler_wl
21542 pic_flag=$lt_prog_compiler_pic
21548 lt_save_allow_undefined_flag=$allow_undefined_flag
21549 allow_undefined_flag=
21550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21551 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21554 test $ac_status = 0; }
21556 lt_cv_archive_cmds_need_lc=no
21558 lt_cv_archive_cmds_need_lc=yes
21560 allow_undefined_flag=$lt_save_allow_undefined_flag
21562 cat conftest.err 1>&5
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
21568 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
21569 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21733 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21735 if test "$GCC" = yes; then
21737 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
21738 *) lt_awk_arg="/^libraries:/" ;;
21741 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
21742 *) lt_sed_strip_eq="s,=/,/,g" ;;
21744 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
21745 case $lt_search_path_spec in
21747 # if the path contains ";" then we assume it to be the separator
21748 # otherwise default to the standard path separator (i.e. ":") - it is
21749 # assumed that no part of a normal pathname contains ";" but that should
21750 # okay in the real world where ";" in dirpaths is itself problematic.
21751 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
21754 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
21757 # Ok, now we have the path, separated by spaces, we can step through it
21758 # and add multilib dir if necessary.
21759 lt_tmp_lt_search_path_spec=
21760 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
21761 for lt_sys_path in $lt_search_path_spec; do
21762 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
21763 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
21765 test -d "$lt_sys_path" && \
21766 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
21769 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
21770 BEGIN {RS=" "; FS="/|\n";} {
21773 for (lt_i = NF; lt_i > 0; lt_i--) {
21774 if ($lt_i != "" && $lt_i != ".") {
21775 if ($lt_i == "..") {
21778 if (lt_count == 0) {
21779 lt_foo="/" $lt_i lt_foo;
21786 if (lt_foo != "") { lt_freq[lt_foo]++; }
21787 if (lt_freq[lt_foo] == 1) { print lt_foo; }
21789 # AWK program above erroneously prepends '/' to C:/dos/paths
21792 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
21793 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
21795 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
21797 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21799 library_names_spec=
21800 libname_spec='lib$name'
21804 postuninstall_cmds=
21808 shlibpath_overrides_runpath=unknown
21810 dynamic_linker="$host_os ld.so"
21811 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21812 need_lib_prefix=unknown
21813 hardcode_into_libs=no
21815 # when you set need_version to no, make sure it does not cause -set_version
21816 # flags to be left without arguments
21817 need_version=unknown
21822 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21823 shlibpath_var=LIBPATH
21825 # AIX 3 has no versioning support, so we append a major version to the name.
21826 soname_spec='${libname}${release}${shared_ext}$major'
21833 hardcode_into_libs=yes
21834 if test "$host_cpu" = ia64; then
21835 # AIX 5 supports IA64
21836 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21837 shlibpath_var=LD_LIBRARY_PATH
21839 # With GCC up to 2.95.x, collect2 would create an import file
21840 # for dependence libraries. The import file would start with
21841 # the line `#! .'. This would cause the generated library to
21842 # depend on `.', always an invalid library. This was fixed in
21843 # development snapshots of GCC prior to 3.0.
21845 aix4 | aix4.[01] | aix4.[01].*)
21846 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21848 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21851 can_build_shared=no
21855 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21856 # soname into executable. Probably we can add versioning support to
21857 # collect2, so additional links can be useful in future.
21858 if test "$aix_use_runtimelinking" = yes; then
21859 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21860 # instead of lib<name>.a to let people know that these are not
21861 # typical AIX shared libraries.
21862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21864 # We preserve .a as extension for shared libraries through AIX4.2
21865 # and later when we are not doing run time linking.
21866 library_names_spec='${libname}${release}.a $libname.a'
21867 soname_spec='${libname}${release}${shared_ext}$major'
21869 shlibpath_var=LIBPATH
21876 # Since July 2007 AmigaOS4 officially supports .so libraries.
21877 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21881 library_names_spec='$libname.ixlibrary $libname.a'
21882 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21883 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'
21889 library_names_spec='${libname}${shared_ext}'
21890 dynamic_linker="$host_os ld.so"
21891 shlibpath_var=LIBRARY_PATH
21897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21898 soname_spec='${libname}${release}${shared_ext}$major'
21899 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21900 shlibpath_var=LD_LIBRARY_PATH
21901 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21902 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21903 # the default ld.so.conf also contains /usr/contrib/lib and
21904 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21905 # libtool to hard-code these into programs
21908 cygwin* | mingw* | pw32* | cegcc*)
21909 version_type=windows
21914 case $GCC,$cc_basename in
21917 library_names_spec='$libname.dll.a'
21918 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21919 postinstall_cmds='base_file=`basename \${file}`~
21920 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21921 dldir=$destdir/`dirname \$dlpath`~
21922 test -d \$dldir || mkdir -p \$dldir~
21923 $install_prog $dir/$dlname \$dldir/$dlname~
21924 chmod a+x \$dldir/$dlname~
21925 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21926 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21928 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21929 dlpath=$dir/\$dldll~
21931 shlibpath_overrides_runpath=yes
21935 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21936 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21938 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
21941 # MinGW DLLs use traditional 'lib' prefix
21942 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21945 # pw32 DLLs use 'pw' prefix rather than 'lib'
21946 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21949 dynamic_linker='Win32 ld.exe'
21954 libname_spec='$name'
21955 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21956 library_names_spec='${libname}.dll.lib'
21960 sys_lib_search_path_spec=
21963 for lt_path in $LIB
21966 # Let DOS variable expansion print the short 8.3 style file name.
21967 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21968 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21971 # Convert to MSYS style.
21972 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21975 # Convert to unix form, then to dos form, then back to unix form
21976 # but this time dos style (no spaces!) so that the unix form looks
21977 # like /cygdrive/c/PROGRA~1:/cygdr...
21978 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21979 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21980 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21983 sys_lib_search_path_spec="$LIB"
21984 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21985 # It is most probably a Windows format PATH.
21986 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21988 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21990 # FIXME: find the short name or the path components, as spaces are
21991 # common. (e.g. "Program Files" -> "PROGRA~1")
21995 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21996 postinstall_cmds='base_file=`basename \${file}`~
21997 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21998 dldir=$destdir/`dirname \$dlpath`~
21999 test -d \$dldir || mkdir -p \$dldir~
22000 $install_prog $dir/$dlname \$dldir/$dlname'
22001 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22002 dlpath=$dir/\$dldll~
22004 shlibpath_overrides_runpath=yes
22005 dynamic_linker='Win32 link.exe'
22009 # Assume MSVC wrapper
22010 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22011 dynamic_linker='Win32 ld.exe'
22014 # FIXME: first we should search . and the directory the executable is in
22018 darwin* | rhapsody*)
22019 dynamic_linker="$host_os dyld"
22020 version_type=darwin
22023 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22024 soname_spec='${libname}${release}${major}$shared_ext'
22025 shlibpath_overrides_runpath=yes
22026 shlibpath_var=DYLD_LIBRARY_PATH
22027 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22029 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
22030 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22038 soname_spec='${libname}${release}${shared_ext}$major'
22039 shlibpath_var=LD_LIBRARY_PATH
22046 freebsd* | dragonfly*)
22047 # DragonFly does not have aout. When/if they implement a new
22048 # versioning mechanism, adjust this.
22049 if test -x /usr/bin/objformat; then
22050 objformat=`/usr/bin/objformat`
22053 freebsd[123]*) objformat=aout ;;
22054 *) objformat=elf ;;
22057 version_type=freebsd-$objformat
22058 case $version_type in
22060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22065 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22069 shlibpath_var=LD_LIBRARY_PATH
22072 shlibpath_overrides_runpath=yes
22074 freebsd3.[01]* | freebsdelf3.[01]*)
22075 shlibpath_overrides_runpath=yes
22076 hardcode_into_libs=yes
22078 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22079 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22080 shlibpath_overrides_runpath=no
22081 hardcode_into_libs=yes
22083 *) # from 4.6 on, and DragonFly
22084 shlibpath_overrides_runpath=yes
22085 hardcode_into_libs=yes
22094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22095 soname_spec='${libname}${release}${shared_ext}$major'
22096 shlibpath_var=LD_LIBRARY_PATH
22097 hardcode_into_libs=yes
22104 dynamic_linker="$host_os runtime_loader"
22105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22106 soname_spec='${libname}${release}${shared_ext}$major'
22107 shlibpath_var=LIBRARY_PATH
22108 shlibpath_overrides_runpath=yes
22109 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22110 hardcode_into_libs=yes
22113 hpux9* | hpux10* | hpux11*)
22114 # Give a soname corresponding to the major version so that dld.sl refuses to
22115 # link against other versions.
22122 hardcode_into_libs=yes
22123 dynamic_linker="$host_os dld.so"
22124 shlibpath_var=LD_LIBRARY_PATH
22125 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22127 soname_spec='${libname}${release}${shared_ext}$major'
22128 if test "X$HPUX_IA64_MODE" = X32; then
22129 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22131 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22137 hardcode_into_libs=yes
22138 dynamic_linker="$host_os dld.sl"
22139 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22142 soname_spec='${libname}${release}${shared_ext}$major'
22143 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22144 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22148 dynamic_linker="$host_os dld.sl"
22149 shlibpath_var=SHLIB_PATH
22150 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22152 soname_spec='${libname}${release}${shared_ext}$major'
22155 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22156 postinstall_cmds='chmod 555 $lib'
22157 # or fails outright, so override atomically:
22158 install_override_mode=555
22165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22166 soname_spec='${libname}${release}${shared_ext}$major'
22167 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22168 shlibpath_var=LD_LIBRARY_PATH
22169 shlibpath_overrides_runpath=no
22170 hardcode_into_libs=yes
22173 irix5* | irix6* | nonstopux*)
22175 nonstopux*) version_type=nonstopux ;;
22177 if test "$lt_cv_prog_gnu_ld" = yes; then
22185 soname_spec='${libname}${release}${shared_ext}$major'
22186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22188 irix5* | nonstopux*)
22189 libsuff= shlibsuff=
22192 case $LD in # libtool.m4 will add one of these switches to LD
22193 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22194 libsuff= shlibsuff= libmagic=32-bit;;
22195 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22196 libsuff=32 shlibsuff=N32 libmagic=N32;;
22197 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22198 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22199 *) libsuff= shlibsuff= libmagic=never-match;;
22203 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22204 shlibpath_overrides_runpath=no
22205 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22206 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22207 hardcode_into_libs=yes
22210 # No shared lib support for Linux oldld, aout, or coff.
22211 linux*oldld* | linux*aout* | linux*coff*)
22215 # This must be Linux ELF.
22216 linux* | k*bsd*-gnu | kopensolaris*-gnu)
22220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22221 soname_spec='${libname}${release}${shared_ext}$major'
22222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22223 shlibpath_var=LD_LIBRARY_PATH
22224 shlibpath_overrides_runpath=no
22226 # Some binutils ld are patched to set DT_RUNPATH
22227 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22228 $as_echo_n "(cached) " >&6
22230 lt_cv_shlibpath_overrides_runpath=no
22231 save_LDFLAGS=$LDFLAGS
22232 save_libdir=$libdir
22233 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
22234 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
22235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22236 /* end confdefs.h. */
22246 if ac_fn_c_try_link "$LINENO"; then :
22247 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22248 lt_cv_shlibpath_overrides_runpath=yes
22251 rm -f core conftest.err conftest.$ac_objext \
22252 conftest$ac_exeext conftest.$ac_ext
22253 LDFLAGS=$save_LDFLAGS
22254 libdir=$save_libdir
22258 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22260 # This implies no fast_install, which is unacceptable.
22261 # Some rework will be needed to allow for fast_install
22262 # before this can be enabled.
22263 hardcode_into_libs=yes
22265 # Append ld.so.conf contents to the search path
22266 if test -f /etc/ld.so.conf; then
22267 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' ' '`
22268 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22271 # We used to test for /lib/ld.so.1 and disable shared libraries on
22272 # powerpc, because MkLinux only supported shared libraries with the
22273 # GNU dynamic linker. Since this was broken with cross compilers,
22274 # most powerpc-linux boxes support dynamic linking these days and
22275 # people can always --disable-shared, the test was removed, and we
22276 # assume the GNU/Linux dynamic linker is in use.
22277 dynamic_linker='GNU/Linux ld.so'
22284 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22287 dynamic_linker='NetBSD (a.out) ld.so'
22289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22290 soname_spec='${libname}${release}${shared_ext}$major'
22291 dynamic_linker='NetBSD ld.elf_so'
22293 shlibpath_var=LD_LIBRARY_PATH
22294 shlibpath_overrides_runpath=yes
22295 hardcode_into_libs=yes
22300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22301 shlibpath_var=LD_LIBRARY_PATH
22302 shlibpath_overrides_runpath=yes
22309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22310 soname_spec='${libname}${release}${shared_ext}$major'
22311 shlibpath_var=LD_LIBRARY_PATH
22312 shlibpath_overrides_runpath=no
22313 hardcode_into_libs=yes
22314 dynamic_linker='ldqnx.so'
22319 sys_lib_dlsearch_path_spec="/usr/lib"
22321 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22323 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22324 *) need_version=no ;;
22326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22328 shlibpath_var=LD_LIBRARY_PATH
22329 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22331 openbsd2.[89] | openbsd2.[89].*)
22332 shlibpath_overrides_runpath=no
22335 shlibpath_overrides_runpath=yes
22339 shlibpath_overrides_runpath=yes
22344 libname_spec='$name'
22347 library_names_spec='$libname${shared_ext} $libname.a'
22348 dynamic_linker='OS/2 ld.exe'
22349 shlibpath_var=LIBPATH
22352 osf3* | osf4* | osf5*)
22356 soname_spec='${libname}${release}${shared_ext}$major'
22357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22358 shlibpath_var=LD_LIBRARY_PATH
22359 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22360 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22372 soname_spec='${libname}${release}${shared_ext}$major'
22373 shlibpath_var=LD_LIBRARY_PATH
22374 shlibpath_overrides_runpath=yes
22375 hardcode_into_libs=yes
22376 # ldd complains unless libraries are executable
22377 postinstall_cmds='chmod +x $lib'
22382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22383 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22384 shlibpath_var=LD_LIBRARY_PATH
22385 shlibpath_overrides_runpath=yes
22386 if test "$with_gnu_ld" = yes; then
22394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22395 soname_spec='${libname}${release}${shared_ext}$major'
22396 shlibpath_var=LD_LIBRARY_PATH
22397 case $host_vendor in
22399 shlibpath_overrides_runpath=no
22401 runpath_var=LD_RUN_PATH
22409 shlibpath_overrides_runpath=no
22410 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22416 if test -d /usr/nec ;then
22418 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22419 soname_spec='$libname${shared_ext}.$major'
22420 shlibpath_var=LD_LIBRARY_PATH
22424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22425 version_type=freebsd-elf
22428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22429 soname_spec='${libname}${release}${shared_ext}$major'
22430 shlibpath_var=LD_LIBRARY_PATH
22431 shlibpath_overrides_runpath=yes
22432 hardcode_into_libs=yes
22433 if test "$with_gnu_ld" = yes; then
22434 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22436 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22439 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22443 sys_lib_dlsearch_path_spec='/usr/lib'
22447 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22452 shlibpath_var=LD_LIBRARY_PATH
22453 shlibpath_overrides_runpath=no
22454 hardcode_into_libs=yes
22459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22460 soname_spec='${libname}${release}${shared_ext}$major'
22461 shlibpath_var=LD_LIBRARY_PATH
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22469 $as_echo "$dynamic_linker" >&6; }
22470 test "$dynamic_linker" = no && can_build_shared=no
22472 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22473 if test "$GCC" = yes; then
22474 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22477 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22478 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22480 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22481 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22576 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22578 if test -n "$hardcode_libdir_flag_spec" ||
22579 test -n "$runpath_var" ||
22580 test "X$hardcode_automatic" = "Xyes" ; then
22582 # We can hardcode non-existent directories.
22583 if test "$hardcode_direct" != no &&
22584 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22585 # have to relink, otherwise we might link with an installed library
22586 # when we should be linking with a yet-to-be-installed one
22587 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
22588 test "$hardcode_minus_L" != no; then
22589 # Linking always hardcodes the temporary library directory.
22590 hardcode_action=relink
22592 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22593 hardcode_action=immediate
22596 # We cannot hardcode anything, or else we can only hardcode existing
22598 hardcode_action=unsupported
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
22601 $as_echo "$hardcode_action" >&6; }
22603 if test "$hardcode_action" = relink ||
22604 test "$inherit_rpath" = yes; then
22605 # Fast installation is not supported
22606 enable_fast_install=no
22607 elif test "$shlibpath_overrides_runpath" = yes ||
22608 test "$enable_shared" = no; then
22609 # Fast installation is not necessary
22610 enable_fast_install=needless
22618 if test "x$enable_dlopen" != xyes; then
22619 enable_dlopen=unknown
22620 enable_dlopen_self=unknown
22621 enable_dlopen_self_static=unknown
22628 lt_cv_dlopen="load_add_on"
22630 lt_cv_dlopen_self=yes
22633 mingw* | pw32* | cegcc*)
22634 lt_cv_dlopen="LoadLibrary"
22639 lt_cv_dlopen="dlopen"
22644 # if libdl is installed we need to link against it
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22646 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22647 if ${ac_cv_lib_dl_dlopen+:} false; then :
22648 $as_echo_n "(cached) " >&6
22650 ac_check_lib_save_LIBS=$LIBS
22652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22653 /* end confdefs.h. */
22655 /* Override any GCC internal prototype to avoid an error.
22656 Use char because int might match the return type of a GCC
22657 builtin and then its argument prototype would still apply. */
22670 if ac_fn_c_try_link "$LINENO"; then :
22671 ac_cv_lib_dl_dlopen=yes
22673 ac_cv_lib_dl_dlopen=no
22675 rm -f core conftest.err conftest.$ac_objext \
22676 conftest$ac_exeext conftest.$ac_ext
22677 LIBS=$ac_check_lib_save_LIBS
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22680 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22681 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22682 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22685 lt_cv_dlopen="dyld"
22687 lt_cv_dlopen_self=yes
22694 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22695 if test "x$ac_cv_func_shl_load" = xyes; then :
22696 lt_cv_dlopen="shl_load"
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
22699 $as_echo_n "checking for shl_load in -ldld... " >&6; }
22700 if ${ac_cv_lib_dld_shl_load+:} false; then :
22701 $as_echo_n "(cached) " >&6
22703 ac_check_lib_save_LIBS=$LIBS
22705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22706 /* end confdefs.h. */
22708 /* Override any GCC internal prototype to avoid an error.
22709 Use char because int might match the return type of a GCC
22710 builtin and then its argument prototype would still apply. */
22718 return shl_load ();
22723 if ac_fn_c_try_link "$LINENO"; then :
22724 ac_cv_lib_dld_shl_load=yes
22726 ac_cv_lib_dld_shl_load=no
22728 rm -f core conftest.err conftest.$ac_objext \
22729 conftest$ac_exeext conftest.$ac_ext
22730 LIBS=$ac_check_lib_save_LIBS
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
22733 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22734 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
22735 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
22737 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22738 if test "x$ac_cv_func_dlopen" = xyes; then :
22739 lt_cv_dlopen="dlopen"
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22742 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22743 if ${ac_cv_lib_dl_dlopen+:} false; then :
22744 $as_echo_n "(cached) " >&6
22746 ac_check_lib_save_LIBS=$LIBS
22748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22749 /* end confdefs.h. */
22751 /* Override any GCC internal prototype to avoid an error.
22752 Use char because int might match the return type of a GCC
22753 builtin and then its argument prototype would still apply. */
22766 if ac_fn_c_try_link "$LINENO"; then :
22767 ac_cv_lib_dl_dlopen=yes
22769 ac_cv_lib_dl_dlopen=no
22771 rm -f core conftest.err conftest.$ac_objext \
22772 conftest$ac_exeext conftest.$ac_ext
22773 LIBS=$ac_check_lib_save_LIBS
22775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22776 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22777 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
22781 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
22782 if ${ac_cv_lib_svld_dlopen+:} false; then :
22783 $as_echo_n "(cached) " >&6
22785 ac_check_lib_save_LIBS=$LIBS
22786 LIBS="-lsvld $LIBS"
22787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22788 /* end confdefs.h. */
22790 /* Override any GCC internal prototype to avoid an error.
22791 Use char because int might match the return type of a GCC
22792 builtin and then its argument prototype would still apply. */
22805 if ac_fn_c_try_link "$LINENO"; then :
22806 ac_cv_lib_svld_dlopen=yes
22808 ac_cv_lib_svld_dlopen=no
22810 rm -f core conftest.err conftest.$ac_objext \
22811 conftest$ac_exeext conftest.$ac_ext
22812 LIBS=$ac_check_lib_save_LIBS
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
22815 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22816 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
22817 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
22820 $as_echo_n "checking for dld_link in -ldld... " >&6; }
22821 if ${ac_cv_lib_dld_dld_link+:} false; then :
22822 $as_echo_n "(cached) " >&6
22824 ac_check_lib_save_LIBS=$LIBS
22826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22827 /* end confdefs.h. */
22829 /* Override any GCC internal prototype to avoid an error.
22830 Use char because int might match the return type of a GCC
22831 builtin and then its argument prototype would still apply. */
22839 return dld_link ();
22844 if ac_fn_c_try_link "$LINENO"; then :
22845 ac_cv_lib_dld_dld_link=yes
22847 ac_cv_lib_dld_dld_link=no
22849 rm -f core conftest.err conftest.$ac_objext \
22850 conftest$ac_exeext conftest.$ac_ext
22851 LIBS=$ac_check_lib_save_LIBS
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
22854 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22855 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
22856 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
22877 if test "x$lt_cv_dlopen" != xno; then
22883 case $lt_cv_dlopen in
22885 save_CPPFLAGS="$CPPFLAGS"
22886 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
22888 save_LDFLAGS="$LDFLAGS"
22889 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
22892 LIBS="$lt_cv_dlopen_libs $LIBS"
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
22895 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
22896 if ${lt_cv_dlopen_self+:} false; then :
22897 $as_echo_n "(cached) " >&6
22899 if test "$cross_compiling" = yes; then :
22900 lt_cv_dlopen_self=cross
22902 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22903 lt_status=$lt_dlunknown
22904 cat > conftest.$ac_ext <<_LT_EOF
22905 #line $LINENO "configure"
22906 #include "confdefs.h"
22915 # define LT_DLGLOBAL RTLD_GLOBAL
22918 # define LT_DLGLOBAL DL_GLOBAL
22920 # define LT_DLGLOBAL 0
22924 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22925 find out it does not work in some platform. */
22926 #ifndef LT_DLLAZY_OR_NOW
22928 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22931 # define LT_DLLAZY_OR_NOW DL_LAZY
22934 # define LT_DLLAZY_OR_NOW RTLD_NOW
22937 # define LT_DLLAZY_OR_NOW DL_NOW
22939 # define LT_DLLAZY_OR_NOW 0
22946 /* When -fvisbility=hidden is used, assume the code has been annotated
22947 correspondingly for the symbols needed. */
22948 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22949 int fnord () __attribute__((visibility("default")));
22952 int fnord () { return 42; }
22955 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22956 int status = $lt_dlunknown;
22960 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22963 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22964 else puts (dlerror ());
22966 /* dlclose (self); */
22974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22975 (eval $ac_link) 2>&5
22977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22978 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
22979 (./conftest; exit; ) >&5 2>/dev/null
22981 case x$lt_status in
22982 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
22983 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
22984 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
22987 # compilation failed
22988 lt_cv_dlopen_self=no
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
22996 $as_echo "$lt_cv_dlopen_self" >&6; }
22998 if test "x$lt_cv_dlopen_self" = xyes; then
22999 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
23001 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
23002 if ${lt_cv_dlopen_self_static+:} false; then :
23003 $as_echo_n "(cached) " >&6
23005 if test "$cross_compiling" = yes; then :
23006 lt_cv_dlopen_self_static=cross
23008 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23009 lt_status=$lt_dlunknown
23010 cat > conftest.$ac_ext <<_LT_EOF
23011 #line $LINENO "configure"
23012 #include "confdefs.h"
23021 # define LT_DLGLOBAL RTLD_GLOBAL
23024 # define LT_DLGLOBAL DL_GLOBAL
23026 # define LT_DLGLOBAL 0
23030 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23031 find out it does not work in some platform. */
23032 #ifndef LT_DLLAZY_OR_NOW
23034 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23037 # define LT_DLLAZY_OR_NOW DL_LAZY
23040 # define LT_DLLAZY_OR_NOW RTLD_NOW
23043 # define LT_DLLAZY_OR_NOW DL_NOW
23045 # define LT_DLLAZY_OR_NOW 0
23052 /* When -fvisbility=hidden is used, assume the code has been annotated
23053 correspondingly for the symbols needed. */
23054 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
23055 int fnord () __attribute__((visibility("default")));
23058 int fnord () { return 42; }
23061 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23062 int status = $lt_dlunknown;
23066 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23069 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23070 else puts (dlerror ());
23072 /* dlclose (self); */
23080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
23081 (eval $ac_link) 2>&5
23083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23084 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
23085 (./conftest; exit; ) >&5 2>/dev/null
23087 case x$lt_status in
23088 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23089 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23090 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
23093 # compilation failed
23094 lt_cv_dlopen_self_static=no
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
23102 $as_echo "$lt_cv_dlopen_self_static" >&6; }
23105 CPPFLAGS="$save_CPPFLAGS"
23106 LDFLAGS="$save_LDFLAGS"
23111 case $lt_cv_dlopen_self in
23112 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23113 *) enable_dlopen_self=unknown ;;
23116 case $lt_cv_dlopen_self_static in
23117 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23118 *) enable_dlopen_self_static=unknown ;;
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
23141 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
23142 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
23143 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23144 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23146 $as_echo "yes" >&6; }
23148 # FIXME - insert some real tests, host_os isn't really good enough
23151 if test -n "$STRIP" ; then
23152 striplib="$STRIP -x"
23153 old_striplib="$STRIP -S"
23154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23155 $as_echo "yes" >&6; }
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23158 $as_echo "no" >&6; }
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23163 $as_echo "no" >&6; }
23179 # Report which library types will actually be built
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
23181 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
23183 $as_echo "$can_build_shared" >&6; }
23185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
23186 $as_echo_n "checking whether to build shared libraries... " >&6; }
23187 test "$can_build_shared" = "no" && enable_shared=no
23189 # On AIX, shared libraries and static libraries use the same namespace, and
23190 # are all built from PIC.
23193 test "$enable_shared" = yes && enable_static=no
23194 if test -n "$RANLIB"; then
23195 archive_cmds="$archive_cmds~\$RANLIB \$lib"
23196 postinstall_cmds='$RANLIB $lib'
23201 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
23202 test "$enable_shared" = yes && enable_static=no
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
23207 $as_echo "$enable_shared" >&6; }
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
23210 $as_echo_n "checking whether to build static libraries... " >&6; }
23211 # Make sure either enable_shared or enable_static is yes.
23212 test "$enable_shared" = yes || enable_static=yes
23213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
23214 $as_echo "$enable_static" >&6; }
23221 ac_cpp='$CPP $CPPFLAGS'
23222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23240 ac_config_commands="$ac_config_commands libtool"
23245 # Only expand once:
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
23253 $as_echo_n "checking if sntp will be built... " >&6; }
23255 # Check whether --with-sntp was given.
23256 if test "${with_sntp+set}" = set; then :
23257 withval=$with_sntp;
23259 with_sntp="${withsntp=yes}"
23263 case "$with_sntp" in
23272 if test -n "$SNTP"; then
23274 BUILD_SNTP_FALSE='#'
23276 BUILD_SNTP_TRUE='#'
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
23281 $as_echo "$with_sntp" >&6; }
23295 # NTP has (so far) been relying on leading-edge autogen.
23296 # Therefore, by default:
23297 # - use the version we ship with
23298 # - do not install it
23299 # - build a static copy (AC_DISABLE_SHARED - done earlier)
23300 case "${enable_local_libopts+set}" in
23302 *) enable_local_libopts=yes ;;
23304 case "${enable_libopts_install+set}" in
23306 *) enable_libopts_install=no ;;
23311 ac_header_dirent=no
23312 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23313 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
23315 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
23316 if eval \${$as_ac_Header+:} false; then :
23317 $as_echo_n "(cached) " >&6
23319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23320 /* end confdefs.h. */
23321 #include <sys/types.h>
23333 if ac_fn_c_try_compile "$LINENO"; then :
23334 eval "$as_ac_Header=yes"
23336 eval "$as_ac_Header=no"
23338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23340 eval ac_res=\$$as_ac_Header
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23342 $as_echo "$ac_res" >&6; }
23343 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23344 cat >>confdefs.h <<_ACEOF
23345 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23348 ac_header_dirent=$ac_hdr; break
23352 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23353 if test $ac_header_dirent = dirent.h; then
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23355 $as_echo_n "checking for library containing opendir... " >&6; }
23356 if ${ac_cv_search_opendir+:} false; then :
23357 $as_echo_n "(cached) " >&6
23359 ac_func_search_save_LIBS=$LIBS
23360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23361 /* end confdefs.h. */
23363 /* Override any GCC internal prototype to avoid an error.
23364 Use char because int might match the return type of a GCC
23365 builtin and then its argument prototype would still apply. */
23378 for ac_lib in '' dir; do
23379 if test -z "$ac_lib"; then
23380 ac_res="none required"
23383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23385 if ac_fn_c_try_link "$LINENO"; then :
23386 ac_cv_search_opendir=$ac_res
23388 rm -f core conftest.err conftest.$ac_objext \
23390 if ${ac_cv_search_opendir+:} false; then :
23394 if ${ac_cv_search_opendir+:} false; then :
23397 ac_cv_search_opendir=no
23399 rm conftest.$ac_ext
23400 LIBS=$ac_func_search_save_LIBS
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23403 $as_echo "$ac_cv_search_opendir" >&6; }
23404 ac_res=$ac_cv_search_opendir
23405 if test "$ac_res" != no; then :
23406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23412 $as_echo_n "checking for library containing opendir... " >&6; }
23413 if ${ac_cv_search_opendir+:} false; then :
23414 $as_echo_n "(cached) " >&6
23416 ac_func_search_save_LIBS=$LIBS
23417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23418 /* end confdefs.h. */
23420 /* Override any GCC internal prototype to avoid an error.
23421 Use char because int might match the return type of a GCC
23422 builtin and then its argument prototype would still apply. */
23435 for ac_lib in '' x; do
23436 if test -z "$ac_lib"; then
23437 ac_res="none required"
23440 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23442 if ac_fn_c_try_link "$LINENO"; then :
23443 ac_cv_search_opendir=$ac_res
23445 rm -f core conftest.err conftest.$ac_objext \
23447 if ${ac_cv_search_opendir+:} false; then :
23451 if ${ac_cv_search_opendir+:} false; then :
23454 ac_cv_search_opendir=no
23456 rm conftest.$ac_ext
23457 LIBS=$ac_func_search_save_LIBS
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23460 $as_echo "$ac_cv_search_opendir" >&6; }
23461 ac_res=$ac_cv_search_opendir
23462 if test "$ac_res" != no; then :
23463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23470 # =================
23472 # =================
23474 sys/mman.h sys/param.h sys/poll.h sys/procset.h \
23475 sys/select.h sys/socket.h sys/stropts.h sys/time.h \
23476 sys/un.h sys/wait.h dlfcn.h errno.h \
23477 fcntl.h libgen.h libintl.h memory.h \
23478 netinet/in.h setjmp.h stdbool.h sysexits.h \
23481 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23482 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23483 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23484 cat >>confdefs.h <<_ACEOF
23485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23493 for ac_header in stdarg.h varargs.h
23495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23496 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23497 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23498 cat >>confdefs.h <<_ACEOF
23499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23501 lo_have_arg_hdr=true;break
23503 lo_have_arg_hdr=false
23509 for ac_header in string.h strings.h
23511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23512 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23513 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23514 cat >>confdefs.h <<_ACEOF
23515 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23517 lo_have_str_hdr=true;break
23519 lo_have_str_hdr=false
23525 for ac_header in limits.h sys/limits.h values.h
23527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23528 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23529 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23530 cat >>confdefs.h <<_ACEOF
23531 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23533 lo_have_lim_hdr=true;break
23535 lo_have_lim_hdr=false
23541 for ac_header in inttypes.h stdint.h
23543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23544 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23545 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23546 cat >>confdefs.h <<_ACEOF
23547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23549 lo_have_typ_hdr=true;break
23551 lo_have_typ_hdr=false
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
23558 $as_echo_n "checking for working stdnoreturn.h... " >&6; }
23559 if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
23560 $as_echo_n "(cached) " >&6
23562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23563 /* end confdefs.h. */
23564 #include <stdlib.h>
23565 #include <stdnoreturn.h>
23566 /* Do not check for 'noreturn' after the return type.
23567 C11 allows it, but it's rarely done that way
23568 and circa-2012 bleeding-edge GCC rejects it when given
23569 -Werror=old-style-declaration. */
23570 noreturn void foo1 (void) { exit (0); }
23571 _Noreturn void foo2 (void) { exit (0); }
23572 int testit (int argc, char **argv) {
23575 (argv[0][0] ? foo1 : foo2) ();
23586 if ac_fn_c_try_compile "$LINENO"; then :
23587 gl_cv_header_working_stdnoreturn_h=yes
23589 gl_cv_header_working_stdnoreturn_h=no
23591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
23594 $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
23596 if test $gl_cv_header_working_stdnoreturn_h = yes; then
23599 STDNORETURN_H='stdnoreturn.h'
23603 if test -n "$STDNORETURN_H"; then
23604 GL_GENERATE_STDNORETURN_H_TRUE=
23605 GL_GENERATE_STDNORETURN_H_FALSE='#'
23607 GL_GENERATE_STDNORETURN_H_TRUE='#'
23608 GL_GENERATE_STDNORETURN_H_FALSE=
23613 # ----------------------------------------------------------------------
23614 # check for various programs used during the build.
23615 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
23616 # ----------------------------------------------------------------------
23617 for ac_header in runetype.h wchar.h
23619 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23620 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
23621 $ac_includes_default
23622 #if HAVE_RUNETYPE_H
23623 # include <runetype.h>
23627 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23628 cat >>confdefs.h <<_ACEOF
23629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23637 # Check whether --enable-nls was given.
23638 if test "${enable_nls+set}" = set; then :
23639 enableval=$enable_nls;
23642 if test "x$enable_nls" != "xno" && \
23643 test "X${ac_cv_header_libintl_h}" = Xyes; then :
23646 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
23650 # --------------------------------------------
23651 # Verify certain entries from AC_CHECK_HEADERS
23652 # --------------------------------------------
23653 ${lo_have_arg_hdr} || \
23654 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
23656 ${lo_have_str_hdr} || \
23657 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
23659 ${lo_have_lim_hdr} || \
23660 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
23662 ${lo_have_typ_hdr} || \
23663 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
23665 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
23666 do eval as_ac_var=\${ac_cv_header_${f}_h}
23667 test "X${as_ac_var}" = Xyes || {
23668 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
23671 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
23672 echo '#include <stdint.h>' > inttypes.h
23674 # ----------------------------------------------------------------------
23675 # Checks for typedefs
23676 # ----------------------------------------------------------------------
23677 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
23678 if test "x$ac_cv_type_wchar_t" = xyes; then :
23680 cat >>confdefs.h <<_ACEOF
23681 #define HAVE_WCHAR_T 1
23687 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
23688 $ac_includes_default
23689 #if HAVE_RUNETYPE_H
23690 # include <runetype.h>
23693 # include <wchar.h>
23697 if test "x$ac_cv_type_wint_t" = xyes; then :
23699 cat >>confdefs.h <<_ACEOF
23700 #define HAVE_WINT_T 1
23706 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
23707 if test "x$ac_cv_type_int8_t" = xyes; then :
23709 cat >>confdefs.h <<_ACEOF
23710 #define HAVE_INT8_T 1
23715 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
23716 if test "x$ac_cv_type_uint8_t" = xyes; then :
23718 cat >>confdefs.h <<_ACEOF
23719 #define HAVE_UINT8_T 1
23724 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
23725 if test "x$ac_cv_type_int16_t" = xyes; then :
23727 cat >>confdefs.h <<_ACEOF
23728 #define HAVE_INT16_T 1
23733 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
23734 if test "x$ac_cv_type_uint16_t" = xyes; then :
23736 cat >>confdefs.h <<_ACEOF
23737 #define HAVE_UINT16_T 1
23742 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
23743 if test "x$ac_cv_type_int32_t" = xyes; then :
23745 cat >>confdefs.h <<_ACEOF
23746 #define HAVE_INT32_T 1
23751 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
23752 if test "x$ac_cv_type_uint32_t" = xyes; then :
23754 cat >>confdefs.h <<_ACEOF
23755 #define HAVE_UINT32_T 1
23760 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23761 if test "x$ac_cv_type_intptr_t" = xyes; then :
23763 cat >>confdefs.h <<_ACEOF
23764 #define HAVE_INTPTR_T 1
23769 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23770 if test "x$ac_cv_type_uintptr_t" = xyes; then :
23772 cat >>confdefs.h <<_ACEOF
23773 #define HAVE_UINTPTR_T 1
23778 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
23779 if test "x$ac_cv_type_uint_t" = xyes; then :
23781 cat >>confdefs.h <<_ACEOF
23782 #define HAVE_UINT_T 1
23787 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23788 if test "x$ac_cv_type_pid_t" = xyes; then :
23790 cat >>confdefs.h <<_ACEOF
23791 #define HAVE_PID_T 1
23796 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23797 if test "x$ac_cv_type_size_t" = xyes; then :
23799 cat >>confdefs.h <<_ACEOF
23800 #define HAVE_SIZE_T 1
23805 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23806 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
23808 cat >>confdefs.h <<_ACEOF
23809 #define HAVE_PTRDIFF_T 1
23815 # The cast to long int works around a bug in the HP C Compiler
23816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23817 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23818 # This bug is HP SR number 8606223364.
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
23820 $as_echo_n "checking size of char *... " >&6; }
23821 if ${ac_cv_sizeof_char_p+:} false; then :
23822 $as_echo_n "(cached) " >&6
23824 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
23827 if test "$ac_cv_type_char_p" = yes; then
23828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23830 as_fn_error 77 "cannot compute sizeof (char *)
23831 See \`config.log' for more details" "$LINENO" 5; }
23833 ac_cv_sizeof_char_p=0
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
23839 $as_echo "$ac_cv_sizeof_char_p" >&6; }
23843 cat >>confdefs.h <<_ACEOF
23844 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
23848 # The cast to long int works around a bug in the HP C Compiler
23849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23851 # This bug is HP SR number 8606223364.
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23853 $as_echo_n "checking size of int... " >&6; }
23854 if ${ac_cv_sizeof_int+:} false; then :
23855 $as_echo_n "(cached) " >&6
23857 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23860 if test "$ac_cv_type_int" = yes; then
23861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23863 as_fn_error 77 "cannot compute sizeof (int)
23864 See \`config.log' for more details" "$LINENO" 5; }
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23872 $as_echo "$ac_cv_sizeof_int" >&6; }
23876 cat >>confdefs.h <<_ACEOF
23877 #define SIZEOF_INT $ac_cv_sizeof_int
23881 # The cast to long int works around a bug in the HP C Compiler
23882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23884 # This bug is HP SR number 8606223364.
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23886 $as_echo_n "checking size of long... " >&6; }
23887 if ${ac_cv_sizeof_long+:} false; then :
23888 $as_echo_n "(cached) " >&6
23890 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23893 if test "$ac_cv_type_long" = yes; then
23894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23896 as_fn_error 77 "cannot compute sizeof (long)
23897 See \`config.log' for more details" "$LINENO" 5; }
23899 ac_cv_sizeof_long=0
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23905 $as_echo "$ac_cv_sizeof_long" >&6; }
23909 cat >>confdefs.h <<_ACEOF
23910 #define SIZEOF_LONG $ac_cv_sizeof_long
23914 # The cast to long int works around a bug in the HP C Compiler
23915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23917 # This bug is HP SR number 8606223364.
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23919 $as_echo_n "checking size of short... " >&6; }
23920 if ${ac_cv_sizeof_short+:} false; then :
23921 $as_echo_n "(cached) " >&6
23923 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23926 if test "$ac_cv_type_short" = yes; then
23927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23929 as_fn_error 77 "cannot compute sizeof (short)
23930 See \`config.log' for more details" "$LINENO" 5; }
23932 ac_cv_sizeof_short=0
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23938 $as_echo "$ac_cv_sizeof_short" >&6; }
23942 cat >>confdefs.h <<_ACEOF
23943 #define SIZEOF_SHORT $ac_cv_sizeof_short
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
23952 $as_echo_n "checking for pathfind in -lgen... " >&6; }
23953 if ${ac_cv_lib_gen_pathfind+:} false; then :
23954 $as_echo_n "(cached) " >&6
23956 ac_check_lib_save_LIBS=$LIBS
23958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23959 /* end confdefs.h. */
23961 /* Override any GCC internal prototype to avoid an error.
23962 Use char because int might match the return type of a GCC
23963 builtin and then its argument prototype would still apply. */
23971 return pathfind ();
23976 if ac_fn_c_try_link "$LINENO"; then :
23977 ac_cv_lib_gen_pathfind=yes
23979 ac_cv_lib_gen_pathfind=no
23981 rm -f core conftest.err conftest.$ac_objext \
23982 conftest$ac_exeext conftest.$ac_ext
23983 LIBS=$ac_check_lib_save_LIBS
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
23986 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
23987 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
23988 cat >>confdefs.h <<_ACEOF
23989 #define HAVE_LIBGEN 1
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
23997 $as_echo_n "checking for gettext in -lintl... " >&6; }
23998 if ${ac_cv_lib_intl_gettext+:} false; then :
23999 $as_echo_n "(cached) " >&6
24001 ac_check_lib_save_LIBS=$LIBS
24002 LIBS="-lintl $LIBS"
24003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24004 /* end confdefs.h. */
24006 /* Override any GCC internal prototype to avoid an error.
24007 Use char because int might match the return type of a GCC
24008 builtin and then its argument prototype would still apply. */
24021 if ac_fn_c_try_link "$LINENO"; then :
24022 ac_cv_lib_intl_gettext=yes
24024 ac_cv_lib_intl_gettext=no
24026 rm -f core conftest.err conftest.$ac_objext \
24027 conftest$ac_exeext conftest.$ac_ext
24028 LIBS=$ac_check_lib_save_LIBS
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
24031 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
24032 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
24033 cat >>confdefs.h <<_ACEOF
24034 #define HAVE_LIBINTL 1
24037 LIBS="-lintl $LIBS"
24041 for ac_func in vprintf
24043 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
24044 if test "x$ac_cv_func_vprintf" = xyes; then :
24045 cat >>confdefs.h <<_ACEOF
24046 #define HAVE_VPRINTF 1
24049 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
24050 if test "x$ac_cv_func__doprnt" = xyes; then :
24052 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
24060 for ac_header in vfork.h
24062 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24063 if test "x$ac_cv_header_vfork_h" = xyes; then :
24064 cat >>confdefs.h <<_ACEOF
24065 #define HAVE_VFORK_H 1
24072 for ac_func in fork vfork
24074 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24075 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24076 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24077 cat >>confdefs.h <<_ACEOF
24078 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24084 if test "x$ac_cv_func_fork" = xyes; then
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24086 $as_echo_n "checking for working fork... " >&6; }
24087 if ${ac_cv_func_fork_works+:} false; then :
24088 $as_echo_n "(cached) " >&6
24090 if test "$cross_compiling" = yes; then :
24091 ac_cv_func_fork_works=cross
24093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24094 /* end confdefs.h. */
24095 $ac_includes_default
24100 /* By Ruediger Kuhlmann. */
24101 return fork () < 0;
24107 if ac_fn_c_try_run "$LINENO"; then :
24108 ac_cv_func_fork_works=yes
24110 ac_cv_func_fork_works=no
24112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24113 conftest.$ac_objext conftest.beam conftest.$ac_ext
24117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24118 $as_echo "$ac_cv_func_fork_works" >&6; }
24121 ac_cv_func_fork_works=$ac_cv_func_fork
24123 if test "x$ac_cv_func_fork_works" = xcross; then
24125 *-*-amigaos* | *-*-msdosdjgpp*)
24126 # Override, as these systems have only a dummy fork() stub
24127 ac_cv_func_fork_works=no
24130 ac_cv_func_fork_works=yes
24133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24134 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24136 ac_cv_func_vfork_works=$ac_cv_func_vfork
24137 if test "x$ac_cv_func_vfork" = xyes; then
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24139 $as_echo_n "checking for working vfork... " >&6; }
24140 if ${ac_cv_func_vfork_works+:} false; then :
24141 $as_echo_n "(cached) " >&6
24143 if test "$cross_compiling" = yes; then :
24144 ac_cv_func_vfork_works=cross
24146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24147 /* end confdefs.h. */
24148 /* Thanks to Paul Eggert for this test. */
24149 $ac_includes_default
24150 #include <sys/wait.h>
24151 #ifdef HAVE_VFORK_H
24152 # include <vfork.h>
24154 /* On some sparc systems, changes by the child to local and incoming
24155 argument registers are propagated back to the parent. The compiler
24156 is told about this with #include <vfork.h>, but some compilers
24157 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24158 static variable whose address is put into a register that is
24159 clobbered by the vfork. */
24162 sparc_address_test (int arg)
24164 sparc_address_test (arg) int arg;
24167 static pid_t child;
24185 pid_t parent = getpid ();
24188 sparc_address_test (0);
24193 /* Here is another test for sparc vfork register problems. This
24194 test uses lots of local variables, at least as many local
24195 variables as main has allocated so far including compiler
24196 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24197 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24198 reuse the register of parent for one of the local variables,
24199 since it will think that parent can't possibly be used any more
24200 in this routine. Assigning to the local variable will thus
24201 munge parent in the parent process. */
24203 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24204 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24205 /* Convince the compiler that p..p7 are live; otherwise, it might
24206 use the same hardware register for all 8 local variables. */
24207 if (p != p1 || p != p2 || p != p3 || p != p4
24208 || p != p5 || p != p6 || p != p7)
24211 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24212 from child file descriptors. If the child closes a descriptor
24213 before it execs or exits, this munges the parent's descriptor
24214 as well. Test for this by closing stdout in the child. */
24215 _exit(close(fileno(stdout)) != 0);
24220 while (wait(&status) != child)
24223 /* Was there some problem with vforking? */
24226 /* Did the child fail? (This shouldn't happen.) */
24229 /* Did the vfork/compiler bug occur? */
24230 || parent != getpid()
24232 /* Did the file descriptor bug occur? */
24233 || fstat(fileno(stdout), &st) != 0
24238 if ac_fn_c_try_run "$LINENO"; then :
24239 ac_cv_func_vfork_works=yes
24241 ac_cv_func_vfork_works=no
24243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24244 conftest.$ac_objext conftest.beam conftest.$ac_ext
24248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24249 $as_echo "$ac_cv_func_vfork_works" >&6; }
24252 if test "x$ac_cv_func_fork_works" = xcross; then
24253 ac_cv_func_vfork_works=$ac_cv_func_vfork
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24255 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24258 if test "x$ac_cv_func_vfork_works" = xyes; then
24260 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24264 $as_echo "#define vfork fork" >>confdefs.h
24267 if test "x$ac_cv_func_fork_works" = xyes; then
24269 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24273 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
24274 strrchr strsignal fchmod fstat chmod
24276 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24277 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24278 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24279 cat >>confdefs.h <<_ACEOF
24280 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
24287 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
24288 if ${ac_cv_path_SED+:} false; then :
24289 $as_echo_n "(cached) " >&6
24291 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
24292 for ac_i in 1 2 3 4 5 6 7; do
24293 ac_script="$ac_script$as_nl$ac_script"
24295 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
24296 { ac_script=; unset ac_script;}
24297 if test -z "$SED"; then
24298 ac_path_SED_found=false
24299 # Loop through the user's path and test for each of PROGNAME-LIST
24300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24301 for as_dir in $PATH
24304 test -z "$as_dir" && as_dir=.
24305 for ac_prog in sed gsed; do
24306 for ac_exec_ext in '' $ac_executable_extensions; do
24307 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
24308 as_fn_executable_p "$ac_path_SED" || continue
24309 # Check for GNU ac_path_SED and select it if it is found.
24310 # Check for GNU $ac_path_SED
24311 case `"$ac_path_SED" --version 2>&1` in
24313 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
24316 $as_echo_n 0123456789 >"conftest.in"
24319 cat "conftest.in" "conftest.in" >"conftest.tmp"
24320 mv "conftest.tmp" "conftest.in"
24321 cp "conftest.in" "conftest.nl"
24322 $as_echo '' >> "conftest.nl"
24323 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
24324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
24325 as_fn_arith $ac_count + 1 && ac_count=$as_val
24326 if test $ac_count -gt ${ac_path_SED_max-0}; then
24327 # Best one so far, save it but keep looking for a better one
24328 ac_cv_path_SED="$ac_path_SED"
24329 ac_path_SED_max=$ac_count
24331 # 10*(2^10) chars as input seems more than enough
24332 test $ac_count -gt 10 && break
24334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
24337 $ac_path_SED_found && break 3
24342 if test -z "$ac_cv_path_SED"; then
24343 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
24346 ac_cv_path_SED=$SED
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
24351 $as_echo "$ac_cv_path_SED" >&6; }
24352 SED="$ac_cv_path_SED"
24357 POSIX_SHELL=`which bash`
24358 test -x "$POSIX_SHELL" && break
24359 POSIX_SHELL=`which dash`
24360 test -x "$POSIX_SHELL" && break
24361 POSIX_SHELL=/usr/xpg4/bin/sh
24362 test -x "$POSIX_SHELL" && break
24363 POSIX_SHELL=`/bin/sh -c '
24365 if ! true ; then exit 1 ; fi
24367 test -x "$POSIX_SHELL" && break
24368 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
24371 cat >>confdefs.h <<_ACEOF
24372 #define POSIX_SHELL "${POSIX_SHELL}"
24379 LIBOPTS_BUILD_BLOCKED=''
24382 NEED_LIBOPTS_DIR=''
24384 # Check whether --enable-local-libopts was given.
24385 if test "${enable_local_libopts+set}" = set; then :
24386 enableval=$enable_local_libopts;
24387 if test x$enableval = xyes ; then
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
24389 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
24390 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
24391 NEED_LIBOPTS_DIR=true
24392 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
24397 # Check whether --enable-libopts-install was given.
24398 if test "${enable_libopts_install+set}" = set; then :
24399 enableval=$enable_libopts_install;
24402 if test "X${enable_libopts_install}" = Xyes; then
24403 INSTALL_LIBOPTS_TRUE=
24404 INSTALL_LIBOPTS_FALSE='#'
24406 INSTALL_LIBOPTS_TRUE='#'
24407 INSTALL_LIBOPTS_FALSE=
24411 if test -z "${NEED_LIBOPTS_DIR}" ; then
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
24413 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
24415 # Check whether --with-autoopts-config was given.
24416 if test "${with_autoopts_config+set}" = set; then :
24417 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
24420 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
24421 if ${lo_cv_with_autoopts_config+:} false; then :
24422 $as_echo_n "(cached) " >&6
24424 if autoopts-config --help 2>/dev/null 1>&2
24425 then lo_cv_with_autoopts_config=autoopts-config
24426 elif libopts-config --help 2>/dev/null 1>&2
24427 then lo_cv_with_autoopts_config=libopts-config
24428 else lo_cv_with_autoopts_config=no ; fi
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
24431 $as_echo "$lo_cv_with_autoopts_config" >&6; }
24434 # end of AC_ARG_WITH
24436 if ${lo_cv_test_autoopts+:} false; then :
24437 $as_echo_n "(cached) " >&6
24440 if test -z "${lo_cv_with_autoopts_config}" \
24441 -o X"${lo_cv_with_autoopts_config}" = Xno
24443 if autoopts-config --help 2>/dev/null 1>&2
24444 then lo_cv_with_autoopts_config=autoopts-config
24445 elif libopts-config --help 2>/dev/null 1>&2
24446 then lo_cv_with_autoopts_config=libopts-config
24447 else lo_cv_with_autoopts_config=false ; fi
24449 lo_cv_test_autoopts=`
24450 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
24451 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
24452 then lo_cv_test_autoopts=no ; fi
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
24457 $as_echo "${lo_cv_test_autoopts}" >&6; }
24459 if test "X${lo_cv_test_autoopts}" != Xno
24461 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
24462 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
24464 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
24465 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
24466 NEED_LIBOPTS_DIR=true
24468 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
24469 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
24470 NEED_LIBOPTS_DIR=''
24472 if test -n "${NEED_LIBOPTS_DIR}"; then
24474 NEED_LIBOPTS_FALSE='#'
24476 NEED_LIBOPTS_TRUE='#'
24477 NEED_LIBOPTS_FALSE=
24482 LIBOPTS_DIR=libopts
24485 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
24488 if test -z "$NEED_LIBOPTS_TRUE"; then :
24492 # Check to see if a reg expr header is specified.
24495 # Check whether --with-regex-header was given.
24496 if test "${with_regex_header+set}" = set; then :
24497 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
24500 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
24501 if ${libopts_cv_with_regex_header+:} false; then :
24502 $as_echo_n "(cached) " >&6
24504 libopts_cv_with_regex_header=no
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
24507 $as_echo "$libopts_cv_with_regex_header" >&6; }
24510 # end of AC_ARG_WITH
24511 if test "X${libopts_cv_with_regex_header}" != Xno
24513 cat >>confdefs.h <<_ACEOF
24514 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
24519 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
24525 # Check to see if a working libregex can be found.
24528 # Check whether --with-libregex was given.
24529 if test "${with_libregex+set}" = set; then :
24530 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
24532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
24533 $as_echo_n "checking whether with-libregex was specified... " >&6; }
24534 if ${libopts_cv_with_libregex_root+:} false; then :
24535 $as_echo_n "(cached) " >&6
24537 libopts_cv_with_libregex_root=no
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
24540 $as_echo "$libopts_cv_with_libregex_root" >&6; }
24543 # end of AC_ARG_WITH libregex
24545 if test "${with_libregex+set}" = set && \
24546 test "X${withval}" = Xno
24547 then ## disabled by request
24548 libopts_cv_with_libregex_root=no
24549 libopts_cv_with_libregex_cflags=no
24550 libopts_cv_with_libregex_libs=no
24554 # Check whether --with-libregex-cflags was given.
24555 if test "${with_libregex_cflags+set}" = set; then :
24556 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
24559 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
24560 if ${libopts_cv_with_libregex_cflags+:} false; then :
24561 $as_echo_n "(cached) " >&6
24563 libopts_cv_with_libregex_cflags=no
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
24566 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
24569 # end of AC_ARG_WITH libregex-cflags
24572 # Check whether --with-libregex-libs was given.
24573 if test "${with_libregex_libs+set}" = set; then :
24574 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
24577 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
24578 if ${libopts_cv_with_libregex_libs+:} false; then :
24579 $as_echo_n "(cached) " >&6
24581 libopts_cv_with_libregex_libs=no
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
24584 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
24587 # end of AC_ARG_WITH libregex-libs
24589 case "X${libopts_cv_with_libregex_cflags}" in
24591 case "X${libopts_cv_with_libregex_root}" in
24592 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
24593 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
24596 case "X${libopts_cv_with_libregex_libs}" in
24598 case "X${libopts_cv_with_libregex_root}" in
24599 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
24600 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
24603 libopts_save_CPPFLAGS="${CPPFLAGS}"
24604 libopts_save_LIBS="${LIBS}"
24605 case "X${libopts_cv_with_libregex_cflags}" in
24607 libopts_cv_with_libregex_cflags="" ;;
24608 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
24610 case "X${libopts_cv_with_libregex_libs}" in
24612 libopts_cv_with_libregex_libs="" ;;
24614 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
24618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
24619 $as_echo_n "checking whether libregex functions properly... " >&6; }
24620 if ${libopts_cv_with_libregex+:} false; then :
24621 $as_echo_n "(cached) " >&6
24624 if test "$cross_compiling" = yes; then :
24625 libopts_cv_with_libregex=no
24627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24628 /* end confdefs.h. */
24630 #include <stdlib.h>
24631 #include <sys/types.h>
24632 #include REGEX_HEADER
24634 void comp_re(char const * pzPat) {
24635 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
24636 if (res == 0) return;
24640 comp_re( "^.*\$" );
24641 comp_re( "()|no.*" );
24643 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
24644 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
24645 fputs( "error: regex -->.<-- did not match\n", stderr );
24650 if ac_fn_c_try_run "$LINENO"; then :
24651 libopts_cv_with_libregex=yes
24653 libopts_cv_with_libregex=no
24655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24656 conftest.$ac_objext conftest.beam conftest.$ac_ext
24658 # end of AC_RUN_IFELSE
24661 # end of AC_CACHE_VAL for libopts_cv_with_libregex
24662 fi ## disabled by request
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
24664 $as_echo "${libopts_cv_with_libregex}" >&6; }
24665 if test "X${libopts_cv_with_libregex}" != Xno
24668 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
24671 CPPFLAGS="${libopts_save_CPPFLAGS}"
24672 LIBS="${libopts_save_LIBS}"
24673 libopts_cv_with_libregex_root=no
24674 libopts_cv_with_libregex_cflags=no
24675 libopts_cv_with_libregex_libs=no
24676 libopts_cv_with_libregex=no
24681 # Check to see if pathfind(3) works.
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
24684 $as_echo_n "checking whether pathfind(3) works... " >&6; }
24685 if ${libopts_cv_run_pathfind+:} false; then :
24686 $as_echo_n "(cached) " >&6
24689 if test "$cross_compiling" = yes; then :
24690 libopts_cv_run_pathfind=no
24693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24694 /* end confdefs.h. */
24695 #include <string.h>
24696 #include <stdlib.h>
24697 int main (int argc, char ** argv) {
24698 char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
24699 return (pz == 0) ? 1 : 0;
24702 if ac_fn_c_try_run "$LINENO"; then :
24703 libopts_cv_run_pathfind=yes
24705 libopts_cv_run_pathfind=no
24707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24708 conftest.$ac_objext conftest.beam conftest.$ac_ext
24710 # end of RUN_IFELSE
24713 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
24715 $as_echo "${libopts_cv_run_pathfind}" >&6; }
24716 if test "X${libopts_cv_run_pathfind}" != Xno
24719 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
24725 # Check to see if /dev/zero is readable device.
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
24728 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
24729 if ${libopts_cv_test_dev_zero+:} false; then :
24730 $as_echo_n "(cached) " >&6
24733 libopts_cv_test_dev_zero=`exec 2> /dev/null
24734 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
24735 test -z "${dzero}" && exit 1
24737 if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
24738 then libopts_cv_test_dev_zero=no
24742 # end of CACHE_VAL of libopts_cv_test_dev_zero
24743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
24744 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
24745 if test "X${libopts_cv_test_dev_zero}" != Xno
24748 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
24754 # Check to see if we have a functional realpath(3C).
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
24757 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
24758 if ${libopts_cv_run_realpath+:} false; then :
24759 $as_echo_n "(cached) " >&6
24762 if test "$cross_compiling" = yes; then :
24763 libopts_cv_run_realpath=no
24766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24767 /* end confdefs.h. */
24768 #include <limits.h>
24769 #include <stdlib.h>
24770 int main (int argc, char ** argv) {
24774 char zPath[PATH_MAX+1];
24776 char *pz = realpath(argv[0], zPath);
24777 return (pz == zPath) ? 0 : 1;
24780 if ac_fn_c_try_run "$LINENO"; then :
24781 libopts_cv_run_realpath=yes
24783 libopts_cv_run_realpath=no
24785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24786 conftest.$ac_objext conftest.beam conftest.$ac_ext
24788 # end of RUN_IFELSE
24791 # end of AC_CACHE_VAL for libopts_cv_run_realpath
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
24793 $as_echo "${libopts_cv_run_realpath}" >&6; }
24794 if test "X${libopts_cv_run_realpath}" != Xno
24797 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
24803 # Check to see if strftime() works.
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
24806 $as_echo_n "checking whether strftime() works... " >&6; }
24807 if ${libopts_cv_run_strftime+:} false; then :
24808 $as_echo_n "(cached) " >&6
24811 if test "$cross_compiling" = yes; then :
24812 libopts_cv_run_strftime=no
24815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24816 /* end confdefs.h. */
24818 #include <string.h>
24821 static char const z[] = "Thursday Aug 28 240";
24823 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
24824 tm.tm_min = 44; /* minutes after the hour [0, 59] */
24825 tm.tm_hour = 12; /* hour since midnight [0, 23] */
24826 tm.tm_mday = 28; /* day of the month [1, 31] */
24827 tm.tm_mon = 7; /* months since January [0, 11] */
24828 tm.tm_year = 86; /* years since 1900 */
24829 tm.tm_wday = 4; /* days since Sunday [0, 6] */
24830 tm.tm_yday = 239; /* days since January 1 [0, 365] */
24831 tm.tm_isdst = 1; /* flag for daylight savings time */
24832 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
24833 return (strcmp( t_buf, z ) != 0); }
24835 if ac_fn_c_try_run "$LINENO"; then :
24836 libopts_cv_run_strftime=yes
24838 libopts_cv_run_strftime=no
24840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24841 conftest.$ac_objext conftest.beam conftest.$ac_ext
24843 # end of RUN_IFELSE
24846 # end of AC_CACHE_VAL for libopts_cv_run_strftime
24847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
24848 $as_echo "${libopts_cv_run_strftime}" >&6; }
24849 if test "X${libopts_cv_run_strftime}" != Xno
24852 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
24858 # Check to see if fopen accepts "b" mode.
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
24861 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
24862 if ${libopts_cv_run_fopen_binary+:} false; then :
24863 $as_echo_n "(cached) " >&6
24866 if test "$cross_compiling" = yes; then :
24867 libopts_cv_run_fopen_binary=no
24870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24871 /* end confdefs.h. */
24873 int main (int argc, char ** argv) {
24874 FILE * fp = fopen("conftest.$ac_ext", "rb");
24875 return (fp == NULL) ? 1 : fclose(fp); }
24877 if ac_fn_c_try_run "$LINENO"; then :
24878 libopts_cv_run_fopen_binary=yes
24880 libopts_cv_run_fopen_binary=no
24882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24883 conftest.$ac_objext conftest.beam conftest.$ac_ext
24885 # end of RUN_IFELSE
24888 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
24890 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
24891 if test "X${libopts_cv_run_fopen_binary}" != Xno
24894 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
24898 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
24904 # Check to see if fopen accepts "t" mode.
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
24907 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
24908 if ${libopts_cv_run_fopen_text+:} false; then :
24909 $as_echo_n "(cached) " >&6
24912 if test "$cross_compiling" = yes; then :
24913 libopts_cv_run_fopen_text=no
24916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24917 /* end confdefs.h. */
24919 int main (int argc, char ** argv) {
24920 FILE * fp = fopen("conftest.$ac_ext", "rt");
24921 return (fp == NULL) ? 1 : fclose(fp); }
24923 if ac_fn_c_try_run "$LINENO"; then :
24924 libopts_cv_run_fopen_text=yes
24926 libopts_cv_run_fopen_text=no
24928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24929 conftest.$ac_objext conftest.beam conftest.$ac_ext
24931 # end of RUN_IFELSE
24934 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
24936 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
24937 if test "X${libopts_cv_run_fopen_text}" != Xno
24940 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
24944 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
24950 # Check to see if not wanting optional option args.
24952 # Check whether --enable-optional-args was given.
24953 if test "${enable_optional_args+set}" = set; then :
24954 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
24957 $as_echo_n "checking whether not wanting optional option args... " >&6; }
24958 if ${libopts_cv_enable_optional_args+:} false; then :
24959 $as_echo_n "(cached) " >&6
24961 libopts_cv_enable_optional_args=yes
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
24964 $as_echo "$libopts_cv_enable_optional_args" >&6; }
24967 # end of AC_ARG_ENABLE
24968 if test "X${libopts_cv_enable_optional_args}" = Xno
24971 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
24980 ac_config_files="$ac_config_files libopts/Makefile"
24982 # end of AC_DEFUN of LIBOPTS_CHECK
24985 # From when we only used libevent for sntp:
24988 # [NTP_LIBEVENT_CHECK],
24989 # [NTP_LIBEVENT_CHECK_NOBUILD]
24994 ntp_pkgconfig_min_version='0.15.0'
24995 if test -n "$ac_tool_prefix"; then
24996 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24997 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24999 $as_echo_n "checking for $ac_word... " >&6; }
25000 if ${ac_cv_path_PKG_CONFIG+:} false; then :
25001 $as_echo_n "(cached) " >&6
25003 case $PKG_CONFIG in
25005 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25009 for as_dir in $PATH
25012 test -z "$as_dir" && as_dir=.
25013 for ac_exec_ext in '' $ac_executable_extensions; do
25014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25015 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25026 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25027 if test -n "$PKG_CONFIG"; then
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
25029 $as_echo "$PKG_CONFIG" >&6; }
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25032 $as_echo "no" >&6; }
25037 if test -z "$ac_cv_path_PKG_CONFIG"; then
25038 ac_pt_PKG_CONFIG=$PKG_CONFIG
25039 # Extract the first word of "pkg-config", so it can be a program name with args.
25040 set dummy pkg-config; ac_word=$2
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25042 $as_echo_n "checking for $ac_word... " >&6; }
25043 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
25044 $as_echo_n "(cached) " >&6
25046 case $ac_pt_PKG_CONFIG in
25048 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
25051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25052 for as_dir in $PATH
25055 test -z "$as_dir" && as_dir=.
25056 for ac_exec_ext in '' $ac_executable_extensions; do
25057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25058 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25069 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
25070 if test -n "$ac_pt_PKG_CONFIG"; then
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
25072 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25075 $as_echo "no" >&6; }
25078 if test "x$ac_pt_PKG_CONFIG" = x; then
25081 case $cross_compiling:$ac_tool_warned in
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25085 ac_tool_warned=yes ;;
25087 PKG_CONFIG=$ac_pt_PKG_CONFIG
25090 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
25093 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
25094 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
25096 case "$PKG_CONFIG" in
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
25099 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
25100 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25102 $as_echo "yes" >&6; }
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25105 $as_echo "no" >&6; }
25114 # Check whether --enable-local-libevent was given.
25115 if test "${enable_local_libevent+set}" = set; then :
25116 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
25118 ntp_use_local_libevent=${ntp_use_local_libevent-detect}
25131 ntp_libevent_min_version=2
25132 ntp_libevent_tearoff=libevent
25138 case "$ntp_use_local_libevent" in
25141 *) # If we have (a good enough) pkg-config, see if it can find libevent
25142 case "$PKG_CONFIG" in
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
25145 $as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
25146 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
25148 ntp_use_local_libevent=no
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5
25150 $as_echo "$as_me: Using the installed libevent" >&6;}
25151 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
25152 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
25153 # HMS: I hope the following is accurate.
25154 # We don't need -levent, we only need -levent_core.
25155 # While we could grab only the -L stuff, there *might* be
25156 # other flags there we want. Originally we just removed -levent
25157 # but then somebody decided to install -levent-2.0
25158 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
25159 # So now we dance...
25161 for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
25166 *) case "$LDADD_LIBEVENT" in
25167 '') LDADD_LIBEVENT="$i" ;;
25168 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
25173 case "$LIBISC_PTHREADS_NOTHREADS" in
25175 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
25177 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25179 $as_echo "yes" >&6; }
25181 ntp_use_local_libevent=yes
25182 # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
25184 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25186 $as_echo "no" >&6; }
25190 ntp_use_local_libevent=yes
25196 case "$ntp_use_local_libevent" in
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
25199 $as_echo "$as_me: Using libevent tearoff" >&6;}
25200 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
25201 case "$LIBISC_PTHREADS_NOTHREADS" in
25203 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
25206 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
25211 if test "x$ntp_use_local_libevent" = "xyes"; then
25212 BUILD_LIBEVENT_TRUE=
25213 BUILD_LIBEVENT_FALSE='#'
25215 BUILD_LIBEVENT_TRUE='#'
25216 BUILD_LIBEVENT_FALSE=
25222 case "$ntp_libevent_tearoff" in
25226 as_fn_error $? "ntp_libevent.m4 dir must be libevent, not $ntp_libevent_tearoff" "$LINENO" 5
25230 case "$ntp_use_local_libevent" in
25232 ac_configure_args=" --disable-openssl${ac_configure_args}"
25233 ac_configure_args=" --disable-shared${ac_configure_args}"
25234 ac_configure_args=" --disable-libevent-regress${ac_configure_args}"
25235 ac_configure_args=" --disable-libevent-install${ac_configure_args}"
25236 ac_configure_args=" --enable-silent-rules${ac_configure_args}"
25237 ac_configure_args=" --enable-function-sections${ac_configure_args}"
25238 subdirs="$subdirs libevent"
25242 NTP_FORCE_LIBEVENT_DIST=libevent
25248 # Checks for libraries.
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
25254 $as_echo_n "checking for library containing openlog... " >&6; }
25255 if ${ac_cv_search_openlog+:} false; then :
25256 $as_echo_n "(cached) " >&6
25258 ac_func_search_save_LIBS=$LIBS
25259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25260 /* end confdefs.h. */
25262 /* Override any GCC internal prototype to avoid an error.
25263 Use char because int might match the return type of a GCC
25264 builtin and then its argument prototype would still apply. */
25277 for ac_lib in '' gen syslog; do
25278 if test -z "$ac_lib"; then
25279 ac_res="none required"
25282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25284 if ac_fn_c_try_link "$LINENO"; then :
25285 ac_cv_search_openlog=$ac_res
25287 rm -f core conftest.err conftest.$ac_objext \
25289 if ${ac_cv_search_openlog+:} false; then :
25293 if ${ac_cv_search_openlog+:} false; then :
25296 ac_cv_search_openlog=no
25298 rm conftest.$ac_ext
25299 LIBS=$ac_func_search_save_LIBS
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
25302 $as_echo "$ac_cv_search_openlog" >&6; }
25303 ac_res=$ac_cv_search_openlog
25304 if test "$ac_res" != no; then :
25305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25306 case "$ac_cv_search_openlog" in
25307 'none required') ;;
25309 *) LIB_SYSLOG="$ac_cv_search_openlog $LIB_SYSLOG" ;;
25315 # Checks for header files.
25316 for ac_header in netdb.h string.h strings.h syslog.h
25318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25319 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25320 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25321 cat >>confdefs.h <<_ACEOF
25322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25331 for ac_header in sysexits.h
25333 ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
25334 if test "x$ac_cv_header_sysexits_h" = xyes; then :
25335 cat >>confdefs.h <<_ACEOF
25336 #define HAVE_SYSEXITS_H 1
25342 $as_echo "#define EX_OK 0" >>confdefs.h
25345 $as_echo "#define EX_SOFTWARE 70" >>confdefs.h
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
25355 $as_echo_n "checking for facilitynames in syslog.h... " >&6; }
25356 if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
25357 $as_echo_n "(cached) " >&6
25360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25361 /* end confdefs.h. */
25363 #define SYSLOG_NAMES
25364 #include <stdlib.h>
25365 #include <syslog.h>
25370 void *fnames; fnames = facilitynames;
25375 if ac_fn_c_try_compile "$LINENO"; then :
25376 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
25378 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
25380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
25383 $as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
25384 case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
25387 $as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
25392 $as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
25396 $as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
25401 # Checks for typedefs, structures, and compiler characteristics.
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
25403 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
25404 if ${ac_cv_header_stdbool_h+:} false; then :
25405 $as_echo_n "(cached) " >&6
25407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25408 /* end confdefs.h. */
25410 #include <stdbool.h>
25412 "error: bool is not defined"
25415 "error: false is not defined"
25418 "error: false is not 0"
25421 "error: true is not defined"
25424 "error: true is not 1"
25426 #ifndef __bool_true_false_are_defined
25427 "error: __bool_true_false_are_defined is not defined"
25430 struct s { _Bool s: 1; _Bool t; } s;
25432 char a[true == 1 ? 1 : -1];
25433 char b[false == 0 ? 1 : -1];
25434 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
25435 char d[(bool) 0.5 == true ? 1 : -1];
25436 /* See body of main program for 'e'. */
25437 char f[(_Bool) 0.0 == false ? 1 : -1];
25439 char h[sizeof (_Bool)];
25440 char i[sizeof s.t];
25441 enum { j = false, k = true, l = false * true, m = true * 256 };
25442 /* The following fails for
25443 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
25445 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
25446 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
25447 /* Catch a bug in an HP-UX C compiler. See
25448 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
25449 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
25461 /* Refer to every declared value, to avoid compiler optimizations. */
25462 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
25463 + !m + !n + !o + !p + !q + !pq);
25469 if ac_fn_c_try_compile "$LINENO"; then :
25470 ac_cv_header_stdbool_h=yes
25472 ac_cv_header_stdbool_h=no
25474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
25477 $as_echo "$ac_cv_header_stdbool_h" >&6; }
25478 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
25479 if test "x$ac_cv_type__Bool" = xyes; then :
25481 cat >>confdefs.h <<_ACEOF
25482 #define HAVE__BOOL 1
25489 if test $ac_cv_header_stdbool_h = yes; then
25491 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
25504 # Check whether --with-crypto was given.
25505 if test "${with_crypto+set}" = set; then :
25506 withval=$with_crypto;
25510 # Check whether --with-openssl-libdir was given.
25511 if test "${with_openssl_libdir+set}" = set; then :
25512 withval=$with_openssl_libdir;
25516 # Check whether --with-openssl-incdir was given.
25517 if test "${with_openssl_incdir+set}" = set; then :
25518 withval=$with_openssl_incdir;
25522 # Check whether --with-rpath was given.
25523 if test "${with_rpath+set}" = set; then :
25524 withval=$with_rpath;
25528 ntp_openssl_from_pkg_config=no
25529 with_crypto=${with_crypto:-openssl,libcrypto}
25530 case "$with_crypto" in
25532 with_crypto=openssl,libcrypto
25534 case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
25536 *:notempty:notgiven:notgiven)
25537 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
25539 $as_echo_n "checking pkg-config for $pkg... " >&6; }
25540 if $PKG_CONFIG --exists $pkg ; then
25541 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
25542 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
25543 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
25544 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
25545 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
25548 ntp_openssl_from_pkg_config=yes
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25550 $as_echo "yes" >&6; }
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25555 $as_echo "no" >&6; }
25558 case "$with_crypto:$ntp_openssl" in
25563 case "${with_rpath-notgiven}" in
25565 # Lame - what to do if we need -Wl... but not -R?
25571 # This may really only be true for gcc
25572 need_dash_Wlrpath=1
25584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
25585 $as_echo_n "checking for openssl library directory... " >&6; }
25586 with_openssl_libdir=${with_openssl_libdir-notgiven}
25587 case "$with_openssl_libdir" in
25591 with_openssl_libdir=default
25594 with_openssl_libdir=no
25598 case "$with_openssl_libdir" in
25601 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
25602 with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
25603 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
25605 case "$with_openssl_libdir" in
25608 *) # Look for libcrypto.a and libssl.a:
25609 for i in $with_openssl_libdir no
25613 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
25616 test -f $i/libcrypto.so -a -f $i/libssl.so && break
25617 test -f $i/libcrypto.a -a -f $i/libssl.a && break
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
25625 $as_echo "$openssl_libdir" >&6; }
25626 case "$openssl_libdir" in
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
25630 $as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
25633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
25634 $as_echo_n "checking for openssl include directory... " >&6; }
25635 with_openssl_incdir=${with_openssl_incdir-notgiven}
25636 case "$with_openssl_incdir" in
25639 with_openssl_incdir="/usr/include /usr/sfw/include"
25640 with_openssl_incdir="$with_openssl_incdir /usr/local/include"
25641 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
25643 case "$with_openssl_incdir" in
25646 *) # look for openssl/evp.h:
25647 for i in $with_openssl_incdir no
25649 test -f $i/openssl/evp.h && break
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
25656 $as_echo "$openssl_incdir" >&6; }
25657 case "$openssl_incdir" in
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
25661 $as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
25663 if test -z "$openssl_libdir" -o -z "$openssl_incdir"
25670 case "$ntp_openssl" in
25672 # We have OpenSSL inc/lib dirs - use them.
25673 case "$openssl_incdir" in
25677 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
25680 case "$openssl_libdir" in
25684 LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
25685 case "$need_dash_r" in
25687 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
25689 case "$need_dash_Wlrpath" in
25691 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
25695 LDADD_NTP="$LDADD_NTP -lcrypto"
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
25700 $as_echo_n "checking if we will use crypto... " >&6; }
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
25702 $as_echo "$ntp_openssl" >&6; }
25704 case "$ntp_openssl" in
25707 $as_echo "#define OPENSSL /**/" >>confdefs.h
25709 case "$VER_SUFFIX" in
25711 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
25716 NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
25717 CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
25718 NTPO_SAVED_LIBS="$LIBS"
25721 # check for linking with -lcrypto failure, and try -lcrypto -lz.
25722 # Helps m68k-atari-mint
25724 case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
25726 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
25728 $as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
25729 if ${ntp_cv_bare_lcrypto+:} false; then :
25730 $as_echo_n "(cached) " >&6
25732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25733 /* end confdefs.h. */
25735 #include "openssl/err.h"
25736 #include "openssl/evp.h"
25742 ERR_load_crypto_strings();
25743 OpenSSL_add_all_algorithms();
25750 if ac_fn_c_try_link "$LINENO"; then :
25751 ntp_cv_bare_lcrypto=yes
25753 ntp_cv_bare_lcrypto=no
25756 rm -f core conftest.err conftest.$ac_objext \
25757 conftest$ac_exeext conftest.$ac_ext
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
25761 $as_echo "$ntp_cv_bare_lcrypto" >&6; }
25762 case "$ntp_cv_bare_lcrypto" in
25764 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
25766 $as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
25767 if ${ntp_cv_lcrypto_lz+:} false; then :
25768 $as_echo_n "(cached) " >&6
25770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25771 /* end confdefs.h. */
25773 #include "openssl/err.h"
25774 #include "openssl/evp.h"
25780 ERR_load_crypto_strings();
25781 OpenSSL_add_all_algorithms();
25788 if ac_fn_c_try_link "$LINENO"; then :
25789 ntp_cv_lcrypto_lz=yes
25791 ntp_cv_lcrypto_lz=no
25794 rm -f core conftest.err conftest.$ac_objext \
25795 conftest$ac_exeext conftest.$ac_ext
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
25799 $as_echo "$ntp_cv_lcrypto_lz" >&6; }
25800 case "$ntp_cv_lcrypto_lz" in
25802 LDADD_NTP="$LDADD_NTP -lz"
25808 # Older OpenSSL headers have a number of callback prototypes inside
25809 # other function prototypes which trigger copious warnings with gcc's
25810 # -Wstrict-prototypes, which is included in -Wall.
25814 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
25815 # int (*cb)(), int sgckey);
25820 openssl_triggers_warnings=unknown
25821 NTPO_SAVED_CFLAGS="$CFLAGS"
25823 case "$ntp_openssl:$GCC" in
25825 CFLAGS="$CFLAGS -Werror"
25826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25827 /* end confdefs.h. */
25834 /* see if -Werror breaks gcc */
25841 if ac_fn_c_try_compile "$LINENO"; then :
25842 gcc_handles_Werror=yes
25844 gcc_handles_Werror=no
25847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25848 case "$gcc_handles_Werror" in
25850 # if this gcc doesn't do -Werror go ahead and use
25851 # -Wstrict-prototypes.
25852 openssl_triggers_warnings=yes
25855 CFLAGS="$CFLAGS -Wstrict-prototypes"
25856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25857 /* end confdefs.h. */
25859 #include "openssl/asn1_mac.h"
25860 #include "openssl/bn.h"
25861 #include "openssl/err.h"
25862 #include "openssl/evp.h"
25863 #include "openssl/pem.h"
25864 #include "openssl/rand.h"
25865 #include "openssl/x509v3.h"
25878 if ac_fn_c_try_compile "$LINENO"; then :
25879 openssl_triggers_warnings=no
25881 openssl_triggers_warnings=yes
25884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25886 case "$openssl_triggers_warnings" in
25888 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
25891 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
25895 # gcc without OpenSSL
25896 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
25899 # Because we don't want -Werror for the EVP_MD_do_all_sorted check
25900 CFLAGS="$NTPO_SAVED_CFLAGS"
25902 case "$ntp_openssl" in
25904 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
25905 for ac_func in EVP_MD_do_all_sorted
25907 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
25908 if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
25909 cat >>confdefs.h <<_ACEOF
25910 #define HAVE_EVP_MD_DO_ALL_SORTED 1
25919 CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
25920 LIBS="$NTPO_SAVED_LIBS"
25921 { NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
25922 { NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
25923 { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
25924 { openssl_triggers_warnings=; unset openssl_triggers_warnings;}
25925 { ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
25930 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
25931 if ${ntp_cv_sockaddr_storage+:} false; then :
25932 $as_echo_n "(cached) " >&6
25934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25935 /* end confdefs.h. */
25937 #ifdef HAVE_SYS_TYPES_H
25938 # include <sys/types.h>
25940 #ifdef HAVE_SYS_SOCKET_H
25941 # include <sys/socket.h>
25943 #ifdef HAVE_NETINET_IN_H
25944 # include <netinet/in.h>
25951 struct sockaddr_storage n;
25958 if ac_fn_c_try_compile "$LINENO"; then :
25959 ntp_cv_sockaddr_storage=yes
25961 ntp_cv_sockaddr_storage=no
25964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
25968 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
25969 case "$ntp_cv_sockaddr_storage" in
25972 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
25975 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
25976 if ${ntp_cv_have___ss_family+:} false; then :
25977 $as_echo_n "(cached) " >&6
25979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25980 /* end confdefs.h. */
25982 #ifdef HAVE_SYS_TYPES_H
25983 # include <sys/types.h>
25985 #ifdef HAVE_SYS_SOCKET_H
25986 # include <sys/socket.h>
25988 #ifdef HAVE_NETINET_IN_H
25989 # include <netinet/in.h>
25996 struct sockaddr_storage s;
26004 if ac_fn_c_try_compile "$LINENO"; then :
26005 ntp_cv_have___ss_family=yes
26007 ntp_cv_have___ss_family=no
26010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
26014 $as_echo "$ntp_cv_have___ss_family" >&6; }
26015 case "$ntp_cv_have___ss_family" in
26018 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
26026 # Look for in_port_t.
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
26029 $as_echo_n "checking for in_port_t... " >&6; }
26030 if ${isc_cv_have_in_port_t+:} false; then :
26031 $as_echo_n "(cached) " >&6
26033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26034 /* end confdefs.h. */
26036 #include <sys/types.h>
26037 #include <netinet/in.h>
26043 in_port_t port = 25;
26051 if ac_fn_c_try_compile "$LINENO"; then :
26052 isc_cv_have_in_port_t=yes
26054 isc_cv_have_in_port_t=no
26057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
26061 $as_echo "$isc_cv_have_in_port_t" >&6; }
26062 case "$isc_cv_have_in_port_t" in
26065 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
26070 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
26071 if ${ntp_cv_getsockname_socklen_type+:} false; then :
26072 $as_echo_n "(cached) " >&6
26075 getsockname_socklen_type_found=no
26076 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
26077 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
26078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26079 /* end confdefs.h. */
26081 #ifdef HAVE_SYS_TYPES_H
26082 # include <sys/types.h>
26084 #ifdef HAVE_SYS_SOCKET_H
26085 # include <sys/socket.h>
26093 getsockname(int, $getsockname_arg2,
26094 $ntp_cv_getsockname_socklen_type *);
26101 if ac_fn_c_try_compile "$LINENO"; then :
26102 getsockname_socklen_type_found=yes ; break 2
26104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26107 case "$getsockname_socklen_type_found" in
26109 ntp_cv_getsockname_socklen_type='socklen_t'
26111 { getsockname_arg2=; unset getsockname_arg2;}
26112 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
26117 $as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
26119 cat >>confdefs.h <<_ACEOF
26120 #define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
26125 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
26126 if ${isc_cv_platform_havesalen+:} false; then :
26127 $as_echo_n "(cached) " >&6
26129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26130 /* end confdefs.h. */
26132 #include <sys/types.h>
26133 #include <sys/socket.h>
26139 extern struct sockaddr *ps;
26147 if ac_fn_c_try_compile "$LINENO"; then :
26148 isc_cv_platform_havesalen=yes
26150 isc_cv_platform_havesalen=no
26153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
26157 $as_echo "$isc_cv_platform_havesalen" >&6; }
26158 case "$isc_cv_platform_havesalen" in
26161 $as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
26165 # Check whether --enable-ipv6 was given.
26166 if test "${enable_ipv6+set}" = set; then :
26167 enableval=$enable_ipv6;
26171 case "$enable_ipv6" in
26178 $as_echo "#define WANT_IPV6 1" >>confdefs.h
26191 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
26197 $as_echo_n "checking for IPv6 structures... " >&6; }
26198 if ${isc_cv_found_ipv6+:} false; then :
26199 $as_echo_n "(cached) " >&6
26201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26202 /* end confdefs.h. */
26204 #include <sys/types.h>
26205 #include <sys/socket.h>
26206 #include <netinet/in.h>
26212 struct sockaddr_in6 sin6;
26219 if ac_fn_c_try_compile "$LINENO"; then :
26220 isc_cv_found_ipv6=yes
26222 isc_cv_found_ipv6=no
26225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
26229 $as_echo "$isc_cv_found_ipv6" >&6; }
26232 # See whether IPv6 support is provided via a Kame add-on.
26233 # This is done before other IPv6 linking tests so LIBS is properly set.
26235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
26236 $as_echo_n "checking for Kame IPv6 support... " >&6; }
26238 # Check whether --with-kame was given.
26239 if test "${with_kame+set}" = set; then :
26240 withval=$with_kame; use_kame="$withval"
26246 case "$use_kame" in
26250 kame_path=/usr/local/v6
26253 kame_path="$use_kame"
26256 case "$use_kame" in
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26259 $as_echo "no" >&6; }
26262 if test -f $kame_path/lib/libinet6.a; then
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
26264 $as_echo "$kame_path/lib/libinet6.a" >&6; }
26265 LIBS="-L$kame_path/lib -linet6 $LIBS"
26267 as_fn_error $? "$kame_path/lib/libinet6.a not found.
26269 Please choose the proper path with the following command:
26271 configure --with-kame=PATH
26278 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
26279 # Including it on Kame-using platforms is very bad, though, because
26280 # Kame uses #error against direct inclusion. So include it on only
26281 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
26282 # This is done before the in6_pktinfo check because that's what
26283 # netinet6/in6.h is needed for.
26288 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
26290 isc_netinet6in6_hack="#include <netinet6/in6.h>"
26293 isc_netinet6in6_hack=""
26298 # This is similar to the netinet6/in6.h issue.
26301 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
26303 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
26305 isc_netinetin6_hack="#include <netinet/in6.h>"
26308 isc_netinetin6_hack=""
26313 case "$isc_cv_found_ipv6" in
26316 $as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
26319 $as_echo_n "checking for in6_pktinfo... " >&6; }
26320 if ${isc_cv_have_in6_pktinfo+:} false; then :
26321 $as_echo_n "(cached) " >&6
26323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26324 /* end confdefs.h. */
26326 #include <sys/types.h>
26327 #include <sys/socket.h>
26328 #include <netinet/in.h>
26329 $isc_netinetin6_hack
26330 $isc_netinet6in6_hack
26336 struct in6_pktinfo xyzzy;
26343 if ac_fn_c_try_compile "$LINENO"; then :
26344 isc_cv_have_in6_pktinfo=yes
26346 isc_cv_have_in6_pktinfo=no
26349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
26353 $as_echo "$isc_cv_have_in6_pktinfo" >&6; }
26354 case "$isc_cv_have_in6_pktinfo" in
26357 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
26362 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
26364 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
26365 if ${isc_cv_have_sin6_scope_id+:} false; then :
26366 $as_echo_n "(cached) " >&6
26368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26369 /* end confdefs.h. */
26371 #include <sys/types.h>
26372 #include <sys/socket.h>
26373 #include <netinet/in.h>
26374 $isc_netinetin6_hack
26375 $isc_netinet6in6_hack
26381 struct sockaddr_in6 xyzzy;
26382 xyzzy.sin6_scope_id = 0;
26389 if ac_fn_c_try_compile "$LINENO"; then :
26390 isc_cv_have_sin6_scope_id=yes
26392 isc_cv_have_sin6_scope_id=no
26395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
26399 $as_echo "$isc_cv_have_sin6_scope_id" >&6; }
26401 case "$isc_cv_have_sin6_scope_id" in
26404 $as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
26410 # We need this check run even without isc_cv_found_ipv6=yes
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
26413 $as_echo_n "checking for in6addr_any... " >&6; }
26414 if ${isc_cv_in6addr_any_links+:} false; then :
26415 $as_echo_n "(cached) " >&6
26419 LIBS="$LDADD_LIBNTP $LIBS"
26420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26421 /* end confdefs.h. */
26422 $ac_includes_default
26423 #include <sys/socket.h>
26424 #include <netinet/in.h>
26425 $isc_netinetin6_hack
26426 $isc_netinet6in6_hack
26432 printf("%x", in6addr_any.s6_addr[15]);
26439 if ac_fn_c_try_link "$LINENO"; then :
26440 isc_cv_in6addr_any_links=yes
26442 isc_cv_in6addr_any_links=no
26445 rm -f core conftest.err conftest.$ac_objext \
26446 conftest$ac_exeext conftest.$ac_ext
26448 { SAVED_LIBS=; unset SAVED_LIBS;}
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
26453 $as_echo "$isc_cv_in6addr_any_links" >&6; }
26455 case "$isc_cv_in6addr_any_links" in
26458 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
26464 $as_echo_n "checking for struct if_laddrconf... " >&6; }
26465 if ${isc_cv_struct_if_laddrconf+:} false; then :
26466 $as_echo_n "(cached) " >&6
26468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26469 /* end confdefs.h. */
26471 #include <sys/types.h>
26472 #include <net/if6.h>
26478 struct if_laddrconf a;
26485 if ac_fn_c_try_compile "$LINENO"; then :
26486 isc_cv_struct_if_laddrconf=yes
26488 isc_cv_struct_if_laddrconf=no
26491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
26495 $as_echo "$isc_cv_struct_if_laddrconf" >&6; }
26497 case "$isc_cv_struct_if_laddrconf" in
26500 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
26505 $as_echo_n "checking for struct if_laddrreq... " >&6; }
26506 if ${isc_cv_struct_if_laddrreq+:} false; then :
26507 $as_echo_n "(cached) " >&6
26509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26510 /* end confdefs.h. */
26512 #include <sys/types.h>
26513 #include <net/if6.h>
26519 struct if_laddrreq a;
26526 if ac_fn_c_try_compile "$LINENO"; then :
26527 isc_cv_struct_if_laddrreq=yes
26529 isc_cv_struct_if_laddrreq=no
26532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
26536 $as_echo "$isc_cv_struct_if_laddrreq" >&6; }
26538 case "$isc_cv_struct_if_laddrreq" in
26541 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
26545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
26546 $as_echo_n "checking for multicast IP support... " >&6; }
26547 if ${ntp_cv_multicast+:} false; then :
26548 $as_echo_n "(cached) " >&6
26551 ntp_cv_multicast=no
26553 i386-sequent-sysv4)
26556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26557 /* end confdefs.h. */
26559 #ifdef HAVE_NETINET_IN_H
26560 # include <netinet/in.h>
26567 struct ip_mreq ipmr;
26568 ipmr.imr_interface.s_addr = 0;
26575 if ac_fn_c_try_compile "$LINENO"; then :
26576 ntp_cv_multicast=yes
26578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
26585 $as_echo "$ntp_cv_multicast" >&6; }
26586 case "$ntp_cv_multicast" in
26589 $as_echo "#define MCAST 1" >>confdefs.h
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
26592 $as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
26593 if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
26594 $as_echo_n "(cached) " >&6
26598 *-*-netbsd*|*-*-*linux*)
26599 ntp_cv_typeof_ip_multicast_loop=u_int
26602 ntp_cv_typeof_ip_multicast_loop=u_char
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
26609 $as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
26611 cat >>confdefs.h <<_ACEOF
26612 #define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
26617 # Check whether --enable-getifaddrs was given.
26618 if test "${enable_getifaddrs+set}" = set; then :
26619 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
26621 want_getifaddrs="yes"
26626 case $want_getifaddrs in
26628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
26629 $as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
26631 case $want_getifaddrs in
26636 LIBS="$LDADD_LIBNTP $LIBS"
26637 for ac_func in getifaddrs
26639 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
26640 if test "x$ac_cv_func_getifaddrs" = xyes; then :
26641 cat >>confdefs.h <<_ACEOF
26642 #define HAVE_GETIFADDRS 1
26649 { SAVED_LIBS=; unset SAVED_LIBS;}
26654 # Check for if_nametoindex() for IPv6 scoped addresses support
26658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
26659 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
26660 if ${ac_cv_search_if_nametoindex+:} false; then :
26661 $as_echo_n "(cached) " >&6
26663 ac_func_search_save_LIBS=$LIBS
26664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26665 /* end confdefs.h. */
26667 /* Override any GCC internal prototype to avoid an error.
26668 Use char because int might match the return type of a GCC
26669 builtin and then its argument prototype would still apply. */
26673 char if_nametoindex ();
26677 return if_nametoindex ();
26682 for ac_lib in '' ipv6; do
26683 if test -z "$ac_lib"; then
26684 ac_res="none required"
26687 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26689 if ac_fn_c_try_link "$LINENO"; then :
26690 ac_cv_search_if_nametoindex=$ac_res
26692 rm -f core conftest.err conftest.$ac_objext \
26694 if ${ac_cv_search_if_nametoindex+:} false; then :
26698 if ${ac_cv_search_if_nametoindex+:} false; then :
26701 ac_cv_search_if_nametoindex=no
26703 rm conftest.$ac_ext
26704 LIBS=$ac_func_search_save_LIBS
26706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
26707 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
26708 ac_res=$ac_cv_search_if_nametoindex
26709 if test "$ac_res" != no; then :
26710 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26716 LIBS="$LDADD_LIBNTP $LIBS"
26717 for ac_func in if_nametoindex
26719 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
26720 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
26721 cat >>confdefs.h <<_ACEOF
26722 #define HAVE_IF_NAMETOINDEX 1
26729 { SAVED_LIBS=; unset SAVED_LIBS;}
26730 case "$ac_cv_func_if_nametoindex" in
26733 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
26742 # these need work if we're to move libntp under sntp
26744 $as_echo "#define HAVE_NO_NICE 1" >>confdefs.h
26747 $as_echo "#define HAVE_TERMIOS 1" >>confdefs.h
26750 # Checks for library functions.
26751 for ac_func in socket
26753 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
26754 if test "x$ac_cv_func_socket" = xyes; then :
26755 cat >>confdefs.h <<_ACEOF
26756 #define HAVE_SOCKET 1
26764 # We may not need have_unity
26766 # Extract the first word of "ruby", so it can be a program name with args.
26767 set dummy ruby; ac_word=$2
26768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26769 $as_echo_n "checking for $ac_word... " >&6; }
26770 if ${ac_cv_path_PATH_RUBY+:} false; then :
26771 $as_echo_n "(cached) " >&6
26775 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
26778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26779 for as_dir in $PATH
26782 test -z "$as_dir" && as_dir=.
26783 for ac_exec_ext in '' $ac_executable_extensions; do
26784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26785 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
26786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26796 PATH_RUBY=$ac_cv_path_PATH_RUBY
26797 if test -n "$PATH_RUBY"; then
26798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
26799 $as_echo "$PATH_RUBY" >&6; }
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26802 $as_echo "no" >&6; }
26806 case "$PATH_RUBY" in
26810 *) PATH_RUBY="false"
26813 # We may not need UNITYBUILD_AVAILABLE
26814 if $have_unity; then
26815 UNITYBUILD_AVAILABLE_TRUE=
26816 UNITYBUILD_AVAILABLE_FALSE='#'
26818 UNITYBUILD_AVAILABLE_TRUE='#'
26819 UNITYBUILD_AVAILABLE_FALSE=
26824 # HMS: if we don't find c++ we should not look for gtest.
26826 ac_cpp='$CXXCPP $CPPFLAGS'
26827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26830 if test -z "$CXX"; then
26831 if test -n "$CCC"; then
26834 if test -n "$ac_tool_prefix"; then
26835 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26838 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
26839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26840 $as_echo_n "checking for $ac_word... " >&6; }
26841 if ${ac_cv_prog_CXX+:} false; then :
26842 $as_echo_n "(cached) " >&6
26844 if test -n "$CXX"; then
26845 ac_cv_prog_CXX="$CXX" # Let the user override the test.
26847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26848 for as_dir in $PATH
26851 test -z "$as_dir" && as_dir=.
26852 for ac_exec_ext in '' $ac_executable_extensions; do
26853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26854 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
26855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26864 CXX=$ac_cv_prog_CXX
26865 if test -n "$CXX"; then
26866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
26867 $as_echo "$CXX" >&6; }
26869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26870 $as_echo "no" >&6; }
26874 test -n "$CXX" && break
26877 if test -z "$CXX"; then
26879 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26881 # Extract the first word of "$ac_prog", so it can be a program name with args.
26882 set dummy $ac_prog; ac_word=$2
26883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26884 $as_echo_n "checking for $ac_word... " >&6; }
26885 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
26886 $as_echo_n "(cached) " >&6
26888 if test -n "$ac_ct_CXX"; then
26889 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
26891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26892 for as_dir in $PATH
26895 test -z "$as_dir" && as_dir=.
26896 for ac_exec_ext in '' $ac_executable_extensions; do
26897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26898 ac_cv_prog_ac_ct_CXX="$ac_prog"
26899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26908 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26909 if test -n "$ac_ct_CXX"; then
26910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
26911 $as_echo "$ac_ct_CXX" >&6; }
26913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26914 $as_echo "no" >&6; }
26918 test -n "$ac_ct_CXX" && break
26921 if test "x$ac_ct_CXX" = x; then
26924 case $cross_compiling:$ac_tool_warned in
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26928 ac_tool_warned=yes ;;
26936 # Provide some information about the compiler.
26937 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
26940 for ac_option in --version -v -V -qversion; do
26941 { { ac_try="$ac_compiler $ac_option >&5"
26942 case "(($ac_try" in
26943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26944 *) ac_try_echo=$ac_try;;
26946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26947 $as_echo "$ac_try_echo"; } >&5
26948 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
26950 if test -s conftest.err; then
26952 ... rest of stderr output deleted ...
26953 10q' conftest.err >conftest.er1
26954 cat conftest.er1 >&5
26956 rm -f conftest.er1 conftest.err
26957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26958 test $ac_status = 0; }
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
26962 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
26963 if ${ac_cv_cxx_compiler_gnu+:} false; then :
26964 $as_echo_n "(cached) " >&6
26966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26967 /* end confdefs.h. */
26980 if ac_fn_cxx_try_compile "$LINENO"; then :
26981 ac_compiler_gnu=yes
26985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26986 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
26990 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26991 if test $ac_compiler_gnu = yes; then
26996 ac_test_CXXFLAGS=${CXXFLAGS+set}
26997 ac_save_CXXFLAGS=$CXXFLAGS
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
26999 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
27000 if ${ac_cv_prog_cxx_g+:} false; then :
27001 $as_echo_n "(cached) " >&6
27003 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
27004 ac_cxx_werror_flag=yes
27005 ac_cv_prog_cxx_g=no
27007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27008 /* end confdefs.h. */
27018 if ac_fn_cxx_try_compile "$LINENO"; then :
27019 ac_cv_prog_cxx_g=yes
27022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27023 /* end confdefs.h. */
27033 if ac_fn_cxx_try_compile "$LINENO"; then :
27036 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
27038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27039 /* end confdefs.h. */
27049 if ac_fn_cxx_try_compile "$LINENO"; then :
27050 ac_cv_prog_cxx_g=yes
27052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27057 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
27060 $as_echo "$ac_cv_prog_cxx_g" >&6; }
27061 if test "$ac_test_CXXFLAGS" = set; then
27062 CXXFLAGS=$ac_save_CXXFLAGS
27063 elif test $ac_cv_prog_cxx_g = yes; then
27064 if test "$GXX" = yes; then
27070 if test "$GXX" = yes; then
27077 ac_cpp='$CPP $CPPFLAGS'
27078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27082 depcc="$CXX" am_compiler_list=
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
27085 $as_echo_n "checking dependency style of $depcc... " >&6; }
27086 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
27087 $as_echo_n "(cached) " >&6
27089 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
27090 # We make a subdir and do the tests there. Otherwise we can end up
27091 # making bogus files that we don't know about and never remove. For
27092 # instance it was reported that on HP-UX the gcc test will end up
27093 # making a dummy file named 'D' -- because '-MD' means "put the output
27095 rm -rf conftest.dir
27097 # Copy depcomp to subdir because otherwise we won't find it if we're
27098 # using a relative directory.
27099 cp "$am_depcomp" conftest.dir
27101 # We will build objects and dependencies in a subdirectory because
27102 # it helps to detect inapplicable dependency modes. For instance
27103 # both Tru64's cc and ICC support -MD to output dependencies as a
27104 # side effect of compilation, but ICC will put the dependencies in
27105 # the current directory while Tru64 will put them in the object
27109 am_cv_CXX_dependencies_compiler_type=none
27110 if test "$am_compiler_list" = ""; then
27111 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
27113 am__universal=false
27114 case " $depcc " in #(
27115 *\ -arch\ *\ -arch\ *) am__universal=true ;;
27118 for depmode in $am_compiler_list; do
27119 # Setup a source with many dependencies, because some compilers
27120 # like to wrap large dependency lists on column 80 (with \), and
27121 # we should not choose a depcomp mode which is confused by this.
27123 # We need to recreate these files for each test, as the compiler may
27124 # overwrite some of them when testing with obscure command lines.
27125 # This happens at least with the AIX C compiler.
27127 for i in 1 2 3 4 5 6; do
27128 echo '#include "conftst'$i'.h"' >> sub/conftest.c
27129 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
27130 # Solaris 10 /bin/sh.
27131 echo '/* dummy */' > sub/conftst$i.h
27133 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
27135 # We check with '-c' and '-o' for the sake of the "dashmstdout"
27136 # mode. It turns out that the SunPro C++ compiler does not properly
27137 # handle '-M -o', and we need to detect this. Also, some Intel
27138 # versions had trouble with output in subdirs.
27139 am__obj=sub/conftest.${OBJEXT-o}
27140 am__minus_obj="-o $am__obj"
27143 # This depmode causes a compiler race in universal mode.
27144 test "$am__universal" = false || continue
27147 # After this tag, mechanisms are not by side-effect, so they'll
27148 # only be used when explicitly requested.
27149 if test "x$enable_dependency_tracking" = xyes; then
27155 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
27156 # This compiler won't grok '-c -o', but also, the minuso test has
27157 # not run yet. These depmodes are late enough in the game, and
27158 # so weak that their functioning should not be impacted.
27159 am__obj=conftest.${OBJEXT-o}
27164 if depmode=$depmode \
27165 source=sub/conftest.c object=$am__obj \
27166 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
27167 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
27168 >/dev/null 2>conftest.err &&
27169 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
27170 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
27171 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
27172 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
27173 # icc doesn't choke on unknown options, it will just issue warnings
27174 # or remarks (even with -Werror). So we grep stderr for any message
27175 # that says an option was ignored or not supported.
27176 # When given -MP, icc 7.0 and 7.1 complain thusly:
27177 # icc: Command line warning: ignoring option '-M'; no argument required
27178 # The diagnosis changed in icc 8.0:
27179 # icc: Command line remark: option '-MP' not supported
27180 if (grep 'ignoring option' conftest.err ||
27181 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
27182 am_cv_CXX_dependencies_compiler_type=$depmode
27189 rm -rf conftest.dir
27191 am_cv_CXX_dependencies_compiler_type=none
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
27196 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
27197 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
27200 test "x$enable_dependency_tracking" != xno \
27201 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
27202 am__fastdepCXX_TRUE=
27203 am__fastdepCXX_FALSE='#'
27205 am__fastdepCXX_TRUE='#'
27206 am__fastdepCXX_FALSE=
27212 func_stripname_cnf ()
27215 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27216 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27218 } # func_stripname_cnf
27220 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
27221 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
27222 (test "X$CXX" != "Xg++"))) ; then
27224 ac_cpp='$CXXCPP $CPPFLAGS'
27225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
27229 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
27230 if test -z "$CXXCPP"; then
27231 if ${ac_cv_prog_CXXCPP+:} false; then :
27232 $as_echo_n "(cached) " >&6
27234 # Double quotes because CXXCPP needs to be expanded
27235 for CXXCPP in "$CXX -E" "/lib/cpp"
27237 ac_preproc_ok=false
27238 for ac_cxx_preproc_warn_flag in '' yes
27240 # Use a header file that comes with gcc, so configuring glibc
27241 # with a fresh cross-compiler works.
27242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27243 # <limits.h> exists even on freestanding compilers.
27244 # On the NeXT, cc -E runs the code through the compiler's parser,
27245 # not just through cpp. "Syntax error" is here to catch this case.
27246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27247 /* end confdefs.h. */
27249 # include <limits.h>
27251 # include <assert.h>
27255 if ac_fn_cxx_try_cpp "$LINENO"; then :
27258 # Broken: fails on valid input.
27261 rm -f conftest.err conftest.i conftest.$ac_ext
27263 # OK, works on sane cases. Now check whether nonexistent headers
27264 # can be detected and how.
27265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27266 /* end confdefs.h. */
27267 #include <ac_nonexistent.h>
27269 if ac_fn_cxx_try_cpp "$LINENO"; then :
27270 # Broken: success on invalid input.
27273 # Passes both tests.
27277 rm -f conftest.err conftest.i conftest.$ac_ext
27280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
27281 rm -f conftest.i conftest.err conftest.$ac_ext
27282 if $ac_preproc_ok; then :
27287 ac_cv_prog_CXXCPP=$CXXCPP
27290 CXXCPP=$ac_cv_prog_CXXCPP
27292 ac_cv_prog_CXXCPP=$CXXCPP
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
27295 $as_echo "$CXXCPP" >&6; }
27296 ac_preproc_ok=false
27297 for ac_cxx_preproc_warn_flag in '' yes
27299 # Use a header file that comes with gcc, so configuring glibc
27300 # with a fresh cross-compiler works.
27301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27302 # <limits.h> exists even on freestanding compilers.
27303 # On the NeXT, cc -E runs the code through the compiler's parser,
27304 # not just through cpp. "Syntax error" is here to catch this case.
27305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27306 /* end confdefs.h. */
27308 # include <limits.h>
27310 # include <assert.h>
27314 if ac_fn_cxx_try_cpp "$LINENO"; then :
27317 # Broken: fails on valid input.
27320 rm -f conftest.err conftest.i conftest.$ac_ext
27322 # OK, works on sane cases. Now check whether nonexistent headers
27323 # can be detected and how.
27324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27325 /* end confdefs.h. */
27326 #include <ac_nonexistent.h>
27328 if ac_fn_cxx_try_cpp "$LINENO"; then :
27329 # Broken: success on invalid input.
27332 # Passes both tests.
27336 rm -f conftest.err conftest.i conftest.$ac_ext
27339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
27340 rm -f conftest.i conftest.err conftest.$ac_ext
27341 if $ac_preproc_ok; then :
27344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27346 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
27347 See \`config.log' for more details" "$LINENO" 5; }
27351 ac_cpp='$CPP $CPPFLAGS'
27352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27357 _lt_caught_CXX_error=yes
27361 ac_cpp='$CXXCPP $CPPFLAGS'
27362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27366 archive_cmds_need_lc_CXX=no
27367 allow_undefined_flag_CXX=
27368 always_export_symbols_CXX=no
27369 archive_expsym_cmds_CXX=
27370 compiler_needs_object_CXX=no
27371 export_dynamic_flag_spec_CXX=
27372 hardcode_direct_CXX=no
27373 hardcode_direct_absolute_CXX=no
27374 hardcode_libdir_flag_spec_CXX=
27375 hardcode_libdir_flag_spec_ld_CXX=
27376 hardcode_libdir_separator_CXX=
27377 hardcode_minus_L_CXX=no
27378 hardcode_shlibpath_var_CXX=unsupported
27379 hardcode_automatic_CXX=no
27380 inherit_rpath_CXX=no
27382 module_expsym_cmds_CXX=
27383 link_all_deplibs_CXX=unknown
27384 old_archive_cmds_CXX=$old_archive_cmds
27385 reload_flag_CXX=$reload_flag
27386 reload_cmds_CXX=$reload_cmds
27387 no_undefined_flag_CXX=
27388 whole_archive_flag_spec_CXX=
27389 enable_shared_with_static_runtimes_CXX=no
27391 # Source file extension for C++ test sources.
27394 # Object file extension for compiled C++ test sources.
27398 # No sense in running all these tests if we already determined that
27399 # the CXX compiler isn't working. Some variables (like enable_shared)
27400 # are currently assumed to apply to all compilers on this platform,
27401 # and will be corrupted by setting them based on a non-working compiler.
27402 if test "$_lt_caught_CXX_error" != yes; then
27403 # Code to be used in simple compile tests
27404 lt_simple_compile_test_code="int some_variable = 0;"
27406 # Code to be used in simple link tests
27407 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
27409 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
27416 # If no C compiler was specified, use CC.
27419 # If no C compiler flags were specified, use CFLAGS.
27420 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
27422 # Allow CC to be a program name with arguments.
27426 # save warnings/boilerplate of simple test code
27427 ac_outfile=conftest.$ac_objext
27428 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
27429 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27430 _lt_compiler_boilerplate=`cat conftest.err`
27433 ac_outfile=conftest.$ac_objext
27434 echo "$lt_simple_link_test_code" >conftest.$ac_ext
27435 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27436 _lt_linker_boilerplate=`cat conftest.err`
27440 # Allow CC to be a program name with arguments.
27442 lt_save_CFLAGS=$CFLAGS
27446 lt_save_with_gnu_ld=$with_gnu_ld
27447 lt_save_path_LD=$lt_cv_path_LD
27448 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
27449 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
27451 $as_unset lt_cv_prog_gnu_ld
27453 if test -n "${lt_cv_path_LDCXX+set}"; then
27454 lt_cv_path_LD=$lt_cv_path_LDCXX
27456 $as_unset lt_cv_path_LD
27458 test -z "${LDCXX+set}" || LD=$LDCXX
27463 for cc_temp in $compiler""; do
27465 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27466 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27471 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
27474 if test -n "$compiler"; then
27475 # We don't want -fno-exception when compiling C++ code, so set the
27476 # no_builtin_flag separately
27477 if test "$GXX" = yes; then
27478 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
27480 lt_prog_compiler_no_builtin_flag_CXX=
27483 if test "$GXX" = yes; then
27484 # Set up default GNU C++ configuration
27488 # Check whether --with-gnu-ld was given.
27489 if test "${with_gnu_ld+set}" = set; then :
27490 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
27496 if test "$GCC" = yes; then
27497 # Check if gcc -print-prog-name=ld gives a path.
27498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
27499 $as_echo_n "checking for ld used by $CC... " >&6; }
27502 # gcc leaves a trailing carriage return which upsets mingw
27503 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
27505 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
27508 # Accept absolute paths.
27510 re_direlt='/[^/][^/]*/\.\./'
27511 # Canonicalize the pathname of ld
27512 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
27513 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
27514 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
27516 test -z "$LD" && LD="$ac_prog"
27519 # If it fails, then pretend we aren't using GCC.
27523 # If it is relative, then search for the first ld in PATH.
27524 with_gnu_ld=unknown
27527 elif test "$with_gnu_ld" = yes; then
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
27529 $as_echo_n "checking for GNU ld... " >&6; }
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
27532 $as_echo_n "checking for non-GNU ld... " >&6; }
27534 if ${lt_cv_path_LD+:} false; then :
27535 $as_echo_n "(cached) " >&6
27537 if test -z "$LD"; then
27538 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
27539 for ac_dir in $PATH; do
27541 test -z "$ac_dir" && ac_dir=.
27542 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
27543 lt_cv_path_LD="$ac_dir/$ac_prog"
27544 # Check to see if the program is GNU ld. I'd rather use --version,
27545 # but apparently some variants of GNU ld only accept -v.
27546 # Break only if it was the GNU/non-GNU ld that we prefer.
27547 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
27548 *GNU* | *'with BFD'*)
27549 test "$with_gnu_ld" != no && break
27552 test "$with_gnu_ld" != yes && break
27559 lt_cv_path_LD="$LD" # Let the user override the test with a path.
27563 LD="$lt_cv_path_LD"
27564 if test -n "$LD"; then
27565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
27566 $as_echo "$LD" >&6; }
27568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27569 $as_echo "no" >&6; }
27571 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
27572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
27573 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
27574 if ${lt_cv_prog_gnu_ld+:} false; then :
27575 $as_echo_n "(cached) " >&6
27577 # I'd rather use --version here, but apparently some GNU lds only accept -v.
27578 case `$LD -v 2>&1 </dev/null` in
27579 *GNU* | *'with BFD'*)
27580 lt_cv_prog_gnu_ld=yes
27583 lt_cv_prog_gnu_ld=no
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
27588 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
27589 with_gnu_ld=$lt_cv_prog_gnu_ld
27597 # Check if GNU C++ uses GNU ld as the underlying linker, since the
27598 # archiving commands below assume that GNU ld is being used.
27599 if test "$with_gnu_ld" = yes; then
27600 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
27601 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'
27603 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
27604 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
27606 # If archive_cmds runs LD, not CC, wlarc should be empty
27607 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
27608 # investigate it a little bit more. (MM)
27611 # ancient GNU ld didn't support --whole-archive et. al.
27612 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
27613 $GREP 'no-whole-archive' > /dev/null; then
27614 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
27616 whole_archive_flag_spec_CXX=
27622 # A generic and very simple default shared library creation
27623 # command for GNU C++ for the case where it uses the native
27624 # linker, instead of GNU ld. If possible, this setting should
27625 # overridden to take advantage of the native linker features on
27626 # the platform it is being used on.
27627 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
27630 # Commands to make compiler produce verbose output that lists
27631 # what "hidden" libraries, object files and flags are used when
27632 # linking a shared library.
27633 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
27641 # PORTME: fill in a description of your system's C++ link characteristics
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
27643 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
27647 # FIXME: insert proper C++ library support
27651 if test "$host_cpu" = ia64; then
27652 # On IA64, the linker does run time linking by default, so we don't
27653 # have to do anything special.
27654 aix_use_runtimelinking=no
27655 exp_sym_flag='-Bexport'
27658 aix_use_runtimelinking=no
27660 # Test if we are trying to use run time linking or normal
27661 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
27662 # need to do runtime linking.
27663 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
27664 for ld_flag in $LDFLAGS; do
27667 aix_use_runtimelinking=yes
27675 exp_sym_flag='-bexport'
27676 no_entry_flag='-bnoentry'
27679 # When large executables or shared objects are built, AIX ld can
27680 # have problems creating the table of contents. If linking a library
27681 # or program results in "error TOC overflow" add -mminimal-toc to
27682 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
27683 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
27685 archive_cmds_CXX=''
27686 hardcode_direct_CXX=yes
27687 hardcode_direct_absolute_CXX=yes
27688 hardcode_libdir_separator_CXX=':'
27689 link_all_deplibs_CXX=yes
27690 file_list_spec_CXX='${wl}-f,'
27692 if test "$GXX" = yes; then
27693 case $host_os in aix4.[012]|aix4.[012].*)
27694 # We only want to do this on AIX 4.2 and lower, the check
27695 # below for broken collect2 doesn't work under 4.3+
27696 collect2name=`${CC} -print-prog-name=collect2`
27697 if test -f "$collect2name" &&
27698 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
27700 # We have reworked collect2
27703 # We have old collect2
27704 hardcode_direct_CXX=unsupported
27705 # It fails to find uninstalled libraries when the uninstalled
27706 # path is not listed in the libpath. Setting hardcode_minus_L
27707 # to unsupported forces relinking
27708 hardcode_minus_L_CXX=yes
27709 hardcode_libdir_flag_spec_CXX='-L$libdir'
27710 hardcode_libdir_separator_CXX=
27713 shared_flag='-shared'
27714 if test "$aix_use_runtimelinking" = yes; then
27715 shared_flag="$shared_flag "'${wl}-G'
27719 if test "$host_cpu" = ia64; then
27720 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
27721 # chokes on -Wl,-G. The following line is correct:
27724 if test "$aix_use_runtimelinking" = yes; then
27725 shared_flag='${wl}-G'
27727 shared_flag='${wl}-bM:SRE'
27732 export_dynamic_flag_spec_CXX='${wl}-bexpall'
27733 # It seems that -bexpall does not export symbols beginning with
27734 # underscore (_), so it is better to generate a list of symbols to
27736 always_export_symbols_CXX=yes
27737 if test "$aix_use_runtimelinking" = yes; then
27738 # Warning - without using the other runtime loading flags (-brtl),
27739 # -berok will link without error, but may produce a broken library.
27740 allow_undefined_flag_CXX='-berok'
27741 # Determine the default libpath from the value encoded in an empty
27743 if test "${lt_cv_aix_libpath+set}" = set; then
27744 aix_libpath=$lt_cv_aix_libpath
27746 if ${lt_cv_aix_libpath__CXX+:} false; then :
27747 $as_echo_n "(cached) " >&6
27749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27750 /* end confdefs.h. */
27760 if ac_fn_cxx_try_link "$LINENO"; then :
27762 lt_aix_libpath_sed='
27763 /Import File Strings/,/^$/ {
27765 s/^0 *\([^ ]*\) *$/\1/
27769 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
27770 # Check for a 64-bit object if we didn't find anything.
27771 if test -z "$lt_cv_aix_libpath__CXX"; then
27772 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
27775 rm -f core conftest.err conftest.$ac_objext \
27776 conftest$ac_exeext conftest.$ac_ext
27777 if test -z "$lt_cv_aix_libpath__CXX"; then
27778 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
27783 aix_libpath=$lt_cv_aix_libpath__CXX
27786 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
27788 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"
27790 if test "$host_cpu" = ia64; then
27791 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
27792 allow_undefined_flag_CXX="-z nodefs"
27793 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"
27795 # Determine the default libpath from the value encoded in an
27796 # empty executable.
27797 if test "${lt_cv_aix_libpath+set}" = set; then
27798 aix_libpath=$lt_cv_aix_libpath
27800 if ${lt_cv_aix_libpath__CXX+:} false; then :
27801 $as_echo_n "(cached) " >&6
27803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27804 /* end confdefs.h. */
27814 if ac_fn_cxx_try_link "$LINENO"; then :
27816 lt_aix_libpath_sed='
27817 /Import File Strings/,/^$/ {
27819 s/^0 *\([^ ]*\) *$/\1/
27823 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
27824 # Check for a 64-bit object if we didn't find anything.
27825 if test -z "$lt_cv_aix_libpath__CXX"; then
27826 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
27829 rm -f core conftest.err conftest.$ac_objext \
27830 conftest$ac_exeext conftest.$ac_ext
27831 if test -z "$lt_cv_aix_libpath__CXX"; then
27832 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
27837 aix_libpath=$lt_cv_aix_libpath__CXX
27840 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
27841 # Warning - without using the other run time loading flags,
27842 # -berok will link without error, but may produce a broken library.
27843 no_undefined_flag_CXX=' ${wl}-bernotok'
27844 allow_undefined_flag_CXX=' ${wl}-berok'
27845 if test "$with_gnu_ld" = yes; then
27846 # We only use this code for GNU lds that support --whole-archive.
27847 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
27849 # Exported symbols can be pulled into shared objects from archives
27850 whole_archive_flag_spec_CXX='$convenience'
27852 archive_cmds_need_lc_CXX=yes
27853 # This is similar to how AIX traditionally builds its shared
27855 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'
27861 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
27862 allow_undefined_flag_CXX=unsupported
27863 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
27864 # support --undefined. This deserves some investigation. FIXME
27865 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27872 case $cc_basename in
27874 # FIXME: insert proper C++ library support
27880 cygwin* | mingw* | pw32* | cegcc*)
27881 case $GXX,$cc_basename in
27884 # hardcode_libdir_flag_spec is actually meaningless, as there is
27885 # no search path for DLLs.
27886 hardcode_libdir_flag_spec_CXX=' '
27887 allow_undefined_flag_CXX=unsupported
27888 always_export_symbols_CXX=yes
27889 file_list_spec_CXX='@'
27890 # Tell ltmain to make .lib files, not .a files.
27892 # Tell ltmain to make .dll files, not .so files.
27894 # FIXME: Setting linknames here is a bad hack.
27895 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
27896 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
27897 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
27899 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
27901 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
27903 # The linker will not automatically build a static lib if we build a DLL.
27904 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
27905 enable_shared_with_static_runtimes_CXX=yes
27907 old_postinstall_cmds_CXX='chmod 644 $oldlib'
27908 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
27909 lt_tool_outputfile="@TOOL_OUTPUT@"~
27910 case $lt_outputfile in
27913 lt_outputfile="$lt_outputfile.exe"
27914 lt_tool_outputfile="$lt_tool_outputfile.exe"
27917 func_to_tool_file "$lt_outputfile"~
27918 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
27919 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
27920 $RM "$lt_outputfile.manifest";
27925 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
27926 # as there is no search path for DLLs.
27927 hardcode_libdir_flag_spec_CXX='-L$libdir'
27928 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
27929 allow_undefined_flag_CXX=unsupported
27930 always_export_symbols_CXX=no
27931 enable_shared_with_static_runtimes_CXX=yes
27933 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
27934 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'
27935 # If the export-symbols file already is a .def file (1st line
27936 # is EXPORTS), use it as is; otherwise, prepend...
27937 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
27938 cp $export_symbols $output_objdir/$soname.def;
27940 echo EXPORTS > $output_objdir/$soname.def;
27941 cat $export_symbols >> $output_objdir/$soname.def;
27943 $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'
27950 darwin* | rhapsody*)
27953 archive_cmds_need_lc_CXX=no
27954 hardcode_direct_CXX=no
27955 hardcode_automatic_CXX=yes
27956 hardcode_shlibpath_var_CXX=unsupported
27957 if test "$lt_cv_ld_force_load" = "yes"; then
27958 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\"`'
27960 whole_archive_flag_spec_CXX=''
27962 link_all_deplibs_CXX=yes
27963 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
27964 case $cc_basename in
27965 ifort*) _lt_dar_can_shared=yes ;;
27966 *) _lt_dar_can_shared=$GCC ;;
27968 if test "$_lt_dar_can_shared" = "yes"; then
27969 output_verbose_link_cmd=func_echo_all
27970 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}"
27971 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
27972 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}"
27973 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}"
27974 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
27975 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}"
27976 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}"
27986 case $cc_basename in
27988 # FIXME: insert proper C++ library support
27992 # Green Hills C++ Compiler
27993 # FIXME: insert proper C++ library support
27997 # FIXME: insert proper C++ library support
28004 # C++ shared libraries reported to be fairly broken before
28010 archive_cmds_need_lc_CXX=no
28013 freebsd* | dragonfly*)
28014 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
28023 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28024 link_all_deplibs_CXX=yes
28028 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
28029 hardcode_libdir_separator_CXX=:
28030 export_dynamic_flag_spec_CXX='${wl}-E'
28031 hardcode_direct_CXX=yes
28032 hardcode_minus_L_CXX=yes # Not in the search PATH,
28033 # but as the default
28034 # location of the library.
28036 case $cc_basename in
28038 # FIXME: insert proper C++ library support
28042 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'
28043 # Commands to make compiler produce verbose output that lists
28044 # what "hidden" libraries, object files and flags are used when
28045 # linking a shared library.
28047 # There doesn't appear to be a way to prevent this compiler from
28048 # explicitly linking system object files so we need to strip them
28049 # from the output so that they don't get included in the library
28051 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"'
28054 if test "$GXX" = yes; then
28055 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'
28057 # FIXME: insert proper C++ library support
28065 if test $with_gnu_ld = no; then
28066 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
28067 hardcode_libdir_separator_CXX=:
28073 export_dynamic_flag_spec_CXX='${wl}-E'
28079 hardcode_direct_CXX=no
28080 hardcode_shlibpath_var_CXX=no
28083 hardcode_direct_CXX=yes
28084 hardcode_direct_absolute_CXX=yes
28085 hardcode_minus_L_CXX=yes # Not in the search PATH,
28086 # but as the default
28087 # location of the library.
28091 case $cc_basename in
28093 # FIXME: insert proper C++ library support
28099 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28102 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28105 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28108 # Commands to make compiler produce verbose output that lists
28109 # what "hidden" libraries, object files and flags are used when
28110 # linking a shared library.
28112 # There doesn't appear to be a way to prevent this compiler from
28113 # explicitly linking system object files so we need to strip them
28114 # from the output so that they don't get included in the library
28116 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"'
28119 if test "$GXX" = yes; then
28120 if test $with_gnu_ld = no; then
28123 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28126 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28129 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'
28134 # FIXME: insert proper C++ library support
28142 hardcode_direct_CXX=no
28143 hardcode_shlibpath_var_CXX=no
28144 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28145 export_dynamic_flag_spec_CXX='${wl}-E'
28146 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
28147 # Instead, shared libraries are loaded at an image base (0x10000000 by
28148 # default) and relocated if they conflict, which is a slow very memory
28149 # consuming and fragmenting process. To avoid this, we pick a random,
28150 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
28151 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
28152 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'
28153 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'
28156 case $cc_basename in
28159 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'
28161 # Archives containing C++ object files must be created using
28162 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
28163 # necessary to make sure instantiated templates are included
28165 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
28168 if test "$GXX" = yes; then
28169 if test "$with_gnu_ld" = no; then
28170 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'
28172 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'
28175 link_all_deplibs_CXX=yes
28178 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
28179 hardcode_libdir_separator_CXX=:
28180 inherit_rpath_CXX=yes
28183 linux* | k*bsd*-gnu | kopensolaris*-gnu)
28184 case $cc_basename in
28186 # Kuck and Associates, Inc. (KAI) C++ Compiler
28188 # KCC will only create a shared library if the output file
28189 # ends with ".so" (or ".sl" for HP-UX), so rename the library
28190 # to its proper name (with version) after linking.
28191 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'
28192 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'
28193 # Commands to make compiler produce verbose output that lists
28194 # what "hidden" libraries, object files and flags are used when
28195 # linking a shared library.
28197 # There doesn't appear to be a way to prevent this compiler from
28198 # explicitly linking system object files so we need to strip them
28199 # from the output so that they don't get included in the library
28201 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"'
28203 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28204 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
28206 # Archives containing C++ object files must be created using
28207 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
28208 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
28213 # version 8.0 and above of icpc choke on multiply defined symbols
28214 # if we add $predep_objects and $postdep_objects, however 7.1 and
28215 # earlier do not add the objects themselves.
28216 case `$CC -V 2>&1` in
28218 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
28219 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'
28221 *) # Version 8.0 or newer
28224 ia64*) tmp_idyn=' -i_dynamic';;
28226 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28227 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'
28230 archive_cmds_need_lc_CXX=no
28231 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28232 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
28233 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
28236 # Portland Group C++ compiler
28238 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
28239 prelink_cmds_CXX='tpldir=Template.dir~
28241 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
28242 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
28243 old_archive_cmds_CXX='tpldir=Template.dir~
28245 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
28246 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
28248 archive_cmds_CXX='tpldir=Template.dir~
28250 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
28251 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
28252 archive_expsym_cmds_CXX='tpldir=Template.dir~
28254 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
28255 $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'
28257 *) # Version 6 and above use weak symbols
28258 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
28259 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'
28263 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
28264 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
28265 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'
28269 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
28270 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'
28272 runpath_var=LD_RUN_PATH
28273 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
28274 hardcode_libdir_separator_CXX=:
28276 # Commands to make compiler produce verbose output that lists
28277 # what "hidden" libraries, object files and flags are used when
28278 # linking a shared library.
28280 # There doesn't appear to be a way to prevent this compiler from
28281 # explicitly linking system object files so we need to strip them
28282 # from the output so that they don't get included in the library
28284 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'
28286 xl* | mpixl* | bgxl*)
28287 # IBM XL 8.0 on PPC, with GNU ld
28288 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
28289 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
28290 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28291 if test "x$supports_anon_versioning" = xyes; then
28292 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
28293 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
28294 echo "local: *; };" >> $output_objdir/$libname.ver~
28295 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
28299 case `$CC -V 2>&1 | sed 5q` in
28302 no_undefined_flag_CXX=' -zdefs'
28303 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28304 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'
28305 hardcode_libdir_flag_spec_CXX='-R$libdir'
28306 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'
28307 compiler_needs_object_CXX=yes
28309 # Not sure whether something based on
28310 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
28312 output_verbose_link_cmd='func_echo_all'
28314 # Archives containing C++ object files must be created using
28315 # "CC -xar", where "CC" is the Sun C++ compiler. This is
28316 # necessary to make sure instantiated templates are included
28318 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
28326 # FIXME: insert proper C++ library support
28331 # FIXME: insert proper C++ library support
28336 case $cc_basename in
28338 # FIXME: insert proper C++ library support
28342 # FIXME: insert proper C++ library support
28349 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
28350 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
28352 hardcode_libdir_flag_spec_CXX='-R$libdir'
28353 hardcode_direct_CXX=yes
28354 hardcode_shlibpath_var_CXX=no
28356 # Workaround some broken pre-1.5 toolchains
28357 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
28365 # C++ shared libraries are fairly broken
28370 if test -f /usr/libexec/ld.so; then
28371 hardcode_direct_CXX=yes
28372 hardcode_shlibpath_var_CXX=no
28373 hardcode_direct_absolute_CXX=yes
28374 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
28375 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28376 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
28377 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
28378 export_dynamic_flag_spec_CXX='${wl}-E'
28379 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
28381 output_verbose_link_cmd=func_echo_all
28387 osf3* | osf4* | osf5*)
28388 case $cc_basename in
28390 # Kuck and Associates, Inc. (KAI) C++ Compiler
28392 # KCC will only create a shared library if the output file
28393 # ends with ".so" (or ".sl" for HP-UX), so rename the library
28394 # to its proper name (with version) after linking.
28395 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'
28397 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28398 hardcode_libdir_separator_CXX=:
28400 # Archives containing C++ object files must be created using
28401 # the KAI C++ compiler.
28403 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
28404 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
28408 # Rational C++ 2.4.1
28409 # FIXME: insert proper C++ library support
28415 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
28416 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'
28417 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
28420 allow_undefined_flag_CXX=' -expect_unresolved \*'
28421 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'
28422 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
28423 echo "-hidden">> $lib.exp~
28424 $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~
28426 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
28430 hardcode_libdir_separator_CXX=:
28432 # Commands to make compiler produce verbose output that lists
28433 # what "hidden" libraries, object files and flags are used when
28434 # linking a shared library.
28436 # There doesn't appear to be a way to prevent this compiler from
28437 # explicitly linking system object files so we need to strip them
28438 # from the output so that they don't get included in the library
28440 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"'
28443 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
28444 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
28447 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'
28450 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'
28454 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
28455 hardcode_libdir_separator_CXX=:
28457 # Commands to make compiler produce verbose output that lists
28458 # what "hidden" libraries, object files and flags are used when
28459 # linking a shared library.
28460 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
28463 # FIXME: insert proper C++ library support
28471 # FIXME: insert proper C++ library support
28476 case $cc_basename in
28479 # FIXME: insert proper C++ library support
28484 # FIXME: insert proper C++ library support
28488 # FIXME: insert proper C++ library support
28495 case $cc_basename in
28497 # Sun C++ 4.2, 5.x and Centerline C++
28498 archive_cmds_need_lc_CXX=yes
28499 no_undefined_flag_CXX=' -zdefs'
28500 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28501 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
28502 $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'
28504 hardcode_libdir_flag_spec_CXX='-R$libdir'
28505 hardcode_shlibpath_var_CXX=no
28507 solaris2.[0-5] | solaris2.[0-5].*) ;;
28509 # The compiler driver will combine and reorder linker options,
28510 # but understands `-z linker_flag'.
28511 # Supported since Solaris 2.6 (maybe 2.5.1?)
28512 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
28515 link_all_deplibs_CXX=yes
28517 output_verbose_link_cmd='func_echo_all'
28519 # Archives containing C++ object files must be created using
28520 # "CC -xar", where "CC" is the Sun C++ compiler. This is
28521 # necessary to make sure instantiated templates are included
28523 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
28526 # Green Hills C++ Compiler
28527 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
28529 # The C++ compiler must be used to create the archive.
28530 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
28533 # GNU C++ compiler with Solaris linker
28534 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
28535 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
28536 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
28537 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
28538 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
28539 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
28541 # Commands to make compiler produce verbose output that lists
28542 # what "hidden" libraries, object files and flags are used when
28543 # linking a shared library.
28544 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
28546 # g++ 2.7 appears to require `-G' NOT `-shared' on this
28548 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
28549 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
28550 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
28552 # Commands to make compiler produce verbose output that lists
28553 # what "hidden" libraries, object files and flags are used when
28554 # linking a shared library.
28555 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
28558 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
28560 solaris2.[0-5] | solaris2.[0-5].*) ;;
28562 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
28570 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
28571 no_undefined_flag_CXX='${wl}-z,text'
28572 archive_cmds_need_lc_CXX=no
28573 hardcode_shlibpath_var_CXX=no
28574 runpath_var='LD_RUN_PATH'
28576 case $cc_basename in
28578 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28579 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28582 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28583 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28588 sysv5* | sco3.2v5* | sco5v6*)
28589 # Note: We can NOT use -z defs as we might desire, because we do not
28590 # link with -lc, and that would cause any symbols used from libc to
28591 # always be unresolved, which means just about no library would
28592 # ever link correctly. If we're not using GNU ld we use -z text
28593 # though, which does catch some bad symbols but isn't as heavy-handed
28595 no_undefined_flag_CXX='${wl}-z,text'
28596 allow_undefined_flag_CXX='${wl}-z,nodefs'
28597 archive_cmds_need_lc_CXX=no
28598 hardcode_shlibpath_var_CXX=no
28599 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
28600 hardcode_libdir_separator_CXX=':'
28601 link_all_deplibs_CXX=yes
28602 export_dynamic_flag_spec_CXX='${wl}-Bexport'
28603 runpath_var='LD_RUN_PATH'
28605 case $cc_basename in
28607 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28608 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28609 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
28610 '"$old_archive_cmds_CXX"
28611 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
28612 '"$reload_cmds_CXX"
28615 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28616 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28622 case $cc_basename in
28624 # NonStop-UX NCC 3.20
28625 # FIXME: insert proper C++ library support
28629 # FIXME: insert proper C++ library support
28636 # FIXME: insert proper C++ library support
28641 # FIXME: insert proper C++ library support
28646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
28647 $as_echo "$ld_shlibs_CXX" >&6; }
28648 test "$ld_shlibs_CXX" = no && can_build_shared=no
28654 ## There is no encapsulation within the following macros, do not change
28655 ## the running order or otherwise move them around unless you know exactly
28656 ## what you are doing...
28657 # Dependencies to place before and after the object being linked:
28658 predep_objects_CXX=
28659 postdep_objects_CXX=
28662 compiler_lib_search_path_CXX=
28664 cat > conftest.$ac_ext <<_LT_EOF
28668 Foo (void) { a = 0; }
28675 _lt_libdeps_save_CFLAGS=$CFLAGS
28676 case "$CC $CFLAGS " in #(
28677 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
28678 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
28681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
28682 (eval $ac_compile) 2>&5
28684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28685 test $ac_status = 0; }; then
28686 # Parse the compiler output and extract the necessary
28687 # objects, libraries and library flags.
28689 # Sentinel used to keep track of whether or not we are before
28690 # the conftest object file.
28691 pre_test_object_deps_done=no
28693 for p in `eval "$output_verbose_link_cmd"`; do
28694 case ${prev}${p} in
28697 # Some compilers place space between "-{L,R}" and the path.
28698 # Remove the space.
28699 if test $p = "-L" ||
28700 test $p = "-R"; then
28705 # Expand the sysroot to ease extracting the directories later.
28706 if test -z "$prev"; then
28708 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
28709 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
28710 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
28714 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
28716 if test "$pre_test_object_deps_done" = no; then
28719 # Internal compiler library paths should come after those
28720 # provided the user. The postdeps already come after the
28721 # user supplied libs so there is no need to process them.
28722 if test -z "$compiler_lib_search_path_CXX"; then
28723 compiler_lib_search_path_CXX="${prev}${p}"
28725 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
28728 # The "-l" case would never come before the object being
28729 # linked, so don't bother handling this case.
28732 if test -z "$postdeps_CXX"; then
28733 postdeps_CXX="${prev}${p}"
28735 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
28741 *.lto.$objext) ;; # Ignore GCC LTO objects
28743 # This assumes that the test object file only shows up
28744 # once in the compiler output.
28745 if test "$p" = "conftest.$objext"; then
28746 pre_test_object_deps_done=yes
28750 if test "$pre_test_object_deps_done" = no; then
28751 if test -z "$predep_objects_CXX"; then
28752 predep_objects_CXX="$p"
28754 predep_objects_CXX="$predep_objects_CXX $p"
28757 if test -z "$postdep_objects_CXX"; then
28758 postdep_objects_CXX="$p"
28760 postdep_objects_CXX="$postdep_objects_CXX $p"
28765 *) ;; # Ignore the rest.
28773 echo "libtool.m4: error: problem compiling CXX test program"
28776 $RM -f confest.$objext
28777 CFLAGS=$_lt_libdeps_save_CFLAGS
28779 # PORTME: override above test on systems where it is broken
28782 # Interix 3.5 installs completely hosed .la files for C++, so rather than
28783 # hack all around it, let's just trust "g++" to DTRT.
28784 predep_objects_CXX=
28785 postdep_objects_CXX=
28790 case `$CC -V 2>&1 | sed 5q` in
28794 # The more standards-conforming stlport4 library is
28795 # incompatible with the Cstd library. Avoid specifying
28796 # it if it's in CXXFLAGS. Ignore libCrun as
28797 # -library=stlport4 depends on it.
28798 case " $CXX $CXXFLAGS " in
28799 *" -library=stlport4 "*)
28800 solaris_use_stlport4=yes
28804 if test "$solaris_use_stlport4" != yes; then
28805 postdeps_CXX='-library=Cstd -library=Crun'
28812 case $cc_basename in
28814 # The more standards-conforming stlport4 library is
28815 # incompatible with the Cstd library. Avoid specifying
28816 # it if it's in CXXFLAGS. Ignore libCrun as
28817 # -library=stlport4 depends on it.
28818 case " $CXX $CXXFLAGS " in
28819 *" -library=stlport4 "*)
28820 solaris_use_stlport4=yes
28824 # Adding this requires a known-good setup of shared libraries for
28825 # Sun compiler versions before 5.6, else PIC objects from an old
28826 # archive will be linked into the output, leading to subtle bugs.
28827 if test "$solaris_use_stlport4" != yes; then
28828 postdeps_CXX='-library=Cstd -library=Crun'
28836 case " $postdeps_CXX " in
28837 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
28839 compiler_lib_search_dirs_CXX=
28840 if test -n "${compiler_lib_search_path_CXX}"; then
28841 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
28874 lt_prog_compiler_wl_CXX=
28875 lt_prog_compiler_pic_CXX=
28876 lt_prog_compiler_static_CXX=
28879 # C++ specific cases for pic, static, wl, etc.
28880 if test "$GXX" = yes; then
28881 lt_prog_compiler_wl_CXX='-Wl,'
28882 lt_prog_compiler_static_CXX='-static'
28886 # All AIX code is PIC.
28887 if test "$host_cpu" = ia64; then
28888 # AIX 5 now supports IA64 processor
28889 lt_prog_compiler_static_CXX='-Bstatic'
28896 # see comment about AmigaOS4 .so support
28897 lt_prog_compiler_pic_CXX='-fPIC'
28900 # FIXME: we need at least 68020 code to build shared libraries, but
28901 # adding the `-m68020' flag to GCC prevents building anything better,
28903 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
28908 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
28909 # PIC is the default for these OSes.
28911 mingw* | cygwin* | os2* | pw32* | cegcc*)
28912 # This hack is so that the source file can tell whether it is being
28913 # built for inclusion in a dll (and should export symbols for example).
28914 # Although the cygwin gcc ignores -fPIC, still need this for old-style
28915 # (--disable-auto-import) libraries
28916 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
28918 darwin* | rhapsody*)
28919 # PIC is the default on this platform
28920 # Common symbols not allowed in MH_DYLIB files
28921 lt_prog_compiler_pic_CXX='-fno-common'
28924 # DJGPP does not support shared libraries at all
28925 lt_prog_compiler_pic_CXX=
28928 # PIC is the default for Haiku.
28929 # The "-static" flag exists, but is broken.
28930 lt_prog_compiler_static_CXX=
28933 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
28934 # Instead, we relocate shared libraries at runtime.
28937 if test -d /usr/nec; then
28938 lt_prog_compiler_pic_CXX=-Kconform_pic
28942 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
28943 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
28944 # sets the default TLS model and affects inlining.
28949 lt_prog_compiler_pic_CXX='-fPIC'
28954 # QNX uses GNU C++, but need to define -shared option too, otherwise
28955 # it will coredump.
28956 lt_prog_compiler_pic_CXX='-fPIC -shared'
28959 lt_prog_compiler_pic_CXX='-fPIC'
28965 # All AIX code is PIC.
28966 if test "$host_cpu" = ia64; then
28967 # AIX 5 now supports IA64 processor
28968 lt_prog_compiler_static_CXX='-Bstatic'
28970 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
28974 case $cc_basename in
28976 # Green Hills C++ Compiler
28977 # _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"
28981 mingw* | cygwin* | os2* | pw32* | cegcc*)
28982 # This hack is so that the source file can tell whether it is being
28983 # built for inclusion in a dll (and should export symbols for example).
28984 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
28987 case $cc_basename in
28989 lt_prog_compiler_pic_CXX='-KPIC'
28992 # Green Hills C++ Compiler
28993 lt_prog_compiler_pic_CXX='-pic'
28999 freebsd* | dragonfly*)
29000 # FreeBSD uses GNU C++
29002 hpux9* | hpux10* | hpux11*)
29003 case $cc_basename in
29005 lt_prog_compiler_wl_CXX='-Wl,'
29006 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
29007 if test "$host_cpu" != ia64; then
29008 lt_prog_compiler_pic_CXX='+Z'
29012 lt_prog_compiler_wl_CXX='-Wl,'
29013 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
29019 lt_prog_compiler_pic_CXX='+Z'
29028 # This is c89, which is MS Visual C++ (no shared libs)
29029 # Anyone wants to do a port?
29031 irix5* | irix6* | nonstopux*)
29032 case $cc_basename in
29034 lt_prog_compiler_wl_CXX='-Wl,'
29035 lt_prog_compiler_static_CXX='-non_shared'
29036 # CC pic flag -KPIC is the default.
29042 linux* | k*bsd*-gnu | kopensolaris*-gnu)
29043 case $cc_basename in
29046 lt_prog_compiler_wl_CXX='--backend -Wl,'
29047 lt_prog_compiler_pic_CXX='-fPIC'
29050 # old Intel C++ for x86_64 which still supported -KPIC.
29051 lt_prog_compiler_wl_CXX='-Wl,'
29052 lt_prog_compiler_pic_CXX='-KPIC'
29053 lt_prog_compiler_static_CXX='-static'
29056 # Intel C++, used to be incompatible with GCC.
29057 # ICC 10 doesn't accept -KPIC any more.
29058 lt_prog_compiler_wl_CXX='-Wl,'
29059 lt_prog_compiler_pic_CXX='-fPIC'
29060 lt_prog_compiler_static_CXX='-static'
29063 # Portland Group C++ compiler
29064 lt_prog_compiler_wl_CXX='-Wl,'
29065 lt_prog_compiler_pic_CXX='-fpic'
29066 lt_prog_compiler_static_CXX='-Bstatic'
29070 # Make sure the PIC flag is empty. It appears that all Alpha
29071 # Linux and Compaq Tru64 Unix objects are PIC.
29072 lt_prog_compiler_pic_CXX=
29073 lt_prog_compiler_static_CXX='-non_shared'
29075 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
29076 # IBM XL 8.0, 9.0 on PPC and BlueGene
29077 lt_prog_compiler_wl_CXX='-Wl,'
29078 lt_prog_compiler_pic_CXX='-qpic'
29079 lt_prog_compiler_static_CXX='-qstaticlink'
29082 case `$CC -V 2>&1 | sed 5q` in
29085 lt_prog_compiler_pic_CXX='-KPIC'
29086 lt_prog_compiler_static_CXX='-Bstatic'
29087 lt_prog_compiler_wl_CXX='-Qoption ld '
29098 case $cc_basename in
29100 lt_prog_compiler_pic_CXX='-W c,exportall'
29109 # QNX uses GNU C++, but need to define -shared option too, otherwise
29110 # it will coredump.
29111 lt_prog_compiler_pic_CXX='-fPIC -shared'
29113 osf3* | osf4* | osf5*)
29114 case $cc_basename in
29116 lt_prog_compiler_wl_CXX='--backend -Wl,'
29119 # Rational C++ 2.4.1
29120 lt_prog_compiler_pic_CXX='-pic'
29123 # Digital/Compaq C++
29124 lt_prog_compiler_wl_CXX='-Wl,'
29125 # Make sure the PIC flag is empty. It appears that all Alpha
29126 # Linux and Compaq Tru64 Unix objects are PIC.
29127 lt_prog_compiler_pic_CXX=
29128 lt_prog_compiler_static_CXX='-non_shared'
29137 case $cc_basename in
29139 # Sun C++ 4.2, 5.x and Centerline C++
29140 lt_prog_compiler_pic_CXX='-KPIC'
29141 lt_prog_compiler_static_CXX='-Bstatic'
29142 lt_prog_compiler_wl_CXX='-Qoption ld '
29145 # Green Hills C++ Compiler
29146 lt_prog_compiler_pic_CXX='-PIC'
29153 case $cc_basename in
29156 lt_prog_compiler_pic_CXX='-pic'
29157 lt_prog_compiler_static_CXX='-Bstatic'
29161 lt_prog_compiler_pic_CXX='-pic'
29167 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
29168 case $cc_basename in
29170 lt_prog_compiler_wl_CXX='-Wl,'
29171 lt_prog_compiler_pic_CXX='-KPIC'
29172 lt_prog_compiler_static_CXX='-Bstatic'
29177 case $cc_basename in
29179 # NonStop-UX NCC 3.20
29180 lt_prog_compiler_pic_CXX='-KPIC'
29189 lt_prog_compiler_can_build_shared_CXX=no
29195 # For platforms which do not support PIC, -DPIC is meaningless:
29197 lt_prog_compiler_pic_CXX=
29200 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
29204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
29205 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
29206 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
29207 $as_echo_n "(cached) " >&6
29209 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
29212 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
29213 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
29216 # Check to make sure the PIC flag actually works.
29218 if test -n "$lt_prog_compiler_pic_CXX"; then
29219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
29220 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
29221 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
29222 $as_echo_n "(cached) " >&6
29224 lt_cv_prog_compiler_pic_works_CXX=no
29225 ac_outfile=conftest.$ac_objext
29226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
29227 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
29228 # Insert the option either (1) after the last *FLAGS variable, or
29229 # (2) before a word containing "conftest.", or (3) at the end.
29230 # Note that $ac_compile itself does not contain backslashes and begins
29231 # with a dollar sign (not a hyphen), so the echo should work correctly.
29232 # The option is referenced via a variable to avoid confusing sed.
29233 lt_compile=`echo "$ac_compile" | $SED \
29234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
29235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
29236 -e 's:$: $lt_compiler_flag:'`
29237 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
29238 (eval "$lt_compile" 2>conftest.err)
29240 cat conftest.err >&5
29241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242 if (exit $ac_status) && test -s "$ac_outfile"; then
29243 # The compiler can only warn and ignore the option if not recognized
29244 # So say no if there are warnings other than the usual output.
29245 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
29246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
29247 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
29248 lt_cv_prog_compiler_pic_works_CXX=yes
29254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
29255 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
29257 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
29258 case $lt_prog_compiler_pic_CXX in
29260 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
29263 lt_prog_compiler_pic_CXX=
29264 lt_prog_compiler_can_build_shared_CXX=no
29274 # Check to make sure the static flag actually works.
29276 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
29277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
29278 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
29279 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
29280 $as_echo_n "(cached) " >&6
29282 lt_cv_prog_compiler_static_works_CXX=no
29283 save_LDFLAGS="$LDFLAGS"
29284 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
29285 echo "$lt_simple_link_test_code" > conftest.$ac_ext
29286 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
29287 # The linker can only warn and ignore the option if not recognized
29288 # So say no if there are warnings
29289 if test -s conftest.err; then
29290 # Append any errors to the config.log.
29291 cat conftest.err 1>&5
29292 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
29293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
29294 if diff conftest.exp conftest.er2 >/dev/null; then
29295 lt_cv_prog_compiler_static_works_CXX=yes
29298 lt_cv_prog_compiler_static_works_CXX=yes
29302 LDFLAGS="$save_LDFLAGS"
29305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
29306 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
29308 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
29311 lt_prog_compiler_static_CXX=
29317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
29318 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
29319 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
29320 $as_echo_n "(cached) " >&6
29322 lt_cv_prog_compiler_c_o_CXX=no
29323 $RM -r conftest 2>/dev/null
29327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
29329 lt_compiler_flag="-o out/conftest2.$ac_objext"
29330 # Insert the option either (1) after the last *FLAGS variable, or
29331 # (2) before a word containing "conftest.", or (3) at the end.
29332 # Note that $ac_compile itself does not contain backslashes and begins
29333 # with a dollar sign (not a hyphen), so the echo should work correctly.
29334 lt_compile=`echo "$ac_compile" | $SED \
29335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
29336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
29337 -e 's:$: $lt_compiler_flag:'`
29338 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
29339 (eval "$lt_compile" 2>out/conftest.err)
29341 cat out/conftest.err >&5
29342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343 if (exit $ac_status) && test -s out/conftest2.$ac_objext
29345 # The compiler can only warn and ignore the option if not recognized
29346 # So say no if there are warnings
29347 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
29348 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
29349 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
29350 lt_cv_prog_compiler_c_o_CXX=yes
29355 # SGI C++ compiler will create directory out/ii_files/ for
29356 # template instantiation
29357 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
29358 $RM out/* && rmdir out
29364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
29365 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
29369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
29370 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
29371 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
29372 $as_echo_n "(cached) " >&6
29374 lt_cv_prog_compiler_c_o_CXX=no
29375 $RM -r conftest 2>/dev/null
29379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
29381 lt_compiler_flag="-o out/conftest2.$ac_objext"
29382 # Insert the option either (1) after the last *FLAGS variable, or
29383 # (2) before a word containing "conftest.", or (3) at the end.
29384 # Note that $ac_compile itself does not contain backslashes and begins
29385 # with a dollar sign (not a hyphen), so the echo should work correctly.
29386 lt_compile=`echo "$ac_compile" | $SED \
29387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
29388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
29389 -e 's:$: $lt_compiler_flag:'`
29390 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
29391 (eval "$lt_compile" 2>out/conftest.err)
29393 cat out/conftest.err >&5
29394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 if (exit $ac_status) && test -s out/conftest2.$ac_objext
29397 # The compiler can only warn and ignore the option if not recognized
29398 # So say no if there are warnings
29399 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
29400 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
29401 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
29402 lt_cv_prog_compiler_c_o_CXX=yes
29407 # SGI C++ compiler will create directory out/ii_files/ for
29408 # template instantiation
29409 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
29410 $RM out/* && rmdir out
29416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
29417 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
29422 hard_links="nottested"
29423 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
29424 # do not overwrite the value of need_locks provided by the user
29425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
29426 $as_echo_n "checking if we can lock with hard links... " >&6; }
29429 ln conftest.a conftest.b 2>/dev/null && hard_links=no
29431 ln conftest.a conftest.b 2>&5 || hard_links=no
29432 ln conftest.a conftest.b 2>/dev/null && hard_links=no
29433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
29434 $as_echo "$hard_links" >&6; }
29435 if test "$hard_links" = no; then
29436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
29437 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
29446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
29447 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
29449 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
29450 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
29453 # If we're using GNU nm, then we don't want the "-C" option.
29454 # -C means demangle to AIX nm, but means don't demangle with GNU nm
29455 # Also, AIX nm treats weak defined symbols like other global defined
29456 # symbols, whereas GNU nm marks them as "W".
29457 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
29458 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'
29460 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'
29464 export_symbols_cmds_CXX="$ltdll_cmds"
29466 cygwin* | mingw* | cegcc*)
29467 case $cc_basename in
29470 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'
29471 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
29476 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
29480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
29481 $as_echo "$ld_shlibs_CXX" >&6; }
29482 test "$ld_shlibs_CXX" = no && can_build_shared=no
29484 with_gnu_ld_CXX=$with_gnu_ld
29492 # Do we need to explicitly link libc?
29494 case "x$archive_cmds_need_lc_CXX" in
29496 # Assume -lc should be added
29497 archive_cmds_need_lc_CXX=yes
29499 if test "$enable_shared" = yes && test "$GCC" = yes; then
29500 case $archive_cmds_CXX in
29502 # FIXME: we may have to deal with multi-command sequences.
29505 # Test whether the compiler implicitly links with -lc since on some
29506 # systems, -lgcc has to come before -lc. If gcc already passes -lc
29507 # to ld, don't add -lc before -lgcc.
29508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
29509 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
29510 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
29511 $as_echo_n "(cached) " >&6
29514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
29516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
29517 (eval $ac_compile) 2>&5
29519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29520 test $ac_status = 0; } 2>conftest.err; then
29523 libobjs=conftest.$ac_objext
29525 wl=$lt_prog_compiler_wl_CXX
29526 pic_flag=$lt_prog_compiler_pic_CXX
29532 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
29533 allow_undefined_flag_CXX=
29534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
29535 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
29537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29538 test $ac_status = 0; }
29540 lt_cv_archive_cmds_need_lc_CXX=no
29542 lt_cv_archive_cmds_need_lc_CXX=yes
29544 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
29546 cat conftest.err 1>&5
29551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
29552 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
29553 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
29623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
29624 $as_echo_n "checking dynamic linker characteristics... " >&6; }
29626 library_names_spec=
29627 libname_spec='lib$name'
29631 postuninstall_cmds=
29635 shlibpath_overrides_runpath=unknown
29637 dynamic_linker="$host_os ld.so"
29638 sys_lib_dlsearch_path_spec="/lib /usr/lib"
29639 need_lib_prefix=unknown
29640 hardcode_into_libs=no
29642 # when you set need_version to no, make sure it does not cause -set_version
29643 # flags to be left without arguments
29644 need_version=unknown
29649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
29650 shlibpath_var=LIBPATH
29652 # AIX 3 has no versioning support, so we append a major version to the name.
29653 soname_spec='${libname}${release}${shared_ext}$major'
29660 hardcode_into_libs=yes
29661 if test "$host_cpu" = ia64; then
29662 # AIX 5 supports IA64
29663 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
29664 shlibpath_var=LD_LIBRARY_PATH
29666 # With GCC up to 2.95.x, collect2 would create an import file
29667 # for dependence libraries. The import file would start with
29668 # the line `#! .'. This would cause the generated library to
29669 # depend on `.', always an invalid library. This was fixed in
29670 # development snapshots of GCC prior to 3.0.
29672 aix4 | aix4.[01] | aix4.[01].*)
29673 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
29675 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
29678 can_build_shared=no
29682 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
29683 # soname into executable. Probably we can add versioning support to
29684 # collect2, so additional links can be useful in future.
29685 if test "$aix_use_runtimelinking" = yes; then
29686 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
29687 # instead of lib<name>.a to let people know that these are not
29688 # typical AIX shared libraries.
29689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29691 # We preserve .a as extension for shared libraries through AIX4.2
29692 # and later when we are not doing run time linking.
29693 library_names_spec='${libname}${release}.a $libname.a'
29694 soname_spec='${libname}${release}${shared_ext}$major'
29696 shlibpath_var=LIBPATH
29703 # Since July 2007 AmigaOS4 officially supports .so libraries.
29704 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
29705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29708 library_names_spec='$libname.ixlibrary $libname.a'
29709 # Create ${libname}_ixlibrary.a entries in /sys/libs.
29710 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'
29716 library_names_spec='${libname}${shared_ext}'
29717 dynamic_linker="$host_os ld.so"
29718 shlibpath_var=LIBRARY_PATH
29724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29725 soname_spec='${libname}${release}${shared_ext}$major'
29726 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
29727 shlibpath_var=LD_LIBRARY_PATH
29728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
29729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
29730 # the default ld.so.conf also contains /usr/contrib/lib and
29731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
29732 # libtool to hard-code these into programs
29735 cygwin* | mingw* | pw32* | cegcc*)
29736 version_type=windows
29741 case $GCC,$cc_basename in
29744 library_names_spec='$libname.dll.a'
29745 # DLL is installed to $(libdir)/../bin by postinstall_cmds
29746 postinstall_cmds='base_file=`basename \${file}`~
29747 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
29748 dldir=$destdir/`dirname \$dlpath`~
29749 test -d \$dldir || mkdir -p \$dldir~
29750 $install_prog $dir/$dlname \$dldir/$dlname~
29751 chmod a+x \$dldir/$dlname~
29752 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
29753 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
29755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
29756 dlpath=$dir/\$dldll~
29758 shlibpath_overrides_runpath=yes
29762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
29763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29767 # MinGW DLLs use traditional 'lib' prefix
29768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29771 # pw32 DLLs use 'pw' prefix rather than 'lib'
29772 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29775 dynamic_linker='Win32 ld.exe'
29780 libname_spec='$name'
29781 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29782 library_names_spec='${libname}.dll.lib'
29786 sys_lib_search_path_spec=
29789 for lt_path in $LIB
29792 # Let DOS variable expansion print the short 8.3 style file name.
29793 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
29794 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
29797 # Convert to MSYS style.
29798 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
29801 # Convert to unix form, then to dos form, then back to unix form
29802 # but this time dos style (no spaces!) so that the unix form looks
29803 # like /cygdrive/c/PROGRA~1:/cygdr...
29804 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
29805 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
29806 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
29809 sys_lib_search_path_spec="$LIB"
29810 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
29811 # It is most probably a Windows format PATH.
29812 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
29814 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
29816 # FIXME: find the short name or the path components, as spaces are
29817 # common. (e.g. "Program Files" -> "PROGRA~1")
29821 # DLL is installed to $(libdir)/../bin by postinstall_cmds
29822 postinstall_cmds='base_file=`basename \${file}`~
29823 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
29824 dldir=$destdir/`dirname \$dlpath`~
29825 test -d \$dldir || mkdir -p \$dldir~
29826 $install_prog $dir/$dlname \$dldir/$dlname'
29827 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
29828 dlpath=$dir/\$dldll~
29830 shlibpath_overrides_runpath=yes
29831 dynamic_linker='Win32 link.exe'
29835 # Assume MSVC wrapper
29836 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
29837 dynamic_linker='Win32 ld.exe'
29840 # FIXME: first we should search . and the directory the executable is in
29844 darwin* | rhapsody*)
29845 dynamic_linker="$host_os dyld"
29846 version_type=darwin
29849 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
29850 soname_spec='${libname}${release}${major}$shared_ext'
29851 shlibpath_overrides_runpath=yes
29852 shlibpath_var=DYLD_LIBRARY_PATH
29853 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
29855 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
29862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
29863 soname_spec='${libname}${release}${shared_ext}$major'
29864 shlibpath_var=LD_LIBRARY_PATH
29871 freebsd* | dragonfly*)
29872 # DragonFly does not have aout. When/if they implement a new
29873 # versioning mechanism, adjust this.
29874 if test -x /usr/bin/objformat; then
29875 objformat=`/usr/bin/objformat`
29878 freebsd[123]*) objformat=aout ;;
29879 *) objformat=elf ;;
29882 version_type=freebsd-$objformat
29883 case $version_type in
29885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
29890 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
29894 shlibpath_var=LD_LIBRARY_PATH
29897 shlibpath_overrides_runpath=yes
29899 freebsd3.[01]* | freebsdelf3.[01]*)
29900 shlibpath_overrides_runpath=yes
29901 hardcode_into_libs=yes
29903 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
29904 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
29905 shlibpath_overrides_runpath=no
29906 hardcode_into_libs=yes
29908 *) # from 4.6 on, and DragonFly
29909 shlibpath_overrides_runpath=yes
29910 hardcode_into_libs=yes
29919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
29920 soname_spec='${libname}${release}${shared_ext}$major'
29921 shlibpath_var=LD_LIBRARY_PATH
29922 hardcode_into_libs=yes
29929 dynamic_linker="$host_os runtime_loader"
29930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
29931 soname_spec='${libname}${release}${shared_ext}$major'
29932 shlibpath_var=LIBRARY_PATH
29933 shlibpath_overrides_runpath=yes
29934 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
29935 hardcode_into_libs=yes
29938 hpux9* | hpux10* | hpux11*)
29939 # Give a soname corresponding to the major version so that dld.sl refuses to
29940 # link against other versions.
29947 hardcode_into_libs=yes
29948 dynamic_linker="$host_os dld.so"
29949 shlibpath_var=LD_LIBRARY_PATH
29950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
29951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29952 soname_spec='${libname}${release}${shared_ext}$major'
29953 if test "X$HPUX_IA64_MODE" = X32; then
29954 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
29956 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
29958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
29962 hardcode_into_libs=yes
29963 dynamic_linker="$host_os dld.sl"
29964 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
29965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
29966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29967 soname_spec='${libname}${release}${shared_ext}$major'
29968 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
29969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
29973 dynamic_linker="$host_os dld.sl"
29974 shlibpath_var=SHLIB_PATH
29975 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
29976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29977 soname_spec='${libname}${release}${shared_ext}$major'
29980 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
29981 postinstall_cmds='chmod 555 $lib'
29982 # or fails outright, so override atomically:
29983 install_override_mode=555
29990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
29991 soname_spec='${libname}${release}${shared_ext}$major'
29992 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
29993 shlibpath_var=LD_LIBRARY_PATH
29994 shlibpath_overrides_runpath=no
29995 hardcode_into_libs=yes
29998 irix5* | irix6* | nonstopux*)
30000 nonstopux*) version_type=nonstopux ;;
30002 if test "$lt_cv_prog_gnu_ld" = yes; then
30010 soname_spec='${libname}${release}${shared_ext}$major'
30011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
30013 irix5* | nonstopux*)
30014 libsuff= shlibsuff=
30017 case $LD in # libtool.m4 will add one of these switches to LD
30018 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
30019 libsuff= shlibsuff= libmagic=32-bit;;
30020 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
30021 libsuff=32 shlibsuff=N32 libmagic=N32;;
30022 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
30023 libsuff=64 shlibsuff=64 libmagic=64-bit;;
30024 *) libsuff= shlibsuff= libmagic=never-match;;
30028 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
30029 shlibpath_overrides_runpath=no
30030 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
30031 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
30032 hardcode_into_libs=yes
30035 # No shared lib support for Linux oldld, aout, or coff.
30036 linux*oldld* | linux*aout* | linux*coff*)
30040 # This must be Linux ELF.
30041 linux* | k*bsd*-gnu | kopensolaris*-gnu)
30045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30046 soname_spec='${libname}${release}${shared_ext}$major'
30047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
30048 shlibpath_var=LD_LIBRARY_PATH
30049 shlibpath_overrides_runpath=no
30051 # Some binutils ld are patched to set DT_RUNPATH
30052 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
30053 $as_echo_n "(cached) " >&6
30055 lt_cv_shlibpath_overrides_runpath=no
30056 save_LDFLAGS=$LDFLAGS
30057 save_libdir=$libdir
30058 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
30059 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
30060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30061 /* end confdefs.h. */
30071 if ac_fn_cxx_try_link "$LINENO"; then :
30072 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
30073 lt_cv_shlibpath_overrides_runpath=yes
30076 rm -f core conftest.err conftest.$ac_objext \
30077 conftest$ac_exeext conftest.$ac_ext
30078 LDFLAGS=$save_LDFLAGS
30079 libdir=$save_libdir
30083 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
30085 # This implies no fast_install, which is unacceptable.
30086 # Some rework will be needed to allow for fast_install
30087 # before this can be enabled.
30088 hardcode_into_libs=yes
30090 # Append ld.so.conf contents to the search path
30091 if test -f /etc/ld.so.conf; then
30092 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' ' '`
30093 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
30096 # We used to test for /lib/ld.so.1 and disable shared libraries on
30097 # powerpc, because MkLinux only supported shared libraries with the
30098 # GNU dynamic linker. Since this was broken with cross compilers,
30099 # most powerpc-linux boxes support dynamic linking these days and
30100 # people can always --disable-shared, the test was removed, and we
30101 # assume the GNU/Linux dynamic linker is in use.
30102 dynamic_linker='GNU/Linux ld.so'
30109 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
30110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
30111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
30112 dynamic_linker='NetBSD (a.out) ld.so'
30114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
30115 soname_spec='${libname}${release}${shared_ext}$major'
30116 dynamic_linker='NetBSD ld.elf_so'
30118 shlibpath_var=LD_LIBRARY_PATH
30119 shlibpath_overrides_runpath=yes
30120 hardcode_into_libs=yes
30125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30126 shlibpath_var=LD_LIBRARY_PATH
30127 shlibpath_overrides_runpath=yes
30134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30135 soname_spec='${libname}${release}${shared_ext}$major'
30136 shlibpath_var=LD_LIBRARY_PATH
30137 shlibpath_overrides_runpath=no
30138 hardcode_into_libs=yes
30139 dynamic_linker='ldqnx.so'
30144 sys_lib_dlsearch_path_spec="/usr/lib"
30146 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
30148 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
30149 *) need_version=no ;;
30151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
30152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
30153 shlibpath_var=LD_LIBRARY_PATH
30154 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
30156 openbsd2.[89] | openbsd2.[89].*)
30157 shlibpath_overrides_runpath=no
30160 shlibpath_overrides_runpath=yes
30164 shlibpath_overrides_runpath=yes
30169 libname_spec='$name'
30172 library_names_spec='$libname${shared_ext} $libname.a'
30173 dynamic_linker='OS/2 ld.exe'
30174 shlibpath_var=LIBPATH
30177 osf3* | osf4* | osf5*)
30181 soname_spec='${libname}${release}${shared_ext}$major'
30182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30183 shlibpath_var=LD_LIBRARY_PATH
30184 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
30185 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
30196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30197 soname_spec='${libname}${release}${shared_ext}$major'
30198 shlibpath_var=LD_LIBRARY_PATH
30199 shlibpath_overrides_runpath=yes
30200 hardcode_into_libs=yes
30201 # ldd complains unless libraries are executable
30202 postinstall_cmds='chmod +x $lib'
30207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
30208 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
30209 shlibpath_var=LD_LIBRARY_PATH
30210 shlibpath_overrides_runpath=yes
30211 if test "$with_gnu_ld" = yes; then
30219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30220 soname_spec='${libname}${release}${shared_ext}$major'
30221 shlibpath_var=LD_LIBRARY_PATH
30222 case $host_vendor in
30224 shlibpath_overrides_runpath=no
30226 runpath_var=LD_RUN_PATH
30234 shlibpath_overrides_runpath=no
30235 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
30241 if test -d /usr/nec ;then
30243 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
30244 soname_spec='$libname${shared_ext}.$major'
30245 shlibpath_var=LD_LIBRARY_PATH
30249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
30250 version_type=freebsd-elf
30253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
30254 soname_spec='${libname}${release}${shared_ext}$major'
30255 shlibpath_var=LD_LIBRARY_PATH
30256 shlibpath_overrides_runpath=yes
30257 hardcode_into_libs=yes
30258 if test "$with_gnu_ld" = yes; then
30259 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
30261 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
30264 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
30268 sys_lib_dlsearch_path_spec='/usr/lib'
30272 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
30276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30277 shlibpath_var=LD_LIBRARY_PATH
30278 shlibpath_overrides_runpath=no
30279 hardcode_into_libs=yes
30284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30285 soname_spec='${libname}${release}${shared_ext}$major'
30286 shlibpath_var=LD_LIBRARY_PATH
30293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
30294 $as_echo "$dynamic_linker" >&6; }
30295 test "$dynamic_linker" = no && can_build_shared=no
30297 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
30298 if test "$GCC" = yes; then
30299 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
30302 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
30303 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
30305 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
30306 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
30346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
30347 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
30348 hardcode_action_CXX=
30349 if test -n "$hardcode_libdir_flag_spec_CXX" ||
30350 test -n "$runpath_var_CXX" ||
30351 test "X$hardcode_automatic_CXX" = "Xyes" ; then
30353 # We can hardcode non-existent directories.
30354 if test "$hardcode_direct_CXX" != no &&
30355 # If the only mechanism to avoid hardcoding is shlibpath_var, we
30356 # have to relink, otherwise we might link with an installed library
30357 # when we should be linking with a yet-to-be-installed one
30358 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
30359 test "$hardcode_minus_L_CXX" != no; then
30360 # Linking always hardcodes the temporary library directory.
30361 hardcode_action_CXX=relink
30363 # We can link without hardcoding, and we can hardcode nonexisting dirs.
30364 hardcode_action_CXX=immediate
30367 # We cannot hardcode anything, or else we can only hardcode existing
30369 hardcode_action_CXX=unsupported
30371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
30372 $as_echo "$hardcode_action_CXX" >&6; }
30374 if test "$hardcode_action_CXX" = relink ||
30375 test "$inherit_rpath_CXX" = yes; then
30376 # Fast installation is not supported
30377 enable_fast_install=no
30378 elif test "$shlibpath_overrides_runpath" = yes ||
30379 test "$enable_shared" = no; then
30380 # Fast installation is not necessary
30381 enable_fast_install=needless
30390 fi # test -n "$compiler"
30393 CFLAGS=$lt_save_CFLAGS
30397 with_gnu_ld=$lt_save_with_gnu_ld
30398 lt_cv_path_LDCXX=$lt_cv_path_LD
30399 lt_cv_path_LD=$lt_save_path_LD
30400 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
30401 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
30402 fi # test "$_lt_caught_CXX_error" != yes
30405 ac_cpp='$CPP $CPPFLAGS'
30406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30414 # Check whether --with-gtest was given.
30415 if test "${with_gtest+set}" = set; then :
30416 withval=$with_gtest; try_gtest=$withval
30422 case "$try_gtest" in
30424 # Extract the first word of "gtest-config", so it can be a program name with args.
30425 set dummy gtest-config; ac_word=$2
30426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30427 $as_echo_n "checking for $ac_word... " >&6; }
30428 if ${ac_cv_path_GTEST_CONFIG+:} false; then :
30429 $as_echo_n "(cached) " >&6
30431 case $GTEST_CONFIG in
30433 ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
30436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30437 for as_dir in $PATH
30440 test -z "$as_dir" && as_dir=.
30441 for ac_exec_ext in '' $ac_executable_extensions; do
30442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30443 ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30454 GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
30455 if test -n "$GTEST_CONFIG"; then
30456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
30457 $as_echo "$GTEST_CONFIG" >&6; }
30459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30460 $as_echo "no" >&6; }
30464 { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
30465 case x${GTEST_CONFIG} in
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
30469 $as_echo_n "checking gtest version... " >&6; }
30470 gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
30471 case "$gtest_version_test" in
30475 GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
30476 GTEST_LIBS=`$GTEST_CONFIG --libs`
30477 GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
30478 GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`
30486 gtest_version=`$GTEST_CONFIG --version`
30489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
30490 $as_echo "($gtest_version) ok" >&6; }
30492 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
30493 $as_echo "($gtest_version) not ok" >&6; }
30496 { gtest_version_test=; unset gtest_version_test;}
30497 { gtest_version=; unset gtest_version;}
30501 GTEST_AVAILABLE_TRUE=
30502 GTEST_AVAILABLE_FALSE='#'
30504 GTEST_AVAILABLE_TRUE='#'
30505 GTEST_AVAILABLE_FALSE=
30511 # All libraries should be in various LIB_* variables now.
30513 # Sadly not. There is a gettext() check somewhere, and on Solaris this pulls
30514 # in -lintl -lgen, outside our "scope".
30516 ac_config_files="$ac_config_files Makefile"
30518 ac_config_files="$ac_config_files include/Makefile"
30520 ac_config_files="$ac_config_files scripts/Makefile"
30522 ac_config_files="$ac_config_files tests/Makefile"
30524 ac_config_files="$ac_config_files tests/fileHandlingTest.h"
30526 ac_config_files="$ac_config_files unity/Makefile"
30529 cat >confcache <<\_ACEOF
30530 # This file is a shell script that caches the results of configure
30531 # tests run on this system so they can be shared between configure
30532 # scripts and configure runs, see configure's option --config-cache.
30533 # It is not useful on other systems. If it contains results you don't
30534 # want to keep, you may remove or edit it.
30536 # config.status only pays attention to the cache file if you give it
30537 # the --recheck option to rerun configure.
30539 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30540 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30541 # following values.
30545 # The following way of writing the cache mishandles newlines in values,
30546 # but we know of no workaround that is simple, portable, and efficient.
30547 # So, we kill variables containing newlines.
30548 # Ultrix sh set writes to stderr and can't be redirected directly,
30549 # and sets the high bit in the cache file unless we assign to the vars.
30551 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30552 eval ac_val=\$$ac_var
30556 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30557 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30560 _ | IFS | as_nl) ;; #(
30561 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30562 *) { eval $ac_var=; unset $ac_var;} ;;
30568 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30569 *${as_nl}ac_space=\ *)
30570 # `set' does not quote correctly, so add quotes: double-quote
30571 # substitution turns \\\\ into \\, and sed turns \\ into \.
30574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30577 # `set' quotes correctly as required by POSIX, so do not add quotes.
30578 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30587 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30589 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30591 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30592 if test -w "$cache_file"; then
30593 if test "x$cache_file" != "x/dev/null"; then
30594 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30595 $as_echo "$as_me: updating cache $cache_file" >&6;}
30596 if test ! -f "$cache_file" || test -h "$cache_file"; then
30597 cat confcache >"$cache_file"
30599 case $cache_file in #(
30601 mv -f confcache "$cache_file"$$ &&
30602 mv -f "$cache_file"$$ "$cache_file" ;; #(
30604 mv -f confcache "$cache_file" ;;
30609 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30610 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30615 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30616 # Let make expand exec_prefix.
30617 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30619 DEFS=-DHAVE_CONFIG_H
30624 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30625 # 1. Remove the extension, and $U if already installed.
30626 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30627 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30628 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30629 # will be set to the directory where LIBOBJS objects are built.
30630 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30631 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30633 LIBOBJS=$ac_libobjs
30635 LTLIBOBJS=$ac_ltlibobjs
30638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
30639 $as_echo_n "checking that generated files are newer than configure... " >&6; }
30640 if test -n "$am_sleep_pid"; then
30641 # Hide warnings about reused PIDs.
30642 wait $am_sleep_pid 2>/dev/null
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
30645 $as_echo "done" >&6; }
30646 if test -n "$EXEEXT"; then
30648 am__EXEEXT_FALSE='#'
30650 am__EXEEXT_TRUE='#'
30654 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30655 as_fn_error $? "conditional \"AMDEP\" was never defined.
30656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30658 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30659 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
30660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30662 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30663 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
30664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30667 if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
30668 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
30669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30671 if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
30672 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
30673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30675 if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
30676 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
30677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30679 if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
30680 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
30681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30683 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
30684 as_fn_error $? "conditional \"PTHREADS\" was never defined.
30685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30687 if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
30688 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
30689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30691 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
30692 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
30693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30695 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
30696 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
30697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30699 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
30700 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
30701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30703 if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
30704 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
30705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30707 if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
30708 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
30709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30711 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30712 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
30713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30715 if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
30716 as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
30717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30720 : "${CONFIG_STATUS=./config.status}"
30722 ac_clean_files_save=$ac_clean_files
30723 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30724 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30725 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30727 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30729 # Generated by $as_me.
30730 # Run this file to recreate the current configuration.
30731 # Compiler output produced by configure, useful for debugging
30732 # configure, is in config.log if it exists.
30735 ac_cs_recheck=false
30738 SHELL=\${CONFIG_SHELL-$SHELL}
30741 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30742 ## -------------------- ##
30743 ## M4sh Initialization. ##
30744 ## -------------------- ##
30746 # Be more Bourne compatible
30747 DUALCASE=1; export DUALCASE # for MKS sh
30748 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30751 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30752 # is contrary to our usage. Disable this feature.
30753 alias -g '${1+"$@"}'='"$@"'
30754 setopt NO_GLOB_SUBST
30756 case `(set -o) 2>/dev/null` in #(
30768 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30769 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30770 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30771 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30772 # Prefer a ksh shell builtin over an external printf program on Solaris,
30773 # but without wasting forks for bash or zsh.
30774 if test -z "$BASH_VERSION$ZSH_VERSION" \
30775 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30776 as_echo='print -r --'
30777 as_echo_n='print -rn --'
30778 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30779 as_echo='printf %s\n'
30780 as_echo_n='printf %s'
30782 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30783 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30784 as_echo_n='/usr/ucb/echo -n'
30786 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30787 as_echo_n_body='eval
30791 expr "X$arg" : "X\\(.*\\)$as_nl";
30792 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30794 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30796 export as_echo_n_body
30797 as_echo_n='sh -c $as_echo_n_body as_echo'
30799 export as_echo_body
30800 as_echo='sh -c $as_echo_body as_echo'
30803 # The user is always right.
30804 if test "${PATH_SEPARATOR+set}" != set; then
30806 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30807 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30814 # We need space, tab and new line, in precisely that order. Quoting is
30815 # there to prevent editors from complaining about space-tab.
30816 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30817 # splitting by setting IFS to empty value.)
30820 # Find who we are. Look in the path if we contain no directory separator.
30823 *[\\/]* ) as_myself=$0 ;;
30824 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30825 for as_dir in $PATH
30828 test -z "$as_dir" && as_dir=.
30829 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30835 # We did not find ourselves, most probably we were run as `sh COMMAND'
30836 # in which case we are not to be found in the path.
30837 if test "x$as_myself" = x; then
30840 if test ! -f "$as_myself"; then
30841 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30845 # Unset variables that we do not need and which cause bugs (e.g. in
30846 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30847 # suppresses any "Segmentation fault" message there. '((' could
30848 # trigger a bug in pdksh 5.2.14.
30849 for as_var in BASH_ENV ENV MAIL MAILPATH
30850 do eval test x\${$as_var+set} = xset \
30851 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30864 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30867 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30868 # ----------------------------------------
30869 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30870 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30871 # script with STATUS, using 1 if that was 0.
30874 as_status=$1; test $as_status -eq 0 && as_status=1
30876 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30877 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30879 $as_echo "$as_me: error: $2" >&2
30880 as_fn_exit $as_status
30884 # as_fn_set_status STATUS
30885 # -----------------------
30886 # Set $? to STATUS, without forking.
30887 as_fn_set_status ()
30890 } # as_fn_set_status
30892 # as_fn_exit STATUS
30893 # -----------------
30894 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30898 as_fn_set_status $1
30904 # Portably unset VAR.
30907 { eval $1=; unset $1;}
30909 as_unset=as_fn_unset
30910 # as_fn_append VAR VALUE
30911 # ----------------------
30912 # Append the text in VALUE to the end of the definition contained in VAR. Take
30913 # advantage of any shell optimizations that allow amortized linear growth over
30914 # repeated appends, instead of the typical quadratic growth present in naive
30916 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30917 eval 'as_fn_append ()
30928 # as_fn_arith ARG...
30929 # ------------------
30930 # Perform arithmetic evaluation on the ARGs, and store the result in the
30931 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30932 # must be portable across $(()) and expr.
30933 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30934 eval 'as_fn_arith ()
30941 as_val=`expr "$@" || test $? -eq 1`
30946 if expr a : '\(a\)' >/dev/null 2>&1 &&
30947 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30953 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30954 as_basename=basename
30959 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30965 as_me=`$as_basename -- "$0" ||
30966 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30967 X"$0" : 'X\(//\)$' \| \
30968 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30970 sed '/^.*\/\([^/][^/]*\)\/*$/{
30984 # Avoid depending upon Character Ranges.
30985 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30986 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30987 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30988 as_cr_digits='0123456789'
30989 as_cr_alnum=$as_cr_Letters$as_cr_digits
30991 ECHO_C= ECHO_N= ECHO_T=
30992 case `echo -n x` in #(((((
30994 case `echo 'xy\c'` in
30995 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30997 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31004 rm -f conf$$ conf$$.exe conf$$.file
31005 if test -d conf$$.dir; then
31006 rm -f conf$$.dir/conf$$.file
31009 mkdir conf$$.dir 2>/dev/null
31011 if (echo >conf$$.file) 2>/dev/null; then
31012 if ln -s conf$$.file conf$$ 2>/dev/null; then
31014 # ... but there are two gotchas:
31015 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31016 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31017 # In both cases, we have to default to `cp -pR'.
31018 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31020 elif ln conf$$.file conf$$ 2>/dev/null; then
31028 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31029 rmdir conf$$.dir 2>/dev/null
31034 # Create "$as_dir" as a directory, including parents if necessary.
31039 -*) as_dir=./$as_dir;;
31041 test -d "$as_dir" || eval $as_mkdir_p || {
31045 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31046 *) as_qdir=$as_dir;;
31048 as_dirs="'$as_qdir' $as_dirs"
31049 as_dir=`$as_dirname -- "$as_dir" ||
31050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31051 X"$as_dir" : 'X\(//\)[^/]' \| \
31052 X"$as_dir" : 'X\(//\)$' \| \
31053 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31054 $as_echo X"$as_dir" |
31055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31059 /^X\(\/\/\)[^/].*/{
31072 test -d "$as_dir" && break
31074 test -z "$as_dirs" || eval "mkdir $as_dirs"
31075 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31079 if mkdir -p . 2>/dev/null; then
31080 as_mkdir_p='mkdir -p "$as_dir"'
31082 test -d ./-p && rmdir ./-p
31087 # as_fn_executable_p FILE
31088 # -----------------------
31089 # Test if FILE is an executable regular file.
31090 as_fn_executable_p ()
31092 test -f "$1" && test -x "$1"
31093 } # as_fn_executable_p
31094 as_test_x='test -x'
31095 as_executable_p=as_fn_executable_p
31097 # Sed expression to map a string onto a valid CPP name.
31098 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31100 # Sed expression to map a string onto a valid variable name.
31101 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31105 ## ----------------------------------- ##
31106 ## Main body of $CONFIG_STATUS script. ##
31107 ## ----------------------------------- ##
31109 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31112 # Save the log message, to keep $0 and so on meaningful, and to
31113 # report actual input values of CONFIG_FILES etc. instead of their
31114 # values after options handling.
31116 This file was extended by sntp $as_me 4.2.8p7, which was
31117 generated by GNU Autoconf 2.69. Invocation command line was
31119 CONFIG_FILES = $CONFIG_FILES
31120 CONFIG_HEADERS = $CONFIG_HEADERS
31121 CONFIG_LINKS = $CONFIG_LINKS
31122 CONFIG_COMMANDS = $CONFIG_COMMANDS
31125 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31130 case $ac_config_files in *"
31131 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31134 case $ac_config_headers in *"
31135 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31140 # Files that config.status was made for.
31141 config_files="$ac_config_files"
31142 config_headers="$ac_config_headers"
31143 config_commands="$ac_config_commands"
31147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31149 \`$as_me' instantiates files and other configuration actions
31150 from templates according to the current configuration. Unless the files
31151 and actions are specified as TAGs, all are instantiated by default.
31153 Usage: $0 [OPTION]... [TAG]...
31155 -h, --help print this help, then exit
31156 -V, --version print version number and configuration settings, then exit
31157 --config print configuration, then exit
31158 -q, --quiet, --silent
31159 do not print progress messages
31160 -d, --debug don't remove temporary files
31161 --recheck update $as_me by reconfiguring in the same conditions
31162 --file=FILE[:TEMPLATE]
31163 instantiate the configuration file FILE
31164 --header=FILE[:TEMPLATE]
31165 instantiate the configuration header FILE
31167 Configuration files:
31170 Configuration headers:
31173 Configuration commands:
31176 Report bugs to <http://bugs.ntp.org./>.
31177 sntp home page: <http://www.ntp.org./>."
31180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31181 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31183 sntp config.status 4.2.8p7
31184 configured by $0, generated by GNU Autoconf 2.69,
31185 with options \\"\$ac_cs_config\\"
31187 Copyright (C) 2012 Free Software Foundation, Inc.
31188 This config.status script is free software; the Free Software Foundation
31189 gives unlimited permission to copy, distribute and modify it."
31196 test -n "\$AWK" || AWK=awk
31199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31200 # The default lists apply if the user does not specify any file.
31206 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31207 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31211 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31223 # Handling of the options.
31224 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31226 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31227 $as_echo "$ac_cs_version"; exit ;;
31228 --config | --confi | --conf | --con | --co | --c )
31229 $as_echo "$ac_cs_config"; exit ;;
31230 --debug | --debu | --deb | --de | --d | -d )
31232 --file | --fil | --fi | --f )
31235 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31236 '') as_fn_error $? "missing file argument" ;;
31238 as_fn_append CONFIG_FILES " '$ac_optarg'"
31239 ac_need_defaults=false;;
31240 --header | --heade | --head | --hea )
31243 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31245 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31246 ac_need_defaults=false;;
31248 # Conflict between --help and --header
31249 as_fn_error $? "ambiguous option: \`$1'
31250 Try \`$0 --help' for more information.";;
31251 --help | --hel | -h )
31252 $as_echo "$ac_cs_usage"; exit ;;
31253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31254 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31257 # This is an error.
31258 -*) as_fn_error $? "unrecognized option: \`$1'
31259 Try \`$0 --help' for more information." ;;
31261 *) as_fn_append ac_config_targets " $1"
31262 ac_need_defaults=false ;;
31268 ac_configure_extra_args=
31270 if $ac_cs_silent; then
31272 ac_configure_extra_args="$ac_configure_extra_args --silent"
31276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31277 if \$ac_cs_recheck; then
31278 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31280 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31281 CONFIG_SHELL='$SHELL'
31282 export CONFIG_SHELL
31287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31291 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31292 ## Running $as_me. ##
31298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31302 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31305 # The HP-UX ksh and POSIX shell print the target directory to stdout
31306 # if CDPATH is set.
31307 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31309 sed_quote_subst='$sed_quote_subst'
31310 double_quote_subst='$double_quote_subst'
31311 delay_variable_subst='$delay_variable_subst'
31312 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31313 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31314 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31315 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31316 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31317 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31318 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31319 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31320 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31321 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31322 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31323 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31324 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31325 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31326 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31327 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31328 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31329 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31330 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31331 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31332 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31333 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31334 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31335 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31336 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31337 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31338 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31339 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31340 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31341 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31342 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31343 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31344 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31345 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31346 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31347 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31348 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31349 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31350 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31351 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31352 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31353 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31354 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31355 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31356 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31357 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31358 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31359 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31360 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31361 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31362 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31363 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31364 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31365 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31366 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31367 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"`'
31368 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31369 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31370 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31371 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31372 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31373 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31374 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31375 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31376 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31377 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31378 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31379 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31380 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31381 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31382 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31383 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31384 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31385 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31386 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31387 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31388 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31389 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31390 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31391 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31392 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31393 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31394 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31395 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31396 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31397 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31398 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31399 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31400 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31401 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31402 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31403 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31404 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31405 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31406 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31407 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31408 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31409 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31410 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31411 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31412 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31413 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31414 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31415 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31416 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31417 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31418 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31419 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31420 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31421 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31422 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31423 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31424 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31425 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31426 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31427 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31428 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31429 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31430 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31431 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31432 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31433 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31434 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31435 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31436 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31437 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31438 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31439 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31440 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31441 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31442 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31443 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31444 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31445 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31446 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31447 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31448 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31449 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31450 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31451 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31452 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31453 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31454 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31455 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31456 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31457 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31458 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31459 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31460 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31461 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31462 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31463 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31464 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31465 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31466 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31467 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31468 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31469 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31470 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31471 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31472 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31473 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31474 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31475 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31476 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31477 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31478 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31479 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31480 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31481 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31482 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31483 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31484 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31485 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31486 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31487 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31488 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31489 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31490 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31491 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31492 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31493 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31494 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31495 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31496 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31499 LTCFLAGS='$LTCFLAGS'
31500 compiler='$compiler_DEFAULT'
31502 # A function that is used when there is no print builtin or printf.
31503 func_fallback_echo ()
31505 eval 'cat <<_LTECHO_EOF
31510 # Quote evaled strings.
31524 deplibs_check_method \
31529 sharedlib_from_linklib_cmd \
31532 archiver_list_spec \
31538 lt_cv_sys_global_symbol_pipe \
31539 lt_cv_sys_global_symbol_to_cdecl \
31540 lt_cv_sys_global_symbol_to_c_name_address \
31541 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31542 nm_file_list_spec \
31543 lt_prog_compiler_no_builtin_flag \
31544 lt_prog_compiler_pic \
31545 lt_prog_compiler_wl \
31546 lt_prog_compiler_static \
31547 lt_cv_prog_compiler_c_o \
31556 export_dynamic_flag_spec \
31557 whole_archive_flag_spec \
31558 compiler_needs_object \
31560 allow_undefined_flag \
31561 no_undefined_flag \
31562 hardcode_libdir_flag_spec \
31563 hardcode_libdir_flag_spec_ld \
31564 hardcode_libdir_separator \
31568 variables_saved_for_relink \
31570 library_names_spec \
31572 install_override_mode \
31576 compiler_lib_search_dirs \
31581 compiler_lib_search_path \
31585 lt_prog_compiler_no_builtin_flag_CXX \
31586 lt_prog_compiler_pic_CXX \
31587 lt_prog_compiler_wl_CXX \
31588 lt_prog_compiler_static_CXX \
31589 lt_cv_prog_compiler_c_o_CXX \
31590 export_dynamic_flag_spec_CXX \
31591 whole_archive_flag_spec_CXX \
31592 compiler_needs_object_CXX \
31594 allow_undefined_flag_CXX \
31595 no_undefined_flag_CXX \
31596 hardcode_libdir_flag_spec_CXX \
31597 hardcode_libdir_flag_spec_ld_CXX \
31598 hardcode_libdir_separator_CXX \
31599 exclude_expsyms_CXX \
31600 include_expsyms_CXX \
31601 file_list_spec_CXX \
31602 compiler_lib_search_dirs_CXX \
31603 predep_objects_CXX \
31604 postdep_objects_CXX \
31607 compiler_lib_search_path_CXX; do
31608 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31609 *[\\\\\\\`\\"\\\$]*)
31610 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31613 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31618 # Double-quote double-evaled strings.
31619 for var in reload_cmds \
31620 old_postinstall_cmds \
31621 old_postuninstall_cmds \
31623 extract_expsyms_cmds \
31624 old_archive_from_new_cmds \
31625 old_archive_from_expsyms_cmds \
31627 archive_expsym_cmds \
31629 module_expsym_cmds \
31630 export_symbols_cmds \
31634 postuninstall_cmds \
31636 sys_lib_search_path_spec \
31637 sys_lib_dlsearch_path_spec \
31639 old_archive_cmds_CXX \
31640 old_archive_from_new_cmds_CXX \
31641 old_archive_from_expsyms_cmds_CXX \
31643 archive_expsym_cmds_CXX \
31645 module_expsym_cmds_CXX \
31646 export_symbols_cmds_CXX \
31648 postlink_cmds_CXX; do
31649 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31650 *[\\\\\\\`\\"\\\$]*)
31651 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31654 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31659 ac_aux_dir='$ac_aux_dir'
31660 xsi_shell='$xsi_shell'
31661 lt_shell_append='$lt_shell_append'
31663 # See if we are running on zsh, and set the options which allow our
31664 # commands through without removal of \ escapes INIT.
31665 if test -n "\${ZSH_VERSION+set}" ; then
31666 setopt NO_GLOB_SUBST
31672 TIMESTAMP='$TIMESTAMP'
31683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31685 # Handling of arguments.
31686 for ac_config_target in $ac_config_targets
31688 case $ac_config_target in
31689 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31690 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31691 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31692 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
31693 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31694 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
31695 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31696 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
31697 "tests/fileHandlingTest.h") CONFIG_FILES="$CONFIG_FILES tests/fileHandlingTest.h" ;;
31698 "unity/Makefile") CONFIG_FILES="$CONFIG_FILES unity/Makefile" ;;
31700 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31705 # If the user did not use the arguments to specify the items to instantiate,
31706 # then the envvar interface is used. Set only those that are not.
31707 # We use the long form for the default assignment because of an extremely
31708 # bizarre bug on SunOS 4.1.3.
31709 if $ac_need_defaults; then
31710 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31711 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31712 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31715 # Have a temporary directory for convenience. Make it in the build tree
31716 # simply because there is no reason against having it here, and in addition,
31717 # creating and moving files from /tmp can sometimes cause problems.
31718 # Hook for its removal unless debugging.
31719 # Note that there is a small window in which the directory will not be cleaned:
31720 # after its creation but before its name has been assigned to `$tmp'.
31724 trap 'exit_status=$?
31725 : "${ac_tmp:=$tmp}"
31726 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31728 trap 'as_fn_exit 1' 1 2 13 15
31730 # Create a (secure) tmp directory for tmp files.
31733 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31737 tmp=./conf$$-$RANDOM
31738 (umask 077 && mkdir "$tmp")
31739 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31742 # Set up the scripts for CONFIG_FILES section.
31743 # No need to generate them if there are no CONFIG_FILES.
31744 # This happens for instance with `./config.status config.h'.
31745 if test -n "$CONFIG_FILES"; then
31748 ac_cr=`echo X | tr X '\015'`
31749 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31750 # But we know of no other shell where ac_cr would be empty at this
31751 # point, so we can use a bashism as a fallback.
31752 if test "x$ac_cr" = x; then
31753 eval ac_cr=\$\'\\r\'
31755 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31756 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31759 ac_cs_awk_cr=$ac_cr
31762 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31767 echo "cat >conf$$subs.awk <<_ACEOF" &&
31768 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31770 } >conf$$subs.sh ||
31771 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31772 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31774 for ac_last_try in false false false false false :; do
31775 . ./conf$$subs.sh ||
31776 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31778 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31779 if test $ac_delim_n = $ac_delim_num; then
31781 elif $ac_last_try; then
31782 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31784 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31787 rm -f conf$$subs.sh
31789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31790 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31794 s/^/S["/; s/!.*/"]=/
31804 s/\(.\{148\}\)..*/\1/
31806 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31811 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31818 s/\(.\{148\}\)..*/\1/
31820 s/["\\]/\\&/g; s/^/"/; s/$/"/
31824 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31829 ' <conf$$subs.awk | sed '
31834 ' >>$CONFIG_STATUS || ac_write_fail=1
31835 rm -f conf$$subs.awk
31836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31838 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31839 for (key in S) S_is_set[key] = 1
31845 nfields = split(line, field, "@")
31847 len = length(field[1])
31848 for (i = 2; i < nfields; i++) {
31850 keylen = length(key)
31851 if (S_is_set[key]) {
31853 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31854 len += length(value) + length(field[++i])
31865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31866 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31867 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31870 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31871 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31874 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31875 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31876 # trailing colons and then remove the whole line if VPATH becomes empty
31877 # (actually we leave an empty line to preserve line numbers).
31878 if test "x$srcdir" = x.; then
31879 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31898 fi # test -n "$CONFIG_FILES"
31900 # Set up the scripts for CONFIG_HEADERS section.
31901 # No need to generate them if there are no CONFIG_HEADERS.
31902 # This happens for instance with `./config.status Makefile'.
31903 if test -n "$CONFIG_HEADERS"; then
31904 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31908 # Transform confdefs.h into an awk script `defines.awk', embedded as
31909 # here-document in config.status, that substitutes the proper values into
31910 # config.h.in to produce config.h.
31912 # Create a delimiter string that does not exist in confdefs.h, to ease
31913 # handling of long lines.
31915 for ac_last_try in false false :; do
31916 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31917 if test -z "$ac_tt"; then
31919 elif $ac_last_try; then
31920 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31922 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31926 # For the awk script, D is an array of macro values keyed by name,
31927 # likewise P contains macro parameters if any. Preserve backslash
31928 # newline sequences.
31930 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31932 s/.\{148\}/&'"$ac_delim"'/g
31935 s/^[ ]*#[ ]*define[ ][ ]*/ /
31942 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31944 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31948 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31949 D["\1"]=" \3\\\\\\n"\\/p
31951 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31956 s/.\{148\}/&'"$ac_delim"'/g
31961 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31964 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31966 ' <confdefs.h | sed '
31967 s/'"$ac_delim"'/"\\\
31968 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31971 for (key in D) D_is_set[key] = 1
31974 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31976 split(line, arg, " ")
31977 if (arg[1] == "#") {
31981 defundef = substr(arg[1], 2)
31984 split(mac1, mac2, "(") #)
31986 prefix = substr(line, 1, index(line, defundef) - 1)
31987 if (D_is_set[macro]) {
31988 # Preserve the white space surrounding the "#".
31989 print prefix "define", macro P[macro] D[macro]
31992 # Replace #undef with comments. This is necessary, for example,
31993 # in the case of _POSIX_SOURCE, which is predefined and required
31994 # on some systems where configure will not decide to define it.
31995 if (defundef == "undef") {
31996 print "/*", prefix defundef, macro, "*/"
32004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32005 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32006 fi # test -n "$CONFIG_HEADERS"
32009 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32014 :[FHLC]) ac_mode=$ac_tag; continue;;
32016 case $ac_mode$ac_tag in
32018 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32019 :[FH]-) ac_tag=-:-;;
32020 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32037 -) ac_f="$ac_tmp/stdin";;
32038 *) # Look for the file first in the build tree, then in the source tree
32039 # (if the path is not absolute). The absolute path cannot be DOS-style,
32040 # because $ac_f cannot contain `:'.
32044 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32046 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32048 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32049 as_fn_append ac_file_inputs " '$ac_f'"
32052 # Let's still pretend it is `configure' which instantiates (i.e., don't
32053 # use $as_me), people would be surprised to read:
32054 # /* config.h. Generated by config.status. */
32055 configure_input='Generated from '`
32056 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32058 if test x"$ac_file" != x-; then
32059 configure_input="$ac_file. $configure_input"
32060 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32061 $as_echo "$as_me: creating $ac_file" >&6;}
32063 # Neutralize special characters interpreted by sed in replacement strings.
32064 case $configure_input in #(
32065 *\&* | *\|* | *\\* )
32066 ac_sed_conf_input=`$as_echo "$configure_input" |
32067 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32068 *) ac_sed_conf_input=$configure_input;;
32072 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32073 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32078 ac_dir=`$as_dirname -- "$ac_file" ||
32079 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32080 X"$ac_file" : 'X\(//\)[^/]' \| \
32081 X"$ac_file" : 'X\(//\)$' \| \
32082 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32083 $as_echo X"$ac_file" |
32084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32088 /^X\(\/\/\)[^/].*/{
32101 as_dir="$ac_dir"; as_fn_mkdir_p
32105 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32107 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32108 # A ".." for each directory in $ac_dir_suffix.
32109 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32110 case $ac_top_builddir_sub in
32111 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32112 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32115 ac_abs_top_builddir=$ac_pwd
32116 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32117 # for backward compatibility:
32118 ac_top_builddir=$ac_top_build_prefix
32121 .) # We are building in place.
32123 ac_top_srcdir=$ac_top_builddir_sub
32124 ac_abs_top_srcdir=$ac_pwd ;;
32125 [\\/]* | ?:[\\/]* ) # Absolute name.
32126 ac_srcdir=$srcdir$ac_dir_suffix;
32127 ac_top_srcdir=$srcdir
32128 ac_abs_top_srcdir=$srcdir ;;
32129 *) # Relative name.
32130 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32131 ac_top_srcdir=$ac_top_build_prefix$srcdir
32132 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32134 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32144 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32145 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32147 ac_MKDIR_P=$MKDIR_P
32149 [\\/$]* | ?:[\\/]* ) ;;
32150 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32155 # If the template does not know about datarootdir, expand it.
32156 # FIXME: This hack should be removed a few years after 2.60.
32157 ac_datarootdir_hack=; ac_datarootdir_seen=
32168 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32169 *datarootdir*) ac_datarootdir_seen=yes;;
32170 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32172 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32175 ac_datarootdir_hack='
32176 s&@datadir@&$datadir&g
32177 s&@docdir@&$docdir&g
32178 s&@infodir@&$infodir&g
32179 s&@localedir@&$localedir&g
32180 s&@mandir@&$mandir&g
32181 s&\\\${datarootdir}&$datarootdir&g' ;;
32185 # Neutralize VPATH when `$srcdir' = `.'.
32186 # Shell code in configure.ac might set extrasub.
32187 # FIXME: do we really want to maintain this feature?
32188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32189 ac_sed_extra="$ac_vpsub
32192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32194 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32195 s|@configure_input@|$ac_sed_conf_input|;t t
32196 s&@top_builddir@&$ac_top_builddir_sub&;t t
32197 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32198 s&@srcdir@&$ac_srcdir&;t t
32199 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32200 s&@top_srcdir@&$ac_top_srcdir&;t t
32201 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32202 s&@builddir@&$ac_builddir&;t t
32203 s&@abs_builddir@&$ac_abs_builddir&;t t
32204 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32205 s&@INSTALL@&$ac_INSTALL&;t t
32206 s&@MKDIR_P@&$ac_MKDIR_P&;t t
32207 $ac_datarootdir_hack
32209 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
32210 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32212 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32213 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32214 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32215 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32217 which seems to be undefined. Please make sure it is defined" >&5
32218 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32219 which seems to be undefined. Please make sure it is defined" >&2;}
32221 rm -f "$ac_tmp/stdin"
32223 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32224 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32232 if test x"$ac_file" != x-; then
32234 $as_echo "/* $configure_input */" \
32235 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32236 } >"$ac_tmp/config.h" \
32237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32238 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32239 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32240 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32243 mv "$ac_tmp/config.h" "$ac_file" \
32244 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32247 $as_echo "/* $configure_input */" \
32248 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32249 || as_fn_error $? "could not create -" "$LINENO" 5
32251 # Compute "$ac_file"'s index in $config_headers.
32254 for _am_header in $config_headers :; do
32255 case $_am_header in
32256 $_am_arg | $_am_arg:* )
32259 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32262 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32263 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32264 X"$_am_arg" : 'X\(//\)[^/]' \| \
32265 X"$_am_arg" : 'X\(//\)$' \| \
32266 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32267 $as_echo X"$_am_arg" |
32268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32272 /^X\(\/\/\)[^/].*/{
32284 s/.*/./; q'`/stamp-h$_am_stamp_count
32287 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32288 $as_echo "$as_me: executing $ac_file commands" >&6;}
32293 case $ac_file$ac_mode in
32294 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32295 # Older Autoconf quotes --file arguments for eval, but not when files
32296 # are listed without --file. Let's play safe and only enable the eval
32297 # if we detect the quoting.
32298 case $CONFIG_FILES in
32299 *\'*) eval set x "$CONFIG_FILES" ;;
32300 *) set x $CONFIG_FILES ;;
32305 # Strip MF so we end up with the name of the file.
32306 mf=`echo "$mf" | sed -e 's/:.*$//'`
32307 # Check whether this is an Automake generated Makefile or not.
32308 # We used to match only the files named 'Makefile.in', but
32309 # some people rename them; so instead we look at the file content.
32310 # Grep'ing the first line is not enough: some people post-process
32311 # each Makefile.in and add a new line on top of each file to say so.
32312 # Grep'ing the whole file is not good either: AIX grep has a line
32313 # limit of 2048, but all sed's we know have understand at least 4000.
32314 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
32315 dirpart=`$as_dirname -- "$mf" ||
32316 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32317 X"$mf" : 'X\(//\)[^/]' \| \
32318 X"$mf" : 'X\(//\)$' \| \
32319 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32325 /^X\(\/\/\)[^/].*/{
32341 # Extract the definition of DEPDIR, am__include, and am__quote
32342 # from the Makefile without running 'make'.
32343 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32344 test -z "$DEPDIR" && continue
32345 am__include=`sed -n 's/^am__include = //p' < "$mf"`
32346 test -z "$am__include" && continue
32347 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32348 # Find all dependency output files, they are included files with
32349 # $(DEPDIR) in their names. We invoke sed twice because it is the
32350 # simplest approach to changing $(DEPDIR) to its actual value in the
32352 for file in `sed -n "
32353 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32354 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
32355 # Make sure the directory exists.
32356 test -f "$dirpart/$file" && continue
32357 fdir=`$as_dirname -- "$file" ||
32358 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32359 X"$file" : 'X\(//\)[^/]' \| \
32360 X"$file" : 'X\(//\)$' \| \
32361 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32362 $as_echo X"$file" |
32363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32367 /^X\(\/\/\)[^/].*/{
32380 as_dir=$dirpart/$fdir; as_fn_mkdir_p
32381 # echo "creating $dirpart/$file"
32382 echo '# dummy' > "$dirpart/$file"
32389 # See if we are running on zsh, and set the options which allow our
32390 # commands through without removal of \ escapes.
32391 if test -n "${ZSH_VERSION+set}" ; then
32392 setopt NO_GLOB_SUBST
32395 cfgfile="${ofile}T"
32396 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32399 cat <<_LT_EOF >> "$cfgfile"
32402 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32403 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32404 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32405 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32407 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32408 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32410 # Written by Gordon Matzigkeit, 1996
32412 # This file is part of GNU Libtool.
32414 # GNU Libtool is free software; you can redistribute it and/or
32415 # modify it under the terms of the GNU General Public License as
32416 # published by the Free Software Foundation; either version 2 of
32417 # the License, or (at your option) any later version.
32419 # As a special exception to the GNU General Public License,
32420 # if you distribute this file as part of a program or library that
32421 # is built using GNU Libtool, you may include this file under the
32422 # same distribution terms that you use for the rest of that program.
32424 # GNU Libtool is distributed in the hope that it will be useful,
32425 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32426 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32427 # GNU General Public License for more details.
32429 # You should have received a copy of the GNU General Public License
32430 # along with GNU Libtool; see the file COPYING. If not, a copy
32431 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32432 # obtained by writing to the Free Software Foundation, Inc.,
32433 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32436 # The names of the tagged configurations supported by this script.
32437 available_tags="CXX "
32439 # ### BEGIN LIBTOOL CONFIG
32441 # A sed program that does not truncate output.
32444 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32445 Xsed="\$SED -e 1s/^X//"
32447 # A grep program that handles long lines.
32453 # A literal string matcher.
32456 # Shell to use when invoking shell scripts.
32459 # An echo program that protects backslashes.
32462 # Whether or not to build shared libraries.
32463 build_libtool_libs=$enable_shared
32465 # Which release of libtool.m4 was used?
32466 macro_version=$macro_version
32467 macro_revision=$macro_revision
32469 # Whether or not to build static libraries.
32470 build_old_libs=$enable_static
32472 # What type of objects to build.
32475 # Whether or not to optimize for fast installation.
32476 fast_install=$enable_fast_install
32479 host_alias=$host_alias
32483 # The build system.
32484 build_alias=$build_alias
32488 # A BSD- or MS-compatible name lister.
32491 # Whether we need soft or hard links.
32494 # What is the maximum length of a command?
32495 max_cmd_len=$max_cmd_len
32497 # Object file suffix (normally "o").
32500 # Executable file suffix (normally "").
32503 # whether the shell understands "unset".
32506 # turn spaces into newlines.
32509 # turn newlines into spaces.
32512 # convert \$build file names to \$host format.
32513 to_host_file_cmd=$lt_cv_to_host_file_cmd
32515 # convert \$build files to toolchain format.
32516 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32518 # An object symbol dumper.
32519 OBJDUMP=$lt_OBJDUMP
32521 # Method to check whether dependent libraries are shared objects.
32522 deplibs_check_method=$lt_deplibs_check_method
32524 # Command to use when deplibs_check_method = "file_magic".
32525 file_magic_cmd=$lt_file_magic_cmd
32527 # How to find potential files when deplibs_check_method = "file_magic".
32528 file_magic_glob=$lt_file_magic_glob
32530 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32531 want_nocaseglob=$lt_want_nocaseglob
32533 # DLL creation program.
32534 DLLTOOL=$lt_DLLTOOL
32536 # Command to associate shared and link libraries.
32537 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32542 # Flags to create an archive.
32543 AR_FLAGS=$lt_AR_FLAGS
32545 # How to feed a file listing to the archiver.
32546 archiver_list_spec=$lt_archiver_list_spec
32548 # A symbol stripping program.
32551 # Commands used to install an old-style archive.
32553 old_postinstall_cmds=$lt_old_postinstall_cmds
32554 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32556 # Whether to use a lock for old archive extraction.
32557 lock_old_archive_extraction=$lock_old_archive_extraction
32562 # LTCC compiler flags.
32563 LTCFLAGS=$lt_CFLAGS
32565 # Take the output of nm and produce a listing of raw symbols and C names.
32566 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32568 # Transform the output of nm in a proper C declaration.
32569 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32571 # Transform the output of nm in a C name address pair.
32572 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32574 # Transform the output of nm in a C name address pair when lib prefix is needed.
32575 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32577 # Specify filename containing input files for \$NM.
32578 nm_file_list_spec=$lt_nm_file_list_spec
32580 # The root where to search for dependent libraries,and in which our libraries should be installed.
32581 lt_sysroot=$lt_sysroot
32583 # The name of the directory that contains temporary libtool files.
32586 # Used to examine libraries when file_magic_cmd begins with "file".
32587 MAGIC_CMD=$MAGIC_CMD
32589 # Must we lock files when doing compilation?
32590 need_locks=$lt_need_locks
32593 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32595 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32596 DSYMUTIL=$lt_DSYMUTIL
32598 # Tool to change global to local symbols on Mac OS X.
32601 # Tool to manipulate fat objects and archives on Mac OS X.
32604 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32607 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32608 OTOOL64=$lt_OTOOL64
32610 # Old archive suffix (normally "a").
32613 # Shared library suffix (normally ".so").
32614 shrext_cmds=$lt_shrext_cmds
32616 # The commands to extract the exported symbol list from a shared archive.
32617 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32619 # Variables whose values should be saved in libtool wrapper scripts and
32620 # restored at link time.
32621 variables_saved_for_relink=$lt_variables_saved_for_relink
32623 # Do we need the "lib" prefix for modules?
32624 need_lib_prefix=$need_lib_prefix
32626 # Do we need a version for libraries?
32627 need_version=$need_version
32629 # Library versioning type.
32630 version_type=$version_type
32632 # Shared library runtime path variable.
32633 runpath_var=$runpath_var
32635 # Shared library path variable.
32636 shlibpath_var=$shlibpath_var
32638 # Is shlibpath searched before the hard-coded library search path?
32639 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32641 # Format of library name prefix.
32642 libname_spec=$lt_libname_spec
32644 # List of archive names. First name is the real one, the rest are links.
32645 # The last name is the one that the linker finds with -lNAME
32646 library_names_spec=$lt_library_names_spec
32648 # The coded name of the library, if different from the real name.
32649 soname_spec=$lt_soname_spec
32651 # Permission mode override for installation of shared libraries.
32652 install_override_mode=$lt_install_override_mode
32654 # Command to use after installation of a shared archive.
32655 postinstall_cmds=$lt_postinstall_cmds
32657 # Command to use after uninstallation of a shared archive.
32658 postuninstall_cmds=$lt_postuninstall_cmds
32660 # Commands used to finish a libtool library installation in a directory.
32661 finish_cmds=$lt_finish_cmds
32663 # As "finish_cmds", except a single script fragment to be evaled but
32665 finish_eval=$lt_finish_eval
32667 # Whether we should hardcode library paths into libraries.
32668 hardcode_into_libs=$hardcode_into_libs
32670 # Compile-time system search path for libraries.
32671 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32673 # Run-time system search path for libraries.
32674 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32676 # Whether dlopen is supported.
32677 dlopen_support=$enable_dlopen
32679 # Whether dlopen of programs is supported.
32680 dlopen_self=$enable_dlopen_self
32682 # Whether dlopen of statically linked programs is supported.
32683 dlopen_self_static=$enable_dlopen_self_static
32685 # Commands to strip libraries.
32686 old_striplib=$lt_old_striplib
32687 striplib=$lt_striplib
32690 # The linker used to build libraries.
32693 # How to create reloadable object files.
32694 reload_flag=$lt_reload_flag
32695 reload_cmds=$lt_reload_cmds
32697 # Commands used to build an old-style archive.
32698 old_archive_cmds=$lt_old_archive_cmds
32700 # A language specific compiler.
32703 # Is the compiler the GNU compiler?
32706 # Compiler flag to turn off builtin functions.
32707 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32709 # Additional compiler flags for building library objects.
32710 pic_flag=$lt_lt_prog_compiler_pic
32712 # How to pass a linker flag through the compiler.
32713 wl=$lt_lt_prog_compiler_wl
32715 # Compiler flag to prevent dynamic linking.
32716 link_static_flag=$lt_lt_prog_compiler_static
32718 # Does compiler simultaneously support -c and -o options?
32719 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32721 # Whether or not to add -lc for building shared libraries.
32722 build_libtool_need_lc=$archive_cmds_need_lc
32724 # Whether or not to disallow shared libs when runtime libs are static.
32725 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32727 # Compiler flag to allow reflexive dlopens.
32728 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32730 # Compiler flag to generate shared objects directly from archives.
32731 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32733 # Whether the compiler copes with passing no objects directly.
32734 compiler_needs_object=$lt_compiler_needs_object
32736 # Create an old-style archive from a shared archive.
32737 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32739 # Create a temporary old-style archive to link instead of a shared archive.
32740 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32742 # Commands used to build a shared archive.
32743 archive_cmds=$lt_archive_cmds
32744 archive_expsym_cmds=$lt_archive_expsym_cmds
32746 # Commands used to build a loadable module if different from building
32747 # a shared archive.
32748 module_cmds=$lt_module_cmds
32749 module_expsym_cmds=$lt_module_expsym_cmds
32751 # Whether we are building with GNU ld or not.
32752 with_gnu_ld=$lt_with_gnu_ld
32754 # Flag that allows shared libraries with undefined symbols to be built.
32755 allow_undefined_flag=$lt_allow_undefined_flag
32757 # Flag that enforces no undefined symbols.
32758 no_undefined_flag=$lt_no_undefined_flag
32760 # Flag to hardcode \$libdir into a binary during linking.
32761 # This must work even if \$libdir does not exist
32762 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32764 # If ld is used when linking, flag to hardcode \$libdir into a binary
32765 # during linking. This must work even if \$libdir does not exist.
32766 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32768 # Whether we need a single "-rpath" flag with a separated argument.
32769 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32771 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32772 # DIR into the resulting binary.
32773 hardcode_direct=$hardcode_direct
32775 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32776 # DIR into the resulting binary and the resulting library dependency is
32777 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32778 # library is relocated.
32779 hardcode_direct_absolute=$hardcode_direct_absolute
32781 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32782 # into the resulting binary.
32783 hardcode_minus_L=$hardcode_minus_L
32785 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32786 # into the resulting binary.
32787 hardcode_shlibpath_var=$hardcode_shlibpath_var
32789 # Set to "yes" if building a shared library automatically hardcodes DIR
32790 # into the library and all subsequent libraries and executables linked
32792 hardcode_automatic=$hardcode_automatic
32794 # Set to yes if linker adds runtime paths of dependent libraries
32795 # to runtime path list.
32796 inherit_rpath=$inherit_rpath
32798 # Whether libtool must link a program against all its dependency libraries.
32799 link_all_deplibs=$link_all_deplibs
32801 # Set to "yes" if exported symbols are required.
32802 always_export_symbols=$always_export_symbols
32804 # The commands to list exported symbols.
32805 export_symbols_cmds=$lt_export_symbols_cmds
32807 # Symbols that should not be listed in the preloaded symbols.
32808 exclude_expsyms=$lt_exclude_expsyms
32810 # Symbols that must always be exported.
32811 include_expsyms=$lt_include_expsyms
32813 # Commands necessary for linking programs (against libraries) with templates.
32814 prelink_cmds=$lt_prelink_cmds
32816 # Commands necessary for finishing linking programs.
32817 postlink_cmds=$lt_postlink_cmds
32819 # Specify filename containing input files.
32820 file_list_spec=$lt_file_list_spec
32822 # How to hardcode a shared library path into an executable.
32823 hardcode_action=$hardcode_action
32825 # The directories searched by this compiler when creating a shared library.
32826 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32828 # Dependencies to place before and after the objects being linked to
32829 # create a shared library.
32830 predep_objects=$lt_predep_objects
32831 postdep_objects=$lt_postdep_objects
32832 predeps=$lt_predeps
32833 postdeps=$lt_postdeps
32835 # The library search path used internally by the compiler when linking
32836 # a shared library.
32837 compiler_lib_search_path=$lt_compiler_lib_search_path
32839 # ### END LIBTOOL CONFIG
32845 cat <<\_LT_EOF >> "$cfgfile"
32846 # AIX sometimes has problems with the GCC collect2 program. For some
32847 # reason, if we set the COLLECT_NAMES environment variable, the problems
32848 # vanish in a puff of smoke.
32849 if test "X${COLLECT_NAMES+set}" != Xset; then
32851 export COLLECT_NAMES
32858 ltmain="$ac_aux_dir/ltmain.sh"
32861 # We use sed instead of cat because bash on DJGPP gets confused if
32862 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32863 # text mode, it properly converts lines to CR/LF. This bash problem
32864 # is reportedly fixed, but why not run on old versions too?
32865 sed '$q' "$ltmain" >> "$cfgfile" \
32866 || (rm -f "$cfgfile"; exit 1)
32868 if test x"$xsi_shell" = xyes; then
32869 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32873 \ */*) func_dirname_result="${1%/*}${2}" ;;\
32874 \ * ) func_dirname_result="${3}" ;;\
32876 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32877 && mv -f "$cfgfile.tmp" "$cfgfile" \
32878 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32879 test 0 -eq $? || _lt_function_replace_fail=:
32882 sed -e '/^func_basename ()$/,/^} # func_basename /c\
32885 \ func_basename_result="${1##*/}"\
32886 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32887 && mv -f "$cfgfile.tmp" "$cfgfile" \
32888 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32889 test 0 -eq $? || _lt_function_replace_fail=:
32892 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32893 func_dirname_and_basename ()\
32896 \ */*) func_dirname_result="${1%/*}${2}" ;;\
32897 \ * ) func_dirname_result="${3}" ;;\
32899 \ func_basename_result="${1##*/}"\
32900 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32901 && mv -f "$cfgfile.tmp" "$cfgfile" \
32902 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32903 test 0 -eq $? || _lt_function_replace_fail=:
32906 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32909 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
32910 \ # positional parameters, so assign one to ordinary parameter first.\
32911 \ func_stripname_result=${3}\
32912 \ func_stripname_result=${func_stripname_result#"${1}"}\
32913 \ func_stripname_result=${func_stripname_result%"${2}"}\
32914 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
32915 && mv -f "$cfgfile.tmp" "$cfgfile" \
32916 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32917 test 0 -eq $? || _lt_function_replace_fail=:
32920 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
32921 func_split_long_opt ()\
32923 \ func_split_long_opt_name=${1%%=*}\
32924 \ func_split_long_opt_arg=${1#*=}\
32925 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
32926 && mv -f "$cfgfile.tmp" "$cfgfile" \
32927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32928 test 0 -eq $? || _lt_function_replace_fail=:
32931 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
32932 func_split_short_opt ()\
32934 \ func_split_short_opt_arg=${1#??}\
32935 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
32936 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
32937 && mv -f "$cfgfile.tmp" "$cfgfile" \
32938 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32939 test 0 -eq $? || _lt_function_replace_fail=:
32942 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
32946 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
32947 \ *) func_lo2o_result=${1} ;;\
32949 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
32950 && mv -f "$cfgfile.tmp" "$cfgfile" \
32951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32952 test 0 -eq $? || _lt_function_replace_fail=:
32955 sed -e '/^func_xform ()$/,/^} # func_xform /c\
32958 func_xform_result=${1%.*}.lo\
32959 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
32960 && mv -f "$cfgfile.tmp" "$cfgfile" \
32961 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32962 test 0 -eq $? || _lt_function_replace_fail=:
32965 sed -e '/^func_arith ()$/,/^} # func_arith /c\
32968 func_arith_result=$(( $* ))\
32969 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
32970 && mv -f "$cfgfile.tmp" "$cfgfile" \
32971 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32972 test 0 -eq $? || _lt_function_replace_fail=:
32975 sed -e '/^func_len ()$/,/^} # func_len /c\
32978 func_len_result=${#1}\
32979 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
32980 && mv -f "$cfgfile.tmp" "$cfgfile" \
32981 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32982 test 0 -eq $? || _lt_function_replace_fail=:
32986 if test x"$lt_shell_append" = xyes; then
32987 sed -e '/^func_append ()$/,/^} # func_append /c\
32990 eval "${1}+=\\${2}"\
32991 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
32992 && mv -f "$cfgfile.tmp" "$cfgfile" \
32993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32994 test 0 -eq $? || _lt_function_replace_fail=:
32997 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
32998 func_append_quoted ()\
33000 \ func_quote_for_eval "${2}"\
33001 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33002 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33003 && mv -f "$cfgfile.tmp" "$cfgfile" \
33004 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33005 test 0 -eq $? || _lt_function_replace_fail=:
33008 # Save a `func_append' function call where possible by direct use of '+='
33009 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33010 && mv -f "$cfgfile.tmp" "$cfgfile" \
33011 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33012 test 0 -eq $? || _lt_function_replace_fail=:
33014 # Save a `func_append' function call even when '+=' is not available
33015 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33016 && mv -f "$cfgfile.tmp" "$cfgfile" \
33017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33018 test 0 -eq $? || _lt_function_replace_fail=:
33021 if test x"$_lt_function_replace_fail" = x":"; then
33022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33023 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33027 mv -f "$cfgfile" "$ofile" ||
33028 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33032 cat <<_LT_EOF >> "$ofile"
33034 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33036 # The linker used to build libraries.
33039 # How to create reloadable object files.
33040 reload_flag=$lt_reload_flag_CXX
33041 reload_cmds=$lt_reload_cmds_CXX
33043 # Commands used to build an old-style archive.
33044 old_archive_cmds=$lt_old_archive_cmds_CXX
33046 # A language specific compiler.
33047 CC=$lt_compiler_CXX
33049 # Is the compiler the GNU compiler?
33052 # Compiler flag to turn off builtin functions.
33053 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33055 # Additional compiler flags for building library objects.
33056 pic_flag=$lt_lt_prog_compiler_pic_CXX
33058 # How to pass a linker flag through the compiler.
33059 wl=$lt_lt_prog_compiler_wl_CXX
33061 # Compiler flag to prevent dynamic linking.
33062 link_static_flag=$lt_lt_prog_compiler_static_CXX
33064 # Does compiler simultaneously support -c and -o options?
33065 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33067 # Whether or not to add -lc for building shared libraries.
33068 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33070 # Whether or not to disallow shared libs when runtime libs are static.
33071 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33073 # Compiler flag to allow reflexive dlopens.
33074 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33076 # Compiler flag to generate shared objects directly from archives.
33077 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33079 # Whether the compiler copes with passing no objects directly.
33080 compiler_needs_object=$lt_compiler_needs_object_CXX
33082 # Create an old-style archive from a shared archive.
33083 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33085 # Create a temporary old-style archive to link instead of a shared archive.
33086 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33088 # Commands used to build a shared archive.
33089 archive_cmds=$lt_archive_cmds_CXX
33090 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33092 # Commands used to build a loadable module if different from building
33093 # a shared archive.
33094 module_cmds=$lt_module_cmds_CXX
33095 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33097 # Whether we are building with GNU ld or not.
33098 with_gnu_ld=$lt_with_gnu_ld_CXX
33100 # Flag that allows shared libraries with undefined symbols to be built.
33101 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33103 # Flag that enforces no undefined symbols.
33104 no_undefined_flag=$lt_no_undefined_flag_CXX
33106 # Flag to hardcode \$libdir into a binary during linking.
33107 # This must work even if \$libdir does not exist
33108 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33110 # If ld is used when linking, flag to hardcode \$libdir into a binary
33111 # during linking. This must work even if \$libdir does not exist.
33112 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33114 # Whether we need a single "-rpath" flag with a separated argument.
33115 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33117 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33118 # DIR into the resulting binary.
33119 hardcode_direct=$hardcode_direct_CXX
33121 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33122 # DIR into the resulting binary and the resulting library dependency is
33123 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33124 # library is relocated.
33125 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33127 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33128 # into the resulting binary.
33129 hardcode_minus_L=$hardcode_minus_L_CXX
33131 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33132 # into the resulting binary.
33133 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33135 # Set to "yes" if building a shared library automatically hardcodes DIR
33136 # into the library and all subsequent libraries and executables linked
33138 hardcode_automatic=$hardcode_automatic_CXX
33140 # Set to yes if linker adds runtime paths of dependent libraries
33141 # to runtime path list.
33142 inherit_rpath=$inherit_rpath_CXX
33144 # Whether libtool must link a program against all its dependency libraries.
33145 link_all_deplibs=$link_all_deplibs_CXX
33147 # Set to "yes" if exported symbols are required.
33148 always_export_symbols=$always_export_symbols_CXX
33150 # The commands to list exported symbols.
33151 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33153 # Symbols that should not be listed in the preloaded symbols.
33154 exclude_expsyms=$lt_exclude_expsyms_CXX
33156 # Symbols that must always be exported.
33157 include_expsyms=$lt_include_expsyms_CXX
33159 # Commands necessary for linking programs (against libraries) with templates.
33160 prelink_cmds=$lt_prelink_cmds_CXX
33162 # Commands necessary for finishing linking programs.
33163 postlink_cmds=$lt_postlink_cmds_CXX
33165 # Specify filename containing input files.
33166 file_list_spec=$lt_file_list_spec_CXX
33168 # How to hardcode a shared library path into an executable.
33169 hardcode_action=$hardcode_action_CXX
33171 # The directories searched by this compiler when creating a shared library.
33172 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33174 # Dependencies to place before and after the objects being linked to
33175 # create a shared library.
33176 predep_objects=$lt_predep_objects_CXX
33177 postdep_objects=$lt_postdep_objects_CXX
33178 predeps=$lt_predeps_CXX
33179 postdeps=$lt_postdeps_CXX
33181 # The library search path used internally by the compiler when linking
33182 # a shared library.
33183 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33185 # ### END LIBTOOL TAG CONFIG: CXX
33196 ac_clean_files=$ac_clean_files_save
33198 test $ac_write_fail = 0 ||
33199 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33202 # configure is writing to config.log, and then calls config.status.
33203 # config.status does its own redirection, appending to config.log.
33204 # Unfortunately, on DOS this fails, as config.log is still kept open
33205 # by configure, so config.status won't be able to write to it; its
33206 # output is simply discarded. So we exec the FD to /dev/null,
33207 # effectively closing config.log, so it can be properly (re)opened and
33208 # appended to by config.status. When coming back to configure, we
33209 # need to make the FD available again.
33210 if test "$no_create" != yes; then
33212 ac_config_status_args=
33213 test "$silent" = yes &&
33214 ac_config_status_args="$ac_config_status_args --quiet"
33216 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33218 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33219 # would make configure fail if this is the last instruction.
33220 $ac_cs_success || as_fn_exit 1
33224 # CONFIG_SUBDIRS section.
33226 if test "$no_recursion" != yes; then
33228 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
33229 # so they do not pile up.
33230 ac_sub_configure_args=
33232 eval "set x $ac_configure_args"
33236 if test -n "$ac_prev"; then
33241 -cache-file | --cache-file | --cache-fil | --cache-fi \
33242 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33243 ac_prev=cache_file ;;
33244 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33245 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33248 --config-cache | -C)
33250 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33252 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33254 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33256 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33258 --disable-option-checking)
33262 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33264 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
33268 # Always prepend --prefix to ensure using the same prefix
33269 # in subdir configurations.
33270 ac_arg="--prefix=$prefix"
33272 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33274 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33277 if test "$silent" = yes; then
33278 ac_sub_configure_args="--silent $ac_sub_configure_args"
33281 # Always prepend --disable-option-checking to silence warnings, since
33282 # different subdirs can have different --enable and --with options.
33283 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
33286 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33288 # Do not complain, so a configure script can configure whichever
33289 # parts of a large source tree are present.
33290 test -d "$srcdir/$ac_dir" || continue
33292 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33293 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
33294 $as_echo "$ac_msg" >&6
33295 as_dir="$ac_dir"; as_fn_mkdir_p
33299 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33301 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33302 # A ".." for each directory in $ac_dir_suffix.
33303 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33304 case $ac_top_builddir_sub in
33305 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33306 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33309 ac_abs_top_builddir=$ac_pwd
33310 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33311 # for backward compatibility:
33312 ac_top_builddir=$ac_top_build_prefix
33315 .) # We are building in place.
33317 ac_top_srcdir=$ac_top_builddir_sub
33318 ac_abs_top_srcdir=$ac_pwd ;;
33319 [\\/]* | ?:[\\/]* ) # Absolute name.
33320 ac_srcdir=$srcdir$ac_dir_suffix;
33321 ac_top_srcdir=$srcdir
33322 ac_abs_top_srcdir=$srcdir ;;
33323 *) # Relative name.
33324 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33325 ac_top_srcdir=$ac_top_build_prefix$srcdir
33326 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33328 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33333 # Check for guested configure; otherwise get Cygnus style configure.
33334 if test -f "$ac_srcdir/configure.gnu"; then
33335 ac_sub_configure=$ac_srcdir/configure.gnu
33336 elif test -f "$ac_srcdir/configure"; then
33337 ac_sub_configure=$ac_srcdir/configure
33338 elif test -f "$ac_srcdir/configure.in"; then
33339 # This should be Cygnus configure.
33340 ac_sub_configure=$ac_aux_dir/configure
33342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
33343 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33347 # The recursion is here.
33348 if test -n "$ac_sub_configure"; then
33349 # Make the cache file name correct relative to the subdirectory.
33350 case $cache_file in
33351 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33352 *) # Relative name.
33353 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33356 { $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
33357 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33358 # The eval makes quoting arguments work.
33359 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33360 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33361 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
33367 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33369 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}