2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for sntp 4.2.6.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
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.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL
=${CONFIG_SHELL-/bin/sh}
535 # Remove one level of quotation (which was required for Make).
536 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 if test "X$1" = X--no-reexec
; then
542 # Discard the --no-reexec flag, and continue.
544 elif test "X$1" = X--fallback-echo
; then
545 # Avoid inline document here, it may be left over
547 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $echo works!
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo
; then
556 # used as fallback echo
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
568 if test -z "$ECHO"; then
569 if test "X${echo_test_string+set}" != Xset
; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
574 echo_test_string
=`eval $cmd` &&
575 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
582 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
583 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
591 # So, first we look for a working echo in the user's PATH.
593 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
594 for dir
in $PATH /usr
/ucb
; do
596 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
606 if test "X$echo" = Xecho
; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
613 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
614 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL
=/bin
/ksh
620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
629 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
635 SHELL
="$CONFIG_SHELL"
637 echo="$CONFIG_SHELL $0 --fallback-echo"
638 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 echo="$CONFIG_SHELL $0 --fallback-echo"
644 # maybe with a smaller string...
647 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
655 if test "$prev" != 'sed 50q "$0"'; then
656 echo_test_string
=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660 # Oops. We lost completely, so just stick with echo.
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
672 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
683 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
684 # so uname gets run too.
685 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
690 ac_default_prefix
=/usr
/local
692 ac_config_libobj_dir
=.
699 # Identity of this package.
701 PACKAGE_TARNAME
='sntp'
702 PACKAGE_VERSION
='4.2.6'
703 PACKAGE_STRING
='sntp 4.2.6'
707 # Factoring default headers for most tests.
708 ac_includes_default
="\
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
720 # ifdef HAVE_STDLIB_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
743 ac_subst_vars
='am__EXEEXT_FALSE
761 INSTALL_LIBOPTS_FALSE
796 INSTALL_STRIP_PROGRAM
838 program_transform_name
851 enable_option_checking
852 enable_dependency_tracking
855 enable_libopts_install
872 ac_precious_vars
='build_alias
883 # Initialize some variables set by options.
885 ac_init_version
=false
886 ac_unrecognized_opts
=
888 # The variables have the same names as the options, with
889 # dashes changed to underlines.
897 program_transform_name
=s
,x
,x
,
905 # Installation directory options.
906 # These are left unexpanded so users can "make install exec_prefix=/foo"
907 # and all the variables that are supposed to be based on exec_prefix
908 # by default will actually change.
909 # Use braces instead of parens because sh, perl, etc. also accept them.
910 # (The list follows the same order as the GNU Coding Standards.)
911 bindir
='${exec_prefix}/bin'
912 sbindir
='${exec_prefix}/sbin'
913 libexecdir
='${exec_prefix}/libexec'
914 datarootdir
='${prefix}/share'
915 datadir
='${datarootdir}'
916 sysconfdir
='${prefix}/etc'
917 sharedstatedir
='${prefix}/com'
918 localstatedir
='${prefix}/var'
919 includedir
='${prefix}/include'
920 oldincludedir
='/usr/include'
921 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
922 infodir
='${datarootdir}/info'
927 libdir
='${exec_prefix}/lib'
928 localedir
='${datarootdir}/locale'
929 mandir
='${datarootdir}/man'
935 # If the previous option needs an argument, assign it.
936 if test -n "$ac_prev"; then
937 eval $ac_prev=\
$ac_option
943 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 # Accept the important Cygnus configure options, so we can diagnose typos.
949 case $ac_dashdash$ac_option in
953 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
955 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
958 -build |
--build |
--buil |
--bui |
--bu)
959 ac_prev
=build_alias
;;
960 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
961 build_alias
=$ac_optarg ;;
963 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
964 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
965 ac_prev
=cache_file
;;
966 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
967 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
968 cache_file
=$ac_optarg ;;
971 cache_file
=config.cache
;;
973 -datadir |
--datadir |
--datadi |
--datad)
975 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
976 datadir
=$ac_optarg ;;
978 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
979 |
--dataroo |
--dataro |
--datar)
980 ac_prev
=datarootdir
;;
981 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
982 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
983 datarootdir
=$ac_optarg ;;
985 -disable-* |
--disable-*)
986 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
989 as_fn_error
"invalid feature name: $ac_useropt"
990 ac_useropt_orig
=$ac_useropt
991 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
996 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
997 ac_unrecognized_sep
=', ';;
999 eval enable_
$ac_useropt=no
;;
1001 -docdir |
--docdir |
--docdi |
--doc |
--do)
1003 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1004 docdir
=$ac_optarg ;;
1006 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1008 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1009 dvidir
=$ac_optarg ;;
1011 -enable-* |
--enable-*)
1012 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1015 as_fn_error
"invalid feature name: $ac_useropt"
1016 ac_useropt_orig
=$ac_useropt
1017 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1020 "enable_
$ac_useropt"
1022 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1023 ac_unrecognized_sep
=', ';;
1025 eval enable_
$ac_useropt=\
$ac_optarg ;;
1027 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1028 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1029 |
--exec |
--exe |
--ex)
1030 ac_prev
=exec_prefix
;;
1031 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1032 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1033 |
--exec=* |
--exe=* |
--ex=*)
1034 exec_prefix
=$ac_optarg ;;
1036 -gas |
--gas |
--ga |
--g)
1037 # Obsolete; use --with-gas.
1040 -help |
--help |
--hel |
--he |
-h)
1041 ac_init_help
=long
;;
1042 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1043 ac_init_help
=recursive
;;
1044 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1045 ac_init_help
=short
;;
1047 -host |
--host |
--hos |
--ho)
1048 ac_prev
=host_alias
;;
1049 -host=* |
--host=* |
--hos=* |
--ho=*)
1050 host_alias
=$ac_optarg ;;
1052 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1054 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1056 htmldir
=$ac_optarg ;;
1058 -includedir |
--includedir |
--includedi |
--included |
--include \
1059 |
--includ |
--inclu |
--incl |
--inc)
1060 ac_prev
=includedir
;;
1061 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1062 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1063 includedir
=$ac_optarg ;;
1065 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1067 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1068 infodir
=$ac_optarg ;;
1070 -libdir |
--libdir |
--libdi |
--libd)
1072 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1073 libdir
=$ac_optarg ;;
1075 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1076 |
--libexe |
--libex |
--libe)
1077 ac_prev
=libexecdir
;;
1078 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1079 |
--libexe=* |
--libex=* |
--libe=*)
1080 libexecdir
=$ac_optarg ;;
1082 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1083 ac_prev
=localedir
;;
1084 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1085 localedir
=$ac_optarg ;;
1087 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1088 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1089 ac_prev
=localstatedir
;;
1090 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1091 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1092 localstatedir
=$ac_optarg ;;
1094 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1096 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1097 mandir
=$ac_optarg ;;
1099 -nfp |
--nfp |
--nf)
1100 # Obsolete; use --without-fp.
1103 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1104 |
--no-cr |
--no-c |
-n)
1107 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1108 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1111 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1112 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1113 |
--oldin |
--oldi |
--old |
--ol |
--o)
1114 ac_prev
=oldincludedir
;;
1115 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1116 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1117 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1118 oldincludedir
=$ac_optarg ;;
1120 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1122 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1123 prefix
=$ac_optarg ;;
1125 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1126 |
--program-pre |
--program-pr |
--program-p)
1127 ac_prev
=program_prefix
;;
1128 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1129 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1130 program_prefix
=$ac_optarg ;;
1132 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1133 |
--program-suf |
--program-su |
--program-s)
1134 ac_prev
=program_suffix
;;
1135 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1136 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1137 program_suffix
=$ac_optarg ;;
1139 -program-transform-name |
--program-transform-name \
1140 |
--program-transform-nam |
--program-transform-na \
1141 |
--program-transform-n |
--program-transform- \
1142 |
--program-transform |
--program-transfor \
1143 |
--program-transfo |
--program-transf \
1144 |
--program-trans |
--program-tran \
1145 |
--progr-tra |
--program-tr |
--program-t)
1146 ac_prev
=program_transform_name
;;
1147 -program-transform-name=* |
--program-transform-name=* \
1148 |
--program-transform-nam=* |
--program-transform-na=* \
1149 |
--program-transform-n=* |
--program-transform-=* \
1150 |
--program-transform=* |
--program-transfor=* \
1151 |
--program-transfo=* |
--program-transf=* \
1152 |
--program-trans=* |
--program-tran=* \
1153 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1154 program_transform_name
=$ac_optarg ;;
1156 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1158 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1159 pdfdir
=$ac_optarg ;;
1161 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1163 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1166 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1167 |
-silent |
--silent |
--silen |
--sile |
--sil)
1170 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1172 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1174 sbindir
=$ac_optarg ;;
1176 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1177 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1178 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1180 ac_prev
=sharedstatedir
;;
1181 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1182 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1183 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1185 sharedstatedir
=$ac_optarg ;;
1187 -site |
--site |
--sit)
1189 -site=* |
--site=* |
--sit=*)
1192 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1194 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1195 srcdir
=$ac_optarg ;;
1197 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1198 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1199 ac_prev
=sysconfdir
;;
1200 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1201 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1202 sysconfdir
=$ac_optarg ;;
1204 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1205 ac_prev
=target_alias
;;
1206 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1207 target_alias
=$ac_optarg ;;
1209 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1212 -version |
--version |
--versio |
--versi |
--vers |
-V)
1213 ac_init_version
=: ;;
1216 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1219 as_fn_error
"invalid package name: $ac_useropt"
1220 ac_useropt_orig
=$ac_useropt
1221 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1226 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227 ac_unrecognized_sep
=', ';;
1229 eval with_
$ac_useropt=\
$ac_optarg ;;
1231 -without-* |
--without-*)
1232 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1235 as_fn_error
"invalid package name: $ac_useropt"
1236 ac_useropt_orig
=$ac_useropt
1237 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1242 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243 ac_unrecognized_sep
=', ';;
1245 eval with_
$ac_useropt=no
;;
1248 # Obsolete; use --with-x.
1251 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1252 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1253 ac_prev
=x_includes
;;
1254 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1255 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1256 x_includes
=$ac_optarg ;;
1258 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1259 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1260 ac_prev
=x_libraries
;;
1261 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1262 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1263 x_libraries
=$ac_optarg ;;
1265 -*) as_fn_error
"unrecognized option: \`$ac_option'
1266 Try \`$0 --help' for more information."
1270 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1271 # Reject names that are not valid shell variable names.
1272 case $ac_envvar in #(
1273 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1274 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1276 eval $ac_envvar=\
$ac_optarg
1277 export $ac_envvar ;;
1280 # FIXME: should be removed in autoconf 3.0.
1281 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1283 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1290 if test -n "$ac_prev"; then
1291 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1292 as_fn_error
"missing argument to $ac_option"
1295 if test -n "$ac_unrecognized_opts"; then
1296 case $enable_option_checking in
1298 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1299 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303 # Check all directory arguments for consistency.
1304 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305 datadir sysconfdir sharedstatedir localstatedir includedir \
1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307 libdir localedir mandir
1309 eval ac_val
=\$
$ac_var
1310 # Remove trailing slashes.
1313 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314 eval $ac_var=\
$ac_val;;
1316 # Be sure to have absolute directory names.
1318 [\\/$
]* | ?
:[\\/]* ) continue;;
1319 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1321 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1324 # There might be people who depend on the old broken behavior: `$host'
1325 # used to hold the argument of --host etc.
1326 # FIXME: To remove some day.
1329 target
=$target_alias
1331 # FIXME: To remove some day.
1332 if test "x$host_alias" != x
; then
1333 if test "x$build_alias" = x
; then
1334 cross_compiling
=maybe
1335 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1336 If a cross compiler is detected then cross compile mode will be used." >&2
1337 elif test "x$build_alias" != "x$host_alias"; then
1343 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1345 test "$silent" = yes && exec 6>/dev
/null
1348 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1349 ac_ls_di
=`ls -di .` &&
1350 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1351 as_fn_error
"working directory cannot be determined"
1352 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1353 as_fn_error
"pwd does not report name of working directory"
1356 # Find the source files, if location was not specified.
1357 if test -z "$srcdir"; then
1358 ac_srcdir_defaulted
=yes
1359 # Try the directory containing this script, then the parent directory.
1360 ac_confdir
=`$as_dirname -- "$as_myself" ||
1361 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362 X"$as_myself" : 'X\(//\)[^/]' \| \
1363 X"$as_myself" : 'X\(//\)$' \| \
1364 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1365 $as_echo X"$as_myself" |
1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1388 ac_srcdir_defaulted
=no
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1392 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1394 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1396 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1398 # When building in place, set srcdir=.
1399 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 # Remove unnecessary trailing slashes from srcdir.
1403 # Double slashes in file names in object file debugging info
1404 # mess up M-x gdb in Emacs.
1406 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408 for ac_var
in $ac_precious_vars; do
1409 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1410 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1411 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1412 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1416 # Report the --help message.
1418 if test "$ac_init_help" = "long"; then
1419 # Omit some internal or obsolete options to make the list less imposing.
1420 # This message is too long to be a string in the A/UX 3.1 sh.
1422 \`configure' configures sntp 4.2.6 to adapt to many kinds of systems.
1424 Usage: $0 [OPTION]... [VAR=VALUE]...
1426 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1427 VAR=VALUE. See below for descriptions of some of the useful variables.
1429 Defaults for the options are specified in brackets.
1432 -h, --help display this help and exit
1433 --help=short display options specific to this package
1434 --help=recursive display the short help of all the included packages
1435 -V, --version display version information and exit
1436 -q, --quiet, --silent do not print \`checking...' messages
1437 --cache-file=FILE cache test results in FILE [disabled]
1438 -C, --config-cache alias for \`--cache-file=config.cache'
1439 -n, --no-create do not create output files
1440 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1442 Installation directories:
1443 --prefix=PREFIX install architecture-independent files in PREFIX
1444 [$ac_default_prefix]
1445 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1448 By default, \`make install' will install all the files in
1449 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1450 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1451 for instance \`--prefix=\$HOME'.
1453 For better control, use the options below.
1455 Fine tuning of the installation directories:
1456 --bindir=DIR user executables [EPREFIX/bin]
1457 --sbindir=DIR system admin executables [EPREFIX/sbin]
1458 --libexecdir=DIR program executables [EPREFIX/libexec]
1459 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1460 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1461 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1462 --libdir=DIR object code libraries [EPREFIX/lib]
1463 --includedir=DIR C header files [PREFIX/include]
1464 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1465 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1466 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1467 --infodir=DIR info documentation [DATAROOTDIR/info]
1468 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1469 --mandir=DIR man documentation [DATAROOTDIR/man]
1470 --docdir=DIR documentation root [DATAROOTDIR/doc/sntp]
1471 --htmldir=DIR html documentation [DOCDIR]
1472 --dvidir=DIR dvi documentation [DOCDIR]
1473 --pdfdir=DIR pdf documentation [DOCDIR]
1474 --psdir=DIR ps documentation [DOCDIR]
1480 --program-prefix=PREFIX prepend PREFIX to installed program names
1481 --program-suffix=SUFFIX append SUFFIX to installed program names
1482 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1485 --build=BUILD configure
for building on BUILD
[guessed
]
1486 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1490 if test -n "$ac_init_help"; then
1491 case $ac_init_help in
1492 short | recursive
) echo "Configuration of sntp 4.2.6:";;
1497 --disable-option-checking ignore unrecognized
--enable/--with options
1498 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1499 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1500 --disable-dependency-tracking speeds up one-time build
1501 --enable-dependency-tracking do not reject slow dependency extractors
1502 --enable-shared[=PKGS
] build shared libraries
[default
=no
]
1503 --enable-local-libopts Force using the supplied libopts tearoff code
1504 --disable-libopts-install
1505 Do not
install libopts with client installation
1506 --disable-optional-args not wanting optional option args
1507 --enable-static[=PKGS
] build static libraries
[default
=yes]
1508 --enable-fast-install[=PKGS
]
1509 optimize
for fast installation
[default
=yes]
1510 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1511 --enable-ipv6 s use IPv6?
1514 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1515 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1516 --with-autoopts-config specify the config-info
script
1517 --with-regex-header a reg
expr header is specified
1518 --with-libregex libregex installation prefix
1519 --with-libregex-cflags libregex compile flags
1520 --with-libregex-libs libregex link
command arguments
1521 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1522 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1524 --with-tags[=TAGS
] include additional configurations
[automatic
]
1525 --with-kame - =/usr
/local
/v6
1526 --with-binsubdir bin
={bin
,sbin
}
1528 Some influential environment variables
:
1529 CC C compiler
command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1532 nonstandard directory
<lib dir
>
1533 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1534 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1535 you have headers
in a nonstandard directory
<include dir
>
1538 Use these variables to override the choices made by
`configure' or to help
1539 it to find libraries and programs with nonstandard names/locations.
1541 Report bugs to the package provider.
1546 if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 test -d "$ac_dir" ||
1550 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1558 # A ".." for each directory in $ac_dir_suffix.
1559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1560 case $ac_top_builddir_sub in
1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565 ac_abs_top_builddir=$ac_pwd
1566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567 # for backward compatibility:
1568 ac_top_builddir=$ac_top_build_prefix
1571 .) # We are building in place.
1573 ac_top_srcdir=$ac_top_builddir_sub
1574 ac_abs_top_srcdir=$ac_pwd ;;
1575 [\\/]* | ?:[\\/]* ) # Absolute name.
1576 ac_srcdir=$srcdir$ac_dir_suffix;
1577 ac_top_srcdir=$srcdir
1578 ac_abs_top_srcdir=$srcdir ;;
1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581 ac_top_srcdir=$ac_top_build_prefix$srcdir
1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586 cd "$ac_dir" || { ac_status=$?; continue; }
1587 # Check for guested configure.
1588 if test -f "$ac_srcdir/configure.gnu"; then
1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591 elif test -f "$ac_srcdir/configure"; then
1593 $SHELL "$ac_srcdir/configure" --help=recursive
1595 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597 cd "$ac_pwd" || { ac_status=$?; break; }
1601 test -n "$ac_init_help" && exit $ac_status
1602 if $ac_init_version; then
1604 sntp configure 4.2.6
1605 generated by GNU Autoconf 2.65
1607 Copyright (C) 2009 Free Software Foundation, Inc.
1608 This configure script is free software; the Free Software Foundation
1609 gives unlimited permission to copy, distribute and modify it.
1614 ## ------------------------ ##
1615 ## Autoconf initialization. ##
1616 ## ------------------------ ##
1618 # ac_fn_c_try_compile LINENO
1619 # --------------------------
1620 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_compile ()
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext
1625 if { { ac_try="$ac_compile"
1627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1628 *) ac_try_echo
=$ac_try;;
1630 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_compile") 2>conftest.err
1634 if test -s conftest.err
; then
1635 grep -v '^ *+' conftest.err
>conftest.er1
1636 cat conftest.er1
>&5
1637 mv -f conftest.er1 conftest.err
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest.
$ac_objext; then :
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.
$ac_ext >&5
1651 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1652 as_fn_set_status
$ac_retval
1654 } # ac_fn_c_try_compile
1656 # ac_fn_c_try_cpp LINENO
1657 # ----------------------
1658 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1661 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1662 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } >/dev/null && {
1678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1689 as_fn_set_status $ac_retval
1693 # ac_fn_c_try_run LINENO
1694 # ----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1696 # that executables *can* be run.
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_link"
1702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1703 *) ac_try_echo
=$ac_try;;
1705 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>&5
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1711 { { case "(($ac_try" in
1712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_try") 2>&5
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; }; }; then :
1723 $as_echo "$as_me: program exited with status $ac_status" >&5
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1727 ac_retval=$ac_status
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 as_fn_set_status $ac_retval
1735 # ac_fn_c_try_link LINENO
1736 # -----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded.
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext conftest$ac_exeext
1742 if { { ac_try="$ac_link"
1744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1745 *) ac_try_echo
=$ac_try;;
1747 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>conftest.err
1751 if test -s conftest.err
; then
1752 grep -v '^ *+' conftest.err
>conftest.er1
1753 cat conftest.er1
>&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest
$ac_exeext && {
1761 test "$cross_compiling" = yes ||
1762 $as_test_x conftest
$ac_exeext
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.
$ac_ext >&5
1771 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1772 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1773 # interfere with the next link command; also delete a directory that is
1774 # left behind by Apple's compiler. We do this before executing the actions.
1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1777 as_fn_set_status
$ac_retval
1779 } # ac_fn_c_try_link
1781 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1782 # -------------------------------------------------------
1783 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1784 # the include files in INCLUDES and setting the cache variable VAR
1786 ac_fn_c_check_header_mongrel
()
1788 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1789 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1793 $as_echo_n "(cached) " >&6
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1799 # Is the header compilable?
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1801 $as_echo_n "checking $2 usability... " >&6; }
1802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1807 if ac_fn_c_try_compile
"$LINENO"; then :
1808 ac_header_compiler
=yes
1810 ac_header_compiler
=no
1812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1814 $as_echo "$ac_header_compiler" >&6; }
1816 # Is the header present?
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1818 $as_echo_n "checking $2 presence... " >&6; }
1819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1823 if ac_fn_c_try_cpp
"$LINENO"; then :
1824 ac_header_preproc
=yes
1826 ac_header_preproc
=no
1828 rm -f conftest.err conftest.
$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1830 $as_echo "$ac_header_preproc" >&6; }
1832 # So? What about this header?
1833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1836 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1842 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1844 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1846 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1848 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1856 $as_echo_n "(cached) " >&6
1858 eval "$3=\$ac_header_compiler"
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1864 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1866 } # ac_fn_c_check_header_mongrel
1868 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1869 # -------------------------------------------------------
1870 # Tests whether HEADER exists and can be compiled using the include files in
1871 # INCLUDES, setting the cache variable VAR accordingly.
1872 ac_fn_c_check_header_compile
()
1874 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1878 $as_echo_n "(cached) " >&6
1880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1885 if ac_fn_c_try_compile
"$LINENO"; then :
1890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1897 } # ac_fn_c_check_header_compile
1899 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1900 # -------------------------------------------
1901 # Tests whether TYPE exists after having included INCLUDES, setting cache
1902 # variable VAR accordingly.
1903 ac_fn_c_check_type
()
1905 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 $as_echo_n "(cached) " >&6
1912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1924 if ac_fn_c_try_compile
"$LINENO"; then :
1925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1937 if ac_fn_c_try_compile
"$LINENO"; then :
1942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1951 } # ac_fn_c_check_type
1953 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1954 # --------------------------------------------
1955 # Tries to find the compile-time value of EXPR in a program that includes
1956 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1958 ac_fn_c_compute_int
()
1960 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1961 if test "$cross_compiling" = yes; then
1962 # Depending upon the size, compute the lo and hi bounds.
1963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1969 static int test_array [1 - 2 * !(($2) >= 0)];
1976 if ac_fn_c_try_compile
"$LINENO"; then :
1979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1985 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1992 if ac_fn_c_try_compile
"$LINENO"; then :
1993 ac_hi
=$ac_mid; break
1995 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1996 if test $ac_lo -le $ac_mid; then
2000 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2011 static int test_array [1 - 2 * !(($2) < 0)];
2018 if ac_fn_c_try_compile
"$LINENO"; then :
2021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2027 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2034 if ac_fn_c_try_compile
"$LINENO"; then :
2035 ac_lo
=$ac_mid; break
2037 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2038 if test $ac_mid -le $ac_hi; then
2042 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2052 # Binary search between lo and hi bounds.
2053 while test "x$ac_lo" != "x$ac_hi"; do
2054 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2061 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2068 if ac_fn_c_try_compile
"$LINENO"; then :
2071 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2076 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2083 static long int longval () { return $2; }
2084 static unsigned long int ulongval () { return $2; }
2091 FILE *f = fopen ("conftest.val", "w");
2096 long int i = longval ();
2099 fprintf (f, "%ld", i);
2103 unsigned long int i = ulongval ();
2106 fprintf (f, "%lu", i);
2108 /* Do not output a trailing newline, as this causes \r\n confusion
2109 on some platforms. */
2110 return ferror (f) || fclose (f) != 0;
2116 if ac_fn_c_try_run
"$LINENO"; then :
2117 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2121 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2122 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2126 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2127 as_fn_set_status
$ac_retval
2129 } # ac_fn_c_compute_int
2131 # ac_fn_c_check_func LINENO FUNC VAR
2132 # ----------------------------------
2133 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2134 ac_fn_c_check_func
()
2136 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138 $as_echo_n "checking for $2... " >&6; }
2139 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2140 $as_echo_n "(cached) " >&6
2142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2144 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2146 #define $2 innocuous_$2
2148 /* System header to define __stub macros and hopefully few prototypes,
2149 which can conflict with char $2 (); below.
2150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2151 <limits.h> exists even on freestanding compilers. */
2154 # include <limits.h>
2156 # include <assert.h>
2161 /* Override any GCC internal prototype to avoid an error.
2162 Use char because int might match the return type of a GCC
2163 builtin and then its argument prototype would still apply. */
2168 /* The GNU C library defines this for functions which it implements
2169 to always fail with ENOSYS. Some functions are actually named
2170 something starting with __ and the normal name is an alias. */
2171 #if defined __stub_$2 || defined __stub___$2
2183 if ac_fn_c_try_link
"$LINENO"; then :
2188 rm -f core conftest.err conftest.
$ac_objext \
2189 conftest
$ac_exeext conftest.
$ac_ext
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2196 } # ac_fn_c_check_func
2197 cat >config.log
<<_ACEOF
2198 This file contains any messages produced by compilers while
2199 running configure, to aid debugging if configure makes a mistake.
2201 It was created by sntp $as_me 4.2.6, which was
2202 generated by GNU Autoconf 2.65. Invocation command line was
2214 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2215 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2216 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2217 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2218 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2220 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2221 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2223 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2224 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2225 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2226 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2227 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2228 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2229 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2237 test -z "$as_dir" && as_dir
=.
2238 $as_echo "PATH: $as_dir"
2254 # Keep a trace of the command line.
2255 # Strip out --no-create and --no-recursion so they do not pile up.
2256 # Strip out --silent because we don't want to record it for future runs.
2257 # Also quote any args containing shell meta-characters.
2258 # Make two passes to allow for proper duplicate-argument suppression.
2262 ac_must_keep_next
=false
2268 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2269 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2270 |
-silent |
--silent |
--silen |
--sile |
--sil)
2273 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2276 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2278 as_fn_append ac_configure_args1
" '$ac_arg'"
2279 if test $ac_must_keep_next = true
; then
2280 ac_must_keep_next
=false
# Got value, back to normal.
2283 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2284 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2285 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2286 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2287 case "$ac_configure_args0 " in
2288 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2291 -* ) ac_must_keep_next
=true
;;
2294 as_fn_append ac_configure_args
" '$ac_arg'"
2299 { ac_configure_args0
=; unset ac_configure_args0
;}
2300 { ac_configure_args1
=; unset ac_configure_args1
;}
2302 # When interrupted or exit'd, cleanup temporary files, and complete
2303 # config.log. We remove comments because anyway the quotes in there
2304 # would cause problems or look ugly.
2305 # WARNING: Use '\'' to represent an apostrophe within the trap.
2306 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2307 trap 'exit_status=$?
2308 # Save into config.log some information that might help in debugging.
2313 ## ---------------- ##
2314 ## Cache variables. ##
2315 ## ---------------- ##
2318 # The following way of writing the cache mishandles newlines in values,
2320 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2321 eval ac_val=\$$ac_var
2325 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2326 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2329 _ | IFS | as_nl) ;; #(
2330 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2331 *) { eval $ac_var=; unset $ac_var;} ;;
2336 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2337 *${as_nl}ac_space=\ *)
2339 "s/'\''/'\''\\\\'\'''\''/g;
2340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2343 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2351 ## ----------------- ##
2352 ## Output variables. ##
2353 ## ----------------- ##
2356 for ac_var in $ac_subst_vars
2358 eval ac_val=\$$ac_var
2360 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2362 $as_echo "$ac_var='\''$ac_val'\''"
2366 if test -n "$ac_subst_files"; then
2368 ## ------------------- ##
2369 ## File substitutions. ##
2370 ## ------------------- ##
2373 for ac_var
in $ac_subst_files
2375 eval ac_val
=\$
$ac_var
2377 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2379 $as_echo "$ac_var='\''$ac_val'\''"
2384 if test -s confdefs.h; then
2394 test "$ac_signal" != 0 &&
2395 $as_echo "$as_me: caught signal $ac_signal"
2396 $as_echo "$as_me: exit $exit_status"
2398 rm -f core *.core core.conftest.* &&
2399 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2402 for ac_signal
in 1 2 13 15; do
2403 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2408 rm -f -r conftest
* confdefs.h
2410 $as_echo "/* confdefs.h */" > confdefs.h
2412 # Predefined preprocessor variables.
2414 cat >>confdefs.h
<<_ACEOF
2415 #define PACKAGE_NAME "$PACKAGE_NAME"
2418 cat >>confdefs.h
<<_ACEOF
2419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2422 cat >>confdefs.h
<<_ACEOF
2423 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2426 cat >>confdefs.h
<<_ACEOF
2427 #define PACKAGE_STRING "$PACKAGE_STRING"
2430 cat >>confdefs.h
<<_ACEOF
2431 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2434 cat >>confdefs.h
<<_ACEOF
2435 #define PACKAGE_URL "$PACKAGE_URL"
2439 # Let the site file select an alternate cache file if it wants to.
2440 # Prefer an explicitly selected file to automatically selected ones.
2443 if test -n "$CONFIG_SITE"; then
2444 ac_site_file1
=$CONFIG_SITE
2445 elif test "x$prefix" != xNONE
; then
2446 ac_site_file1
=$prefix/share
/config.site
2447 ac_site_file2
=$prefix/etc
/config.site
2449 ac_site_file1
=$ac_default_prefix/share
/config.site
2450 ac_site_file2
=$ac_default_prefix/etc
/config.site
2452 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2454 test "x$ac_site_file" = xNONE
&& continue
2455 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2457 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2458 sed 's/^/| /' "$ac_site_file" >&5
2463 if test -r "$cache_file"; then
2464 # Some versions of bash will fail to source /dev/null (special files
2465 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2466 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2468 $as_echo "$as_me: loading cache $cache_file" >&6;}
2470 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2471 *) .
"./$cache_file";;
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2476 $as_echo "$as_me: creating cache $cache_file" >&6;}
2480 # Check that the precious variables saved in the cache have kept the same
2482 ac_cache_corrupted
=false
2483 for ac_var
in $ac_precious_vars; do
2484 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2485 eval ac_new_set
=\
$ac_env_${ac_var}_set
2486 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2487 eval ac_new_val
=\
$ac_env_${ac_var}_value
2488 case $ac_old_set,$ac_new_set in
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2491 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2492 ac_cache_corrupted
=: ;;
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2495 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2496 ac_cache_corrupted
=: ;;
2499 if test "x$ac_old_val" != "x$ac_new_val"; then
2500 # differences in whitespace do not lead to failure.
2501 ac_old_val_w
=`echo x $ac_old_val`
2502 ac_new_val_w
=`echo x $ac_new_val`
2503 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2505 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2506 ac_cache_corrupted
=:
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2509 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2510 eval $ac_var=\
$ac_old_val
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2513 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2515 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2518 # Pass precious variables to config.status.
2519 if test "$ac_new_set" = set; then
2521 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2522 *) ac_arg
=$ac_var=$ac_new_val ;;
2524 case " $ac_configure_args " in
2525 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2526 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2530 if $ac_cache_corrupted; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2534 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2535 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2537 ## -------------------- ##
2538 ## Main body of script. ##
2539 ## -------------------- ##
2542 ac_cpp
='$CPP $CPPFLAGS'
2543 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2550 for ac_dir
in .
"$srcdir"/.
; do
2551 for ac_t
in install-sh
install.sh shtool
; do
2552 if test -f "$ac_dir/$ac_t"; then
2554 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2559 if test -z "$ac_aux_dir"; then
2560 as_fn_error
"cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2563 # These three variables are undocumented and unsupported,
2564 # and are intended to be withdrawn in a future Autoconf release.
2565 # They can cause serious problems if a builder's source tree is in a directory
2566 # whose full name contains unusual characters.
2567 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2568 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2569 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2573 # Increment sntp_configure_cache_version by one for each change to
2574 # configure.ac or .m4 files which invalidates cached values from
2575 # previous versions.
2577 # If the change affects cache variables used only by the main NTP
2578 # configure.ac, then only its version number should be bumped, while
2579 # the subdir configure.ac version numbers should be unchanged. The
2580 # same is true for a test/variable that is used only by one subdir
2581 # being changed incompatibly; only that subdir's cache version needs
2584 # If a change affects variables shared by all NTP configure scripts,
2585 # please bump the version numbers of all three. If you are not sure,
2586 # the safe choice is to bump all three on any cache-invalidating change.
2588 # In order to avoid the risk of version stamp collision between -stable
2589 # and -dev branches, do not simply increment the version, instead use
2590 # the date YYYYMMDD optionally with -HHMM if there is more than one
2593 sntp_configure_cache_version
=20091117
2595 # When the version of config.cache and configure do not
2596 # match, NTP_CACHEVERSION will flush the cache.
2602 case "$ntp_cv_sntp_cache_version" in
2603 $sntp_configure_cache_version)
2604 # same version, good
2608 # No cache, predates ntp_cv_sntp_cache_version, or is empty.
2609 case "$cache_file" in
2614 case "$NTP_CACHEVERSION_PARENT" in
2616 # Do not clear the cache immediately after it is created
2617 # empty as it is noisy. Differentiate a newly-created
2618 # config.cache from one predating the cache version
2619 # mechanism by looking for the first cached variable set
2621 case "$ac_cv_path_install" in
2623 # empty config.cache file
2628 # Parent configure just created cache from empty,
2629 # flushing would be counterproductive.
2635 # configure cache version mismatches config.cache version
2638 case "$ntp_cache_flush" in
2640 c_version
="${ntp_cv_sntp_cache_version:-(no version found)}"
2642 # Do we flush all variables or exclude others' version stamps?
2644 case "$NTP_CACHEVERSION_PARENT" in
2646 # Clear all *_cv_* variables including our child subdirs'
2647 # ntp_cv_*_cache_version variables. This prevents subdir
2648 # configure scripts from noticing a version mismatch just
2649 # after the top configure in the invocation cleared and
2650 # recreated the cache.
2652 c_varname_list
=`set |
2653 sed -n -e 's/=.*$//' \
2658 # This is not the top configure this particular invocation.
2659 # Clear all *_cv_* variables sparing the version stamps
2660 # of other configure scripts, so we don't trigger
2661 # useless repeated clearings.
2663 c_varname_list
=`set |
2664 sed -n -e 's/=.*$//' \
2665 -e '/ntp_cv_.*_cache_version/d' \
2670 for c_varname
in $c_varname_list
2672 eval ${c_varname}=; $as_unset $c_varname
2675 c_varname_list
=; $as_unset c_varname_list c_varname
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
2678 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $sntp_configure_cache_version" >&5
2680 $as_echo "$as_me: configure script cache version: $sntp_configure_cache_version" >&6;}
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
2682 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
2686 # save configure version in config.cache for next time
2687 ntp_cv_sntp_cache_version
="$sntp_configure_cache_version"
2689 $as_unset ntp_cache_flush
2691 # let any subdir configure.ac NTP_CACHEVERSION invocations
2692 # know they are not the top level.
2693 NTP_CACHEVERSION_PARENT
='sntp' ; export NTP_CACHEVERSION_PARENT
2696 am__api_version
='1.11'
2698 # Find a good install program. We prefer a C program (faster),
2699 # so one script is as good as another. But avoid the broken or
2700 # incompatible versions:
2701 # SysV /etc/install, /usr/sbin/install
2702 # SunOS /usr/etc/install
2703 # IRIX /sbin/install
2705 # AmigaOS /C/install, which installs bootblocks on floppy discs
2706 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2707 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2708 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2709 # OS/2's system install, which has a completely different semantic
2710 # ./install, which can be erroneously created by make from ./install.sh.
2711 # Reject install programs that cannot install multiple files.
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2713 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2714 if test -z "$INSTALL"; then
2715 if test "${ac_cv_path_install+set}" = set; then :
2716 $as_echo_n "(cached) " >&6
2718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2722 test -z "$as_dir" && as_dir
=.
2723 # Account for people who put trailing slashes in PATH elements.
2724 case $as_dir/ in #((
2725 .
/ | .
// |
/[cC
]/* | \
2726 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2727 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2730 # OSF1 and SCO ODT 3.0 have their own names for install.
2731 # Don't use installbsd from OSF since it installs stuff as root
2733 for ac_prog
in ginstall scoinst
install; do
2734 for ac_exec_ext
in '' $ac_executable_extensions; do
2735 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2736 if test $ac_prog = install &&
2737 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2738 # AIX install. It has an incompatible calling convention.
2740 elif test $ac_prog = install &&
2741 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2742 # program-specific install script used by HP pwplus--don't use.
2745 rm -rf conftest.one conftest.two conftest.dir
2746 echo one
> conftest.one
2747 echo two
> conftest.two
2749 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2750 test -s conftest.one
&& test -s conftest.two
&&
2751 test -s conftest.dir
/conftest.one
&&
2752 test -s conftest.dir
/conftest.two
2754 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2767 rm -rf conftest.one conftest.two conftest.dir
2770 if test "${ac_cv_path_install+set}" = set; then
2771 INSTALL
=$ac_cv_path_install
2773 # As a last resort, use the slow shell script. Don't cache a
2774 # value for INSTALL within a source directory, because that will
2775 # break other packages using the cache if that directory is
2776 # removed, or if the value is a relative name.
2777 INSTALL
=$ac_install_sh
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2781 $as_echo "$INSTALL" >&6; }
2783 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2784 # It thinks the first close brace ends the variable substitution.
2785 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2787 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2789 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2792 $as_echo_n "checking whether build environment is sane... " >&6; }
2795 echo timestamp
> conftest.
file
2796 # Reject unsafe characters in $srcdir or the absolute working directory
2797 # name. Accept space and tab only in the latter.
2801 *[\\\"\
#\$\&\'\`$am_lf]*)
2802 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2805 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2806 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2809 # Do `set' in a subshell so we don't clobber the current shell's
2810 # arguments. Must try -L first in case configure is actually a
2811 # symlink; some systems play weird games with the mod time of symlinks
2812 # (eg FreeBSD returns the mod time of the symlink's containing
2815 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2816 if test "$*" = "X"; then
2818 set X
`ls -t "$srcdir/configure" conftest.file`
2821 if test "$*" != "X $srcdir/configure conftest.file" \
2822 && test "$*" != "X conftest.file $srcdir/configure"; then
2824 # If neither matched, then we have a broken ls. This can happen
2825 # if, for instance, CONFIG_SHELL is bash and it inherits a
2826 # broken ls alias from the environment. This has actually
2827 # happened. Such a system could not be considered "sane".
2828 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2829 alias in your environment" "$LINENO" 5
2832 test "$2" = conftest.
file
2838 as_fn_error
"newly created file is older than distributed files!
2839 Check your system clock" "$LINENO" 5
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2842 $as_echo "yes" >&6; }
2843 test "$program_prefix" != NONE
&&
2844 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2845 # Use a double $ so make ignores it.
2846 test "$program_suffix" != NONE
&&
2847 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2848 # Double any \ or $.
2849 # By default was `s,x,x', remove it if useless.
2850 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2851 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2853 # expand $ac_aux_dir to an absolute path
2854 am_aux_dir
=`cd $ac_aux_dir && pwd`
2856 if test x
"${MISSING+set}" != xset
; then
2859 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2861 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2864 # Use eval to expand $SHELL
2865 if eval "$MISSING --run true"; then
2866 am_missing_run
="$MISSING --run "
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2870 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2873 if test x
"${install_sh}" != xset
; then
2876 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2878 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2882 # Installed binaries are usually stripped using `strip' when the user
2883 # run `make install-strip'. However `strip' might not be the right
2884 # tool to use in cross-compilation environments, therefore Automake
2885 # will honor the `STRIP' environment variable to overrule this program.
2886 if test "$cross_compiling" != no
; then
2887 if test -n "$ac_tool_prefix"; then
2888 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2889 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if test "${ac_cv_prog_STRIP+set}" = set; then :
2893 $as_echo_n "(cached) " >&6
2895 if test -n "$STRIP"; then
2896 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2902 test -z "$as_dir" && as_dir
=.
2903 for ac_exec_ext
in '' $ac_executable_extensions; do
2904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 STRIP
=$ac_cv_prog_STRIP
2916 if test -n "$STRIP"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2918 $as_echo "$STRIP" >&6; }
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2926 if test -z "$ac_cv_prog_STRIP"; then
2928 # Extract the first word of "strip", so it can be a program name with args.
2929 set dummy strip
; ac_word
=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2933 $as_echo_n "(cached) " >&6
2935 if test -n "$ac_ct_STRIP"; then
2936 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2942 test -z "$as_dir" && as_dir
=.
2943 for ac_exec_ext
in '' $ac_executable_extensions; do
2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945 ac_cv_prog_ac_ct_STRIP
="strip"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2956 if test -n "$ac_ct_STRIP"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2958 $as_echo "$ac_ct_STRIP" >&6; }
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2964 if test "x$ac_ct_STRIP" = x
; then
2967 case $cross_compiling:$ac_tool_warned in
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2971 ac_tool_warned
=yes ;;
2976 STRIP
="$ac_cv_prog_STRIP"
2980 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2983 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2984 if test -z "$MKDIR_P"; then
2985 if test "${ac_cv_path_mkdir+set}" = set; then :
2986 $as_echo_n "(cached) " >&6
2988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2989 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2992 test -z "$as_dir" && as_dir
=.
2993 for ac_prog
in mkdir gmkdir
; do
2994 for ac_exec_ext
in '' $ac_executable_extensions; do
2995 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2996 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2997 'mkdir (GNU coreutils) '* | \
2998 'mkdir (coreutils) '* | \
2999 'mkdir (fileutils) '4.1*)
3000 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3010 test -d .
/--version && rmdir .
/--version
3011 if test "${ac_cv_path_mkdir+set}" = set; then
3012 MKDIR_P
="$ac_cv_path_mkdir -p"
3014 # As a last resort, use the slow shell script. Don't cache a
3015 # value for MKDIR_P within a source directory, because that will
3016 # break other packages using the cache if that directory is
3017 # removed, or if the value is a relative name.
3018 MKDIR_P
="$ac_install_sh -d"
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3022 $as_echo "$MKDIR_P" >&6; }
3026 [\\/$
]* | ?
:[\\/]*) ;;
3027 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3030 for ac_prog
in gawk mawk nawk
awk
3032 # Extract the first word of "$ac_prog", so it can be a program name with args.
3033 set dummy
$ac_prog; ac_word
=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if test "${ac_cv_prog_AWK+set}" = set; then :
3037 $as_echo_n "(cached) " >&6
3039 if test -n "$AWK"; then
3040 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3046 test -z "$as_dir" && as_dir
=.
3047 for ac_exec_ext
in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049 ac_cv_prog_AWK
="$ac_prog"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 if test -n "$AWK"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3062 $as_echo "$AWK" >&6; }
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3069 test -n "$AWK" && break
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3073 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3075 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3076 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3077 $as_echo_n "(cached) " >&6
3079 cat >conftest.
make <<\_ACEOF
3082 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3084 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3085 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3087 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3089 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3093 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095 $as_echo "yes" >&6; }
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3100 SET_MAKE
="MAKE=${MAKE-make}"
3103 rm -rf .tst
2>/dev
/null
3104 mkdir .tst
2>/dev
/null
3105 if test -d .tst
; then
3110 rmdir .tst
2>/dev
/null
3112 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3113 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3114 # is not polluted with repeated "-I."
3115 am__isrc
=' -I$(srcdir)'
3116 # test to see if srcdir already configured
3117 if test -f $srcdir/config.status
; then
3118 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3122 # test whether we have cygpath
3123 if test -z "$CYGPATH_W"; then
3124 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3125 CYGPATH_W
='cygpath -w'
3132 # Define the identity of the package.
3137 cat >>confdefs.h
<<_ACEOF
3138 #define PACKAGE "$PACKAGE"
3142 cat >>confdefs.h
<<_ACEOF
3143 #define VERSION "$VERSION"
3146 # Some tools Automake needs.
3148 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3151 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3154 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3157 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3160 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3162 # We need awk for the "check" target. The system "awk" is bad on
3164 # Always define AMTAR for backward compatibility.
3166 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3168 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3174 # Make sure we can run config.sub.
3175 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3176 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3179 $as_echo_n "checking build system type... " >&6; }
3180 if test "${ac_cv_build+set}" = set; then :
3181 $as_echo_n "(cached) " >&6
3183 ac_build_alias
=$build_alias
3184 test "x$ac_build_alias" = x
&&
3185 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3186 test "x$ac_build_alias" = x
&&
3187 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3188 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3189 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3193 $as_echo "$ac_cv_build" >&6; }
3194 case $ac_cv_build in
3196 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3199 ac_save_IFS
=$IFS; IFS
='-'
3205 # Remember, the first character of IFS is used to create $*,
3206 # except with old shells:
3209 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3213 $as_echo_n "checking host system type... " >&6; }
3214 if test "${ac_cv_host+set}" = set; then :
3215 $as_echo_n "(cached) " >&6
3217 if test "x$host_alias" = x
; then
3218 ac_cv_host
=$ac_cv_build
3220 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3221 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3226 $as_echo "$ac_cv_host" >&6; }
3229 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3232 ac_save_IFS
=$IFS; IFS
='-'
3238 # Remember, the first character of IFS is used to create $*,
3239 # except with old shells:
3242 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3246 cat >>confdefs.h
<<_ACEOF
3247 #define STR_SYSTEM "$host"
3250 ac_config_headers
="$ac_config_headers config.h"
3254 # Checks for programs.
3256 ac_cpp
='$CPP $CPPFLAGS'
3257 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3260 if test -n "$ac_tool_prefix"; then
3261 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3262 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 $as_echo_n "checking for $ac_word... " >&6; }
3265 if test "${ac_cv_prog_CC+set}" = set; then :
3266 $as_echo_n "(cached) " >&6
3268 if test -n "$CC"; then
3269 ac_cv_prog_CC
="$CC" # Let the user override the test.
3271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3275 test -z "$as_dir" && as_dir
=.
3276 for ac_exec_ext
in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 if test -n "$CC"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3291 $as_echo "$CC" >&6; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3299 if test -z "$ac_cv_prog_CC"; then
3301 # Extract the first word of "gcc", so it can be a program name with args.
3302 set dummy gcc
; ac_word
=$2
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3308 if test -n "$ac_ct_CC"; then
3309 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3315 test -z "$as_dir" && as_dir
=.
3316 for ac_exec_ext
in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 ac_cv_prog_ac_ct_CC
="gcc"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3329 if test -n "$ac_ct_CC"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3331 $as_echo "$ac_ct_CC" >&6; }
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3337 if test "x$ac_ct_CC" = x
; then
3340 case $cross_compiling:$ac_tool_warned in
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3344 ac_tool_warned
=yes ;;
3352 if test -z "$CC"; then
3353 if test -n "$ac_tool_prefix"; then
3354 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3355 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3357 $as_echo_n "checking for $ac_word... " >&6; }
3358 if test "${ac_cv_prog_CC+set}" = set; then :
3359 $as_echo_n "(cached) " >&6
3361 if test -n "$CC"; then
3362 ac_cv_prog_CC
="$CC" # Let the user override the test.
3364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3368 test -z "$as_dir" && as_dir
=.
3369 for ac_exec_ext
in '' $ac_executable_extensions; do
3370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3371 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 if test -n "$CC"; then
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3384 $as_echo "$CC" >&6; }
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387 $as_echo "no" >&6; }
3393 if test -z "$CC"; then
3394 # Extract the first word of "cc", so it can be a program name with args.
3395 set dummy cc
; ac_word
=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if test "${ac_cv_prog_CC+set}" = set; then :
3399 $as_echo_n "(cached) " >&6
3401 if test -n "$CC"; then
3402 ac_cv_prog_CC
="$CC" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3412 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3413 ac_prog_rejected
=yes
3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 if test $ac_prog_rejected = yes; then
3425 # We found a bogon in the path, so make sure we never use it.
3426 set dummy
$ac_cv_prog_CC
3428 if test $# != 0; then
3429 # We chose a different compiler from the bogus one.
3430 # However, it has the same basename, so the bogon will be chosen
3431 # first if we set CC to just the basename; use the full file name.
3433 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3439 if test -n "$CC"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3441 $as_echo "$CC" >&6; }
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3449 if test -z "$CC"; then
3450 if test -n "$ac_tool_prefix"; then
3451 for ac_prog
in cl.exe
3453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3454 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if test "${ac_cv_prog_CC+set}" = set; then :
3458 $as_echo_n "(cached) " >&6
3460 if test -n "$CC"; then
3461 ac_cv_prog_CC
="$CC" # Let the user override the test.
3463 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3467 test -z "$as_dir" && as_dir
=.
3468 for ac_exec_ext
in '' $ac_executable_extensions; do
3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 if test -n "$CC"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483 $as_echo "$CC" >&6; }
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3490 test -n "$CC" && break
3493 if test -z "$CC"; then
3495 for ac_prog
in cl.exe
3497 # Extract the first word of "$ac_prog", so it can be a program name with args.
3498 set dummy
$ac_prog; ac_word
=$2
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 $as_echo_n "checking for $ac_word... " >&6; }
3501 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3502 $as_echo_n "(cached) " >&6
3504 if test -n "$ac_ct_CC"; then
3505 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3511 test -z "$as_dir" && as_dir
=.
3512 for ac_exec_ext
in '' $ac_executable_extensions; do
3513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3514 ac_cv_prog_ac_ct_CC
="$ac_prog"
3515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3525 if test -n "$ac_ct_CC"; then
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3527 $as_echo "$ac_ct_CC" >&6; }
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530 $as_echo "no" >&6; }
3534 test -n "$ac_ct_CC" && break
3537 if test "x$ac_ct_CC" = x
; then
3540 case $cross_compiling:$ac_tool_warned in
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3544 ac_tool_warned
=yes ;;
3553 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555 as_fn_error
"no acceptable C compiler found in \$PATH
3556 See \`config.log' for more details." "$LINENO" 5; }
3558 # Provide some information about the compiler.
3559 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3562 for ac_option
in --version -v -V -qversion; do
3563 { { ac_try
="$ac_compiler $ac_option >&5"
3565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3572 if test -s conftest.err; then
3574 ... rest of stderr output deleted ...
3575 10q' conftest.err >conftest.er1
3576 cat conftest.er1 >&5
3578 rm -f conftest.er1 conftest.err
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3594 ac_clean_files_save=$ac_clean_files
3595 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3596 # Try to create an executable without -o first, disregard a.out.
3597 # It will help us diagnose broken compilers, and finding out an intuition
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3600 $as_echo_n "checking whether the C compiler works... " >&6; }
3601 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3603 # The possible output files:
3604 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3607 for ac_file in $ac_files
3610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3611 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3616 if { { ac_try="$ac_link_default"
3618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3619 *) ac_try_echo
=$ac_try;;
3621 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622 $as_echo "$ac_try_echo"; } >&5
3623 (eval "$ac_link_default") 2>&5
3625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626 test $ac_status = 0; }; then :
3627 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3628 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3629 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3630 # so that the user can short-circuit this test for compilers unknown to
3632 for ac_file
in $ac_files ''
3634 test -f "$ac_file" ||
continue
3636 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3639 # We found the default executable, but exeext='' is most
3643 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3645 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3647 # We set ac_cv_exeext here because the later test for it is not
3648 # safe: cross compilers may not add the suffix if given an `-o'
3649 # argument, so we may need to know it at that point already.
3650 # Even if this section looks crufty: it has the advantage of
3657 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3662 if test -z "$ac_file"; then :
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3665 $as_echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.
$ac_ext >&5
3668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670 { as_fn_set_status
77
3671 as_fn_error
"C compiler cannot create executables
3672 See \`config.log' for more details." "$LINENO" 5; }; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3675 $as_echo "yes" >&6; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3678 $as_echo_n "checking for C compiler default output file name... " >&6; }
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3680 $as_echo "$ac_file" >&6; }
3681 ac_exeext
=$ac_cv_exeext
3683 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3684 ac_clean_files
=$ac_clean_files_save
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3686 $as_echo_n "checking for suffix of executables... " >&6; }
3687 if { { ac_try
="$ac_link"
3689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 $as_echo "$ac_try_echo"; } >&5
3694 (eval "$ac_link") 2>&5
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }; then :
3698 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3699 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3700 # work properly (i.e., refer to `conftest.exe'), while it won't with
3702 for ac_file
in conftest.exe conftest conftest.
*; do
3703 test -f "$ac_file" ||
continue
3705 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3706 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3715 See \`config.log' for more details." "$LINENO" 5; }
3717 rm -f conftest conftest
$ac_cv_exeext
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3719 $as_echo "$ac_cv_exeext" >&6; }
3721 rm -f conftest.
$ac_ext
3722 EXEEXT
=$ac_cv_exeext
3724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3730 FILE *f = fopen ("conftest.out", "w");
3731 return ferror (f) || fclose (f) != 0;
3737 ac_clean_files
="$ac_clean_files conftest.out"
3738 # Check that the compiler produces executables we can run. If not, either
3739 # the compiler is broken, or we cross compile.
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3741 $as_echo_n "checking whether we are cross compiling... " >&6; }
3742 if test "$cross_compiling" != yes; then
3743 { { ac_try
="$ac_link"
3745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749 $as_echo "$ac_try_echo"; } >&5
3750 (eval "$ac_link") 2>&5
3752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753 test $ac_status = 0; }
3754 if { ac_try='./conftest$ac_cv_exeext'
3755 { { case "(($ac_try" in
3756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3757 *) ac_try_echo
=$ac_try;;
3759 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761 (eval "$ac_try") 2>&5
3763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764 test $ac_status = 0; }; }; then
3767 if test "$cross_compiling" = maybe
; then
3770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772 as_fn_error
"cannot run C compiled programs.
3773 If you meant to cross compile, use \`--host'.
3774 See \`config.log' for more details." "$LINENO" 5; }
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3779 $as_echo "$cross_compiling" >&6; }
3781 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3782 ac_clean_files
=$ac_clean_files_save
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3784 $as_echo_n "checking for suffix of object files... " >&6; }
3785 if test "${ac_cv_objext+set}" = set; then :
3786 $as_echo_n "(cached) " >&6
3788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3799 rm -f conftest.o conftest.obj
3800 if { { ac_try
="$ac_compile"
3802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807 (eval "$ac_compile") 2>&5
3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }; then :
3811 for ac_file in conftest.o conftest.obj conftest.*; do
3812 test -f "$ac_file" || continue;
3814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3815 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3820 $as_echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3825 as_fn_error "cannot compute suffix of object files
: cannot compile
3826 See \
`config.log' for more details." "$LINENO" 5; }
3828 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3831 $as_echo "$ac_cv_objext" >&6; }
3832 OBJEXT=$ac_cv_objext
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3835 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3836 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3837 $as_echo_n "(cached) " >&6
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3853 if ac_fn_c_try_compile "$LINENO"; then :
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3863 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3864 if test $ac_compiler_gnu = yes; then
3869 ac_test_CFLAGS=${CFLAGS+set}
3870 ac_save_CFLAGS=$CFLAGS
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3872 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3873 if test "${ac_cv_prog_cc_g+set}" = set; then :
3874 $as_echo_n "(cached) " >&6
3876 ac_save_c_werror_flag=$ac_c_werror_flag
3877 ac_c_werror_flag=yes
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3891 if ac_fn_c_try_compile "$LINENO"; then :
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3906 if ac_fn_c_try_compile "$LINENO"; then :
3909 ac_c_werror_flag=$ac_save_c_werror_flag
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3922 if ac_fn_c_try_compile "$LINENO"; then :
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 ac_c_werror_flag=$ac_save_c_werror_flag
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3933 $as_echo "$ac_cv_prog_cc_g" >&6; }
3934 if test "$ac_test_CFLAGS" = set; then
3935 CFLAGS=$ac_save_CFLAGS
3936 elif test $ac_cv_prog_cc_g = yes; then
3937 if test "$GCC" = yes; then
3943 if test "$GCC" = yes; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3950 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3951 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3954 ac_cv_prog_cc_c89=no
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3960 #include <sys/types.h>
3961 #include <sys/stat.h>
3962 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3963 struct buf { int x; };
3964 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3965 static char *e (p, i)
3971 static char *f (char * (*g) (char **, int), char **p, ...)
3976 s = g (p, va_arg (v,int));
3981 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3982 function prototypes and stuff, but not '\xHH' hex character constants.
3983 These don't provoke an error unfortunately, instead are silently treated
3984 as 'x'. The following induces an error, until -std is added to get
3985 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3986 array size at least. It's necessary to write '\x00'==0 to get something
3987 that's true only with -std. */
3988 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3990 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3991 inside strings and character constants. */
3993 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3995 int test (int i, double x);
3996 struct s1 {int (*f) (int a);};
3997 struct s2 {int (*f) (double a);};
3998 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4004 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4009 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4010 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4012 CC="$ac_save_CC $ac_arg"
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014 ac_cv_prog_cc_c89=$ac_arg
4016 rm -f core conftest.err conftest.$ac_objext
4017 test "x$ac_cv_prog_cc_c89" != "xno" && break
4019 rm -f conftest.$ac_ext
4024 case "x$ac_cv_prog_cc_c89" in
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4027 $as_echo "none needed" >&6; } ;;
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4030 $as_echo "unsupported" >&6; } ;;
4032 CC="$CC $ac_cv_prog_cc_c89"
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4034 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4036 if test "x$ac_cv_prog_cc_c89" != xno; then :
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045 DEPDIR="${am__leading_dot}deps"
4047 ac_config_commands="$ac_config_commands depfiles"
4050 am_make=${MAKE-make}
4051 cat > confinc << 'END'
4053 @echo this is the am__doit target
4056 # If we don't find an include directive, just comment out the code.
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4058 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4062 # First try GNU make style include.
4063 echo "include confinc" > confmf
4064 # Ignore all kinds of additional output from `make'.
4065 case `$am_make -s -f confmf 2> /dev/null` in #(
4066 *the\ am__doit\ target*)
4072 # Now try BSD make style include.
4073 if test "$am__include" = "#"; then
4074 echo '.include
"confinc"' > confmf
4075 case `$am_make -s -f confmf 2> /dev/null` in #(
4076 *the\ am__doit\ target*)
4077 am__include=.include
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4086 $as_echo "$_am_result" >&6; }
4087 rm -f confinc confmf
4089 # Check whether --enable-dependency-tracking was given.
4090 if test "${enable_dependency_tracking+set}" = set; then :
4091 enableval=$enable_dependency_tracking;
4094 if test "x$enable_dependency_tracking" != xno; then
4095 am_depcomp="$ac_aux_dir/depcomp"
4098 if test "x$enable_dependency_tracking" != xno
; then
4108 depcc
="$CC" am_compiler_list
=
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4111 $as_echo_n "checking dependency style of $depcc... " >&6; }
4112 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4113 $as_echo_n "(cached) " >&6
4115 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4116 # We make a subdir and do the tests there. Otherwise we can end up
4117 # making bogus files that we don't know about and never remove. For
4118 # instance it was reported that on HP-UX the gcc test will end up
4119 # making a dummy file named `D' -- because `-MD' means `put the output
4122 # Copy depcomp to subdir because otherwise we won't find it if we're
4123 # using a relative directory.
4124 cp "$am_depcomp" conftest.dir
4126 # We will build objects and dependencies in a subdirectory because
4127 # it helps to detect inapplicable dependency modes. For instance
4128 # both Tru64's cc and ICC support -MD to output dependencies as a
4129 # side effect of compilation, but ICC will put the dependencies in
4130 # the current directory while Tru64 will put them in the object
4134 am_cv_CC_dependencies_compiler_type
=none
4135 if test "$am_compiler_list" = ""; then
4136 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4139 case " $depcc " in #(
4140 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4143 for depmode
in $am_compiler_list; do
4144 # Setup a source with many dependencies, because some compilers
4145 # like to wrap large dependency lists on column 80 (with \), and
4146 # we should not choose a depcomp mode which is confused by this.
4148 # We need to recreate these files for each test, as the compiler may
4149 # overwrite some of them when testing with obscure command lines.
4150 # This happens at least with the AIX C compiler.
4152 for i
in 1 2 3 4 5 6; do
4153 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4154 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4155 # Solaris 8's {/usr,}/bin/sh.
4156 touch sub
/conftst
$i.h
4158 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4160 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4161 # mode. It turns out that the SunPro C++ compiler does not properly
4162 # handle `-M -o', and we need to detect this. Also, some Intel
4163 # versions had trouble with output in subdirs
4164 am__obj
=sub
/conftest.
${OBJEXT-o}
4165 am__minus_obj
="-o $am__obj"
4168 # This depmode causes a compiler race in universal mode.
4169 test "$am__universal" = false ||
continue
4172 # after this tag, mechanisms are not by side-effect, so they'll
4173 # only be used when explicitly requested
4174 if test "x$enable_dependency_tracking" = xyes
; then
4180 msvisualcpp | msvcmsys
)
4181 # This compiler won't grok `-c -o', but also, the minuso test has
4182 # not run yet. These depmodes are late enough in the game, and
4183 # so weak that their functioning should not be impacted.
4184 am__obj
=conftest.
${OBJEXT-o}
4189 if depmode
=$depmode \
4190 source=sub
/conftest.c object
=$am__obj \
4191 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4192 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4193 >/dev
/null
2>conftest.err
&&
4194 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4195 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4196 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4197 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4198 # icc doesn't choke on unknown options, it will just issue warnings
4199 # or remarks (even with -Werror). So we grep stderr for any message
4200 # that says an option was ignored or not supported.
4201 # When given -MP, icc 7.0 and 7.1 complain thusly:
4202 # icc: Command line warning: ignoring option '-M'; no argument required
4203 # The diagnosis changed in icc 8.0:
4204 # icc: Command line remark: option '-MP' not supported
4205 if (grep 'ignoring option' conftest.err ||
4206 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4207 am_cv_CC_dependencies_compiler_type
=$depmode
4216 am_cv_CC_dependencies_compiler_type
=none
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4221 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4222 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4225 test "x$enable_dependency_tracking" != xno \
4226 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4228 am__fastdepCC_FALSE
='#'
4230 am__fastdepCC_TRUE
='#'
4231 am__fastdepCC_FALSE
=
4236 # AC_PROG_CC_STDC has two functions. It attempts to find a compiler
4237 # capable of C99, or failing that, for C89. CC is set afterward with
4238 # the selected invocation, such as "gcc --std=gnu99". Also, the
4239 # ac_cv_prog_cc_stdc variable is no if the compiler selected for CC
4240 # does not accept C89.
4242 case $ac_cv_prog_cc_stdc in #(
4244 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4247 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4248 if test "${ac_cv_prog_cc_c99+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4251 ac_cv_prog_cc_c99
=no
4253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4256 #include <stdbool.h>
4261 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4262 #define debug(...) fprintf (stderr, __VA_ARGS__)
4263 #define showlist(...) puts (#__VA_ARGS__)
4264 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4266 test_varargs_macros (void)
4271 debug ("X = %d\n", x);
4272 showlist (The first, second, and third items.);
4273 report (x>y, "x is %d but y is %d", x, y);
4276 // Check long long types.
4277 #define BIG64 18446744073709551615ull
4278 #define BIG32 4294967295ul
4279 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4281 your preprocessor is broken;
4285 your preprocessor is broken;
4287 static long long int bignum = -9223372036854775807LL;
4288 static unsigned long long int ubignum = BIG64;
4290 struct incomplete_array
4298 const wchar_t *name;
4302 typedef const char *ccp;
4305 test_restrict (ccp restrict text)
4307 // See if C++-style comments work.
4308 // Iterate through items via the restricted pointer.
4309 // Also check for declarations in for loops.
4310 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4315 // Check varargs and va_copy.
4317 test_varargs (const char *format, ...)
4320 va_start (args, format);
4322 va_copy (args_copy, args);
4333 str = va_arg (args_copy, const char *);
4336 number = va_arg (args_copy, int);
4339 fnumber = va_arg (args_copy, double);
4354 _Bool success = false;
4357 if (test_restrict ("String literal") == 0)
4359 char *restrict newvar = "Another string";
4362 test_varargs ("s, d' f .", "string", 65, 34.234);
4363 test_varargs_macros ();
4365 // Check flexible array members.
4366 struct incomplete_array *ia =
4367 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4369 for (int i = 0; i < ia->datasize; ++i)
4370 ia->data[i] = i * 1.234;
4372 // Check named initializers.
4373 struct named_init ni = {
4375 .name = L"Test wide string",
4376 .average = 543.34343,
4381 int dynamic_array[ni.number];
4382 dynamic_array[ni.number - 1] = 543;
4384 // work around unused variable warnings
4385 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4386 || dynamic_array[ni.number - 1] != 543);
4392 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
4394 CC
="$ac_save_CC $ac_arg"
4395 if ac_fn_c_try_compile
"$LINENO"; then :
4396 ac_cv_prog_cc_c99
=$ac_arg
4398 rm -f core conftest.err conftest.
$ac_objext
4399 test "x$ac_cv_prog_cc_c99" != "xno" && break
4401 rm -f conftest.
$ac_ext
4406 case "x$ac_cv_prog_cc_c99" in
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4409 $as_echo "none needed" >&6; } ;;
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4412 $as_echo "unsupported" >&6; } ;;
4414 CC
="$CC $ac_cv_prog_cc_c99"
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4416 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4418 if test "x$ac_cv_prog_cc_c99" != xno
; then :
4419 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4422 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4423 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4424 $as_echo_n "(cached) " >&6
4426 ac_cv_prog_cc_c89
=no
4428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4432 #include <sys/types.h>
4433 #include <sys/stat.h>
4434 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4435 struct buf { int x; };
4436 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4437 static char *e (p, i)
4443 static char *f (char * (*g) (char **, int), char **p, ...)
4448 s = g (p, va_arg (v,int));
4453 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4454 function prototypes and stuff, but not '\xHH' hex character constants.
4455 These don't provoke an error unfortunately, instead are silently treated
4456 as 'x'. The following induces an error, until -std is added to get
4457 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4458 array size at least. It's necessary to write '\x00'==0 to get something
4459 that's true only with -std. */
4460 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4462 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4463 inside strings and character constants. */
4465 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4467 int test (int i, double x);
4468 struct s1 {int (*f) (int a);};
4469 struct s2 {int (*f) (double a);};
4470 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4476 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4481 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
4482 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4484 CC
="$ac_save_CC $ac_arg"
4485 if ac_fn_c_try_compile
"$LINENO"; then :
4486 ac_cv_prog_cc_c89
=$ac_arg
4488 rm -f core conftest.err conftest.
$ac_objext
4489 test "x$ac_cv_prog_cc_c89" != "xno" && break
4491 rm -f conftest.
$ac_ext
4496 case "x$ac_cv_prog_cc_c89" in
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4499 $as_echo "none needed" >&6; } ;;
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4502 $as_echo "unsupported" >&6; } ;;
4504 CC
="$CC $ac_cv_prog_cc_c89"
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4506 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4508 if test "x$ac_cv_prog_cc_c89" != xno
; then :
4509 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
4511 ac_cv_prog_cc_stdc
=no
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4518 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4519 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4523 case $ac_cv_prog_cc_stdc in #(
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4526 $as_echo "unsupported" >&6; } ;; #(
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4529 $as_echo "none needed" >&6; } ;; #(
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4532 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4536 case "$ac_cv_prog_cc_stdc" in
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile SNTP
4539 version 4.2.5 and higher." >&5
4540 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile SNTP
4541 version 4.2.5 and higher." >&2;}
4546 SAVED_CFLAGS_AC
="$CFLAGS"
4547 CFLAGS
="$CFLAGS -Wstrict-overflow"
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
4550 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
4551 if test "${ac_cv_gcc_Wstrict_overflow+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
4555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4566 if ac_fn_c_try_compile
"$LINENO"; then :
4567 ac_cv_gcc_Wstrict_overflow
=yes
4569 ac_cv_gcc_Wstrict_overflow
=no
4572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Wstrict_overflow" >&5
4577 $as_echo "$ac_cv_gcc_Wstrict_overflow" >&6; }
4578 CFLAGS
="$SAVED_CFLAGS_AC"
4581 CFLAGS
="$CFLAGS -Wall"
4582 # CFLAGS="$CFLAGS -Wcast-align"
4583 CFLAGS
="$CFLAGS -Wcast-qual"
4584 # CFLAGS="$CFLAGS -Wconversion"
4585 # CFLAGS="$CFLAGS -Werror"
4586 # CFLAGS="$CFLAGS -Wextra"
4587 # CFLAGS="$CFLAGS -Wfloat-equal"
4588 CFLAGS
="$CFLAGS -Wmissing-prototypes"
4589 CFLAGS
="$CFLAGS -Wpointer-arith"
4590 CFLAGS
="$CFLAGS -Wshadow"
4591 CFLAGS
="$CFLAGS -Wstrict-prototypes"
4592 # CFLAGS="$CFLAGS -Wtraditional"
4593 # CFLAGS="$CFLAGS -Wwrite-strings"
4594 case "$ac_cv_gcc_Wstrict_overflow" in
4596 CFLAGS
="$CFLAGS -Wstrict-overflow"
4600 # HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
4603 # see "man standards".
4604 # -D_XOPEN_SOURCE=500 is probably OK for c89 and before
4605 # -D_XOPEN_SOURCE=600 seems OK for c99
4606 #CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
4607 CPPFLAGS
="$CPPFLAGS -D__EXTENSIONS__"
4612 # Check whether --enable-shared was given.
4613 if test "${enable_shared+set}" = set; then :
4614 enableval
=$enable_shared; p
=${PACKAGE-default}
4616 yes) enable_shared
=yes ;;
4617 no
) enable_shared
=no
;;
4620 # Look at the argument we got. We use all the common list separators.
4621 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4622 for pkg
in $enableval; do
4624 if test "X$pkg" = "X$p"; then
4638 # NTP has (so far) been relying on leading-edge autogen.
4639 # Therefore, by default:
4640 # - use the version we ship with
4641 # - do not install it
4642 # - build a static copy (AC_DISABLE_SHARED - done earlier)
4643 case "${enable_local_libopts+set}" in
4645 *) enable_local_libopts
=yes ;;
4647 case "${enable_libopts_install+set}" in
4649 *) enable_libopts_install
=no
;;
4652 ac_cpp
='$CPP $CPPFLAGS'
4653 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4657 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4658 # On Suns, sometimes $CPP names a directory.
4659 if test -n "$CPP" && test -d "$CPP"; then
4662 if test -z "$CPP"; then
4663 if test "${ac_cv_prog_CPP+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4666 # Double quotes because CPP needs to be expanded
4667 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4670 for ac_c_preproc_warn_flag
in '' yes
4672 # Use a header file that comes with gcc, so configuring glibc
4673 # with a fresh cross-compiler works.
4674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4675 # <limits.h> exists even on freestanding compilers.
4676 # On the NeXT, cc -E runs the code through the compiler's parser,
4677 # not just through cpp. "Syntax error" is here to catch this case.
4678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4681 # include <limits.h>
4683 # include <assert.h>
4687 if ac_fn_c_try_cpp
"$LINENO"; then :
4690 # Broken: fails on valid input.
4693 rm -f conftest.err conftest.
$ac_ext
4695 # OK, works on sane cases. Now check whether nonexistent headers
4696 # can be detected and how.
4697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699 #include <ac_nonexistent.h>
4701 if ac_fn_c_try_cpp
"$LINENO"; then :
4702 # Broken: success on invalid input.
4705 # Passes both tests.
4709 rm -f conftest.err conftest.
$ac_ext
4712 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4713 rm -f conftest.err conftest.
$ac_ext
4714 if $ac_preproc_ok; then :
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4727 $as_echo "$CPP" >&6; }
4729 for ac_c_preproc_warn_flag
in '' yes
4731 # Use a header file that comes with gcc, so configuring glibc
4732 # with a fresh cross-compiler works.
4733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4734 # <limits.h> exists even on freestanding compilers.
4735 # On the NeXT, cc -E runs the code through the compiler's parser,
4736 # not just through cpp. "Syntax error" is here to catch this case.
4737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4740 # include <limits.h>
4742 # include <assert.h>
4746 if ac_fn_c_try_cpp
"$LINENO"; then :
4749 # Broken: fails on valid input.
4752 rm -f conftest.err conftest.
$ac_ext
4754 # OK, works on sane cases. Now check whether nonexistent headers
4755 # can be detected and how.
4756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4758 #include <ac_nonexistent.h>
4760 if ac_fn_c_try_cpp
"$LINENO"; then :
4761 # Broken: success on invalid input.
4764 # Passes both tests.
4768 rm -f conftest.err conftest.
$ac_ext
4771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4772 rm -f conftest.err conftest.
$ac_ext
4773 if $ac_preproc_ok; then :
4776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4778 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4779 See \`config.log' for more details." "$LINENO" 5; }
4783 ac_cpp
='$CPP $CPPFLAGS'
4784 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4790 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4791 if test "${ac_cv_path_GREP+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4794 if test -z "$GREP"; then
4795 ac_path_GREP_found
=false
4796 # Loop through the user's path and test for each of PROGNAME-LIST
4797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4798 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4801 test -z "$as_dir" && as_dir
=.
4802 for ac_prog
in grep ggrep
; do
4803 for ac_exec_ext
in '' $ac_executable_extensions; do
4804 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4805 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4806 # Check for GNU ac_path_GREP and select it if it is found.
4807 # Check for GNU $ac_path_GREP
4808 case `"$ac_path_GREP" --version 2>&1` in
4810 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4813 $as_echo_n 0123456789 >"conftest.in"
4816 cat "conftest.in" "conftest.in" >"conftest.tmp"
4817 mv "conftest.tmp" "conftest.in"
4818 cp "conftest.in" "conftest.nl"
4819 $as_echo 'GREP' >> "conftest.nl"
4820 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4821 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4822 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4823 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4824 # Best one so far, save it but keep looking for a better one
4825 ac_cv_path_GREP
="$ac_path_GREP"
4826 ac_path_GREP_max
=$ac_count
4828 # 10*(2^10) chars as input seems more than enough
4829 test $ac_count -gt 10 && break
4831 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4834 $ac_path_GREP_found && break 3
4839 if test -z "$ac_cv_path_GREP"; then
4840 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4843 ac_cv_path_GREP
=$GREP
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4848 $as_echo "$ac_cv_path_GREP" >&6; }
4849 GREP
="$ac_cv_path_GREP"
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4853 $as_echo_n "checking for egrep... " >&6; }
4854 if test "${ac_cv_path_EGREP+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4857 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4858 then ac_cv_path_EGREP
="$GREP -E"
4860 if test -z "$EGREP"; then
4861 ac_path_EGREP_found
=false
4862 # Loop through the user's path and test for each of PROGNAME-LIST
4863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4864 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4867 test -z "$as_dir" && as_dir
=.
4868 for ac_prog
in egrep; do
4869 for ac_exec_ext
in '' $ac_executable_extensions; do
4870 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4871 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4872 # Check for GNU ac_path_EGREP and select it if it is found.
4873 # Check for GNU $ac_path_EGREP
4874 case `"$ac_path_EGREP" --version 2>&1` in
4876 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4879 $as_echo_n 0123456789 >"conftest.in"
4882 cat "conftest.in" "conftest.in" >"conftest.tmp"
4883 mv "conftest.tmp" "conftest.in"
4884 cp "conftest.in" "conftest.nl"
4885 $as_echo 'EGREP' >> "conftest.nl"
4886 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4887 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4888 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4889 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4890 # Best one so far, save it but keep looking for a better one
4891 ac_cv_path_EGREP
="$ac_path_EGREP"
4892 ac_path_EGREP_max
=$ac_count
4894 # 10*(2^10) chars as input seems more than enough
4895 test $ac_count -gt 10 && break
4897 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4900 $ac_path_EGREP_found && break 3
4905 if test -z "$ac_cv_path_EGREP"; then
4906 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4909 ac_cv_path_EGREP
=$EGREP
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4915 $as_echo "$ac_cv_path_EGREP" >&6; }
4916 EGREP
="$ac_cv_path_EGREP"
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4920 $as_echo_n "checking for ANSI C header files... " >&6; }
4921 if test "${ac_cv_header_stdc+set}" = set; then :
4922 $as_echo_n "(cached) " >&6
4924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4939 if ac_fn_c_try_compile
"$LINENO"; then :
4940 ac_cv_header_stdc
=yes
4942 ac_cv_header_stdc
=no
4944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4946 if test $ac_cv_header_stdc = yes; then
4947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4954 $EGREP "memchr" >/dev
/null
2>&1; then :
4957 ac_cv_header_stdc
=no
4963 if test $ac_cv_header_stdc = yes; then
4964 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4971 $EGREP "free" >/dev
/null
2>&1; then :
4974 ac_cv_header_stdc
=no
4980 if test $ac_cv_header_stdc = yes; then
4981 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4982 if test "$cross_compiling" = yes; then :
4985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4989 #if ((' ' & 0x0FF) == 0x020)
4990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4993 # define ISLOWER(c) \
4994 (('a' <= (c) && (c) <= 'i') \
4995 || ('j' <= (c) && (c) <= 'r') \
4996 || ('s' <= (c) && (c) <= 'z'))
4997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5005 for (i = 0; i < 256; i++)
5006 if (XOR (islower (i), ISLOWER (i))
5007 || toupper (i) != TOUPPER (i))
5012 if ac_fn_c_try_run
"$LINENO"; then :
5015 ac_cv_header_stdc
=no
5017 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5018 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5024 $as_echo "$ac_cv_header_stdc" >&6; }
5025 if test $ac_cv_header_stdc = yes; then
5027 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5031 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5032 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5033 inttypes.h stdint.h unistd.h
5035 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5036 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5038 eval as_val
=\$
$as_ac_Header
5039 if test "x$as_val" = x
""yes; then :
5040 cat >>confdefs.h
<<_ACEOF
5041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5049 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5050 if test "x$ac_cv_type_pid_t" = x
""yes; then :
5054 cat >>confdefs.h
<<_ACEOF
5065 # Check whether --enable-local-libopts was given.
5066 if test "${enable_local_libopts+set}" = set; then :
5067 enableval
=$enable_local_libopts;
5068 if test x
$enableval = xyes
; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
5070 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
5071 LIBOPTS_LDADD
='$(top_builddir)/libopts/libopts.la'
5072 LIBOPTS_CFLAGS
='-I$(top_srcdir)/libopts'
5073 NEED_LIBOPTS_DIR
=true
5078 # Check whether --enable-libopts-install was given.
5079 if test "${enable_libopts_install+set}" = set; then :
5080 enableval
=$enable_libopts_install;
5083 if test "X${enable_libopts_install}" != Xno
; then
5084 INSTALL_LIBOPTS_TRUE
=
5085 INSTALL_LIBOPTS_FALSE
='#'
5087 INSTALL_LIBOPTS_TRUE
='#'
5088 INSTALL_LIBOPTS_FALSE
=
5092 if test -z "${NEED_LIBOPTS_DIR}" ; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
5094 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
5096 # Check whether --with-autoopts-config was given.
5097 if test "${with_autoopts_config+set}" = set; then :
5098 withval
=$with_autoopts_config; lo_cv_with_autoopts_config
=${with_autoopts_config}
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
5101 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
5102 if test "${lo_cv_with_autoopts_config+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5105 if autoopts-config
--help 2>/dev
/null
1>&2
5106 then lo_cv_with_autoopts_config
=autoopts-config
5107 elif libopts-config
--help 2>/dev
/null
1>&2
5108 then lo_cv_with_autoopts_config
=libopts-config
5109 else lo_cv_with_autoopts_config
=no
; fi
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
5112 $as_echo "$lo_cv_with_autoopts_config" >&6; }
5115 # end of AC_ARG_WITH
5117 if test "${lo_cv_test_autoopts+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5121 if test -z "${lo_cv_with_autoopts_config}" \
5122 -o X
"${lo_cv_with_autoopts_config}" = Xno
5124 if autoopts-config
--help 2>/dev
/null
1>&2
5125 then lo_cv_with_autoopts_config
=autoopts-config
5126 elif libopts-config
--help 2>/dev
/null
1>&2
5127 then lo_cv_with_autoopts_config
=libopts-config
5128 else lo_cv_with_autoopts_config
=false
; fi
5130 lo_cv_test_autoopts
=`
5131 ${lo_cv_with_autoopts_config} --libs` 2> /dev
/null
5132 if test $?
-ne 0 -o -z "${lo_cv_test_autoopts}"
5133 then lo_cv_test_autoopts
=no
; fi
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
5138 $as_echo "${lo_cv_test_autoopts}" >&6; }
5140 if test "X${lo_cv_test_autoopts}" != Xno
5142 LIBOPTS_LDADD
="${lo_cv_test_autoopts}"
5143 LIBOPTS_CFLAGS
="`${lo_cv_with_autoopts_config} --cflags`"
5145 LIBOPTS_LDADD
='$(top_builddir)/libopts/libopts.la'
5146 LIBOPTS_CFLAGS
='-I$(top_srcdir)/libopts'
5147 NEED_LIBOPTS_DIR
=true
5149 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
5151 if test -n "${NEED_LIBOPTS_DIR}"; then
5153 NEED_LIBOPTS_FALSE
='#'
5155 NEED_LIBOPTS_TRUE
='#'
5163 ac_config_files
="$ac_config_files libopts/Makefile"
5167 if test -n "${NEED_LIBOPTS_DIR}" ; then
5170 if test X
${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes
; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5172 $as_echo_n "checking for ANSI C header files... " >&6; }
5173 if test "${ac_cv_header_stdc+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5191 if ac_fn_c_try_compile
"$LINENO"; then :
5192 ac_cv_header_stdc
=yes
5194 ac_cv_header_stdc
=no
5196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5198 if test $ac_cv_header_stdc = yes; then
5199 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5206 $EGREP "memchr" >/dev
/null
2>&1; then :
5209 ac_cv_header_stdc
=no
5215 if test $ac_cv_header_stdc = yes; then
5216 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5223 $EGREP "free" >/dev
/null
2>&1; then :
5226 ac_cv_header_stdc
=no
5232 if test $ac_cv_header_stdc = yes; then
5233 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5234 if test "$cross_compiling" = yes; then :
5237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5241 #if ((' ' & 0x0FF) == 0x020)
5242 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5243 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5245 # define ISLOWER(c) \
5246 (('a' <= (c) && (c) <= 'i') \
5247 || ('j' <= (c) && (c) <= 'r') \
5248 || ('s' <= (c) && (c) <= 'z'))
5249 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5252 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5257 for (i = 0; i < 256; i++)
5258 if (XOR (islower (i), ISLOWER (i))
5259 || toupper (i) != TOUPPER (i))
5264 if ac_fn_c_try_run
"$LINENO"; then :
5267 ac_cv_header_stdc
=no
5269 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5270 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5276 $as_echo "$ac_cv_header_stdc" >&6; }
5277 if test $ac_cv_header_stdc = yes; then
5279 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5284 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5285 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5287 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5288 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5289 $as_echo_n "(cached) " >&6
5291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 #include <sys/types.h>
5305 if ac_fn_c_try_compile
"$LINENO"; then :
5306 eval "$as_ac_Header=yes"
5308 eval "$as_ac_Header=no"
5310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5312 eval ac_res
=\$
$as_ac_Header
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5314 $as_echo "$ac_res" >&6; }
5315 eval as_val
=\$
$as_ac_Header
5316 if test "x$as_val" = x
""yes; then :
5317 cat >>confdefs.h
<<_ACEOF
5318 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5321 ac_header_dirent
=$ac_hdr; break
5325 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5326 if test $ac_header_dirent = dirent.h
; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5328 $as_echo_n "checking for library containing opendir... " >&6; }
5329 if test "${ac_cv_search_opendir+set}" = set; then :
5330 $as_echo_n "(cached) " >&6
5332 ac_func_search_save_LIBS
=$LIBS
5333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5336 /* Override any GCC internal prototype to avoid an error.
5337 Use char because int might match the return type of a GCC
5338 builtin and then its argument prototype would still apply. */
5351 for ac_lib
in '' dir
; do
5352 if test -z "$ac_lib"; then
5353 ac_res
="none required"
5356 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5358 if ac_fn_c_try_link
"$LINENO"; then :
5359 ac_cv_search_opendir
=$ac_res
5361 rm -f core conftest.err conftest.
$ac_objext \
5363 if test "${ac_cv_search_opendir+set}" = set; then :
5367 if test "${ac_cv_search_opendir+set}" = set; then :
5370 ac_cv_search_opendir
=no
5373 LIBS
=$ac_func_search_save_LIBS
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5376 $as_echo "$ac_cv_search_opendir" >&6; }
5377 ac_res
=$ac_cv_search_opendir
5378 if test "$ac_res" != no
; then :
5379 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5385 $as_echo_n "checking for library containing opendir... " >&6; }
5386 if test "${ac_cv_search_opendir+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5389 ac_func_search_save_LIBS
=$LIBS
5390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5393 /* Override any GCC internal prototype to avoid an error.
5394 Use char because int might match the return type of a GCC
5395 builtin and then its argument prototype would still apply. */
5408 for ac_lib
in '' x
; do
5409 if test -z "$ac_lib"; then
5410 ac_res
="none required"
5413 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5415 if ac_fn_c_try_link
"$LINENO"; then :
5416 ac_cv_search_opendir
=$ac_res
5418 rm -f core conftest.err conftest.
$ac_objext \
5420 if test "${ac_cv_search_opendir+set}" = set; then :
5424 if test "${ac_cv_search_opendir+set}" = set; then :
5427 ac_cv_search_opendir
=no
5430 LIBS
=$ac_func_search_save_LIBS
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5433 $as_echo "$ac_cv_search_opendir" >&6; }
5434 ac_res
=$ac_cv_search_opendir
5435 if test "$ac_res" != no
; then :
5436 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5446 for ac_header
in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet
/in.h \
5447 setjmp.h sys
/mman.h sys
/param.h sys
/poll.h sys
/procset.h sys
/select.h \
5448 sys
/socket.h sys
/stropts.h sys
/time.h sys
/un.h sys
/wait.h unistd.h \
5451 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5452 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5453 eval as_val
=\$
$as_ac_Header
5454 if test "x$as_val" = x
""yes; then :
5455 cat >>confdefs.h
<<_ACEOF
5456 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5464 # --------------------------------------------
5465 # Verify certain entries from AC_CHECK_HEADERS
5466 # --------------------------------------------
5467 for f
in sys_types sys_mman sys_param sys_stat sys_wait \
5468 string errno stdlib memory setjmp
5469 do eval as_ac_var
=\
${ac_cv_header_${f}_h+set}
5470 test "${as_ac_var}" = set || \
5471 as_fn_error
"You must have ${f}.h on your system" "$LINENO" 5
5474 # ================================================
5475 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
5476 # if varargs.h is present define HAVE_VARARGS_H.
5477 # ================================================
5478 for ac_header
in stdarg.h varargs.h
5480 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5481 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5482 eval as_val
=\$
$as_ac_Header
5483 if test "x$as_val" = x
""yes; then :
5484 cat >>confdefs.h
<<_ACEOF
5485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5492 if test `eval echo '${'$as_ac_Header'}'` != yes; then
5493 as_fn_error
"You must have stdarg.h or varargs.h on your system" "$LINENO" 5
5496 # ================================================
5497 # Similarly for the string.h and strings.h headers
5498 # ================================================
5499 for ac_header
in string.h
strings.h
5501 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5502 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5503 eval as_val
=\$
$as_ac_Header
5504 if test "x$as_val" = x
""yes; then :
5505 cat >>confdefs.h
<<_ACEOF
5506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5513 if test `eval echo '${'$as_ac_Header'}'` != yes; then
5514 as_fn_error
"You must have string.h or strings.h on your system" "$LINENO" 5
5517 # =====================
5518 # ...and limits headers
5519 # =====================
5520 for ac_header
in limits.h sys
/limits.h values.h
5522 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5523 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5524 eval as_val
=\$
$as_ac_Header
5525 if test "x$as_val" = x
""yes; then :
5526 cat >>confdefs.h
<<_ACEOF
5527 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5534 if test `eval echo '${'$as_ac_Header'}'` != yes; then
5535 as_fn_error
"You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
5538 # ----------------------------------------------------------------------
5539 # check for various programs used during the build.
5540 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
5541 # ----------------------------------------------------------------------
5542 for ac_header
in runetype.h wchar.h
5544 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5545 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
5546 $ac_includes_default
5548 # include <runetype.h>
5552 eval as_val
=\$
$as_ac_Header
5553 if test "x$as_val" = x
""yes; then :
5554 cat >>confdefs.h
<<_ACEOF
5555 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5563 # ----------------------------------------------------------------------
5564 # Checks for typedefs
5565 # ----------------------------------------------------------------------
5566 ac_fn_c_check_type
"$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
5567 if test "x$ac_cv_type_wchar_t" = x
""yes; then :
5569 cat >>confdefs.h
<<_ACEOF
5570 #define HAVE_WCHAR_T 1
5576 ac_fn_c_check_type
"$LINENO" "wint_t" "ac_cv_type_wint_t" "
5577 $ac_includes_default
5579 # include <runetype.h>
5586 if test "x$ac_cv_type_wint_t" = x
""yes; then :
5588 cat >>confdefs.h
<<_ACEOF
5589 #define HAVE_WINT_T 1
5596 # ========================
5597 # ...and int types headers
5598 # ========================
5599 for ac_header
in stdint.h inttypes.h
5601 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5602 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5603 eval as_val
=\$
$as_ac_Header
5604 if test "x$as_val" = x
""yes; then :
5605 cat >>confdefs.h
<<_ACEOF
5606 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5613 ac_fn_c_check_type
"$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
5614 if test "x$ac_cv_type_int8_t" = x
""yes; then :
5616 cat >>confdefs.h
<<_ACEOF
5617 #define HAVE_INT8_T 1
5622 ac_fn_c_check_type
"$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
5623 if test "x$ac_cv_type_uint8_t" = x
""yes; then :
5625 cat >>confdefs.h
<<_ACEOF
5626 #define HAVE_UINT8_T 1
5631 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5632 if test "x$ac_cv_type_int16_t" = x
""yes; then :
5634 cat >>confdefs.h
<<_ACEOF
5635 #define HAVE_INT16_T 1
5640 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5641 if test "x$ac_cv_type_uint16_t" = x
""yes; then :
5643 cat >>confdefs.h
<<_ACEOF
5644 #define HAVE_UINT16_T 1
5649 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5650 if test "x$ac_cv_type_int32_t" = x
""yes; then :
5652 cat >>confdefs.h
<<_ACEOF
5653 #define HAVE_INT32_T 1
5658 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5659 if test "x$ac_cv_type_uint32_t" = x
""yes; then :
5661 cat >>confdefs.h
<<_ACEOF
5662 #define HAVE_UINT32_T 1
5667 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5668 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
5670 cat >>confdefs.h
<<_ACEOF
5671 #define HAVE_INTPTR_T 1
5676 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5677 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
5679 cat >>confdefs.h
<<_ACEOF
5680 #define HAVE_UINTPTR_T 1
5685 ac_fn_c_check_type
"$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
5686 if test "x$ac_cv_type_uint_t" = x
""yes; then :
5688 cat >>confdefs.h
<<_ACEOF
5689 #define HAVE_UINT_T 1
5694 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5695 if test "x$ac_cv_type_pid_t" = x
""yes; then :
5697 cat >>confdefs.h
<<_ACEOF
5698 #define HAVE_PID_T 1
5703 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5704 if test "x$ac_cv_type_size_t" = x
""yes; then :
5706 cat >>confdefs.h
<<_ACEOF
5707 #define HAVE_SIZE_T 1
5717 # The cast to long int works around a bug in the HP C Compiler
5718 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5719 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5720 # This bug is HP SR number 8606223364.
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
5722 $as_echo_n "checking size of char*... " >&6; }
5723 if test "${ac_cv_sizeof_charp+set}" = set; then :
5724 $as_echo_n "(cached) " >&6
5726 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
5729 if test "$ac_cv_type_charp" = yes; then
5730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5732 { as_fn_set_status
77
5733 as_fn_error
"cannot compute sizeof (char*)
5734 See \`config.log' for more details." "$LINENO" 5; }; }
5736 ac_cv_sizeof_charp
=0
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
5742 $as_echo "$ac_cv_sizeof_charp" >&6; }
5746 cat >>confdefs.h
<<_ACEOF
5747 #define SIZEOF_CHARP $ac_cv_sizeof_charp
5751 # The cast to long int works around a bug in the HP C Compiler
5752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5754 # This bug is HP SR number 8606223364.
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5756 $as_echo_n "checking size of int... " >&6; }
5757 if test "${ac_cv_sizeof_int+set}" = set; then :
5758 $as_echo_n "(cached) " >&6
5760 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5763 if test "$ac_cv_type_int" = yes; then
5764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5766 { as_fn_set_status
77
5767 as_fn_error
"cannot compute sizeof (int)
5768 See \`config.log' for more details." "$LINENO" 5; }; }
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5776 $as_echo "$ac_cv_sizeof_int" >&6; }
5780 cat >>confdefs.h
<<_ACEOF
5781 #define SIZEOF_INT $ac_cv_sizeof_int
5785 # The cast to long int works around a bug in the HP C Compiler
5786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5788 # This bug is HP SR number 8606223364.
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5790 $as_echo_n "checking size of long... " >&6; }
5791 if test "${ac_cv_sizeof_long+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5794 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5797 if test "$ac_cv_type_long" = yes; then
5798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5800 { as_fn_set_status
77
5801 as_fn_error
"cannot compute sizeof (long)
5802 See \`config.log' for more details." "$LINENO" 5; }; }
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5810 $as_echo "$ac_cv_sizeof_long" >&6; }
5814 cat >>confdefs.h
<<_ACEOF
5815 #define SIZEOF_LONG $ac_cv_sizeof_long
5819 # The cast to long int works around a bug in the HP C Compiler
5820 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5821 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5822 # This bug is HP SR number 8606223364.
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5824 $as_echo_n "checking size of short... " >&6; }
5825 if test "${ac_cv_sizeof_short+set}" = set; then :
5826 $as_echo_n "(cached) " >&6
5828 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5831 if test "$ac_cv_type_short" = yes; then
5832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5834 { as_fn_set_status
77
5835 as_fn_error
"cannot compute sizeof (short)
5836 See \`config.log' for more details." "$LINENO" 5; }; }
5838 ac_cv_sizeof_short
=0
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5844 $as_echo "$ac_cv_sizeof_short" >&6; }
5848 cat >>confdefs.h
<<_ACEOF
5849 #define SIZEOF_SHORT $ac_cv_sizeof_short
5854 # ----------------------------------------------------------------------
5855 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
5856 # ----------------------------------------------------------------------
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
5858 $as_echo_n "checking for pathfind in -lgen... " >&6; }
5859 if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
5860 $as_echo_n "(cached) " >&6
5862 ac_check_lib_save_LIBS
=$LIBS
5864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5867 /* Override any GCC internal prototype to avoid an error.
5868 Use char because int might match the return type of a GCC
5869 builtin and then its argument prototype would still apply. */
5882 if ac_fn_c_try_link
"$LINENO"; then :
5883 ac_cv_lib_gen_pathfind
=yes
5885 ac_cv_lib_gen_pathfind
=no
5887 rm -f core conftest.err conftest.
$ac_objext \
5888 conftest
$ac_exeext conftest.
$ac_ext
5889 LIBS
=$ac_check_lib_save_LIBS
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
5892 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
5893 if test "x$ac_cv_lib_gen_pathfind" = x
""yes; then :
5894 cat >>confdefs.h
<<_ACEOF
5895 #define HAVE_LIBGEN 1
5902 for ac_func
in vprintf
5904 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
5905 if test "x$ac_cv_func_vprintf" = x
""yes; then :
5906 cat >>confdefs.h
<<_ACEOF
5907 #define HAVE_VPRINTF 1
5910 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
5911 if test "x$ac_cv_func__doprnt" = x
""yes; then :
5913 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5921 for ac_header
in vfork.h
5923 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5924 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
5925 cat >>confdefs.h
<<_ACEOF
5926 #define HAVE_VFORK_H 1
5933 for ac_func
in fork vfork
5935 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5936 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5937 eval as_val
=\$
$as_ac_var
5938 if test "x$as_val" = x
""yes; then :
5939 cat >>confdefs.h
<<_ACEOF
5940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5946 if test "x$ac_cv_func_fork" = xyes
; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5948 $as_echo_n "checking for working fork... " >&6; }
5949 if test "${ac_cv_func_fork_works+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
5952 if test "$cross_compiling" = yes; then :
5953 ac_cv_func_fork_works
=cross
5955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957 $ac_includes_default
5962 /* By Ruediger Kuhlmann. */
5969 if ac_fn_c_try_run
"$LINENO"; then :
5970 ac_cv_func_fork_works
=yes
5972 ac_cv_func_fork_works
=no
5974 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5975 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5980 $as_echo "$ac_cv_func_fork_works" >&6; }
5983 ac_cv_func_fork_works
=$ac_cv_func_fork
5985 if test "x$ac_cv_func_fork_works" = xcross
; then
5987 *-*-amigaos* |
*-*-msdosdjgpp*)
5988 # Override, as these systems have only a dummy fork() stub
5989 ac_cv_func_fork_works
=no
5992 ac_cv_func_fork_works
=yes
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5996 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5998 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5999 if test "x$ac_cv_func_vfork" = xyes
; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6001 $as_echo_n "checking for working vfork... " >&6; }
6002 if test "${ac_cv_func_vfork_works+set}" = set; then :
6003 $as_echo_n "(cached) " >&6
6005 if test "$cross_compiling" = yes; then :
6006 ac_cv_func_vfork_works
=cross
6008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010 /* Thanks to Paul Eggert for this test. */
6011 $ac_includes_default
6012 #include <sys/wait.h>
6016 /* On some sparc systems, changes by the child to local and incoming
6017 argument registers are propagated back to the parent. The compiler
6018 is told about this with #include <vfork.h>, but some compilers
6019 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6020 static variable whose address is put into a register that is
6021 clobbered by the vfork. */
6024 sparc_address_test (int arg)
6026 sparc_address_test (arg) int arg;
6047 pid_t parent = getpid ();
6050 sparc_address_test (0);
6055 /* Here is another test for sparc vfork register problems. This
6056 test uses lots of local variables, at least as many local
6057 variables as main has allocated so far including compiler
6058 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6059 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6060 reuse the register of parent for one of the local variables,
6061 since it will think that parent can't possibly be used any more
6062 in this routine. Assigning to the local variable will thus
6063 munge parent in the parent process. */
6065 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6066 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6067 /* Convince the compiler that p..p7 are live; otherwise, it might
6068 use the same hardware register for all 8 local variables. */
6069 if (p != p1 || p != p2 || p != p3 || p != p4
6070 || p != p5 || p != p6 || p != p7)
6073 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6074 from child file descriptors. If the child closes a descriptor
6075 before it execs or exits, this munges the parent's descriptor
6076 as well. Test for this by closing stdout in the child. */
6077 _exit(close(fileno(stdout)) != 0);
6082 while (wait(&status) != child)
6085 /* Was there some problem with vforking? */
6088 /* Did the child fail? (This shouldn't happen.) */
6091 /* Did the vfork/compiler bug occur? */
6092 || parent != getpid()
6094 /* Did the file descriptor bug occur? */
6095 || fstat(fileno(stdout), &st) != 0
6100 if ac_fn_c_try_run
"$LINENO"; then :
6101 ac_cv_func_vfork_works
=yes
6103 ac_cv_func_vfork_works
=no
6105 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6106 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6111 $as_echo "$ac_cv_func_vfork_works" >&6; }
6114 if test "x$ac_cv_func_fork_works" = xcross
; then
6115 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6117 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6120 if test "x$ac_cv_func_vfork_works" = xyes
; then
6122 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6126 $as_echo "#define vfork fork" >>confdefs.h
6129 if test "x$ac_cv_func_fork_works" = xyes
; then
6131 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6135 for ac_func
in mmap canonicalize_file_name snprintf strdup strchr \
6138 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6139 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6140 eval as_val
=\$
$as_ac_var
6141 if test "x$as_val" = x
""yes; then :
6142 cat >>confdefs.h
<<_ACEOF
6143 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6149 INVOKE_LIBOPTS_MACROS_FIRST_done
=yes
6151 # Check to see if a reg expr header is specified.
6154 # Check whether --with-regex-header was given.
6155 if test "${with_regex_header+set}" = set; then :
6156 withval
=$with_regex_header; libopts_cv_with_regex_header
=${with_regex_header}
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
6159 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
6160 if test "${libopts_cv_with_regex_header+set}" = set; then :
6161 $as_echo_n "(cached) " >&6
6163 libopts_cv_with_regex_header
=no
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
6166 $as_echo "$libopts_cv_with_regex_header" >&6; }
6169 # end of AC_ARG_WITH
6171 if test "X${libopts_cv_with_regex_header}" != Xno
6173 cat >>confdefs.h
<<_ACEOF
6174 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
6179 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
6185 # Check to see if a working libregex can be found.
6188 # Check whether --with-libregex was given.
6189 if test "${with_libregex+set}" = set; then :
6190 withval
=$with_libregex; libopts_cv_with_libregex_root
=${with_libregex}
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
6193 $as_echo_n "checking whether with-libregex was specified... " >&6; }
6194 if test "${libopts_cv_with_libregex_root+set}" = set; then :
6195 $as_echo_n "(cached) " >&6
6197 libopts_cv_with_libregex_root
=no
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
6200 $as_echo "$libopts_cv_with_libregex_root" >&6; }
6203 # end of AC_ARG_WITH libregex
6205 if test "${with_libguile+set}" = set && \
6206 test "${withval}" = no
6207 then ## disabled by request
6208 libopts_cv_with_libregex_root
=no
6209 libopts_cv_with_libregex_cflags
=no
6210 libopts_cv_with_libregex_libs
=no
6214 # Check whether --with-libregex-cflags was given.
6215 if test "${with_libregex_cflags+set}" = set; then :
6216 withval
=$with_libregex_cflags; libopts_cv_with_libregex_cflags
=${with_regex_cflags}
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
6219 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
6220 if test "${libopts_cv_with_libregex_cflags+set}" = set; then :
6221 $as_echo_n "(cached) " >&6
6223 libopts_cv_with_libregex_cflags
=no
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
6226 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
6229 # end of AC_ARG_WITH libregex-cflags
6232 # Check whether --with-libregex-libs was given.
6233 if test "${with_libregex_libs+set}" = set; then :
6234 withval
=$with_libregex_libs; libopts_cv_with_libregex_libs
=${with_regex_libs}
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
6237 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
6238 if test "${libopts_cv_with_libregex_libs+set}" = set; then :
6239 $as_echo_n "(cached) " >&6
6241 libopts_cv_with_libregex_libs
=no
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
6244 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
6247 # end of AC_ARG_WITH libregex-libs
6249 case "X${libopts_cv_with_libregex_cflags}" in
6251 case "X${libopts_cv_with_libregex_root}" in
6252 Xyes|Xno|X
) libopts_cv_with_libregex_cflags
=no
;;
6253 * ) libopts_cv_with_libregex_cflags
=-I${libopts_cv_with_libregex_root}/include
;;
6256 case "X${libopts_cv_with_libregex_libs}" in
6258 case "X${libopts_cv_with_libregex_root}" in
6259 Xyes|Xno|X
) libopts_cv_with_libregex_libs
=no
;;
6260 * ) libopts_cv_with_libregex_libs
="-L${libopts_cv_with_libregex_root}/lib -lregex";;
6263 libopts_save_CPPFLAGS
="${CPPFLAGS}"
6264 libopts_save_LIBS
="${LIBS}"
6265 fi ## disabled by request
6267 case "X${libopts_cv_with_libregex_cflags}" in
6269 libopts_cv_with_libregex_cflags
="" ;;
6270 * ) CPPFLAGS
="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
6272 case "X${libopts_cv_with_libregex_libs}" in
6274 libopts_cv_with_libregex_libs
="" ;;
6276 LIBS
="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
6281 $as_echo_n "checking whether libregex functions properly... " >&6; }
6282 if test "${libopts_cv_with_libregex+set}" = set; then :
6283 $as_echo_n "(cached) " >&6
6286 if test "$cross_compiling" = yes; then :
6287 libopts_cv_with_libregex
=no
6289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6293 #include <sys/types.h>
6294 #include REGEX_HEADER
6296 void comp_re( char const* pzPat ) {
6297 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
6298 if (res == 0) return;
6303 comp_re( "()|no.*" );
6305 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
6306 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
6307 fputs( "error: regex -->.<-- did not match\n", stderr );
6312 if ac_fn_c_try_run
"$LINENO"; then :
6313 libopts_cv_with_libregex
=yes
6315 libopts_cv_with_libregex
=no
6317 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6318 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6323 # end of AC_CACHE_VAL for libopts_cv_with_libregex
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
6325 $as_echo "${libopts_cv_with_libregex}" >&6; }
6327 if test "X${libopts_cv_with_libregex}" != Xno
6330 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
6333 CPPFLAGS
="${libopts_save_CPPFLAGS}"
6334 LIBS
="${libopts_save_LIBS}"
6339 # Check to see if pathfind(3) works.
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
6342 $as_echo_n "checking whether pathfind(3) works... " >&6; }
6343 if test "${libopts_cv_run_pathfind+set}" = set; then :
6344 $as_echo_n "(cached) " >&6
6347 if test "$cross_compiling" = yes; then :
6348 libopts_cv_run_pathfind
=no
6351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6355 int main (int argc, char** argv) {
6356 char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
6357 return (pz == 0) ? 1 : 0;
6360 if ac_fn_c_try_run
"$LINENO"; then :
6361 libopts_cv_run_pathfind
=yes
6363 libopts_cv_run_pathfind
=no
6365 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6366 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6371 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
6373 $as_echo "${libopts_cv_run_pathfind}" >&6; }
6375 if test "X${libopts_cv_run_pathfind}" != Xno
6378 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
6384 # Check to see if /dev/zero is readable device.
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
6387 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
6388 if test "${libopts_cv_test_dev_zero+set}" = set; then :
6389 $as_echo_n "(cached) " >&6
6392 libopts_cv_test_dev_zero
=`exec 2> /dev/null
6393 dzero=\`ls -lL /dev
/zero |
egrep ^c......r\
`
6394 test -z "${dzero}" && exit 1
6397 then libopts_cv_test_dev_zero
=no
6398 elif test -z "$libopts_cv_test_dev_zero"
6399 then libopts_cv_test_dev_zero
=no
6403 # end of CACHE_VAL of libopts_cv_test_dev_zero
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
6405 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
6407 if test "X${libopts_cv_test_dev_zero}" != Xno
6410 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
6416 # Check to see if we have a functional realpath(3C).
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
6419 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
6420 if test "${libopts_cv_run_realpath+set}" = set; then :
6421 $as_echo_n "(cached) " >&6
6424 if test "$cross_compiling" = yes; then :
6425 libopts_cv_run_realpath
=no
6428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6432 int main (int argc, char** argv) {
6436 char zPath[PATH_MAX+1];
6438 char *pz = realpath(argv[0], zPath);
6439 return (pz == zPath) ? 0 : 1;
6442 if ac_fn_c_try_run
"$LINENO"; then :
6443 libopts_cv_run_realpath
=yes
6445 libopts_cv_run_realpath
=no
6447 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6448 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6453 # end of AC_CACHE_VAL for libopts_cv_run_realpath
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
6455 $as_echo "${libopts_cv_run_realpath}" >&6; }
6457 if test "X${libopts_cv_run_realpath}" != Xno
6460 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
6466 # Check to see if strftime() works.
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
6469 $as_echo_n "checking whether strftime() works... " >&6; }
6470 if test "${libopts_cv_run_strftime+set}" = set; then :
6471 $as_echo_n "(cached) " >&6
6474 if test "$cross_compiling" = yes; then :
6475 libopts_cv_run_strftime
=no
6478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6484 static char const z[] = "Thursday Aug 28 240";
6486 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
6487 tm.tm_min = 44; /* minutes after the hour [0, 59] */
6488 tm.tm_hour = 12; /* hour since midnight [0, 23] */
6489 tm.tm_mday = 28; /* day of the month [1, 31] */
6490 tm.tm_mon = 7; /* months since January [0, 11] */
6491 tm.tm_year = 86; /* years since 1900 */
6492 tm.tm_wday = 4; /* days since Sunday [0, 6] */
6493 tm.tm_yday = 239; /* days since January 1 [0, 365] */
6494 tm.tm_isdst = 1; /* flag for daylight savings time */
6495 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
6496 return (strcmp( t_buf, z ) != 0); }
6498 if ac_fn_c_try_run
"$LINENO"; then :
6499 libopts_cv_run_strftime
=yes
6501 libopts_cv_run_strftime
=no
6503 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6504 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6509 # end of AC_CACHE_VAL for libopts_cv_run_strftime
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
6511 $as_echo "${libopts_cv_run_strftime}" >&6; }
6513 if test "X${libopts_cv_run_strftime}" != Xno
6516 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
6522 # Check to see if fopen accepts "b" mode.
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
6525 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
6526 if test "${libopts_cv_run_fopen_binary+set}" = set; then :
6527 $as_echo_n "(cached) " >&6
6530 if test "$cross_compiling" = yes; then :
6531 libopts_cv_run_fopen_binary
=no
6534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6537 int main (int argc, char** argv) {
6538 FILE* fp = fopen("conftest.$ac_ext", "rb");
6539 return (fp == NULL) ? 1 : fclose(fp); }
6541 if ac_fn_c_try_run
"$LINENO"; then :
6542 libopts_cv_run_fopen_binary
=yes
6544 libopts_cv_run_fopen_binary
=no
6546 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6547 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6552 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
6554 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
6556 if test "X${libopts_cv_run_fopen_binary}" != Xno
6559 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
6563 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
6569 # Check to see if fopen accepts "t" mode.
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
6572 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
6573 if test "${libopts_cv_run_fopen_text+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
6577 if test "$cross_compiling" = yes; then :
6578 libopts_cv_run_fopen_text
=no
6581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6584 int main (int argc, char** argv) {
6585 FILE* fp = fopen("conftest.$ac_ext", "rt");
6586 return (fp == NULL) ? 1 : fclose(fp); }
6588 if ac_fn_c_try_run
"$LINENO"; then :
6589 libopts_cv_run_fopen_text
=yes
6591 libopts_cv_run_fopen_text
=no
6593 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6594 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6599 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
6601 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
6603 if test "X${libopts_cv_run_fopen_text}" != Xno
6606 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
6610 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
6616 # Check to see if not wanting optional option args.
6618 # Check whether --enable-optional-args was given.
6619 if test "${enable_optional_args+set}" = set; then :
6620 enableval
=$enable_optional_args; libopts_cv_enable_optional_args
=${enable_optional_args}
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
6623 $as_echo_n "checking whether not wanting optional option args... " >&6; }
6624 if test "${libopts_cv_enable_optional_args+set}" = set; then :
6625 $as_echo_n "(cached) " >&6
6627 libopts_cv_enable_optional_args
=yes
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
6630 $as_echo "$libopts_cv_enable_optional_args" >&6; }
6633 # end of AC_ARG_ENABLE
6635 if test "X${libopts_cv_enable_optional_args}" = Xno
6638 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
6647 if test X
${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes
; then
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6649 $as_echo_n "checking for ANSI C header files... " >&6; }
6650 if test "${ac_cv_header_stdc+set}" = set; then :
6651 $as_echo_n "(cached) " >&6
6653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6668 if ac_fn_c_try_compile
"$LINENO"; then :
6669 ac_cv_header_stdc
=yes
6671 ac_cv_header_stdc
=no
6673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6675 if test $ac_cv_header_stdc = yes; then
6676 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6683 $EGREP "memchr" >/dev
/null
2>&1; then :
6686 ac_cv_header_stdc
=no
6692 if test $ac_cv_header_stdc = yes; then
6693 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6700 $EGREP "free" >/dev
/null
2>&1; then :
6703 ac_cv_header_stdc
=no
6709 if test $ac_cv_header_stdc = yes; then
6710 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6711 if test "$cross_compiling" = yes; then :
6714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6718 #if ((' ' & 0x0FF) == 0x020)
6719 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6720 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6722 # define ISLOWER(c) \
6723 (('a' <= (c) && (c) <= 'i') \
6724 || ('j' <= (c) && (c) <= 'r') \
6725 || ('s' <= (c) && (c) <= 'z'))
6726 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6729 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6734 for (i = 0; i < 256; i++)
6735 if (XOR (islower (i), ISLOWER (i))
6736 || toupper (i) != TOUPPER (i))
6741 if ac_fn_c_try_run
"$LINENO"; then :
6744 ac_cv_header_stdc
=no
6746 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6747 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6753 $as_echo "$ac_cv_header_stdc" >&6; }
6754 if test $ac_cv_header_stdc = yes; then
6756 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6761 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
6762 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6764 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6765 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
6766 $as_echo_n "(cached) " >&6
6768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770 #include <sys/types.h>
6782 if ac_fn_c_try_compile
"$LINENO"; then :
6783 eval "$as_ac_Header=yes"
6785 eval "$as_ac_Header=no"
6787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6789 eval ac_res
=\$
$as_ac_Header
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6791 $as_echo "$ac_res" >&6; }
6792 eval as_val
=\$
$as_ac_Header
6793 if test "x$as_val" = x
""yes; then :
6794 cat >>confdefs.h
<<_ACEOF
6795 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6798 ac_header_dirent
=$ac_hdr; break
6802 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6803 if test $ac_header_dirent = dirent.h
; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6805 $as_echo_n "checking for library containing opendir... " >&6; }
6806 if test "${ac_cv_search_opendir+set}" = set; then :
6807 $as_echo_n "(cached) " >&6
6809 ac_func_search_save_LIBS
=$LIBS
6810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6813 /* Override any GCC internal prototype to avoid an error.
6814 Use char because int might match the return type of a GCC
6815 builtin and then its argument prototype would still apply. */
6828 for ac_lib
in '' dir
; do
6829 if test -z "$ac_lib"; then
6830 ac_res
="none required"
6833 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6835 if ac_fn_c_try_link
"$LINENO"; then :
6836 ac_cv_search_opendir
=$ac_res
6838 rm -f core conftest.err conftest.
$ac_objext \
6840 if test "${ac_cv_search_opendir+set}" = set; then :
6844 if test "${ac_cv_search_opendir+set}" = set; then :
6847 ac_cv_search_opendir
=no
6850 LIBS
=$ac_func_search_save_LIBS
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6853 $as_echo "$ac_cv_search_opendir" >&6; }
6854 ac_res
=$ac_cv_search_opendir
6855 if test "$ac_res" != no
; then :
6856 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6862 $as_echo_n "checking for library containing opendir... " >&6; }
6863 if test "${ac_cv_search_opendir+set}" = set; then :
6864 $as_echo_n "(cached) " >&6
6866 ac_func_search_save_LIBS
=$LIBS
6867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6870 /* Override any GCC internal prototype to avoid an error.
6871 Use char because int might match the return type of a GCC
6872 builtin and then its argument prototype would still apply. */
6885 for ac_lib
in '' x
; do
6886 if test -z "$ac_lib"; then
6887 ac_res
="none required"
6890 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6892 if ac_fn_c_try_link
"$LINENO"; then :
6893 ac_cv_search_opendir
=$ac_res
6895 rm -f core conftest.err conftest.
$ac_objext \
6897 if test "${ac_cv_search_opendir+set}" = set; then :
6901 if test "${ac_cv_search_opendir+set}" = set; then :
6904 ac_cv_search_opendir
=no
6907 LIBS
=$ac_func_search_save_LIBS
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6910 $as_echo "$ac_cv_search_opendir" >&6; }
6911 ac_res
=$ac_cv_search_opendir
6912 if test "$ac_res" != no
; then :
6913 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6923 for ac_header
in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet
/in.h \
6924 setjmp.h sys
/mman.h sys
/param.h sys
/poll.h sys
/procset.h sys
/select.h \
6925 sys
/socket.h sys
/stropts.h sys
/time.h sys
/un.h sys
/wait.h unistd.h \
6928 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6929 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6930 eval as_val
=\$
$as_ac_Header
6931 if test "x$as_val" = x
""yes; then :
6932 cat >>confdefs.h
<<_ACEOF
6933 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6941 # --------------------------------------------
6942 # Verify certain entries from AC_CHECK_HEADERS
6943 # --------------------------------------------
6944 for f
in sys_types sys_mman sys_param sys_stat sys_wait \
6945 string errno stdlib memory setjmp
6946 do eval as_ac_var
=\
${ac_cv_header_${f}_h+set}
6947 test "${as_ac_var}" = set || \
6948 as_fn_error
"You must have ${f}.h on your system" "$LINENO" 5
6951 # ================================================
6952 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
6953 # if varargs.h is present define HAVE_VARARGS_H.
6954 # ================================================
6955 for ac_header
in stdarg.h varargs.h
6957 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6958 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6959 eval as_val
=\$
$as_ac_Header
6960 if test "x$as_val" = x
""yes; then :
6961 cat >>confdefs.h
<<_ACEOF
6962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6969 if test `eval echo '${'$as_ac_Header'}'` != yes; then
6970 as_fn_error
"You must have stdarg.h or varargs.h on your system" "$LINENO" 5
6973 # ================================================
6974 # Similarly for the string.h and strings.h headers
6975 # ================================================
6976 for ac_header
in string.h
strings.h
6978 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6979 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6980 eval as_val
=\$
$as_ac_Header
6981 if test "x$as_val" = x
""yes; then :
6982 cat >>confdefs.h
<<_ACEOF
6983 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6990 if test `eval echo '${'$as_ac_Header'}'` != yes; then
6991 as_fn_error
"You must have string.h or strings.h on your system" "$LINENO" 5
6994 # =====================
6995 # ...and limits headers
6996 # =====================
6997 for ac_header
in limits.h sys
/limits.h values.h
6999 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7000 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7001 eval as_val
=\$
$as_ac_Header
7002 if test "x$as_val" = x
""yes; then :
7003 cat >>confdefs.h
<<_ACEOF
7004 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7011 if test `eval echo '${'$as_ac_Header'}'` != yes; then
7012 as_fn_error
"You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
7015 # ----------------------------------------------------------------------
7016 # check for various programs used during the build.
7017 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
7018 # ----------------------------------------------------------------------
7019 for ac_header
in runetype.h wchar.h
7021 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7022 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
7023 $ac_includes_default
7025 # include <runetype.h>
7029 eval as_val
=\$
$as_ac_Header
7030 if test "x$as_val" = x
""yes; then :
7031 cat >>confdefs.h
<<_ACEOF
7032 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7040 # ----------------------------------------------------------------------
7041 # Checks for typedefs
7042 # ----------------------------------------------------------------------
7043 ac_fn_c_check_type
"$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
7044 if test "x$ac_cv_type_wchar_t" = x
""yes; then :
7046 cat >>confdefs.h
<<_ACEOF
7047 #define HAVE_WCHAR_T 1
7053 ac_fn_c_check_type
"$LINENO" "wint_t" "ac_cv_type_wint_t" "
7054 $ac_includes_default
7056 # include <runetype.h>
7063 if test "x$ac_cv_type_wint_t" = x
""yes; then :
7065 cat >>confdefs.h
<<_ACEOF
7066 #define HAVE_WINT_T 1
7073 # ========================
7074 # ...and int types headers
7075 # ========================
7076 for ac_header
in stdint.h inttypes.h
7078 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7079 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7080 eval as_val
=\$
$as_ac_Header
7081 if test "x$as_val" = x
""yes; then :
7082 cat >>confdefs.h
<<_ACEOF
7083 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7090 ac_fn_c_check_type
"$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
7091 if test "x$ac_cv_type_int8_t" = x
""yes; then :
7093 cat >>confdefs.h
<<_ACEOF
7094 #define HAVE_INT8_T 1
7099 ac_fn_c_check_type
"$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
7100 if test "x$ac_cv_type_uint8_t" = x
""yes; then :
7102 cat >>confdefs.h
<<_ACEOF
7103 #define HAVE_UINT8_T 1
7108 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
7109 if test "x$ac_cv_type_int16_t" = x
""yes; then :
7111 cat >>confdefs.h
<<_ACEOF
7112 #define HAVE_INT16_T 1
7117 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
7118 if test "x$ac_cv_type_uint16_t" = x
""yes; then :
7120 cat >>confdefs.h
<<_ACEOF
7121 #define HAVE_UINT16_T 1
7126 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7127 if test "x$ac_cv_type_int32_t" = x
""yes; then :
7129 cat >>confdefs.h
<<_ACEOF
7130 #define HAVE_INT32_T 1
7135 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
7136 if test "x$ac_cv_type_uint32_t" = x
""yes; then :
7138 cat >>confdefs.h
<<_ACEOF
7139 #define HAVE_UINT32_T 1
7144 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
7145 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
7147 cat >>confdefs.h
<<_ACEOF
7148 #define HAVE_INTPTR_T 1
7153 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
7154 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
7156 cat >>confdefs.h
<<_ACEOF
7157 #define HAVE_UINTPTR_T 1
7162 ac_fn_c_check_type
"$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
7163 if test "x$ac_cv_type_uint_t" = x
""yes; then :
7165 cat >>confdefs.h
<<_ACEOF
7166 #define HAVE_UINT_T 1
7171 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7172 if test "x$ac_cv_type_pid_t" = x
""yes; then :
7174 cat >>confdefs.h
<<_ACEOF
7175 #define HAVE_PID_T 1
7180 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7181 if test "x$ac_cv_type_size_t" = x
""yes; then :
7183 cat >>confdefs.h
<<_ACEOF
7184 #define HAVE_SIZE_T 1
7194 # The cast to long int works around a bug in the HP C Compiler
7195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7197 # This bug is HP SR number 8606223364.
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
7199 $as_echo_n "checking size of char*... " >&6; }
7200 if test "${ac_cv_sizeof_charp+set}" = set; then :
7201 $as_echo_n "(cached) " >&6
7203 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
7206 if test "$ac_cv_type_charp" = yes; then
7207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7209 { as_fn_set_status
77
7210 as_fn_error
"cannot compute sizeof (char*)
7211 See \`config.log' for more details." "$LINENO" 5; }; }
7213 ac_cv_sizeof_charp
=0
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
7219 $as_echo "$ac_cv_sizeof_charp" >&6; }
7223 cat >>confdefs.h
<<_ACEOF
7224 #define SIZEOF_CHARP $ac_cv_sizeof_charp
7228 # The cast to long int works around a bug in the HP C Compiler
7229 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7230 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7231 # This bug is HP SR number 8606223364.
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7233 $as_echo_n "checking size of int... " >&6; }
7234 if test "${ac_cv_sizeof_int+set}" = set; then :
7235 $as_echo_n "(cached) " >&6
7237 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
7240 if test "$ac_cv_type_int" = yes; then
7241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7243 { as_fn_set_status
77
7244 as_fn_error
"cannot compute sizeof (int)
7245 See \`config.log' for more details." "$LINENO" 5; }; }
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7253 $as_echo "$ac_cv_sizeof_int" >&6; }
7257 cat >>confdefs.h
<<_ACEOF
7258 #define SIZEOF_INT $ac_cv_sizeof_int
7262 # The cast to long int works around a bug in the HP C Compiler
7263 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7264 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7265 # This bug is HP SR number 8606223364.
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7267 $as_echo_n "checking size of long... " >&6; }
7268 if test "${ac_cv_sizeof_long+set}" = set; then :
7269 $as_echo_n "(cached) " >&6
7271 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7274 if test "$ac_cv_type_long" = yes; then
7275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7277 { as_fn_set_status
77
7278 as_fn_error
"cannot compute sizeof (long)
7279 See \`config.log' for more details." "$LINENO" 5; }; }
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7287 $as_echo "$ac_cv_sizeof_long" >&6; }
7291 cat >>confdefs.h
<<_ACEOF
7292 #define SIZEOF_LONG $ac_cv_sizeof_long
7296 # The cast to long int works around a bug in the HP C Compiler
7297 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7298 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7299 # This bug is HP SR number 8606223364.
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7301 $as_echo_n "checking size of short... " >&6; }
7302 if test "${ac_cv_sizeof_short+set}" = set; then :
7303 $as_echo_n "(cached) " >&6
7305 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
7308 if test "$ac_cv_type_short" = yes; then
7309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7311 { as_fn_set_status
77
7312 as_fn_error
"cannot compute sizeof (short)
7313 See \`config.log' for more details." "$LINENO" 5; }; }
7315 ac_cv_sizeof_short
=0
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7321 $as_echo "$ac_cv_sizeof_short" >&6; }
7325 cat >>confdefs.h
<<_ACEOF
7326 #define SIZEOF_SHORT $ac_cv_sizeof_short
7331 # ----------------------------------------------------------------------
7332 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
7333 # ----------------------------------------------------------------------
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
7335 $as_echo_n "checking for pathfind in -lgen... " >&6; }
7336 if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
7339 ac_check_lib_save_LIBS
=$LIBS
7341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7344 /* Override any GCC internal prototype to avoid an error.
7345 Use char because int might match the return type of a GCC
7346 builtin and then its argument prototype would still apply. */
7359 if ac_fn_c_try_link
"$LINENO"; then :
7360 ac_cv_lib_gen_pathfind
=yes
7362 ac_cv_lib_gen_pathfind
=no
7364 rm -f core conftest.err conftest.
$ac_objext \
7365 conftest
$ac_exeext conftest.
$ac_ext
7366 LIBS
=$ac_check_lib_save_LIBS
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
7369 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
7370 if test "x$ac_cv_lib_gen_pathfind" = x
""yes; then :
7371 cat >>confdefs.h
<<_ACEOF
7372 #define HAVE_LIBGEN 1
7379 for ac_func
in vprintf
7381 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
7382 if test "x$ac_cv_func_vprintf" = x
""yes; then :
7383 cat >>confdefs.h
<<_ACEOF
7384 #define HAVE_VPRINTF 1
7387 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
7388 if test "x$ac_cv_func__doprnt" = x
""yes; then :
7390 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
7398 for ac_header
in vfork.h
7400 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7401 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
7402 cat >>confdefs.h
<<_ACEOF
7403 #define HAVE_VFORK_H 1
7410 for ac_func
in fork vfork
7412 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7413 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7414 eval as_val
=\$
$as_ac_var
7415 if test "x$as_val" = x
""yes; then :
7416 cat >>confdefs.h
<<_ACEOF
7417 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7423 if test "x$ac_cv_func_fork" = xyes
; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7425 $as_echo_n "checking for working fork... " >&6; }
7426 if test "${ac_cv_func_fork_works+set}" = set; then :
7427 $as_echo_n "(cached) " >&6
7429 if test "$cross_compiling" = yes; then :
7430 ac_cv_func_fork_works
=cross
7432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7434 $ac_includes_default
7439 /* By Ruediger Kuhlmann. */
7446 if ac_fn_c_try_run
"$LINENO"; then :
7447 ac_cv_func_fork_works
=yes
7449 ac_cv_func_fork_works
=no
7451 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7452 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7457 $as_echo "$ac_cv_func_fork_works" >&6; }
7460 ac_cv_func_fork_works
=$ac_cv_func_fork
7462 if test "x$ac_cv_func_fork_works" = xcross
; then
7464 *-*-amigaos* |
*-*-msdosdjgpp*)
7465 # Override, as these systems have only a dummy fork() stub
7466 ac_cv_func_fork_works
=no
7469 ac_cv_func_fork_works
=yes
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7473 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7475 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7476 if test "x$ac_cv_func_vfork" = xyes
; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7478 $as_echo_n "checking for working vfork... " >&6; }
7479 if test "${ac_cv_func_vfork_works+set}" = set; then :
7480 $as_echo_n "(cached) " >&6
7482 if test "$cross_compiling" = yes; then :
7483 ac_cv_func_vfork_works
=cross
7485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 /* Thanks to Paul Eggert for this test. */
7488 $ac_includes_default
7489 #include <sys/wait.h>
7493 /* On some sparc systems, changes by the child to local and incoming
7494 argument registers are propagated back to the parent. The compiler
7495 is told about this with #include <vfork.h>, but some compilers
7496 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7497 static variable whose address is put into a register that is
7498 clobbered by the vfork. */
7501 sparc_address_test (int arg)
7503 sparc_address_test (arg) int arg;
7524 pid_t parent = getpid ();
7527 sparc_address_test (0);
7532 /* Here is another test for sparc vfork register problems. This
7533 test uses lots of local variables, at least as many local
7534 variables as main has allocated so far including compiler
7535 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7536 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7537 reuse the register of parent for one of the local variables,
7538 since it will think that parent can't possibly be used any more
7539 in this routine. Assigning to the local variable will thus
7540 munge parent in the parent process. */
7542 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7543 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7544 /* Convince the compiler that p..p7 are live; otherwise, it might
7545 use the same hardware register for all 8 local variables. */
7546 if (p != p1 || p != p2 || p != p3 || p != p4
7547 || p != p5 || p != p6 || p != p7)
7550 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7551 from child file descriptors. If the child closes a descriptor
7552 before it execs or exits, this munges the parent's descriptor
7553 as well. Test for this by closing stdout in the child. */
7554 _exit(close(fileno(stdout)) != 0);
7559 while (wait(&status) != child)
7562 /* Was there some problem with vforking? */
7565 /* Did the child fail? (This shouldn't happen.) */
7568 /* Did the vfork/compiler bug occur? */
7569 || parent != getpid()
7571 /* Did the file descriptor bug occur? */
7572 || fstat(fileno(stdout), &st) != 0
7577 if ac_fn_c_try_run
"$LINENO"; then :
7578 ac_cv_func_vfork_works
=yes
7580 ac_cv_func_vfork_works
=no
7582 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7583 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7588 $as_echo "$ac_cv_func_vfork_works" >&6; }
7591 if test "x$ac_cv_func_fork_works" = xcross
; then
7592 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7594 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7597 if test "x$ac_cv_func_vfork_works" = xyes
; then
7599 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7603 $as_echo "#define vfork fork" >>confdefs.h
7606 if test "x$ac_cv_func_fork_works" = xyes
; then
7608 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7612 for ac_func
in mmap canonicalize_file_name snprintf strdup strchr \
7615 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7616 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7617 eval as_val
=\$
$as_ac_var
7618 if test "x$as_val" = x
""yes; then :
7619 cat >>confdefs.h
<<_ACEOF
7620 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7626 INVOKE_LIBOPTS_MACROS_FIRST_done
=yes
7629 # end of AC_DEFUN of LIBOPTS_CHECK
7635 # Check whether --enable-static was given.
7636 if test "${enable_static+set}" = set; then :
7637 enableval
=$enable_static; p
=${PACKAGE-default}
7639 yes) enable_static
=yes ;;
7640 no
) enable_static
=no
;;
7643 # Look at the argument we got. We use all the common list separators.
7644 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7645 for pkg
in $enableval; do
7647 if test "X$pkg" = "X$p"; then
7659 # Check whether --enable-fast-install was given.
7660 if test "${enable_fast_install+set}" = set; then :
7661 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7663 yes) enable_fast_install
=yes ;;
7664 no
) enable_fast_install
=no
;;
7666 enable_fast_install
=no
7667 # Look at the argument we got. We use all the common list separators.
7668 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7669 for pkg
in $enableval; do
7671 if test "X$pkg" = "X$p"; then
7672 enable_fast_install
=yes
7679 enable_fast_install
=yes
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7684 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7685 if test "${lt_cv_path_SED+set}" = set; then :
7686 $as_echo_n "(cached) " >&6
7688 # Loop through the user's path and test for sed and gsed.
7689 # Then use that list of sed's as ones to test for truncation.
7690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7694 test -z "$as_dir" && as_dir
=.
7695 for lt_ac_prog
in sed gsed
; do
7696 for ac_exec_ext
in '' $ac_executable_extensions; do
7697 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7698 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7705 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7706 # along with /bin/sed that truncates output.
7707 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
7708 test ! -f $lt_ac_sed && continue
7709 cat /dev
/null
> conftest.
in
7711 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
7712 # Check for GNU sed and select it if it is found.
7713 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
7714 lt_cv_path_SED
=$lt_ac_sed
7718 cat conftest.
in conftest.
in >conftest.tmp
7719 mv conftest.tmp conftest.
in
7720 cp conftest.
in conftest.
nl
7722 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
7723 cmp -s conftest.out conftest.
nl ||
break
7724 # 10000 chars as input seems more than enough
7725 test $lt_ac_count -gt 10 && break
7726 lt_ac_count
=`expr $lt_ac_count + 1`
7727 if test $lt_ac_count -gt $lt_ac_max; then
7728 lt_ac_max
=$lt_ac_count
7729 lt_cv_path_SED
=$lt_ac_sed
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
7738 $as_echo "$SED" >&6; }
7741 # Check whether --with-gnu-ld was given.
7742 if test "${with_gnu_ld+set}" = set; then :
7743 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7749 if test "$GCC" = yes; then
7750 # Check if gcc -print-prog-name=ld gives a path.
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7752 $as_echo_n "checking for ld used by $CC... " >&6; }
7755 # gcc leaves a trailing carriage return which upsets mingw
7756 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7758 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7761 # Accept absolute paths.
7763 re_direlt
='/[^/][^/]*/\.\./'
7764 # Canonicalize the pathname of ld
7765 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
7766 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7767 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7769 test -z "$LD" && LD
="$ac_prog"
7772 # If it fails, then pretend we aren't using GCC.
7776 # If it is relative, then search for the first ld in PATH.
7780 elif test "$with_gnu_ld" = yes; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7782 $as_echo_n "checking for GNU ld... " >&6; }
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7785 $as_echo_n "checking for non-GNU ld... " >&6; }
7787 if test "${lt_cv_path_LD+set}" = set; then :
7788 $as_echo_n "(cached) " >&6
7790 if test -z "$LD"; then
7791 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7792 for ac_dir
in $PATH; do
7794 test -z "$ac_dir" && ac_dir
=.
7795 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7796 lt_cv_path_LD
="$ac_dir/$ac_prog"
7797 # Check to see if the program is GNU ld. I'd rather use --version,
7798 # but apparently some variants of GNU ld only accept -v.
7799 # Break only if it was the GNU/non-GNU ld that we prefer.
7800 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7801 *GNU
* |
*'with BFD'*)
7802 test "$with_gnu_ld" != no
&& break
7805 test "$with_gnu_ld" != yes && break
7812 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
7817 if test -n "$LD"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7819 $as_echo "$LD" >&6; }
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7824 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7826 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7827 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7828 $as_echo_n "(cached) " >&6
7830 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7831 case `$LD -v 2>&1 </dev/null` in
7832 *GNU
* |
*'with BFD'*)
7833 lt_cv_prog_gnu_ld
=yes
7836 lt_cv_prog_gnu_ld
=no
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7841 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7842 with_gnu_ld
=$lt_cv_prog_gnu_ld
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7846 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7847 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7848 $as_echo_n "(cached) " >&6
7850 lt_cv_ld_reload_flag
='-r'
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7853 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7854 reload_flag
=$lt_cv_ld_reload_flag
7855 case $reload_flag in
7857 *) reload_flag
=" $reload_flag" ;;
7859 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
7862 if test "$GCC" = yes; then
7863 reload_cmds
='$CC -nostdlib ${wl}-r -o $output$reload_objs'
7865 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
7871 $as_echo_n "checking for BSD-compatible nm... " >&6; }
7872 if test "${lt_cv_path_NM+set}" = set; then :
7873 $as_echo_n "(cached) " >&6
7875 if test -n "$NM"; then
7876 # Let the user override the test.
7879 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7880 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
7882 test -z "$ac_dir" && ac_dir
=.
7883 tmp_nm
="$ac_dir/${ac_tool_prefix}nm"
7884 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
7885 # Check to see if the nm accepts a BSD-compat flag.
7886 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7887 # nm: unknown option "B" ignored
7888 # Tru64's nm complains that /dev/null is an invalid object file
7889 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7890 */dev
/null
* |
*'Invalid file or object type'*)
7891 lt_cv_path_NM
="$tmp_nm -B"
7895 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7897 lt_cv_path_NM
="$tmp_nm -p"
7901 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7902 continue # so that we can try to find one that supports BSD flags
7909 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7913 $as_echo "$lt_cv_path_NM" >&6; }
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7917 $as_echo_n "checking whether ln -s works... " >&6; }
7919 if test "$LN_S" = "ln -s"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7921 $as_echo "yes" >&6; }
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7924 $as_echo "no, using $LN_S" >&6; }
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
7928 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
7929 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7930 $as_echo_n "(cached) " >&6
7932 lt_cv_file_magic_cmd
='$MAGIC_CMD'
7933 lt_cv_file_magic_test_file
=
7934 lt_cv_deplibs_check_method
='unknown'
7935 # Need to set the preceding variable on all platforms that support
7936 # interlibrary dependencies.
7937 # 'none' -- dependencies not supported.
7938 # `unknown' -- same as none, but documents that we really don't know.
7939 # 'pass_all' -- all dependencies passed with no checks.
7940 # 'test_compile' -- check by making test program.
7941 # 'file_magic [[regex]]' -- check by looking for files in library path
7942 # which responds to the $file_magic_cmd with a given extended regex.
7943 # If you have `file' or equivalent on your system and you're not sure
7944 # whether `pass_all' will *always* work, you probably want this one.
7948 lt_cv_deplibs_check_method
=pass_all
7952 lt_cv_deplibs_check_method
=pass_all
7956 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7957 lt_cv_file_magic_cmd
='/usr/bin/file -L'
7958 lt_cv_file_magic_test_file
=/shlib
/libc.so
7962 # func_win32_libid is a shell function defined in ltmain.sh
7963 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
7964 lt_cv_file_magic_cmd
='func_win32_libid'
7968 # Base MSYS/MinGW do not provide the 'file' command needed by
7969 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7970 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
7971 lt_cv_file_magic_cmd
='$OBJDUMP -f'
7974 darwin
* | rhapsody
*)
7975 lt_cv_deplibs_check_method
=pass_all
7978 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
7979 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
7982 # Not sure whether the presence of OpenBSD here was a mistake.
7983 # Let's accept both of them until this is cleared up.
7984 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7985 lt_cv_file_magic_cmd
=/usr
/bin
/file
7986 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
7990 lt_cv_deplibs_check_method
=pass_all
7995 lt_cv_deplibs_check_method
=pass_all
7998 hpux10.20
* | hpux11
*)
7999 lt_cv_file_magic_cmd
=/usr
/bin
/file
8002 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8003 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
8006 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
8007 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
8010 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8011 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
8016 irix5
* | irix6
* | nonstopux
*)
8018 *-32|
*"-32 ") libmagic
=32-bit;;
8019 *-n32|
*"-n32 ") libmagic
=N32
;;
8020 *-64|
*"-64 ") libmagic
=64-bit;;
8021 *) libmagic
=never-match
;;
8023 lt_cv_deplibs_check_method
=pass_all
8026 # This must be Linux ELF.
8028 lt_cv_deplibs_check_method
=pass_all
8032 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
8033 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8035 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8040 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8041 lt_cv_file_magic_cmd
=/usr
/bin
/file
8042 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
8046 lt_cv_deplibs_check_method
=unknown
8050 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8051 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8053 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8057 osf3
* | osf4
* | osf5
*)
8058 lt_cv_deplibs_check_method
=pass_all
8062 lt_cv_deplibs_check_method
=pass_all
8066 lt_cv_deplibs_check_method
=pass_all
8069 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
8070 case $host_vendor in
8072 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]'
8073 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
8076 lt_cv_deplibs_check_method
=pass_all
8079 lt_cv_file_magic_cmd
='/bin/file'
8080 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8083 lt_cv_file_magic_cmd
='/bin/file'
8084 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8085 lt_cv_file_magic_test_file
=/lib
/libc.so
8088 lt_cv_deplibs_check_method
=pass_all
8093 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
* | sysv4
*uw2
*)
8094 lt_cv_deplibs_check_method
=pass_all
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8100 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8101 file_magic_cmd
=$lt_cv_file_magic_cmd
8102 deplibs_check_method
=$lt_cv_deplibs_check_method
8103 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
8108 # If no C compiler was specified, use CC.
8111 # Allow CC to be a program name with arguments.
8114 # Check whether --enable-libtool-lock was given.
8115 if test "${enable_libtool_lock+set}" = set; then :
8116 enableval
=$enable_libtool_lock;
8119 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
8121 # Some flags need to be propagated to the compiler or linker for good
8125 # Find out which ABI we are using.
8126 echo 'int i;' > conftest.
$ac_ext
8127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8128 (eval $ac_compile) 2>&5
8130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8131 test $ac_status = 0; }; then
8132 case `/usr/bin/file conftest.$ac_objext` in
8144 # Find out which ABI we are using.
8145 echo '#line 8145 "configure"' > conftest.
$ac_ext
8146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8147 (eval $ac_compile) 2>&5
8149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8150 test $ac_status = 0; }; then
8151 if test "$lt_cv_prog_gnu_ld" = yes; then
8152 case `/usr/bin/file conftest.$ac_objext` in
8154 LD
="${LD-ld} -melf32bsmip"
8157 LD
="${LD-ld} -melf32bmipn32"
8160 LD
="${LD-ld} -melf64bmip"
8164 case `/usr/bin/file conftest.$ac_objext` in
8180 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
8181 # Find out which ABI we are using.
8182 echo 'int i;' > conftest.
$ac_ext
8183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8184 (eval $ac_compile) 2>&5
8186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8187 test $ac_status = 0; }; then
8188 case `/usr/bin/file conftest.o` in
8192 LD
="${LD-ld} -m elf_i386"
8194 ppc64-
*linux
*|powerpc64-
*linux
*)
8195 LD
="${LD-ld} -m elf32ppclinux"
8198 LD
="${LD-ld} -m elf_s390"
8201 LD
="${LD-ld} -m elf32_sparc"
8208 LD
="${LD-ld} -m elf_x86_64"
8210 ppc
*-*linux
*|powerpc
*-*linux
*)
8211 LD
="${LD-ld} -m elf64ppc"
8214 LD
="${LD-ld} -m elf64_s390"
8217 LD
="${LD-ld} -m elf64_sparc"
8227 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8228 SAVE_CFLAGS
="$CFLAGS"
8229 CFLAGS
="$CFLAGS -belf"
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8231 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8232 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
8236 ac_cpp
='$CPP $CPPFLAGS'
8237 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8238 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8239 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8242 /* end confdefs.h. */
8252 if ac_fn_c_try_link
"$LINENO"; then :
8253 lt_cv_cc_needs_belf
=yes
8255 lt_cv_cc_needs_belf
=no
8257 rm -f core conftest.err conftest.
$ac_objext \
8258 conftest
$ac_exeext conftest.
$ac_ext
8260 ac_cpp
='$CPP $CPPFLAGS'
8261 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8262 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8263 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8267 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8268 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
8269 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8270 CFLAGS
="$SAVE_CFLAGS"
8276 need_locks
="$enable_libtool_lock"
8279 for ac_header
in dlfcn.h
8281 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
8282 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
8283 cat >>confdefs.h
<<_ACEOF
8284 #define HAVE_DLFCN_H 1
8292 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8294 # find the maximum length of command line arguments
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8296 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8297 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
8298 $as_echo_n "(cached) " >&6
8305 # On DJGPP, this test can blow up pretty badly due to problems in libc
8306 # (any single argument exceeding 2000 bytes causes a buffer overrun
8307 # during glob expansion). Even if it were fixed, the result of this
8308 # check would be larger than it should be.
8309 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
8313 # Under GNU Hurd, this test is not required because there is
8314 # no limit to the length of command line arguments.
8315 # Libtool will interpret -1 as no limit whatsoever
8316 lt_cv_sys_max_cmd_len
=-1;
8320 # On Win9x/ME, this test blows up -- it succeeds, but takes
8321 # about 5 minutes as the teststring grows exponentially.
8322 # Worse, since 9x/ME are not pre-emptively multitasking,
8323 # you end up with a "frozen" computer, even though with patience
8324 # the test eventually succeeds (with a max line length of 256k).
8325 # Instead, let's just punt: use the minimum linelength reported by
8326 # all of the supported platforms: 8192 (on NT/2K/XP).
8327 lt_cv_sys_max_cmd_len
=8192;
8331 # On AmigaOS with pdksh, this test takes hours, literally.
8332 # So we just punt and use a minimum line length of 8192.
8333 lt_cv_sys_max_cmd_len
=8192;
8336 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
8337 # This has been around since 386BSD, at least. Likely further.
8338 if test -x /sbin
/sysctl
; then
8339 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
8340 elif test -x /usr
/sbin
/sysctl
; then
8341 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
8343 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
8345 # And add a safety zone
8346 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
8347 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
8350 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8351 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8352 # nice to cause kernel panics so lets avoid the loop below.
8353 # First set a reasonable default.
8354 lt_cv_sys_max_cmd_len
=16384
8356 if test -x /sbin
/sysconfig
; then
8357 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8358 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
8363 # If test is not a shell built-in, we'll probably end up computing a
8364 # maximum length that is only half of the actual maximum length, but
8366 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
8367 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8368 = "XX$teststring") >/dev
/null
2>&1 &&
8369 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
8370 lt_cv_sys_max_cmd_len
=$new_result &&
8371 test $i != 17 # 1/2 MB should be enough
8374 teststring
=$teststring$teststring
8377 # Add a significant safety factor because C++ compilers can tack on massive
8378 # amounts of additional arguments before passing them to the linker.
8379 # It appears as though 1/2 is a usable value.
8380 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
8386 if test -n $lt_cv_sys_max_cmd_len ; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8388 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8391 $as_echo "none" >&6; }
8397 # Check for command to grab the raw symbol name followed by C symbol from nm.
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8399 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8400 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8401 $as_echo_n "(cached) " >&6
8404 # These are sane defaults that work on at least a few old systems.
8405 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8407 # Character class describing NM global symbol codes.
8408 symcode
='[BCDEGRST]'
8410 # Regexp to match symbols that can be accessed directly from C.
8411 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
8413 # Transform an extracted symbol line into a proper C declaration
8414 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8416 # Transform an extracted symbol line into symbol name and symbol address
8417 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
8419 # Define system-specific variables.
8424 cygwin
* | mingw
* | pw32
*)
8425 symcode
='[ABCDGISTW]'
8427 hpux
*) # Its linker distinguishes data from code symbols
8428 if test "$host_cpu" = ia64
; then
8429 symcode
='[ABCDEGRST]'
8431 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8432 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
8435 if test "$host_cpu" = ia64
; then
8436 symcode
='[ABCDGIRSTW]'
8437 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8438 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
8442 symcode
='[BCDEGRST]'
8445 symcode
='[BCDEGQRST]'
8455 # Handle CRLF in mingw tool chain
8459 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8463 # If we're using GNU nm, then use its standard symbol codes.
8464 case `$NM -V 2>&1` in
8465 *GNU
* |
*'with BFD'*)
8466 symcode
='[ABCDGIRSTW]' ;;
8469 # Try without a prefix undercore, then with it.
8470 for ac_symprfx
in "" "_"; do
8472 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8473 symxfrm
="\\1 $ac_symprfx\\2 \\2"
8475 # Write the raw and C identifiers.
8476 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8478 # Check to see that the pipe works correctly.
8482 cat > conftest.
$ac_ext <<EOF
8487 void nm_test_func(){}
8491 int main(){nm_test_var='a';nm_test_func();return(0);}
8494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8495 (eval $ac_compile) 2>&5
8497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8498 test $ac_status = 0; }; then
8499 # Now try to grab the symbols.
8501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8502 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
8504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8505 test $ac_status = 0; } && test -s "$nlist"; then
8506 # Try sorting and uniquifying the output.
8507 if sort "$nlist" |
uniq > "$nlist"T
; then
8508 mv -f "$nlist"T
"$nlist"
8513 # Make sure that we snagged all the symbols we need.
8514 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
8515 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
8516 cat <<EOF > conftest.$ac_ext
8522 # Now generate the symbol file.
8523 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8525 cat <<EOF >> conftest.$ac_ext
8526 #if defined (__STDC__) && __STDC__
8527 # define lt_ptr_t void *
8529 # define lt_ptr_t char *
8533 /* The mapping between symbol names and symbols. */
8538 lt_preloaded_symbols[] =
8541 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
8542 cat <<\EOF
>> conftest.
$ac_ext
8550 # Now try linking the two files.
8551 mv conftest.
$ac_objext conftstm.
$ac_objext
8552 lt_save_LIBS
="$LIBS"
8553 lt_save_CFLAGS
="$CFLAGS"
8554 LIBS
="conftstm.$ac_objext"
8555 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8557 (eval $ac_link) 2>&5
8559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8560 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
8563 LIBS
="$lt_save_LIBS"
8564 CFLAGS
="$lt_save_CFLAGS"
8566 echo "cannot find nm_test_func in $nlist" >&5
8569 echo "cannot find nm_test_var in $nlist" >&5
8572 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8575 echo "$progname: failed program was:" >&5
8576 cat conftest.
$ac_ext >&5
8578 rm -f conftest
* conftst
*
8580 # Do not use the global_symbol_pipe unless it works.
8581 if test "$pipe_works" = yes; then
8584 lt_cv_sys_global_symbol_pipe
=
8590 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8591 lt_cv_sys_global_symbol_to_cdecl
=
8593 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8595 $as_echo "failed" >&6; }
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8598 $as_echo "ok" >&6; }
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8602 $as_echo_n "checking for objdir... " >&6; }
8603 if test "${lt_cv_objdir+set}" = set; then :
8604 $as_echo_n "(cached) " >&6
8606 rm -f .libs
2>/dev
/null
8607 mkdir .libs
2>/dev
/null
8608 if test -d .libs
; then
8611 # MS-DOS does not allow filenames that begin with a dot.
8614 rmdir .libs
2>/dev
/null
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8617 $as_echo "$lt_cv_objdir" >&6; }
8618 objdir
=$lt_cv_objdir
8626 # AIX sometimes has problems with the GCC collect2 program. For some
8627 # reason, if we set the COLLECT_NAMES environment variable, the problems
8628 # vanish in a puff of smoke.
8629 if test "X${COLLECT_NAMES+set}" != Xset
; then
8631 export COLLECT_NAMES
8636 # Sed substitution that helps us do robust quoting. It backslashifies
8637 # metacharacters that are still active within double-quoted strings.
8638 Xsed
='sed -e 1s/^X//'
8639 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
8641 # Same as above, but do not quote variable references.
8642 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
8644 # Sed substitution to delay expansion of an escaped shell variable in a
8645 # double_quote_subst'ed string.
8646 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
8648 # Sed substitution to avoid accidental globbing in evaled expressions
8649 no_glob_subst
='s/\*/\\\*/g'
8655 default_ofile
=libtool
8656 can_build_shared
=yes
8658 # All known linkers require a `.a' archive for static linking (except MSVC,
8659 # which needs '.lib').
8661 ltmain
="$ac_aux_dir/ltmain.sh"
8662 ofile
="$default_ofile"
8663 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8665 if test -n "$ac_tool_prefix"; then
8666 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8667 set dummy
${ac_tool_prefix}ar; ac_word
=$2
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669 $as_echo_n "checking for $ac_word... " >&6; }
8670 if test "${ac_cv_prog_AR+set}" = set; then :
8671 $as_echo_n "(cached) " >&6
8673 if test -n "$AR"; then
8674 ac_cv_prog_AR
="$AR" # Let the user override the test.
8676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8680 test -z "$as_dir" && as_dir
=.
8681 for ac_exec_ext
in '' $ac_executable_extensions; do
8682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8683 ac_cv_prog_AR
="${ac_tool_prefix}ar"
8684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8694 if test -n "$AR"; then
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8696 $as_echo "$AR" >&6; }
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8699 $as_echo "no" >&6; }
8704 if test -z "$ac_cv_prog_AR"; then
8706 # Extract the first word of "ar", so it can be a program name with args.
8707 set dummy
ar; ac_word
=$2
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8709 $as_echo_n "checking for $ac_word... " >&6; }
8710 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8711 $as_echo_n "(cached) " >&6
8713 if test -n "$ac_ct_AR"; then
8714 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
8716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8720 test -z "$as_dir" && as_dir
=.
8721 for ac_exec_ext
in '' $ac_executable_extensions; do
8722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8723 ac_cv_prog_ac_ct_AR
="ar"
8724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8733 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
8734 if test -n "$ac_ct_AR"; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8736 $as_echo "$ac_ct_AR" >&6; }
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739 $as_echo "no" >&6; }
8742 if test "x$ac_ct_AR" = x
; then
8745 case $cross_compiling:$ac_tool_warned in
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8749 ac_tool_warned
=yes ;;
8757 if test -n "$ac_tool_prefix"; then
8758 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8759 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8761 $as_echo_n "checking for $ac_word... " >&6; }
8762 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8763 $as_echo_n "(cached) " >&6
8765 if test -n "$RANLIB"; then
8766 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8772 test -z "$as_dir" && as_dir
=.
8773 for ac_exec_ext
in '' $ac_executable_extensions; do
8774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8775 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8785 RANLIB
=$ac_cv_prog_RANLIB
8786 if test -n "$RANLIB"; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8788 $as_echo "$RANLIB" >&6; }
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791 $as_echo "no" >&6; }
8796 if test -z "$ac_cv_prog_RANLIB"; then
8797 ac_ct_RANLIB
=$RANLIB
8798 # Extract the first word of "ranlib", so it can be a program name with args.
8799 set dummy ranlib
; ac_word
=$2
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801 $as_echo_n "checking for $ac_word... " >&6; }
8802 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8803 $as_echo_n "(cached) " >&6
8805 if test -n "$ac_ct_RANLIB"; then
8806 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8812 test -z "$as_dir" && as_dir
=.
8813 for ac_exec_ext
in '' $ac_executable_extensions; do
8814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8815 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8825 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8826 if test -n "$ac_ct_RANLIB"; then
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8828 $as_echo "$ac_ct_RANLIB" >&6; }
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8834 if test "x$ac_ct_RANLIB" = x
; then
8837 case $cross_compiling:$ac_tool_warned in
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8841 ac_tool_warned
=yes ;;
8843 RANLIB
=$ac_ct_RANLIB
8846 RANLIB
="$ac_cv_prog_RANLIB"
8849 if test -n "$ac_tool_prefix"; then
8850 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8851 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8853 $as_echo_n "checking for $ac_word... " >&6; }
8854 if test "${ac_cv_prog_STRIP+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
8857 if test -n "$STRIP"; then
8858 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
8860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8864 test -z "$as_dir" && as_dir
=.
8865 for ac_exec_ext
in '' $ac_executable_extensions; do
8866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8867 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
8868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8877 STRIP
=$ac_cv_prog_STRIP
8878 if test -n "$STRIP"; then
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8880 $as_echo "$STRIP" >&6; }
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883 $as_echo "no" >&6; }
8888 if test -z "$ac_cv_prog_STRIP"; then
8890 # Extract the first word of "strip", so it can be a program name with args.
8891 set dummy strip
; ac_word
=$2
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8893 $as_echo_n "checking for $ac_word... " >&6; }
8894 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8895 $as_echo_n "(cached) " >&6
8897 if test -n "$ac_ct_STRIP"; then
8898 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
8900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8904 test -z "$as_dir" && as_dir
=.
8905 for ac_exec_ext
in '' $ac_executable_extensions; do
8906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8907 ac_cv_prog_ac_ct_STRIP
="strip"
8908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8917 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
8918 if test -n "$ac_ct_STRIP"; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8920 $as_echo "$ac_ct_STRIP" >&6; }
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 $as_echo "no" >&6; }
8926 if test "x$ac_ct_STRIP" = x
; then
8929 case $cross_compiling:$ac_tool_warned in
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8933 ac_tool_warned
=yes ;;
8938 STRIP
="$ac_cv_prog_STRIP"
8943 old_CFLAGS
="$CFLAGS"
8945 # Set sane defaults for various variables
8946 test -z "$AR" && AR
=ar
8947 test -z "$AR_FLAGS" && AR_FLAGS
=cru
8948 test -z "$AS" && AS
=as
8949 test -z "$CC" && CC
=cc
8950 test -z "$LTCC" && LTCC
=$CC
8951 test -z "$DLLTOOL" && DLLTOOL
=dlltool
8952 test -z "$LD" && LD
=ld
8953 test -z "$LN_S" && LN_S
="ln -s"
8954 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8955 test -z "$NM" && NM
=nm
8956 test -z "$SED" && SED
=sed
8957 test -z "$OBJDUMP" && OBJDUMP
=objdump
8958 test -z "$RANLIB" && RANLIB
=:
8959 test -z "$STRIP" && STRIP
=:
8960 test -z "$ac_objext" && ac_objext
=o
8962 # Determine commands to create old-style static archives.
8963 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8964 old_postinstall_cmds
='chmod 644 $oldlib'
8965 old_postuninstall_cmds
=
8967 if test -n "$RANLIB"; then
8970 old_postinstall_cmds
="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8973 old_postinstall_cmds
="\$RANLIB \$oldlib~$old_postinstall_cmds"
8976 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
8979 for cc_temp
in $compiler""; do
8981 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8982 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8987 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8990 # Only perform the check for file, if the check method requires it
8991 case $deplibs_check_method in
8993 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8995 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8996 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8997 $as_echo_n "(cached) " >&6
9001 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
9004 lt_save_MAGIC_CMD
="$MAGIC_CMD"
9005 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9006 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
9007 for ac_dir
in $ac_dummy; do
9009 test -z "$ac_dir" && ac_dir
=.
9010 if test -f $ac_dir/${ac_tool_prefix}file; then
9011 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
9012 if test -n "$file_magic_test_file"; then
9013 case $deplibs_check_method in
9015 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9016 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9017 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
9018 $EGREP "$file_magic_regex" > /dev
/null
; then
9023 *** Warning: the command libtool uses to detect shared libraries,
9024 *** $file_magic_cmd, produces output that libtool cannot recognize.
9025 *** The result is that libtool may fail to recognize shared libraries
9026 *** as such. This will affect the creation of libtool libraries that
9027 *** depend on shared libraries, but programs linked with such libtool
9028 *** libraries will work regardless of this problem. Nevertheless, you
9029 *** may want to report the problem to your system manager and/or to
9030 *** bug-libtool@gnu.org
9040 MAGIC_CMD
="$lt_save_MAGIC_CMD"
9045 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9046 if test -n "$MAGIC_CMD"; then
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9048 $as_echo "$MAGIC_CMD" >&6; }
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051 $as_echo "no" >&6; }
9054 if test -z "$lt_cv_path_MAGIC_CMD"; then
9055 if test -n "$ac_tool_prefix"; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9057 $as_echo_n "checking for file... " >&6; }
9058 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9059 $as_echo_n "(cached) " >&6
9063 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
9066 lt_save_MAGIC_CMD
="$MAGIC_CMD"
9067 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9068 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
9069 for ac_dir
in $ac_dummy; do
9071 test -z "$ac_dir" && ac_dir
=.
9072 if test -f $ac_dir/file; then
9073 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
9074 if test -n "$file_magic_test_file"; then
9075 case $deplibs_check_method in
9077 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9078 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9079 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
9080 $EGREP "$file_magic_regex" > /dev
/null
; then
9085 *** Warning: the command libtool uses to detect shared libraries,
9086 *** $file_magic_cmd, produces output that libtool cannot recognize.
9087 *** The result is that libtool may fail to recognize shared libraries
9088 *** as such. This will affect the creation of libtool libraries that
9089 *** depend on shared libraries, but programs linked with such libtool
9090 *** libraries will work regardless of this problem. Nevertheless, you
9091 *** may want to report the problem to your system manager and/or to
9092 *** bug-libtool@gnu.org
9102 MAGIC_CMD
="$lt_save_MAGIC_CMD"
9107 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9108 if test -n "$MAGIC_CMD"; then
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9110 $as_echo "$MAGIC_CMD" >&6; }
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113 $as_echo "no" >&6; }
9128 # Check whether --enable-libtool-lock was given.
9129 if test "${enable_libtool_lock+set}" = set; then :
9130 enableval
=$enable_libtool_lock;
9133 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
9136 # Check whether --with-pic was given.
9137 if test "${with_pic+set}" = set; then :
9138 withval
=$with_pic; pic_mode
="$withval"
9143 test -z "$pic_mode" && pic_mode
=default
9145 # Use C for the default configuration in the libtool script
9149 ac_cpp
='$CPP $CPPFLAGS'
9150 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9151 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9152 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9155 # Source file extension for C test sources.
9158 # Object file extension for compiled C test sources.
9162 # Code to be used in simple compile tests
9163 lt_simple_compile_test_code
="int some_variable = 0;\n"
9165 # Code to be used in simple link tests
9166 lt_simple_link_test_code
='int main(){return(0);}\n'
9169 # If no C compiler was specified, use CC.
9172 # Allow CC to be a program name with arguments.
9176 # save warnings/boilerplate of simple test code
9177 ac_outfile
=conftest.
$ac_objext
9178 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
9179 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
9180 _lt_compiler_boilerplate
=`cat conftest.err`
9183 ac_outfile
=conftest.
$ac_objext
9184 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
9185 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
9186 _lt_linker_boilerplate
=`cat conftest.err`
9191 # Check for any special shared library compilation flags.
9194 if test "$GCC" = no
; then
9197 lt_prog_cc_shlib
='-belf'
9201 if test -n "$lt_prog_cc_shlib"; then
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
9203 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
9204 if echo "$old_CC $old_CFLAGS " |
grep "[ ]$lt_prog_cc_shlib[ ]" >/dev
/null
; then :
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
9207 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
9208 lt_cv_prog_cc_can_build_shared
=no
9214 # Check to make sure the static flag actually works.
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
9217 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
9218 if test "${lt_prog_compiler_static_works+set}" = set; then :
9219 $as_echo_n "(cached) " >&6
9221 lt_prog_compiler_static_works
=no
9222 save_LDFLAGS
="$LDFLAGS"
9223 LDFLAGS
="$LDFLAGS $lt_prog_compiler_static"
9224 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
9225 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9226 # The linker can only warn and ignore the option if not recognized
9227 # So say no if there are warnings
9228 if test -s conftest.err
; then
9229 # Append any errors to the config.log.
9230 cat conftest.err
1>&5
9231 $echo "X$_lt_linker_boilerplate" |
$Xsed > conftest.exp
9232 $SED '/^$/d' conftest.err
>conftest.er2
9233 if diff conftest.exp conftest.er2
>/dev
/null
; then
9234 lt_prog_compiler_static_works
=yes
9237 lt_prog_compiler_static_works
=yes
9241 LDFLAGS
="$save_LDFLAGS"
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
9245 $as_echo "$lt_prog_compiler_static_works" >&6; }
9247 if test x
"$lt_prog_compiler_static_works" = xyes
; then
9250 lt_prog_compiler_static
=
9256 lt_prog_compiler_no_builtin_flag
=
9258 if test "$GCC" = yes; then
9259 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9263 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9264 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9265 $as_echo_n "(cached) " >&6
9267 lt_cv_prog_compiler_rtti_exceptions
=no
9268 ac_outfile
=conftest.
$ac_objext
9269 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
9270 lt_compiler_flag
="-fno-rtti -fno-exceptions"
9271 # Insert the option either (1) after the last *FLAGS variable, or
9272 # (2) before a word containing "conftest.", or (3) at the end.
9273 # Note that $ac_compile itself does not contain backslashes and begins
9274 # with a dollar sign (not a hyphen), so the echo should work correctly.
9275 # The option is referenced via a variable to avoid confusing sed.
9276 lt_compile
=`echo "$ac_compile" | $SED \
9277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9279 -e 's:$: $lt_compiler_flag:'`
9280 (eval echo "\"\$as_me:9280: $lt_compile\"" >&5)
9281 (eval "$lt_compile" 2>conftest.err
)
9283 cat conftest.err
>&5
9284 echo "$as_me:9284: \$? = $ac_status" >&5
9285 if (exit $ac_status) && test -s "$ac_outfile"; then
9286 # The compiler can only warn and ignore the option if not recognized
9287 # So say no if there are warnings other than the usual output.
9288 $echo "X$_lt_compiler_boilerplate" |
$Xsed >conftest.exp
9289 $SED '/^$/d' conftest.err
>conftest.er2
9290 if test ! -s conftest.err ||
diff conftest.exp conftest.er2
>/dev
/null
; then
9291 lt_cv_prog_compiler_rtti_exceptions
=yes
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9298 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9300 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
9301 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9308 lt_prog_compiler_wl
=
9309 lt_prog_compiler_pic
=
9310 lt_prog_compiler_static
=
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9313 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9315 if test "$GCC" = yes; then
9316 lt_prog_compiler_wl
='-Wl,'
9317 lt_prog_compiler_static
='-static'
9321 # All AIX code is PIC.
9322 if test "$host_cpu" = ia64
; then
9323 # AIX 5 now supports IA64 processor
9324 lt_prog_compiler_static
='-Bstatic'
9329 # FIXME: we need at least 68020 code to build shared libraries, but
9330 # adding the `-m68020' flag to GCC prevents building anything better,
9332 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
9335 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
9336 # PIC is the default for these OSes.
9339 mingw
* | pw32
* | os2
*)
9340 # This hack is so that the source file can tell whether it is being
9341 # built for inclusion in a dll (and should export symbols for example).
9342 lt_prog_compiler_pic
='-DDLL_EXPORT'
9345 darwin
* | rhapsody
*)
9346 # PIC is the default on this platform
9347 # Common symbols not allowed in MH_DYLIB files
9348 lt_prog_compiler_pic
='-fno-common'
9352 # Just because we use GCC doesn't mean we suddenly get shared libraries
9353 # on systems that don't support them.
9354 lt_prog_compiler_can_build_shared
=no
9359 if test -d /usr
/nec
; then
9360 lt_prog_compiler_pic
=-Kconform_pic
9365 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9372 lt_prog_compiler_pic
='-fPIC'
9378 lt_prog_compiler_pic
='-fPIC'
9382 # PORTME Check for flag to pass linker flags through the system compiler.
9385 lt_prog_compiler_wl
='-Wl,'
9386 if test "$host_cpu" = ia64
; then
9387 # AIX 5 now supports IA64 processor
9388 lt_prog_compiler_static
='-Bstatic'
9390 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
9394 # PIC is the default on this platform
9395 # Common symbols not allowed in MH_DYLIB files
9396 case $cc_basename in
9398 lt_prog_compiler_pic
='-qnocommon'
9399 lt_prog_compiler_wl
='-Wl,'
9404 mingw
* | pw32
* | os2
*)
9405 # This hack is so that the source file can tell whether it is being
9406 # built for inclusion in a dll (and should export symbols for example).
9407 lt_prog_compiler_pic
='-DDLL_EXPORT'
9410 hpux9
* | hpux10
* | hpux11
*)
9411 lt_prog_compiler_wl
='-Wl,'
9412 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9419 lt_prog_compiler_pic
='+Z'
9422 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9423 lt_prog_compiler_static
='${wl}-a ${wl}archive'
9426 irix5
* | irix6
* | nonstopux
*)
9427 lt_prog_compiler_wl
='-Wl,'
9428 # PIC (with -KPIC) is the default.
9429 lt_prog_compiler_static
='-non_shared'
9433 lt_prog_compiler_pic
='-KPIC'
9434 lt_prog_compiler_static
='-Bstatic'
9438 case $cc_basename in
9440 lt_prog_compiler_wl
='-Wl,'
9441 lt_prog_compiler_pic
='-KPIC'
9442 lt_prog_compiler_static
='-static'
9444 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
9445 # Portland Group compilers (*not* the Pentium gcc compiler,
9446 # which looks to be a dead project)
9447 lt_prog_compiler_wl
='-Wl,'
9448 lt_prog_compiler_pic
='-fpic'
9449 lt_prog_compiler_static
='-Bstatic'
9452 lt_prog_compiler_wl
='-Wl,'
9453 # All Alpha code is PIC.
9454 lt_prog_compiler_static
='-non_shared'
9459 osf3
* | osf4
* | osf5
*)
9460 lt_prog_compiler_wl
='-Wl,'
9461 # All OSF/1 code is PIC.
9462 lt_prog_compiler_static
='-non_shared'
9466 lt_prog_compiler_pic
='-Kpic'
9467 lt_prog_compiler_static
='-dn'
9471 lt_prog_compiler_pic
='-KPIC'
9472 lt_prog_compiler_static
='-Bstatic'
9473 case $cc_basename in
9475 lt_prog_compiler_wl
='-Qoption ld ';;
9477 lt_prog_compiler_wl
='-Wl,';;
9482 lt_prog_compiler_wl
='-Qoption ld '
9483 lt_prog_compiler_pic
='-PIC'
9484 lt_prog_compiler_static
='-Bstatic'
9487 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9488 lt_prog_compiler_wl
='-Wl,'
9489 lt_prog_compiler_pic
='-KPIC'
9490 lt_prog_compiler_static
='-Bstatic'
9494 if test -d /usr
/nec
;then
9495 lt_prog_compiler_pic
='-Kconform_pic'
9496 lt_prog_compiler_static
='-Bstatic'
9501 lt_prog_compiler_wl
='-Wl,'
9502 lt_prog_compiler_can_build_shared
=no
9506 lt_prog_compiler_pic
='-pic'
9507 lt_prog_compiler_static
='-Bstatic'
9511 lt_prog_compiler_can_build_shared
=no
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9517 $as_echo "$lt_prog_compiler_pic" >&6; }
9520 # Check to make sure the PIC flag actually works.
9522 if test -n "$lt_prog_compiler_pic"; then
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9525 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9526 if test "${lt_prog_compiler_pic_works+set}" = set; then :
9527 $as_echo_n "(cached) " >&6
9529 lt_prog_compiler_pic_works
=no
9530 ac_outfile
=conftest.
$ac_objext
9531 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
9532 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
9533 # Insert the option either (1) after the last *FLAGS variable, or
9534 # (2) before a word containing "conftest.", or (3) at the end.
9535 # Note that $ac_compile itself does not contain backslashes and begins
9536 # with a dollar sign (not a hyphen), so the echo should work correctly.
9537 # The option is referenced via a variable to avoid confusing sed.
9538 lt_compile
=`echo "$ac_compile" | $SED \
9539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9541 -e 's:$: $lt_compiler_flag:'`
9542 (eval echo "\"\$as_me:9542: $lt_compile\"" >&5)
9543 (eval "$lt_compile" 2>conftest.err
)
9545 cat conftest.err
>&5
9546 echo "$as_me:9546: \$? = $ac_status" >&5
9547 if (exit $ac_status) && test -s "$ac_outfile"; then
9548 # The compiler can only warn and ignore the option if not recognized
9549 # So say no if there are warnings other than the usual output.
9550 $echo "X$_lt_compiler_boilerplate" |
$Xsed >conftest.exp
9551 $SED '/^$/d' conftest.err
>conftest.er2
9552 if test ! -s conftest.err ||
diff conftest.exp conftest.er2
>/dev
/null
; then
9553 lt_prog_compiler_pic_works
=yes
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
9560 $as_echo "$lt_prog_compiler_pic_works" >&6; }
9562 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
9563 case $lt_prog_compiler_pic in
9565 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
9568 lt_prog_compiler_pic
=
9569 lt_prog_compiler_can_build_shared
=no
9574 # For platforms which do not support PIC, -DPIC is meaningless:
9576 lt_prog_compiler_pic
=
9579 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9584 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9585 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9586 $as_echo_n "(cached) " >&6
9588 lt_cv_prog_compiler_c_o
=no
9589 $rm -r conftest
2>/dev
/null
9593 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
9595 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9596 # Insert the option either (1) after the last *FLAGS variable, or
9597 # (2) before a word containing "conftest.", or (3) at the end.
9598 # Note that $ac_compile itself does not contain backslashes and begins
9599 # with a dollar sign (not a hyphen), so the echo should work correctly.
9600 lt_compile
=`echo "$ac_compile" | $SED \
9601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9603 -e 's:$: $lt_compiler_flag:'`
9604 (eval echo "\"\$as_me:9604: $lt_compile\"" >&5)
9605 (eval "$lt_compile" 2>out
/conftest.err
)
9607 cat out
/conftest.err
>&5
9608 echo "$as_me:9608: \$? = $ac_status" >&5
9609 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9611 # The compiler can only warn and ignore the option if not recognized
9612 # So say no if there are warnings
9613 $echo "X$_lt_compiler_boilerplate" |
$Xsed > out
/conftest.exp
9614 $SED '/^$/d' out
/conftest.err
>out
/conftest.er2
9615 if test ! -s out
/conftest.err ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9616 lt_cv_prog_compiler_c_o
=yes
9621 # SGI C++ compiler will create directory out/ii_files/ for
9622 # template instantiation
9623 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
9624 $rm out
/* && rmdir out
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9631 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9634 hard_links
="nottested"
9635 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
9636 # do not overwrite the value of need_locks provided by the user
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9638 $as_echo_n "checking if we can lock with hard links... " >&6; }
9641 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9643 ln conftest.a conftest.b
2>&5 || hard_links
=no
9644 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9646 $as_echo "$hard_links" >&6; }
9647 if test "$hard_links" = no
; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9649 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9657 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9660 allow_undefined_flag
=
9661 enable_shared_with_static_runtimes
=no
9663 archive_expsym_cmds
=
9664 old_archive_From_new_cmds
=
9665 old_archive_from_expsyms_cmds
=
9666 export_dynamic_flag_spec
=
9667 whole_archive_flag_spec
=
9668 thread_safe_flag_spec
=
9669 hardcode_libdir_flag_spec
=
9670 hardcode_libdir_flag_spec_ld
=
9671 hardcode_libdir_separator
=
9674 hardcode_shlibpath_var
=unsupported
9675 link_all_deplibs
=unknown
9676 hardcode_automatic
=no
9679 always_export_symbols
=no
9680 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9681 # include_expsyms should be a list of space-separated symbols to be *always*
9682 # included in the symbol list
9684 # exclude_expsyms can be an extended regexp of symbols to exclude
9685 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9686 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9687 # as well as any symbol that contains `d'.
9688 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
9689 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9690 # platforms (ab)use it in PIC code, but their linkers get confused if
9691 # the symbol is explicitly referenced. Since portable code cannot
9692 # rely on this symbol name, it's probably fine to never include it in
9693 # preloaded symbol tables.
9694 extract_expsyms_cmds
=
9695 # Just being paranoid about ensuring that cc_basename is set.
9696 for cc_temp
in $compiler""; do
9698 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
9699 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
9704 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9707 cygwin
* | mingw
* | pw32
*)
9708 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9709 # When not using gcc, we currently assume that we are using
9710 # Microsoft Visual C++.
9711 if test "$GCC" != yes; then
9721 if test "$with_gnu_ld" = yes; then
9722 # If archive_cmds runs LD, not CC, wlarc should be empty
9725 # Set some defaults for GNU ld with shared library support. These
9726 # are reset later if shared libraries are not supported. Putting them
9727 # here allows them to be overridden if necessary.
9728 runpath_var
=LD_RUN_PATH
9729 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
9730 export_dynamic_flag_spec
='${wl}--export-dynamic'
9731 # ancient GNU ld didn't support --whole-archive et. al.
9732 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
9733 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9735 whole_archive_flag_spec
=
9737 supports_anon_versioning
=no
9738 case `$LD -v 2>/dev/null` in
9739 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9740 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9741 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9742 *\
2.11.
*) ;; # other 2.11 versions
9743 *) supports_anon_versioning
=yes ;;
9746 # See if GNU ld supports shared libraries.
9748 aix3
* | aix4
* | aix5
*)
9749 # On AIX/PPC, the GNU linker is very broken
9750 if test "$host_cpu" != ia64
; then
9754 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9755 *** to be unable to reliably create shared libraries on AIX.
9756 *** Therefore, libtool is disabling shared libraries support. If you
9757 *** really care for shared libraries, you may want to modify your PATH
9758 *** so that a non-GNU linker is found, and then restart.
9765 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)'
9766 hardcode_libdir_flag_spec
='-L$libdir'
9767 hardcode_minus_L
=yes
9769 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9770 # that the semantics of dynamic libraries on AmigaOS, at least up
9771 # to version 4, is to share data among multiple programs linked
9772 # with the same dynamic library. Since this doesn't match the
9773 # behavior of shared libraries on other platforms, we can't use
9779 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
9780 allow_undefined_flag
=unsupported
9781 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9782 # support --undefined. This deserves some investigation. FIXME
9783 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9789 cygwin
* | mingw
* | pw32
*)
9790 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9791 # as there is no search path for DLLs.
9792 hardcode_libdir_flag_spec
='-L$libdir'
9793 allow_undefined_flag
=unsupported
9794 always_export_symbols
=no
9795 enable_shared_with_static_runtimes
=yes
9796 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9798 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
9799 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9800 # If the export-symbols file already is a .def file (1st line
9801 # is EXPORTS), use it as is; otherwise, prepend...
9802 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9803 cp $export_symbols $output_objdir/$soname.def;
9805 echo EXPORTS > $output_objdir/$soname.def;
9806 cat $export_symbols >> $output_objdir/$soname.def;
9808 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9815 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
9817 case $cc_basename,$host_cpu in
9818 pgcc
*) # Portland Group C compiler
9819 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9820 tmp_addflag
=' $pic_flag'
9822 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
9823 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9824 tmp_addflag
=' $pic_flag -Mnomain' ;;
9825 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9826 tmp_addflag
=' -i_dynamic' ;;
9827 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9828 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9829 ifc
* | ifort
*) # Intel Fortran compiler
9830 tmp_addflag
=' -nofor_main' ;;
9832 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9834 if test $supports_anon_versioning = yes; then
9835 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
9836 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9837 $echo "local: *; };" >> $output_objdir/$libname.ver~
9838 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9846 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
9847 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9850 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9856 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
9860 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9861 *** create shared libraries on Solaris systems. Therefore, libtool
9862 *** is disabling shared libraries support. We urge you to upgrade GNU
9863 *** binutils to release 2.9.1 or newer. Another option is to modify
9864 *** your PATH or compiler configuration so that the native linker is
9865 *** used, and then restart.
9868 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
9869 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9870 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9877 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9880 hardcode_shlibpath_var
=no
9884 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
9885 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9886 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9893 if test "$ld_shlibs" = no
; then
9895 hardcode_libdir_flag_spec
=
9896 export_dynamic_flag_spec
=
9897 whole_archive_flag_spec
=
9900 # PORTME fill in a description of your system's linker (not GNU ld)
9903 allow_undefined_flag
=unsupported
9904 always_export_symbols
=yes
9905 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'
9906 # Note: this linker hardcodes the directories in LIBPATH if there
9907 # are no directories specified by -L.
9908 hardcode_minus_L
=yes
9909 if test "$GCC" = yes && test -z "$link_static_flag"; then
9910 # Neither direct hardcoding nor static linking is supported with a
9912 hardcode_direct
=unsupported
9917 if test "$host_cpu" = ia64
; then
9918 # On IA64, the linker does run time linking by default, so we don't
9919 # have to do anything special.
9920 aix_use_runtimelinking
=no
9921 exp_sym_flag
='-Bexport'
9924 # If we're using GNU nm, then we don't want the "-C" option.
9925 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9926 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
9927 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9929 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'
9931 aix_use_runtimelinking
=no
9933 # Test if we are trying to use run time linking or normal
9934 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9935 # need to do runtime linking.
9936 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
9937 for ld_flag
in $LDFLAGS; do
9938 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9939 aix_use_runtimelinking
=yes
9945 exp_sym_flag
='-bexport'
9946 no_entry_flag
='-bnoentry'
9949 # When large executables or shared objects are built, AIX ld can
9950 # have problems creating the table of contents. If linking a library
9951 # or program results in "error TOC overflow" add -mminimal-toc to
9952 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9953 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9957 hardcode_libdir_separator
=':'
9958 link_all_deplibs
=yes
9960 if test "$GCC" = yes; then
9961 case $host_os in aix4.
[012]|aix4.
[012].
*)
9962 # We only want to do this on AIX 4.2 and lower, the check
9963 # below for broken collect2 doesn't work under 4.3+
9964 collect2name
=`${CC} -print-prog-name=collect2`
9965 if test -f "$collect2name" && \
9966 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
9968 # We have reworked collect2
9971 # We have old collect2
9972 hardcode_direct
=unsupported
9973 # It fails to find uninstalled libraries when the uninstalled
9974 # path is not listed in the libpath. Setting hardcode_minus_L
9975 # to unsupported forces relinking
9976 hardcode_minus_L
=yes
9977 hardcode_libdir_flag_spec
='-L$libdir'
9978 hardcode_libdir_separator
=
9981 shared_flag
='-shared'
9982 if test "$aix_use_runtimelinking" = yes; then
9983 shared_flag
="$shared_flag "'${wl}-G'
9987 if test "$host_cpu" = ia64
; then
9988 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9989 # chokes on -Wl,-G. The following line is correct:
9992 if test "$aix_use_runtimelinking" = yes; then
9993 shared_flag
='${wl}-G'
9995 shared_flag
='${wl}-bM:SRE'
10000 # It seems that -bexpall does not export symbols beginning with
10001 # underscore (_), so it is better to generate a list of symbols to export.
10002 always_export_symbols
=yes
10003 if test "$aix_use_runtimelinking" = yes; then
10004 # Warning - without using the other runtime loading flags (-brtl),
10005 # -berok will link without error, but may produce a broken library.
10006 allow_undefined_flag
='-berok'
10007 # Determine the default libpath from the value encoded in an empty executable.
10008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h. */
10019 if ac_fn_c_try_link
"$LINENO"; then :
10021 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10023 # Check for a 64-bit object if we didn't find anything.
10024 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10027 rm -f core conftest.err conftest.
$ac_objext \
10028 conftest
$ac_exeext conftest.
$ac_ext
10029 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10031 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10032 archive_expsym_cmds
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10034 if test "$host_cpu" = ia64; then
10035 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr
/lib
:/lib
'
10036 allow_undefined_flag="-z nodefs"
10037 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
10039 # Determine the default libpath from the value encoded in an empty executable.
10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10051 if ac_fn_c_try_link "$LINENO"; then :
10053 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10055 # Check for a 64-bit object if we didn't find anything.
10056 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10059 rm -f core conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10061 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
10063 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10064 # Warning - without using the other run time loading flags,
10065 # -berok will link without error, but may produce a broken library.
10066 no_undefined_flag=' ${wl}-bernotok'
10067 allow_undefined_flag=' ${wl}-berok'
10068 # -bexpall does not export symbols beginning with underscore (_)
10069 always_export_symbols=yes
10070 # Exported symbols can be pulled into shared objects from archives
10071 whole_archive_flag_spec=' '
10072 archive_cmds_need_lc=yes
10073 # This is similar to how AIX traditionally builds its shared libraries.
10074 archive_expsym_cmds="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10080 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)'
10081 hardcode_libdir_flag_spec
='-L$libdir'
10082 hardcode_minus_L
=yes
10083 # see comment about different semantics on the GNU ld section
10088 export_dynamic_flag_spec
=-rdynamic
10091 cygwin
* | mingw
* | pw32
*)
10092 # When not using gcc, we currently assume that we are using
10093 # Microsoft Visual C++.
10094 # hardcode_libdir_flag_spec is actually meaningless, as there is
10095 # no search path for DLLs.
10096 hardcode_libdir_flag_spec
=' '
10097 allow_undefined_flag
=unsupported
10098 # Tell ltmain to make .lib files, not .a files.
10100 # Tell ltmain to make .dll files, not .so files.
10102 # FIXME: Setting linknames here is a bad hack.
10103 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10104 # The linker will automatically build a .lib file if we build a DLL.
10105 old_archive_From_new_cmds
='true'
10106 # FIXME: Should let the user specify the lib program.
10107 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
10108 fix_srcfile_path
='`cygpath -w "$srcfile"`'
10109 enable_shared_with_static_runtimes
=yes
10112 darwin
* | rhapsody
*)
10114 rhapsody
* | darwin1.
[012])
10115 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
10118 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10119 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10121 case ${MACOSX_DEPLOYMENT_TARGET} in
10123 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10126 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
10132 archive_cmds_need_lc
=no
10134 hardcode_automatic
=yes
10135 hardcode_shlibpath_var
=unsupported
10136 whole_archive_flag_spec
=''
10137 link_all_deplibs
=yes
10138 if test "$GCC" = yes ; then
10139 output_verbose_link_cmd
='echo'
10140 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10141 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10142 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10143 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10144 module_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10146 case $cc_basename in
10148 output_verbose_link_cmd
='echo'
10149 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10150 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10151 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10152 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10153 module_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10163 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10164 hardcode_libdir_flag_spec
='-L$libdir'
10165 hardcode_shlibpath_var
=no
10172 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10173 # support. Future versions do this automatically, but an explicit c++rt0.o
10174 # does not break anything, and helps significantly (at the cost of a little
10177 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10178 hardcode_libdir_flag_spec
='-R$libdir'
10179 hardcode_direct
=yes
10180 hardcode_shlibpath_var
=no
10183 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10185 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10186 hardcode_direct
=yes
10187 hardcode_minus_L
=yes
10188 hardcode_shlibpath_var
=no
10191 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10192 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
10193 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10194 hardcode_libdir_flag_spec
='-R$libdir'
10195 hardcode_direct
=yes
10196 hardcode_shlibpath_var
=no
10200 if test "$GCC" = yes; then
10201 archive_cmds
='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10203 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'
10205 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10206 hardcode_libdir_separator
=:
10207 hardcode_direct
=yes
10209 # hardcode_minus_L: Not really in the search PATH,
10210 # but as the default location of the library.
10211 hardcode_minus_L
=yes
10212 export_dynamic_flag_spec
='${wl}-E'
10216 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
10219 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10222 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10228 archive_cmds
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
10231 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10235 if test "$with_gnu_ld" = no
; then
10238 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10239 hardcode_libdir_flag_spec_ld
='+b $libdir'
10240 hardcode_libdir_separator
=:
10242 hardcode_shlibpath_var
=no
10245 hardcode_libdir_flag_spec
='-L$libdir'
10247 hardcode_shlibpath_var
=no
10249 # hardcode_minus_L: Not really in the search PATH,
10250 # but as the default location of the library.
10251 hardcode_minus_L
=yes
10254 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10255 hardcode_libdir_separator
=:
10256 hardcode_direct
=yes
10257 export_dynamic_flag_spec
='${wl}-E'
10259 # hardcode_minus_L: Not really in the search PATH,
10260 # but as the default location of the library.
10261 hardcode_minus_L
=yes
10267 irix5
* | irix6
* | nonstopux
*)
10268 if test "$GCC" = yes; then
10269 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10271 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10272 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
10274 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10275 hardcode_libdir_separator
=:
10276 link_all_deplibs
=yes
10280 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
10281 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10283 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10285 hardcode_libdir_flag_spec
='-R$libdir'
10286 hardcode_direct
=yes
10287 hardcode_shlibpath_var
=no
10291 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10292 hardcode_direct
=yes
10293 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10294 hardcode_libdir_separator
=:
10295 hardcode_shlibpath_var
=no
10299 hardcode_direct
=yes
10300 hardcode_shlibpath_var
=no
10301 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10302 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10303 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10304 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10305 export_dynamic_flag_spec
='${wl}-E'
10308 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10309 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10310 hardcode_libdir_flag_spec
='-R$libdir'
10313 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10314 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10321 hardcode_libdir_flag_spec
='-L$libdir'
10322 hardcode_minus_L
=yes
10323 allow_undefined_flag
=unsupported
10324 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'
10325 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10329 if test "$GCC" = yes; then
10330 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10331 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10333 allow_undefined_flag
=' -expect_unresolved \*'
10334 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10336 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10337 hardcode_libdir_separator
=:
10340 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10341 if test "$GCC" = yes; then
10342 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10343 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10344 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10346 allow_undefined_flag
=' -expect_unresolved \*'
10347 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10348 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10349 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
10351 # Both c and cxx compiler support -rpath directly
10352 hardcode_libdir_flag_spec
='-rpath $libdir'
10354 hardcode_libdir_separator
=:
10358 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10359 hardcode_shlibpath_var
=no
10360 export_dynamic_flag_spec
='${wl}-Bexport'
10361 runpath_var
=LD_RUN_PATH
10362 hardcode_runpath_var
=yes
10366 no_undefined_flag
=' -z text'
10367 if test "$GCC" = yes; then
10369 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10370 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10371 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10374 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10375 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10376 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10378 hardcode_libdir_flag_spec
='-R$libdir'
10379 hardcode_shlibpath_var
=no
10381 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10383 # The compiler driver will combine linker options so we
10384 # cannot just pass the convience library names through
10385 # without $wl, iff we do not link with $LD.
10386 # Luckily, gcc supports the same syntax we need for Sun Studio.
10387 # Supported since Solaris 2.6 (maybe 2.5.1?)
10390 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
10392 whole_archive_flag_spec
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
10395 link_all_deplibs
=yes
10399 if test "x$host_vendor" = xsequent
; then
10400 # Use $CC to link under sequent, because it throws in some extra .o
10401 # files that make .init and .fini sections work.
10402 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10404 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10406 hardcode_libdir_flag_spec
='-L$libdir'
10407 hardcode_direct
=yes
10408 hardcode_minus_L
=yes
10409 hardcode_shlibpath_var
=no
10413 case $host_vendor in
10415 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10416 hardcode_direct
=yes # is this really true???
10419 ## LD is ld it makes a PLAMLIB
10420 ## CC just makes a GrossModule.
10421 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10422 reload_cmds
='$CC -r -o $output$reload_objs'
10426 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10430 runpath_var
='LD_RUN_PATH'
10431 hardcode_shlibpath_var
=no
10435 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10436 hardcode_shlibpath_var
=no
10437 export_dynamic_flag_spec
='-Bexport'
10441 if test -d /usr
/nec
; then
10442 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10443 hardcode_shlibpath_var
=no
10444 runpath_var
=LD_RUN_PATH
10445 hardcode_runpath_var
=yes
10451 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10452 hardcode_direct
=yes
10453 hardcode_minus_L
=no
10454 hardcode_shlibpath_var
=no
10455 hardcode_runpath_var
=yes
10456 runpath_var
=LD_RUN_PATH
10459 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
10460 no_undefined_flag
='${wl}-z ${wl}text'
10461 if test "$GCC" = yes; then
10462 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10464 archive_cmds
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10466 runpath_var
='LD_RUN_PATH'
10467 hardcode_shlibpath_var
=no
10471 no_undefined_flag
=' -z text'
10472 # $CC -shared without GNU ld will not create a library from C++
10473 # object files and a static libstdc++, better avoid it by now
10474 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10475 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10476 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10477 hardcode_libdir_flag_spec
=
10478 hardcode_shlibpath_var
=no
10479 runpath_var
='LD_RUN_PATH'
10483 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10484 hardcode_libdir_flag_spec
='-L$libdir'
10485 hardcode_shlibpath_var
=no
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10495 $as_echo "$ld_shlibs" >&6; }
10496 test "$ld_shlibs" = no
&& can_build_shared
=no
10498 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10499 if test "$GCC" = yes; then
10500 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10504 # Do we need to explicitly link libc?
10506 case "x$archive_cmds_need_lc" in
10508 # Assume -lc should be added
10509 archive_cmds_need_lc
=yes
10511 if test "$enable_shared" = yes && test "$GCC" = yes; then
10512 case $archive_cmds in
10514 # FIXME: we may have to deal with multi-command sequences.
10517 # Test whether the compiler implicitly links with -lc since on some
10518 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10519 # to ld, don't add -lc before -lgcc.
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10521 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10523 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
10525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10526 (eval $ac_compile) 2>&5
10528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10529 test $ac_status = 0; } 2>conftest.err
; then
10532 libobjs
=conftest.
$ac_objext
10534 wl
=$lt_prog_compiler_wl
10540 lt_save_allow_undefined_flag
=$allow_undefined_flag
10541 allow_undefined_flag
=
10542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10543 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10546 test $ac_status = 0; }
10548 archive_cmds_need_lc
=no
10550 archive_cmds_need_lc
=yes
10552 allow_undefined_flag
=$lt_save_allow_undefined_flag
10554 cat conftest.err
1>&5
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10558 $as_echo "$archive_cmds_need_lc" >&6; }
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10566 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10567 library_names_spec
=
10568 libname_spec
='lib$name'
10572 postuninstall_cmds
=
10576 shlibpath_overrides_runpath
=unknown
10578 dynamic_linker
="$host_os ld.so"
10579 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10580 if test "$GCC" = yes; then
10581 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10582 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
10583 # if the path contains ";" then we assume it to be the separator
10584 # otherwise default to the standard path separator (i.e. ":") - it is
10585 # assumed that no part of a normal pathname contains ";" but that should
10586 # okay in the real world where ";" in dirpaths is itself problematic.
10587 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10589 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10592 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10594 need_lib_prefix
=unknown
10595 hardcode_into_libs
=no
10597 # when you set need_version to no, make sure it does not cause -set_version
10598 # flags to be left without arguments
10599 need_version
=unknown
10604 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10605 shlibpath_var
=LIBPATH
10607 # AIX 3 has no versioning support, so we append a major version to the name.
10608 soname_spec
='${libname}${release}${shared_ext}$major'
10615 hardcode_into_libs
=yes
10616 if test "$host_cpu" = ia64
; then
10617 # AIX 5 supports IA64
10618 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10619 shlibpath_var
=LD_LIBRARY_PATH
10621 # With GCC up to 2.95.x, collect2 would create an import file
10622 # for dependence libraries. The import file would start with
10623 # the line `#! .'. This would cause the generated library to
10624 # depend on `.', always an invalid library. This was fixed in
10625 # development snapshots of GCC prior to 3.0.
10627 aix4 | aix4.
[01] | aix4.
[01].
*)
10628 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10630 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
10633 can_build_shared
=no
10637 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10638 # soname into executable. Probably we can add versioning support to
10639 # collect2, so additional links can be useful in future.
10640 if test "$aix_use_runtimelinking" = yes; then
10641 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10642 # instead of lib<name>.a to let people know that these are not
10643 # typical AIX shared libraries.
10644 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10646 # We preserve .a as extension for shared libraries through AIX4.2
10647 # and later when we are not doing run time linking.
10648 library_names_spec
='${libname}${release}.a $libname.a'
10649 soname_spec
='${libname}${release}${shared_ext}$major'
10651 shlibpath_var
=LIBPATH
10656 library_names_spec
='$libname.ixlibrary $libname.a'
10657 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10658 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
10662 library_names_spec
='${libname}${shared_ext}'
10663 dynamic_linker
="$host_os ld.so"
10664 shlibpath_var
=LIBRARY_PATH
10670 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10671 soname_spec
='${libname}${release}${shared_ext}$major'
10672 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10673 shlibpath_var
=LD_LIBRARY_PATH
10674 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10675 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10676 # the default ld.so.conf also contains /usr/contrib/lib and
10677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10678 # libtool to hard-code these into programs
10681 cygwin
* | mingw
* | pw32
*)
10682 version_type
=windows
10687 case $GCC,$host_os in
10688 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
10689 library_names_spec
='$libname.dll.a'
10690 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10691 postinstall_cmds
='base_file=`basename \${file}`~
10692 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10693 dldir=$destdir/`dirname \$dlpath`~
10694 test -d \$dldir || mkdir -p \$dldir~
10695 $install_prog $dir/$dlname \$dldir/$dlname~
10696 chmod a+x \$dldir/$dlname'
10697 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10698 dlpath=$dir/\$dldll~
10700 shlibpath_overrides_runpath
=yes
10704 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10705 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10706 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
10709 # MinGW DLLs use traditional 'lib' prefix
10710 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10711 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10712 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
10713 # It is most probably a Windows format PATH printed by
10714 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10715 # path with ; separators, and with drive letters. We can handle the
10716 # drive letters (cygwin fileutils understands them), so leave them,
10717 # especially as we might pass files found there to a mingw objdump,
10718 # which wouldn't understand a cygwinified path. Ahh.
10719 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10721 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10725 # pw32 DLLs use 'pw' prefix rather than 'lib'
10726 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10732 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10735 dynamic_linker
='Win32 ld.exe'
10736 # FIXME: first we should search . and the directory the executable is in
10740 darwin
* | rhapsody
*)
10741 dynamic_linker
="$host_os dyld"
10742 version_type
=darwin
10745 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10746 soname_spec
='${libname}${release}${major}$shared_ext'
10747 shlibpath_overrides_runpath
=yes
10748 shlibpath_var
=DYLD_LIBRARY_PATH
10749 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10750 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10751 if test "$GCC" = yes; then
10752 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10754 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
10756 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10763 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10764 soname_spec
='${libname}${release}${shared_ext}$major'
10765 shlibpath_var
=LD_LIBRARY_PATH
10776 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10777 soname_spec
='${libname}${release}${shared_ext}$major'
10778 shlibpath_var
=LD_LIBRARY_PATH
10779 shlibpath_overrides_runpath
=no
10780 hardcode_into_libs
=yes
10781 dynamic_linker
='GNU ld.so'
10784 freebsd
* | dragonfly
*)
10785 # DragonFly does not have aout. When/if they implement a new
10786 # versioning mechanism, adjust this.
10787 if test -x /usr
/bin
/objformat
; then
10788 objformat
=`/usr/bin/objformat`
10791 freebsd
[123]*) objformat
=aout
;;
10792 *) objformat
=elf
;;
10795 version_type
=freebsd-
$objformat
10796 case $version_type in
10798 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10803 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10807 shlibpath_var
=LD_LIBRARY_PATH
10810 shlibpath_overrides_runpath
=yes
10812 freebsd3.
[01]* | freebsdelf3.
[01]*)
10813 shlibpath_overrides_runpath
=yes
10814 hardcode_into_libs
=yes
10817 shlibpath_overrides_runpath
=no
10818 hardcode_into_libs
=yes
10827 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10828 soname_spec
='${libname}${release}${shared_ext}$major'
10829 shlibpath_var
=LD_LIBRARY_PATH
10830 hardcode_into_libs
=yes
10833 hpux9
* | hpux10
* | hpux11
*)
10834 # Give a soname corresponding to the major version so that dld.sl refuses to
10835 # link against other versions.
10842 hardcode_into_libs
=yes
10843 dynamic_linker
="$host_os dld.so"
10844 shlibpath_var
=LD_LIBRARY_PATH
10845 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10846 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847 soname_spec
='${libname}${release}${shared_ext}$major'
10848 if test "X$HPUX_IA64_MODE" = X32
; then
10849 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10851 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10853 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10857 hardcode_into_libs
=yes
10858 dynamic_linker
="$host_os dld.sl"
10859 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10860 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10861 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10862 soname_spec
='${libname}${release}${shared_ext}$major'
10863 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10864 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10868 dynamic_linker
="$host_os dld.sl"
10869 shlibpath_var
=SHLIB_PATH
10870 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10871 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872 soname_spec
='${libname}${release}${shared_ext}$major'
10875 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10876 postinstall_cmds
='chmod 555 $lib'
10879 irix5
* | irix6
* | nonstopux
*)
10881 nonstopux
*) version_type
=nonstopux
;;
10883 if test "$lt_cv_prog_gnu_ld" = yes; then
10891 soname_spec
='${libname}${release}${shared_ext}$major'
10892 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10894 irix5
* | nonstopux
*)
10895 libsuff
= shlibsuff
=
10898 case $LD in # libtool.m4 will add one of these switches to LD
10899 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10900 libsuff
= shlibsuff
= libmagic
=32-bit;;
10901 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10902 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10903 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10904 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10905 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10909 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10910 shlibpath_overrides_runpath
=no
10911 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10912 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10913 hardcode_into_libs
=yes
10916 # No shared lib support for Linux oldld, aout, or coff.
10917 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10921 # This must be Linux ELF.
10926 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10927 soname_spec
='${libname}${release}${shared_ext}$major'
10928 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10929 shlibpath_var
=LD_LIBRARY_PATH
10930 shlibpath_overrides_runpath
=no
10931 # This implies no fast_install, which is unacceptable.
10932 # Some rework will be needed to allow for fast_install
10933 # before this can be enabled.
10934 hardcode_into_libs
=yes
10936 # Append ld.so.conf contents to the search path
10937 if test -f /etc
/ld.so.conf
; then
10938 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10939 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10942 # We used to test for /lib/ld.so.1 and disable shared libraries on
10943 # powerpc, because MkLinux only supported shared libraries with the
10944 # GNU dynamic linker. Since this was broken with cross compilers,
10945 # most powerpc-linux boxes support dynamic linking these days and
10946 # people can always --disable-shared, the test was removed, and we
10947 # assume the GNU/Linux dynamic linker is in use.
10948 dynamic_linker
='GNU/Linux ld.so'
10955 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10956 soname_spec
='${libname}${release}${shared_ext}$major'
10957 shlibpath_var
=LD_LIBRARY_PATH
10958 shlibpath_overrides_runpath
=no
10959 hardcode_into_libs
=yes
10960 dynamic_linker
='GNU ld.so'
10967 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
10968 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10969 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10970 dynamic_linker
='NetBSD (a.out) ld.so'
10972 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10973 soname_spec
='${libname}${release}${shared_ext}$major'
10974 dynamic_linker
='NetBSD ld.elf_so'
10976 shlibpath_var
=LD_LIBRARY_PATH
10977 shlibpath_overrides_runpath
=yes
10978 hardcode_into_libs
=yes
10983 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984 shlibpath_var
=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath
=yes
10992 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10993 soname_spec
='${libname}${release}${shared_ext}$major'
10994 shlibpath_var
=LD_LIBRARY_PATH
10995 shlibpath_overrides_runpath
=yes
11001 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11003 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11004 *) need_version
=no
;;
11006 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11007 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11008 shlibpath_var
=LD_LIBRARY_PATH
11009 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11011 openbsd2.
[89] | openbsd2.
[89].
*)
11012 shlibpath_overrides_runpath
=no
11015 shlibpath_overrides_runpath
=yes
11019 shlibpath_overrides_runpath
=yes
11024 libname_spec
='$name'
11027 library_names_spec
='$libname${shared_ext} $libname.a'
11028 dynamic_linker
='OS/2 ld.exe'
11029 shlibpath_var
=LIBPATH
11032 osf3
* | osf4
* | osf5
*)
11036 soname_spec
='${libname}${release}${shared_ext}$major'
11037 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11038 shlibpath_var
=LD_LIBRARY_PATH
11039 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11040 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11045 soname_spec
='${libname}${release}${shared_ext}$major'
11046 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047 shlibpath_var
=LD_LIBRARY_PATH
11054 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11055 soname_spec
='${libname}${release}${shared_ext}$major'
11056 shlibpath_var
=LD_LIBRARY_PATH
11057 shlibpath_overrides_runpath
=yes
11058 hardcode_into_libs
=yes
11059 # ldd complains unless libraries are executable
11060 postinstall_cmds
='chmod +x $lib'
11065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11066 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11067 shlibpath_var
=LD_LIBRARY_PATH
11068 shlibpath_overrides_runpath
=yes
11069 if test "$with_gnu_ld" = yes; then
11075 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
11077 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078 soname_spec
='${libname}${release}${shared_ext}$major'
11079 shlibpath_var
=LD_LIBRARY_PATH
11080 case $host_vendor in
11082 shlibpath_overrides_runpath
=no
11084 export_dynamic_flag_spec
='${wl}-Blargedynsym'
11085 runpath_var
=LD_RUN_PATH
11093 shlibpath_overrides_runpath
=no
11094 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11100 if test -d /usr
/nec
;then
11102 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11103 soname_spec
='$libname${shared_ext}.$major'
11104 shlibpath_var
=LD_LIBRARY_PATH
11110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 soname_spec
='${libname}${release}${shared_ext}$major'
11112 shlibpath_var
=LD_LIBRARY_PATH
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11120 $as_echo "$dynamic_linker" >&6; }
11121 test "$dynamic_linker" = no
&& can_build_shared
=no
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11124 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11126 if test -n "$hardcode_libdir_flag_spec" || \
11127 test -n "$runpath_var" || \
11128 test "X$hardcode_automatic" = "Xyes" ; then
11130 # We can hardcode non-existant directories.
11131 if test "$hardcode_direct" != no
&&
11132 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11133 # have to relink, otherwise we might link with an installed library
11134 # when we should be linking with a yet-to-be-installed one
11135 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11136 test "$hardcode_minus_L" != no
; then
11137 # Linking always hardcodes the temporary library directory.
11138 hardcode_action
=relink
11140 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11141 hardcode_action
=immediate
11144 # We cannot hardcode anything, or else we can only hardcode existing
11146 hardcode_action
=unsupported
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11149 $as_echo "$hardcode_action" >&6; }
11151 if test "$hardcode_action" = relink
; then
11152 # Fast installation is not supported
11153 enable_fast_install
=no
11154 elif test "$shlibpath_overrides_runpath" = yes ||
11155 test "$enable_shared" = no
; then
11156 # Fast installation is not necessary
11157 enable_fast_install
=needless
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11163 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11164 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
11165 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11166 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11168 $as_echo "yes" >&6; }
11170 # FIXME - insert some real tests, host_os isn't really good enough
11173 if test -n "$STRIP" ; then
11174 striplib
="$STRIP -x"
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11176 $as_echo "yes" >&6; }
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184 $as_echo "no" >&6; }
11189 if test "x$enable_dlopen" != xyes
; then
11190 enable_dlopen
=unknown
11191 enable_dlopen_self
=unknown
11192 enable_dlopen_self_static
=unknown
11199 lt_cv_dlopen
="load_add_on"
11201 lt_cv_dlopen_self
=yes
11205 lt_cv_dlopen
="LoadLibrary"
11210 lt_cv_dlopen
="dlopen"
11215 # if libdl is installed we need to link against it
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11217 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11218 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11219 $as_echo_n "(cached) " >&6
11221 ac_check_lib_save_LIBS
=$LIBS
11223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11226 /* Override any GCC internal prototype to avoid an error.
11227 Use char because int might match the return type of a GCC
11228 builtin and then its argument prototype would still apply. */
11241 if ac_fn_c_try_link
"$LINENO"; then :
11242 ac_cv_lib_dl_dlopen
=yes
11244 ac_cv_lib_dl_dlopen
=no
11246 rm -f core conftest.err conftest.
$ac_objext \
11247 conftest
$ac_exeext conftest.
$ac_ext
11248 LIBS
=$ac_check_lib_save_LIBS
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11251 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11252 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
11253 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11256 lt_cv_dlopen
="dyld"
11258 lt_cv_dlopen_self
=yes
11265 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11266 if test "x$ac_cv_func_shl_load" = x
""yes; then :
11267 lt_cv_dlopen
="shl_load"
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11270 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11271 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11272 $as_echo_n "(cached) " >&6
11274 ac_check_lib_save_LIBS
=$LIBS
11276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11277 /* end confdefs.h. */
11279 /* Override any GCC internal prototype to avoid an error.
11280 Use char because int might match the return type of a GCC
11281 builtin and then its argument prototype would still apply. */
11289 return shl_load ();
11294 if ac_fn_c_try_link
"$LINENO"; then :
11295 ac_cv_lib_dld_shl_load
=yes
11297 ac_cv_lib_dld_shl_load
=no
11299 rm -f core conftest.err conftest.
$ac_objext \
11300 conftest
$ac_exeext conftest.
$ac_ext
11301 LIBS
=$ac_check_lib_save_LIBS
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11304 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11305 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
11306 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
11308 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11309 if test "x$ac_cv_func_dlopen" = x
""yes; then :
11310 lt_cv_dlopen
="dlopen"
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11313 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11314 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11315 $as_echo_n "(cached) " >&6
11317 ac_check_lib_save_LIBS
=$LIBS
11319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11322 /* Override any GCC internal prototype to avoid an error.
11323 Use char because int might match the return type of a GCC
11324 builtin and then its argument prototype would still apply. */
11337 if ac_fn_c_try_link
"$LINENO"; then :
11338 ac_cv_lib_dl_dlopen
=yes
11340 ac_cv_lib_dl_dlopen
=no
11342 rm -f core conftest.err conftest.
$ac_objext \
11343 conftest
$ac_exeext conftest.
$ac_ext
11344 LIBS
=$ac_check_lib_save_LIBS
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11347 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11348 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
11349 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11352 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11353 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11354 $as_echo_n "(cached) " >&6
11356 ac_check_lib_save_LIBS
=$LIBS
11357 LIBS
="-lsvld $LIBS"
11358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11359 /* end confdefs.h. */
11361 /* Override any GCC internal prototype to avoid an error.
11362 Use char because int might match the return type of a GCC
11363 builtin and then its argument prototype would still apply. */
11376 if ac_fn_c_try_link
"$LINENO"; then :
11377 ac_cv_lib_svld_dlopen
=yes
11379 ac_cv_lib_svld_dlopen
=no
11381 rm -f core conftest.err conftest.
$ac_objext \
11382 conftest
$ac_exeext conftest.
$ac_ext
11383 LIBS
=$ac_check_lib_save_LIBS
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11386 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11387 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
11388 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11391 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11392 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11393 $as_echo_n "(cached) " >&6
11395 ac_check_lib_save_LIBS
=$LIBS
11397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h. */
11400 /* Override any GCC internal prototype to avoid an error.
11401 Use char because int might match the return type of a GCC
11402 builtin and then its argument prototype would still apply. */
11410 return dld_link ();
11415 if ac_fn_c_try_link
"$LINENO"; then :
11416 ac_cv_lib_dld_dld_link
=yes
11418 ac_cv_lib_dld_dld_link
=no
11420 rm -f core conftest.err conftest.
$ac_objext \
11421 conftest
$ac_exeext conftest.
$ac_ext
11422 LIBS
=$ac_check_lib_save_LIBS
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11425 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11426 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
11427 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
11448 if test "x$lt_cv_dlopen" != xno
; then
11454 case $lt_cv_dlopen in
11456 save_CPPFLAGS
="$CPPFLAGS"
11457 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11459 save_LDFLAGS
="$LDFLAGS"
11460 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11463 LIBS
="$lt_cv_dlopen_libs $LIBS"
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11466 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11467 if test "${lt_cv_dlopen_self+set}" = set; then :
11468 $as_echo_n "(cached) " >&6
11470 if test "$cross_compiling" = yes; then :
11471 lt_cv_dlopen_self
=cross
11473 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11474 lt_status
=$lt_dlunknown
11475 cat > conftest.
$ac_ext <<EOF
11476 #line 11476 "configure"
11477 #include "confdefs.h"
11486 # define LT_DLGLOBAL RTLD_GLOBAL
11489 # define LT_DLGLOBAL DL_GLOBAL
11491 # define LT_DLGLOBAL 0
11495 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11496 find out it does not work in some platform. */
11497 #ifndef LT_DLLAZY_OR_NOW
11499 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11502 # define LT_DLLAZY_OR_NOW DL_LAZY
11505 # define LT_DLLAZY_OR_NOW RTLD_NOW
11508 # define LT_DLLAZY_OR_NOW DL_NOW
11510 # define LT_DLLAZY_OR_NOW 0
11518 extern "C" void exit (int);
11521 void fnord() { int i=42;}
11524 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11525 int status = $lt_dlunknown;
11529 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11530 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11531 /* dlclose (self); */
11537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11538 (eval $ac_link) 2>&5
11540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11541 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11542 (.
/conftest
; exit; ) >&5 2>/dev
/null
11544 case x
$lt_status in
11545 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11546 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11547 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
11550 # compilation failed
11551 lt_cv_dlopen_self
=no
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11559 $as_echo "$lt_cv_dlopen_self" >&6; }
11561 if test "x$lt_cv_dlopen_self" = xyes
; then
11562 LDFLAGS
="$LDFLAGS $link_static_flag"
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11564 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11565 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11566 $as_echo_n "(cached) " >&6
11568 if test "$cross_compiling" = yes; then :
11569 lt_cv_dlopen_self_static
=cross
11571 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11572 lt_status
=$lt_dlunknown
11573 cat > conftest.
$ac_ext <<EOF
11574 #line 11574 "configure"
11575 #include "confdefs.h"
11584 # define LT_DLGLOBAL RTLD_GLOBAL
11587 # define LT_DLGLOBAL DL_GLOBAL
11589 # define LT_DLGLOBAL 0
11593 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11594 find out it does not work in some platform. */
11595 #ifndef LT_DLLAZY_OR_NOW
11597 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11600 # define LT_DLLAZY_OR_NOW DL_LAZY
11603 # define LT_DLLAZY_OR_NOW RTLD_NOW
11606 # define LT_DLLAZY_OR_NOW DL_NOW
11608 # define LT_DLLAZY_OR_NOW 0
11616 extern "C" void exit (int);
11619 void fnord() { int i=42;}
11622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11623 int status = $lt_dlunknown;
11627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11628 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11629 /* dlclose (self); */
11635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11636 (eval $ac_link) 2>&5
11638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11639 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11640 (.
/conftest
; exit; ) >&5 2>/dev
/null
11642 case x
$lt_status in
11643 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11644 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11645 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
11648 # compilation failed
11649 lt_cv_dlopen_self_static
=no
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11657 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11660 CPPFLAGS
="$save_CPPFLAGS"
11661 LDFLAGS
="$save_LDFLAGS"
11666 case $lt_cv_dlopen_self in
11667 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11668 *) enable_dlopen_self
=unknown
;;
11671 case $lt_cv_dlopen_self_static in
11672 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11673 *) enable_dlopen_self_static
=unknown
;;
11678 # Report which librarie types wil actually be built
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11680 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11682 $as_echo "$can_build_shared" >&6; }
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11685 $as_echo_n "checking whether to build shared libraries... " >&6; }
11686 test "$can_build_shared" = "no" && enable_shared
=no
11688 # On AIX, shared libraries and static libraries use the same namespace, and
11689 # are all built from PIC.
11692 test "$enable_shared" = yes && enable_static
=no
11693 if test -n "$RANLIB"; then
11694 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11695 postinstall_cmds
='$RANLIB $lib'
11700 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11701 test "$enable_shared" = yes && enable_static
=no
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11706 $as_echo "$enable_shared" >&6; }
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11709 $as_echo_n "checking whether to build static libraries... " >&6; }
11710 # Make sure either enable_shared or enable_static is yes.
11711 test "$enable_shared" = yes || enable_static
=yes
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11713 $as_echo "$enable_static" >&6; }
11715 # The else clause should only fire when bootstrapping the
11716 # libtool distribution, otherwise you forgot to ship ltmain.sh
11717 # with your package, and you will get complaints that there are
11718 # no rules to generate ltmain.sh.
11719 if test -f "$ltmain"; then
11720 # See if we are running on zsh, and set the options which allow our commands through
11721 # without removal of \ escapes.
11722 if test -n "${ZSH_VERSION+set}" ; then
11723 setopt NO_GLOB_SUBST
11725 # Now quote all the things that may contain metacharacters while being
11726 # careful not to overquote the AC_SUBSTed values. We take copies of the
11727 # variables and quote the copies for generation of the libtool script.
11728 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11730 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11731 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11732 deplibs_check_method reload_flag reload_cmds need_locks \
11733 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11734 lt_cv_sys_global_symbol_to_c_name_address \
11735 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11736 old_postinstall_cmds old_postuninstall_cmds \
11740 lt_prog_compiler_wl \
11741 lt_prog_compiler_pic \
11742 lt_prog_compiler_static \
11743 lt_prog_compiler_no_builtin_flag \
11744 export_dynamic_flag_spec \
11745 thread_safe_flag_spec \
11746 whole_archive_flag_spec \
11747 enable_shared_with_static_runtimes \
11749 old_archive_from_new_cmds \
11754 compiler_lib_search_path \
11756 archive_expsym_cmds \
11758 postuninstall_cmds \
11759 old_archive_from_expsyms_cmds \
11760 allow_undefined_flag \
11761 no_undefined_flag \
11762 export_symbols_cmds \
11763 hardcode_libdir_flag_spec \
11764 hardcode_libdir_flag_spec_ld \
11765 hardcode_libdir_separator \
11766 hardcode_automatic \
11768 module_expsym_cmds \
11769 lt_cv_prog_compiler_c_o \
11771 include_expsyms
; do
11774 old_archive_cmds | \
11775 old_archive_from_new_cmds | \
11777 archive_expsym_cmds | \
11779 module_expsym_cmds | \
11780 old_archive_from_expsyms_cmds | \
11781 export_symbols_cmds | \
11782 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11783 postinstall_cmds | postuninstall_cmds | \
11784 old_postinstall_cmds | old_postuninstall_cmds | \
11785 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
11786 # Double-quote double-evaled strings.
11787 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11790 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11796 *'\$0 --fallback-echo"')
11797 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11801 cfgfile
="${ofile}T"
11802 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
11805 $as_echo "$as_me: creating $ofile" >&6;}
11807 cat <<__EOF__ >> "$cfgfile"
11810 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11811 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11812 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11814 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11815 # Free Software Foundation, Inc.
11817 # This file is part of GNU Libtool:
11818 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11820 # This program is free software; you can redistribute it and/or modify
11821 # it under the terms of the GNU General Public License as published by
11822 # the Free Software Foundation; either version 2 of the License, or
11823 # (at your option) any later version.
11825 # This program is distributed in the hope that it will be useful, but
11826 # WITHOUT ANY WARRANTY; without even the implied warranty of
11827 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11828 # General Public License for more details.
11830 # You should have received a copy of the GNU General Public License
11831 # along with this program; if not, write to the Free Software
11832 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11834 # As a special exception to the GNU General Public License, if you
11835 # distribute this file as part of a program that contains a
11836 # configuration script generated by Autoconf, you may include it under
11837 # the same distribution terms that you use for the rest of that program.
11839 # A sed program that does not truncate output.
11842 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11843 Xsed="$SED -e 1s/^X//"
11845 # The HP-UX ksh and POSIX shell print the target directory to stdout
11846 # if CDPATH is set.
11847 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11849 # The names of the tagged configurations supported by this script.
11852 # ### BEGIN LIBTOOL CONFIG
11854 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11856 # Shell to use when invoking shell scripts.
11859 # Whether or not to build shared libraries.
11860 build_libtool_libs=$enable_shared
11862 # Whether or not to build static libraries.
11863 build_old_libs=$enable_static
11865 # Whether or not to add -lc for building shared libraries.
11866 build_libtool_need_lc=$archive_cmds_need_lc
11868 # Whether or not to disallow shared libs when runtime libs are static
11869 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11871 # Whether or not to optimize for fast installation.
11872 fast_install=$enable_fast_install
11875 host_alias=$host_alias
11879 # The build system.
11880 build_alias=$build_alias
11884 # An echo program that does not interpret backslashes.
11889 AR_FLAGS=$lt_AR_FLAGS
11894 # A language-specific compiler.
11897 # Is the compiler the GNU C compiler?
11903 # The linker used to build libraries.
11906 # Whether we need hard or soft links.
11909 # A BSD-compatible nm program.
11912 # A symbol stripping program
11915 # Used to examine libraries when file_magic_cmd begins "file"
11916 MAGIC_CMD=$MAGIC_CMD
11918 # Used on cygwin: DLL creation program.
11921 # Used on cygwin: object dumper.
11924 # Used on cygwin: assembler.
11927 # The name of the directory that contains temporary libtool files.
11930 # How to create reloadable object files.
11931 reload_flag=$lt_reload_flag
11932 reload_cmds=$lt_reload_cmds
11934 # How to pass a linker flag through the compiler.
11935 wl=$lt_lt_prog_compiler_wl
11937 # Object file suffix (normally "o").
11938 objext="$ac_objext"
11940 # Old archive suffix (normally "a").
11943 # Shared library suffix (normally ".so").
11944 shrext_cmds='$shrext_cmds'
11946 # Executable file suffix (normally "").
11949 # Additional compiler flags for building library objects.
11950 pic_flag=$lt_lt_prog_compiler_pic
11953 # What is the maximum length of a command?
11954 max_cmd_len=$lt_cv_sys_max_cmd_len
11956 # Does compiler simultaneously support -c and -o options?
11957 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11959 # Must we lock files when doing compilation?
11960 need_locks=$lt_need_locks
11962 # Do we need the lib prefix for modules?
11963 need_lib_prefix=$need_lib_prefix
11965 # Do we need a version for libraries?
11966 need_version=$need_version
11968 # Whether dlopen is supported.
11969 dlopen_support=$enable_dlopen
11971 # Whether dlopen of programs is supported.
11972 dlopen_self=$enable_dlopen_self
11974 # Whether dlopen of statically linked programs is supported.
11975 dlopen_self_static=$enable_dlopen_self_static
11977 # Compiler flag to prevent dynamic linking.
11978 link_static_flag=$lt_lt_prog_compiler_static
11980 # Compiler flag to turn off builtin functions.
11981 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11983 # Compiler flag to allow reflexive dlopens.
11984 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11986 # Compiler flag to generate shared objects directly from archives.
11987 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11989 # Compiler flag to generate thread-safe objects.
11990 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11992 # Library versioning type.
11993 version_type=$version_type
11995 # Format of library name prefix.
11996 libname_spec=$lt_libname_spec
11998 # List of archive names. First name is the real one, the rest are links.
11999 # The last name is the one that the linker finds with -lNAME.
12000 library_names_spec=$lt_library_names_spec
12002 # The coded name of the library, if different from the real name.
12003 soname_spec=$lt_soname_spec
12005 # Commands used to build and install an old-style archive.
12007 old_archive_cmds=$lt_old_archive_cmds
12008 old_postinstall_cmds=$lt_old_postinstall_cmds
12009 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12011 # Create an old-style archive from a shared archive.
12012 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12014 # Create a temporary old-style archive to link instead of a shared archive.
12015 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12017 # Commands used to build and install a shared archive.
12018 archive_cmds=$lt_archive_cmds
12019 archive_expsym_cmds=$lt_archive_expsym_cmds
12020 postinstall_cmds=$lt_postinstall_cmds
12021 postuninstall_cmds=$lt_postuninstall_cmds
12023 # Commands used to build a loadable module (assumed same as above if empty)
12024 module_cmds=$lt_module_cmds
12025 module_expsym_cmds=$lt_module_expsym_cmds
12027 # Commands to strip libraries.
12028 old_striplib=$lt_old_striplib
12029 striplib=$lt_striplib
12031 # Dependencies to place before the objects being linked to create a
12033 predep_objects=$lt_predep_objects
12035 # Dependencies to place after the objects being linked to create a
12037 postdep_objects=$lt_postdep_objects
12039 # Dependencies to place before the objects being linked to create a
12041 predeps=$lt_predeps
12043 # Dependencies to place after the objects being linked to create a
12045 postdeps=$lt_postdeps
12047 # The library search path used internally by the compiler when linking
12048 # a shared library.
12049 compiler_lib_search_path=$lt_compiler_lib_search_path
12051 # Method to check whether dependent libraries are shared objects.
12052 deplibs_check_method=$lt_deplibs_check_method
12054 # Command to use when deplibs_check_method == file_magic.
12055 file_magic_cmd=$lt_file_magic_cmd
12057 # Flag that allows shared libraries with undefined symbols to be built.
12058 allow_undefined_flag=$lt_allow_undefined_flag
12060 # Flag that forces no undefined symbols.
12061 no_undefined_flag=$lt_no_undefined_flag
12063 # Commands used to finish a libtool library installation in a directory.
12064 finish_cmds=$lt_finish_cmds
12066 # Same as above, but a single script fragment to be evaled but not shown.
12067 finish_eval=$lt_finish_eval
12069 # Take the output of nm and produce a listing of raw symbols and C names.
12070 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12072 # Transform the output of nm in a proper C declaration
12073 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12075 # Transform the output of nm in a C name address pair
12076 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12078 # This is the shared library runtime path variable.
12079 runpath_var=$runpath_var
12081 # This is the shared library path variable.
12082 shlibpath_var=$shlibpath_var
12084 # Is shlibpath searched before the hard-coded library search path?
12085 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12087 # How to hardcode a shared library path into an executable.
12088 hardcode_action=$hardcode_action
12090 # Whether we should hardcode library paths into libraries.
12091 hardcode_into_libs=$hardcode_into_libs
12093 # Flag to hardcode \$libdir into a binary during linking.
12094 # This must work even if \$libdir does not exist.
12095 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12097 # If ld is used when linking, flag to hardcode \$libdir into
12098 # a binary during linking. This must work even if \$libdir does
12100 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12102 # Whether we need a single -rpath flag with a separated argument.
12103 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12105 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12106 # resulting binary.
12107 hardcode_direct=$hardcode_direct
12109 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12110 # resulting binary.
12111 hardcode_minus_L=$hardcode_minus_L
12113 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12114 # the resulting binary.
12115 hardcode_shlibpath_var=$hardcode_shlibpath_var
12117 # Set to yes if building a shared library automatically hardcodes DIR into the library
12118 # and all subsequent libraries and executables linked against it.
12119 hardcode_automatic=$hardcode_automatic
12121 # Variables whose values should be saved in libtool wrapper scripts and
12122 # restored at relink time.
12123 variables_saved_for_relink="$variables_saved_for_relink"
12125 # Whether libtool must link a program against all its dependency libraries.
12126 link_all_deplibs=$link_all_deplibs
12128 # Compile-time system search path for libraries
12129 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12131 # Run-time system search path for libraries
12132 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12134 # Fix the shell variable \$srcfile for the compiler.
12135 fix_srcfile_path="$fix_srcfile_path"
12137 # Set to yes if exported symbols are required.
12138 always_export_symbols=$always_export_symbols
12140 # The commands to list exported symbols.
12141 export_symbols_cmds=$lt_export_symbols_cmds
12143 # The commands to extract the exported symbol list from a shared archive.
12144 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12146 # Symbols that should not be listed in the preloaded symbols.
12147 exclude_expsyms=$lt_exclude_expsyms
12149 # Symbols that must always be exported.
12150 include_expsyms=$lt_include_expsyms
12152 # ### END LIBTOOL CONFIG
12159 cat <<\EOF
>> "$cfgfile"
12161 # AIX sometimes has problems with the GCC collect2 program. For some
12162 # reason, if we set the COLLECT_NAMES environment variable, the problems
12163 # vanish in a puff of smoke.
12164 if test "X${COLLECT_NAMES+set}" != Xset
; then
12166 export COLLECT_NAMES
12172 # We use sed instead of cat because bash on DJGPP gets confused if
12173 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12174 # text mode, it properly converts lines to CR/LF. This bash problem
12175 # is reportedly fixed, but why not run on old versions too?
12176 sed '$q' "$ltmain" >> "$cfgfile" ||
(rm -f "$cfgfile"; exit 1)
12178 mv -f "$cfgfile" "$ofile" || \
12179 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12183 # If there is no Makefile yet, we rely on a make rule to execute
12184 # `config.status --recheck' to rerun these tests and create the
12185 # libtool script then.
12186 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12187 if test -f "$ltmain_in"; then
12188 test -f Makefile
&& make "$ltmain"
12194 ac_cpp
='$CPP $CPPFLAGS'
12195 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12196 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12197 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12202 # Check whether --with-tags was given.
12203 if test "${with_tags+set}" = set; then :
12204 withval
=$with_tags; tagnames
="$withval"
12208 if test -f "$ltmain" && test -n "$tagnames"; then
12209 if test ! -f "${ofile}"; then
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
12211 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12214 if test -z "$LTCC"; then
12215 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12216 if test -z "$LTCC"; then
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12218 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12221 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12225 # Extract list of available tagged configurations in $ofile.
12226 # Note that this assumes the entire list is on one line.
12227 available_tags
=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12229 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
12230 for tagname
in $tagnames; do
12232 # Check whether tagname contains only valid characters
12233 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12235 *) as_fn_error
"invalid tag name: $tagname" "$LINENO" 5
12239 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev
/null
12241 as_fn_error
"tag name \"$tagname\" already exists" "$LINENO" 5
12244 # Update the list of available tags.
12245 if test -n "$tagname"; then
12246 echo appending configuration tag
\"$tagname\" to
$ofile
12250 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12251 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12252 (test "X$CXX" != "Xg++"))) ; then
12260 if test -n "$F77" && test "X$F77" != "Xno"; then
12268 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
12271 # Source file extension for Java test sources.
12274 # Object file extension for compiled Java test sources.
12278 # Code to be used in simple compile tests
12279 lt_simple_compile_test_code
="class foo {}\n"
12281 # Code to be used in simple link tests
12282 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
12284 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12286 # If no C compiler was specified, use CC.
12289 # Allow CC to be a program name with arguments.
12293 # save warnings/boilerplate of simple test code
12294 ac_outfile
=conftest.
$ac_objext
12295 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
12296 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
12297 _lt_compiler_boilerplate
=`cat conftest.err`
12300 ac_outfile
=conftest.
$ac_objext
12301 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
12302 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
12303 _lt_linker_boilerplate
=`cat conftest.err`
12307 # Allow CC to be a program name with arguments.
12312 for cc_temp
in $compiler""; do
12314 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12315 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12320 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12323 # GCJ did not exist at the time GCC didn't implicitly link libc in.
12324 archive_cmds_need_lc_GCJ
=no
12326 old_archive_cmds_GCJ
=$old_archive_cmds
12329 lt_prog_compiler_no_builtin_flag_GCJ
=
12331 if test "$GCC" = yes; then
12332 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12336 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12337 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12338 $as_echo_n "(cached) " >&6
12340 lt_cv_prog_compiler_rtti_exceptions
=no
12341 ac_outfile
=conftest.
$ac_objext
12342 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12343 lt_compiler_flag
="-fno-rtti -fno-exceptions"
12344 # Insert the option either (1) after the last *FLAGS variable, or
12345 # (2) before a word containing "conftest.", or (3) at the end.
12346 # Note that $ac_compile itself does not contain backslashes and begins
12347 # with a dollar sign (not a hyphen), so the echo should work correctly.
12348 # The option is referenced via a variable to avoid confusing sed.
12349 lt_compile
=`echo "$ac_compile" | $SED \
12350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12352 -e 's:$: $lt_compiler_flag:'`
12353 (eval echo "\"\$as_me:12353: $lt_compile\"" >&5)
12354 (eval "$lt_compile" 2>conftest.err
)
12356 cat conftest.err
>&5
12357 echo "$as_me:12357: \$? = $ac_status" >&5
12358 if (exit $ac_status) && test -s "$ac_outfile"; then
12359 # The compiler can only warn and ignore the option if not recognized
12360 # So say no if there are warnings other than the usual output.
12361 $echo "X$_lt_compiler_boilerplate" |
$Xsed >conftest.exp
12362 $SED '/^$/d' conftest.err
>conftest.er2
12363 if test ! -s conftest.err ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12364 lt_cv_prog_compiler_rtti_exceptions
=yes
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12371 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12373 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
12374 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
12381 lt_prog_compiler_wl_GCJ
=
12382 lt_prog_compiler_pic_GCJ
=
12383 lt_prog_compiler_static_GCJ
=
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12386 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12388 if test "$GCC" = yes; then
12389 lt_prog_compiler_wl_GCJ
='-Wl,'
12390 lt_prog_compiler_static_GCJ
='-static'
12394 # All AIX code is PIC.
12395 if test "$host_cpu" = ia64
; then
12396 # AIX 5 now supports IA64 processor
12397 lt_prog_compiler_static_GCJ
='-Bstatic'
12402 # FIXME: we need at least 68020 code to build shared libraries, but
12403 # adding the `-m68020' flag to GCC prevents building anything better,
12405 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
12408 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12409 # PIC is the default for these OSes.
12412 mingw
* | pw32
* | os2
*)
12413 # This hack is so that the source file can tell whether it is being
12414 # built for inclusion in a dll (and should export symbols for example).
12415 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
12418 darwin
* | rhapsody
*)
12419 # PIC is the default on this platform
12420 # Common symbols not allowed in MH_DYLIB files
12421 lt_prog_compiler_pic_GCJ
='-fno-common'
12425 # Just because we use GCC doesn't mean we suddenly get shared libraries
12426 # on systems that don't support them.
12427 lt_prog_compiler_can_build_shared_GCJ
=no
12432 if test -d /usr
/nec
; then
12433 lt_prog_compiler_pic_GCJ
=-Kconform_pic
12438 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12439 # not for PA HP-UX.
12445 lt_prog_compiler_pic_GCJ
='-fPIC'
12451 lt_prog_compiler_pic_GCJ
='-fPIC'
12455 # PORTME Check for flag to pass linker flags through the system compiler.
12458 lt_prog_compiler_wl_GCJ
='-Wl,'
12459 if test "$host_cpu" = ia64
; then
12460 # AIX 5 now supports IA64 processor
12461 lt_prog_compiler_static_GCJ
='-Bstatic'
12463 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
12467 # PIC is the default on this platform
12468 # Common symbols not allowed in MH_DYLIB files
12469 case $cc_basename in
12471 lt_prog_compiler_pic_GCJ
='-qnocommon'
12472 lt_prog_compiler_wl_GCJ
='-Wl,'
12477 mingw
* | pw32
* | os2
*)
12478 # This hack is so that the source file can tell whether it is being
12479 # built for inclusion in a dll (and should export symbols for example).
12480 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
12483 hpux9
* | hpux10
* | hpux11
*)
12484 lt_prog_compiler_wl_GCJ
='-Wl,'
12485 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12486 # not for PA HP-UX.
12492 lt_prog_compiler_pic_GCJ
='+Z'
12495 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12496 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
12499 irix5
* | irix6
* | nonstopux
*)
12500 lt_prog_compiler_wl_GCJ
='-Wl,'
12501 # PIC (with -KPIC) is the default.
12502 lt_prog_compiler_static_GCJ
='-non_shared'
12506 lt_prog_compiler_pic_GCJ
='-KPIC'
12507 lt_prog_compiler_static_GCJ
='-Bstatic'
12511 case $cc_basename in
12513 lt_prog_compiler_wl_GCJ
='-Wl,'
12514 lt_prog_compiler_pic_GCJ
='-KPIC'
12515 lt_prog_compiler_static_GCJ
='-static'
12517 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
12518 # Portland Group compilers (*not* the Pentium gcc compiler,
12519 # which looks to be a dead project)
12520 lt_prog_compiler_wl_GCJ
='-Wl,'
12521 lt_prog_compiler_pic_GCJ
='-fpic'
12522 lt_prog_compiler_static_GCJ
='-Bstatic'
12525 lt_prog_compiler_wl_GCJ
='-Wl,'
12526 # All Alpha code is PIC.
12527 lt_prog_compiler_static_GCJ
='-non_shared'
12532 osf3
* | osf4
* | osf5
*)
12533 lt_prog_compiler_wl_GCJ
='-Wl,'
12534 # All OSF/1 code is PIC.
12535 lt_prog_compiler_static_GCJ
='-non_shared'
12539 lt_prog_compiler_pic_GCJ
='-Kpic'
12540 lt_prog_compiler_static_GCJ
='-dn'
12544 lt_prog_compiler_pic_GCJ
='-KPIC'
12545 lt_prog_compiler_static_GCJ
='-Bstatic'
12546 case $cc_basename in
12547 f77
* | f90
* | f95
*)
12548 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
12550 lt_prog_compiler_wl_GCJ
='-Wl,';;
12555 lt_prog_compiler_wl_GCJ
='-Qoption ld '
12556 lt_prog_compiler_pic_GCJ
='-PIC'
12557 lt_prog_compiler_static_GCJ
='-Bstatic'
12560 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
12561 lt_prog_compiler_wl_GCJ
='-Wl,'
12562 lt_prog_compiler_pic_GCJ
='-KPIC'
12563 lt_prog_compiler_static_GCJ
='-Bstatic'
12567 if test -d /usr
/nec
;then
12568 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
12569 lt_prog_compiler_static_GCJ
='-Bstatic'
12574 lt_prog_compiler_wl_GCJ
='-Wl,'
12575 lt_prog_compiler_can_build_shared_GCJ
=no
12579 lt_prog_compiler_pic_GCJ
='-pic'
12580 lt_prog_compiler_static_GCJ
='-Bstatic'
12584 lt_prog_compiler_can_build_shared_GCJ
=no
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
12590 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
12593 # Check to make sure the PIC flag actually works.
12595 if test -n "$lt_prog_compiler_pic_GCJ"; then
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
12598 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
12599 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then :
12600 $as_echo_n "(cached) " >&6
12602 lt_prog_compiler_pic_works_GCJ
=no
12603 ac_outfile
=conftest.
$ac_objext
12604 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12605 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
12606 # Insert the option either (1) after the last *FLAGS variable, or
12607 # (2) before a word containing "conftest.", or (3) at the end.
12608 # Note that $ac_compile itself does not contain backslashes and begins
12609 # with a dollar sign (not a hyphen), so the echo should work correctly.
12610 # The option is referenced via a variable to avoid confusing sed.
12611 lt_compile
=`echo "$ac_compile" | $SED \
12612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12614 -e 's:$: $lt_compiler_flag:'`
12615 (eval echo "\"\$as_me:12615: $lt_compile\"" >&5)
12616 (eval "$lt_compile" 2>conftest.err
)
12618 cat conftest.err
>&5
12619 echo "$as_me:12619: \$? = $ac_status" >&5
12620 if (exit $ac_status) && test -s "$ac_outfile"; then
12621 # The compiler can only warn and ignore the option if not recognized
12622 # So say no if there are warnings other than the usual output.
12623 $echo "X$_lt_compiler_boilerplate" |
$Xsed >conftest.exp
12624 $SED '/^$/d' conftest.err
>conftest.er2
12625 if test ! -s conftest.err ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12626 lt_prog_compiler_pic_works_GCJ
=yes
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
12633 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
12635 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
12636 case $lt_prog_compiler_pic_GCJ in
12638 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
12641 lt_prog_compiler_pic_GCJ
=
12642 lt_prog_compiler_can_build_shared_GCJ
=no
12647 # For platforms which do not support PIC, -DPIC is meaningless:
12649 lt_prog_compiler_pic_GCJ
=
12652 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12657 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12658 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
12659 $as_echo_n "(cached) " >&6
12661 lt_cv_prog_compiler_c_o_GCJ
=no
12662 $rm -r conftest
2>/dev
/null
12666 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12668 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12669 # Insert the option either (1) after the last *FLAGS variable, or
12670 # (2) before a word containing "conftest.", or (3) at the end.
12671 # Note that $ac_compile itself does not contain backslashes and begins
12672 # with a dollar sign (not a hyphen), so the echo should work correctly.
12673 lt_compile
=`echo "$ac_compile" | $SED \
12674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12676 -e 's:$: $lt_compiler_flag:'`
12677 (eval echo "\"\$as_me:12677: $lt_compile\"" >&5)
12678 (eval "$lt_compile" 2>out
/conftest.err
)
12680 cat out
/conftest.err
>&5
12681 echo "$as_me:12681: \$? = $ac_status" >&5
12682 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12684 # The compiler can only warn and ignore the option if not recognized
12685 # So say no if there are warnings
12686 $echo "X$_lt_compiler_boilerplate" |
$Xsed > out
/conftest.exp
12687 $SED '/^$/d' out
/conftest.err
>out
/conftest.er2
12688 if test ! -s out
/conftest.err ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12689 lt_cv_prog_compiler_c_o_GCJ
=yes
12694 # SGI C++ compiler will create directory out/ii_files/ for
12695 # template instantiation
12696 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
12697 $rm out
/* && rmdir out
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
12704 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
12707 hard_links
="nottested"
12708 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
12709 # do not overwrite the value of need_locks provided by the user
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12711 $as_echo_n "checking if we can lock with hard links... " >&6; }
12714 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12716 ln conftest.a conftest.b
2>&5 || hard_links
=no
12717 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12719 $as_echo "$hard_links" >&6; }
12720 if test "$hard_links" = no
; then
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12722 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12730 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12733 allow_undefined_flag_GCJ
=
12734 enable_shared_with_static_runtimes_GCJ
=no
12736 archive_expsym_cmds_GCJ
=
12737 old_archive_From_new_cmds_GCJ
=
12738 old_archive_from_expsyms_cmds_GCJ
=
12739 export_dynamic_flag_spec_GCJ
=
12740 whole_archive_flag_spec_GCJ
=
12741 thread_safe_flag_spec_GCJ
=
12742 hardcode_libdir_flag_spec_GCJ
=
12743 hardcode_libdir_flag_spec_ld_GCJ
=
12744 hardcode_libdir_separator_GCJ
=
12745 hardcode_direct_GCJ
=no
12746 hardcode_minus_L_GCJ
=no
12747 hardcode_shlibpath_var_GCJ
=unsupported
12748 link_all_deplibs_GCJ
=unknown
12749 hardcode_automatic_GCJ
=no
12751 module_expsym_cmds_GCJ
=
12752 always_export_symbols_GCJ
=no
12753 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12754 # include_expsyms should be a list of space-separated symbols to be *always*
12755 # included in the symbol list
12756 include_expsyms_GCJ
=
12757 # exclude_expsyms can be an extended regexp of symbols to exclude
12758 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12759 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12760 # as well as any symbol that contains `d'.
12761 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
12762 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12763 # platforms (ab)use it in PIC code, but their linkers get confused if
12764 # the symbol is explicitly referenced. Since portable code cannot
12765 # rely on this symbol name, it's probably fine to never include it in
12766 # preloaded symbol tables.
12767 extract_expsyms_cmds
=
12768 # Just being paranoid about ensuring that cc_basename is set.
12769 for cc_temp
in $compiler""; do
12771 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12772 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12777 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12780 cygwin
* | mingw
* | pw32
*)
12781 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12782 # When not using gcc, we currently assume that we are using
12783 # Microsoft Visual C++.
12784 if test "$GCC" != yes; then
12794 if test "$with_gnu_ld" = yes; then
12795 # If archive_cmds runs LD, not CC, wlarc should be empty
12798 # Set some defaults for GNU ld with shared library support. These
12799 # are reset later if shared libraries are not supported. Putting them
12800 # here allows them to be overridden if necessary.
12801 runpath_var
=LD_RUN_PATH
12802 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
12803 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
12804 # ancient GNU ld didn't support --whole-archive et. al.
12805 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
12806 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12808 whole_archive_flag_spec_GCJ
=
12810 supports_anon_versioning
=no
12811 case `$LD -v 2>/dev/null` in
12812 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12813 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12814 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12815 *\
2.11.
*) ;; # other 2.11 versions
12816 *) supports_anon_versioning
=yes ;;
12819 # See if GNU ld supports shared libraries.
12821 aix3
* | aix4
* | aix5
*)
12822 # On AIX/PPC, the GNU linker is very broken
12823 if test "$host_cpu" != ia64
; then
12827 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12828 *** to be unable to reliably create shared libraries on AIX.
12829 *** Therefore, libtool is disabling shared libraries support. If you
12830 *** really care for shared libraries, you may want to modify your PATH
12831 *** so that a non-GNU linker is found, and then restart.
12838 archive_cmds_GCJ
='$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)'
12839 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12840 hardcode_minus_L_GCJ
=yes
12842 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12843 # that the semantics of dynamic libraries on AmigaOS, at least up
12844 # to version 4, is to share data among multiple programs linked
12845 # with the same dynamic library. Since this doesn't match the
12846 # behavior of shared libraries on other platforms, we can't use
12852 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
12853 allow_undefined_flag_GCJ
=unsupported
12854 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12855 # support --undefined. This deserves some investigation. FIXME
12856 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12862 cygwin
* | mingw
* | pw32
*)
12863 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
12864 # as there is no search path for DLLs.
12865 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12866 allow_undefined_flag_GCJ
=unsupported
12867 always_export_symbols_GCJ
=no
12868 enable_shared_with_static_runtimes_GCJ
=yes
12869 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12871 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
12872 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12873 # If the export-symbols file already is a .def file (1st line
12874 # is EXPORTS), use it as is; otherwise, prepend...
12875 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12876 cp $export_symbols $output_objdir/$soname.def;
12878 echo EXPORTS > $output_objdir/$soname.def;
12879 cat $export_symbols >> $output_objdir/$soname.def;
12881 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12888 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
12890 case $cc_basename,$host_cpu in
12891 pgcc
*) # Portland Group C compiler
12892 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12893 tmp_addflag
=' $pic_flag'
12895 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
12896 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12897 tmp_addflag
=' $pic_flag -Mnomain' ;;
12898 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12899 tmp_addflag
=' -i_dynamic' ;;
12900 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12901 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12902 ifc
* | ifort
*) # Intel Fortran compiler
12903 tmp_addflag
=' -nofor_main' ;;
12905 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12907 if test $supports_anon_versioning = yes; then
12908 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
12909 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12910 $echo "local: *; };" >> $output_objdir/$libname.ver~
12911 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12919 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12920 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12923 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12924 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12929 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
12933 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12934 *** create shared libraries on Solaris systems. Therefore, libtool
12935 *** is disabling shared libraries support. We urge you to upgrade GNU
12936 *** binutils to release 2.9.1 or newer. Another option is to modify
12937 *** your PATH or compiler configuration so that the native linker is
12938 *** used, and then restart.
12941 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
12942 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12943 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12950 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12952 hardcode_direct_GCJ
=yes
12953 hardcode_shlibpath_var_GCJ
=no
12957 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
12958 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12959 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12966 if test "$ld_shlibs_GCJ" = no
; then
12968 hardcode_libdir_flag_spec_GCJ
=
12969 export_dynamic_flag_spec_GCJ
=
12970 whole_archive_flag_spec_GCJ
=
12973 # PORTME fill in a description of your system's linker (not GNU ld)
12976 allow_undefined_flag_GCJ
=unsupported
12977 always_export_symbols_GCJ
=yes
12978 archive_expsym_cmds_GCJ
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12979 # Note: this linker hardcodes the directories in LIBPATH if there
12980 # are no directories specified by -L.
12981 hardcode_minus_L_GCJ
=yes
12982 if test "$GCC" = yes && test -z "$link_static_flag"; then
12983 # Neither direct hardcoding nor static linking is supported with a
12985 hardcode_direct_GCJ
=unsupported
12990 if test "$host_cpu" = ia64
; then
12991 # On IA64, the linker does run time linking by default, so we don't
12992 # have to do anything special.
12993 aix_use_runtimelinking
=no
12994 exp_sym_flag
='-Bexport'
12997 # If we're using GNU nm, then we don't want the "-C" option.
12998 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12999 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
13000 export_symbols_cmds_GCJ
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13002 export_symbols_cmds_GCJ
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13004 aix_use_runtimelinking
=no
13006 # Test if we are trying to use run time linking or normal
13007 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13008 # need to do runtime linking.
13009 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
13010 for ld_flag
in $LDFLAGS; do
13011 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13012 aix_use_runtimelinking
=yes
13018 exp_sym_flag
='-bexport'
13019 no_entry_flag
='-bnoentry'
13022 # When large executables or shared objects are built, AIX ld can
13023 # have problems creating the table of contents. If linking a library
13024 # or program results in "error TOC overflow" add -mminimal-toc to
13025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13028 archive_cmds_GCJ
=''
13029 hardcode_direct_GCJ
=yes
13030 hardcode_libdir_separator_GCJ
=':'
13031 link_all_deplibs_GCJ
=yes
13033 if test "$GCC" = yes; then
13034 case $host_os in aix4.
[012]|aix4.
[012].
*)
13035 # We only want to do this on AIX 4.2 and lower, the check
13036 # below for broken collect2 doesn't work under 4.3+
13037 collect2name
=`${CC} -print-prog-name=collect2`
13038 if test -f "$collect2name" && \
13039 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
13041 # We have reworked collect2
13042 hardcode_direct_GCJ
=yes
13044 # We have old collect2
13045 hardcode_direct_GCJ
=unsupported
13046 # It fails to find uninstalled libraries when the uninstalled
13047 # path is not listed in the libpath. Setting hardcode_minus_L
13048 # to unsupported forces relinking
13049 hardcode_minus_L_GCJ
=yes
13050 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
13051 hardcode_libdir_separator_GCJ
=
13054 shared_flag
='-shared'
13055 if test "$aix_use_runtimelinking" = yes; then
13056 shared_flag
="$shared_flag "'${wl}-G'
13060 if test "$host_cpu" = ia64
; then
13061 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13062 # chokes on -Wl,-G. The following line is correct:
13065 if test "$aix_use_runtimelinking" = yes; then
13066 shared_flag
='${wl}-G'
13068 shared_flag
='${wl}-bM:SRE'
13073 # It seems that -bexpall does not export symbols beginning with
13074 # underscore (_), so it is better to generate a list of symbols to export.
13075 always_export_symbols_GCJ
=yes
13076 if test "$aix_use_runtimelinking" = yes; then
13077 # Warning - without using the other runtime loading flags (-brtl),
13078 # -berok will link without error, but may produce a broken library.
13079 allow_undefined_flag_GCJ
='-berok'
13080 # Determine the default libpath from the value encoded in an empty executable.
13081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13082 /* end confdefs.h. */
13092 if ac_fn_c_try_link
"$LINENO"; then :
13094 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13096 # Check for a 64-bit object if we didn't find anything.
13097 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13100 rm -f core conftest.err conftest.
$ac_objext \
13101 conftest
$ac_exeext conftest.
$ac_ext
13102 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13104 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
13105 archive_expsym_cmds_GCJ
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13107 if test "$host_cpu" = ia64; then
13108 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr
/lib
:/lib
'
13109 allow_undefined_flag_GCJ="-z nodefs"
13110 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
13112 # Determine the default libpath from the value encoded in an empty executable.
13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h. */
13124 if ac_fn_c_try_link "$LINENO"; then :
13126 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13128 # Check for a 64-bit object if we didn't find anything.
13129 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13132 rm -f core conftest.err conftest.$ac_objext \
13133 conftest$ac_exeext conftest.$ac_ext
13134 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
13136 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
13137 # Warning - without using the other run time loading flags,
13138 # -berok will link without error, but may produce a broken library.
13139 no_undefined_flag_GCJ=' ${wl}-bernotok'
13140 allow_undefined_flag_GCJ=' ${wl}-berok'
13141 # -bexpall does not export symbols beginning with underscore (_)
13142 always_export_symbols_GCJ=yes
13143 # Exported symbols can be pulled into shared objects from archives
13144 whole_archive_flag_spec_GCJ=' '
13145 archive_cmds_need_lc_GCJ=yes
13146 # This is similar to how AIX traditionally builds its shared libraries.
13147 archive_expsym_cmds_GCJ="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13153 archive_cmds_GCJ='$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)'
13154 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
13155 hardcode_minus_L_GCJ
=yes
13156 # see comment about different semantics on the GNU ld section
13161 export_dynamic_flag_spec_GCJ
=-rdynamic
13164 cygwin
* | mingw
* | pw32
*)
13165 # When not using gcc, we currently assume that we are using
13166 # Microsoft Visual C++.
13167 # hardcode_libdir_flag_spec is actually meaningless, as there is
13168 # no search path for DLLs.
13169 hardcode_libdir_flag_spec_GCJ
=' '
13170 allow_undefined_flag_GCJ
=unsupported
13171 # Tell ltmain to make .lib files, not .a files.
13173 # Tell ltmain to make .dll files, not .so files.
13175 # FIXME: Setting linknames here is a bad hack.
13176 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13177 # The linker will automatically build a .lib file if we build a DLL.
13178 old_archive_From_new_cmds_GCJ
='true'
13179 # FIXME: Should let the user specify the lib program.
13180 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
13181 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
13182 enable_shared_with_static_runtimes_GCJ
=yes
13185 darwin
* | rhapsody
*)
13187 rhapsody
* | darwin1.
[012])
13188 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
13191 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13192 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13194 case ${MACOSX_DEPLOYMENT_TARGET} in
13196 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13199 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
13205 archive_cmds_need_lc_GCJ
=no
13206 hardcode_direct_GCJ
=no
13207 hardcode_automatic_GCJ
=yes
13208 hardcode_shlibpath_var_GCJ
=unsupported
13209 whole_archive_flag_spec_GCJ
=''
13210 link_all_deplibs_GCJ
=yes
13211 if test "$GCC" = yes ; then
13212 output_verbose_link_cmd
='echo'
13213 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13214 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13215 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13216 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13217 module_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13219 case $cc_basename in
13221 output_verbose_link_cmd
='echo'
13222 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13223 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13224 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13225 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13226 module_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13236 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13237 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
13238 hardcode_shlibpath_var_GCJ
=no
13245 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13246 # support. Future versions do this automatically, but an explicit c++rt0.o
13247 # does not break anything, and helps significantly (at the cost of a little
13250 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13251 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
13252 hardcode_direct_GCJ
=yes
13253 hardcode_shlibpath_var_GCJ
=no
13256 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13258 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13259 hardcode_direct_GCJ
=yes
13260 hardcode_minus_L_GCJ
=yes
13261 hardcode_shlibpath_var_GCJ
=no
13264 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13265 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
13266 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13267 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
13268 hardcode_direct_GCJ
=yes
13269 hardcode_shlibpath_var_GCJ
=no
13273 if test "$GCC" = yes; then
13274 archive_cmds_GCJ
='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13276 archive_cmds_GCJ
='$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'
13278 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
13279 hardcode_libdir_separator_GCJ
=:
13280 hardcode_direct_GCJ
=yes
13282 # hardcode_minus_L: Not really in the search PATH,
13283 # but as the default location of the library.
13284 hardcode_minus_L_GCJ
=yes
13285 export_dynamic_flag_spec_GCJ
='${wl}-E'
13289 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
13292 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13295 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13301 archive_cmds_GCJ
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13304 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13308 if test "$with_gnu_ld" = no
; then
13311 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
13312 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
13313 hardcode_libdir_separator_GCJ
=:
13314 hardcode_direct_GCJ
=no
13315 hardcode_shlibpath_var_GCJ
=no
13318 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
13319 hardcode_direct_GCJ
=no
13320 hardcode_shlibpath_var_GCJ
=no
13322 # hardcode_minus_L: Not really in the search PATH,
13323 # but as the default location of the library.
13324 hardcode_minus_L_GCJ
=yes
13327 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
13328 hardcode_libdir_separator_GCJ
=:
13329 hardcode_direct_GCJ
=yes
13330 export_dynamic_flag_spec_GCJ
='${wl}-E'
13332 # hardcode_minus_L: Not really in the search PATH,
13333 # but as the default location of the library.
13334 hardcode_minus_L_GCJ
=yes
13340 irix5
* | irix6
* | nonstopux
*)
13341 if test "$GCC" = yes; then
13342 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13344 archive_cmds_GCJ
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13345 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
13347 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
13348 hardcode_libdir_separator_GCJ
=:
13349 link_all_deplibs_GCJ
=yes
13353 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13354 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13356 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13358 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
13359 hardcode_direct_GCJ
=yes
13360 hardcode_shlibpath_var_GCJ
=no
13364 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13365 hardcode_direct_GCJ
=yes
13366 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
13367 hardcode_libdir_separator_GCJ
=:
13368 hardcode_shlibpath_var_GCJ
=no
13372 hardcode_direct_GCJ
=yes
13373 hardcode_shlibpath_var_GCJ
=no
13374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13375 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13376 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13377 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
13378 export_dynamic_flag_spec_GCJ
='${wl}-E'
13381 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13382 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13383 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
13386 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13387 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
13394 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
13395 hardcode_minus_L_GCJ
=yes
13396 allow_undefined_flag_GCJ
=unsupported
13397 archive_cmds_GCJ
='$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'
13398 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13402 if test "$GCC" = yes; then
13403 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
13404 archive_cmds_GCJ
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13406 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
13407 archive_cmds_GCJ
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13409 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
13410 hardcode_libdir_separator_GCJ
=:
13413 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13414 if test "$GCC" = yes; then
13415 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
13416 archive_cmds_GCJ
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13417 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
13419 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
13420 archive_cmds_GCJ
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13421 archive_expsym_cmds_GCJ
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13422 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
13424 # Both c and cxx compiler support -rpath directly
13425 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
13427 hardcode_libdir_separator_GCJ
=:
13431 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13432 hardcode_shlibpath_var_GCJ
=no
13433 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
13434 runpath_var
=LD_RUN_PATH
13435 hardcode_runpath_var
=yes
13439 no_undefined_flag_GCJ
=' -z text'
13440 if test "$GCC" = yes; then
13442 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13443 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13444 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13447 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13448 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13449 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13451 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
13452 hardcode_shlibpath_var_GCJ
=no
13454 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13456 # The compiler driver will combine linker options so we
13457 # cannot just pass the convience library names through
13458 # without $wl, iff we do not link with $LD.
13459 # Luckily, gcc supports the same syntax we need for Sun Studio.
13460 # Supported since Solaris 2.6 (maybe 2.5.1?)
13463 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
13465 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
13468 link_all_deplibs_GCJ
=yes
13472 if test "x$host_vendor" = xsequent
; then
13473 # Use $CC to link under sequent, because it throws in some extra .o
13474 # files that make .init and .fini sections work.
13475 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13477 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13479 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
13480 hardcode_direct_GCJ
=yes
13481 hardcode_minus_L_GCJ
=yes
13482 hardcode_shlibpath_var_GCJ
=no
13486 case $host_vendor in
13488 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13489 hardcode_direct_GCJ
=yes # is this really true???
13492 ## LD is ld it makes a PLAMLIB
13493 ## CC just makes a GrossModule.
13494 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13495 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
13496 hardcode_direct_GCJ
=no
13499 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13500 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
13503 runpath_var
='LD_RUN_PATH'
13504 hardcode_shlibpath_var_GCJ
=no
13508 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13509 hardcode_shlibpath_var_GCJ
=no
13510 export_dynamic_flag_spec_GCJ
='-Bexport'
13514 if test -d /usr
/nec
; then
13515 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13516 hardcode_shlibpath_var_GCJ
=no
13517 runpath_var
=LD_RUN_PATH
13518 hardcode_runpath_var
=yes
13524 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13525 hardcode_direct_GCJ
=yes
13526 hardcode_minus_L_GCJ
=no
13527 hardcode_shlibpath_var_GCJ
=no
13528 hardcode_runpath_var
=yes
13529 runpath_var
=LD_RUN_PATH
13532 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
13533 no_undefined_flag_GCJ
='${wl}-z ${wl}text'
13534 if test "$GCC" = yes; then
13535 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13537 archive_cmds_GCJ
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13539 runpath_var
='LD_RUN_PATH'
13540 hardcode_shlibpath_var_GCJ
=no
13544 no_undefined_flag_GCJ
=' -z text'
13545 # $CC -shared without GNU ld will not create a library from C++
13546 # object files and a static libstdc++, better avoid it by now
13547 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13548 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13549 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13550 hardcode_libdir_flag_spec_GCJ
=
13551 hardcode_shlibpath_var_GCJ
=no
13552 runpath_var
='LD_RUN_PATH'
13556 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13557 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
13558 hardcode_shlibpath_var_GCJ
=no
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
13568 $as_echo "$ld_shlibs_GCJ" >&6; }
13569 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
13571 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
13572 if test "$GCC" = yes; then
13573 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13577 # Do we need to explicitly link libc?
13579 case "x$archive_cmds_need_lc_GCJ" in
13581 # Assume -lc should be added
13582 archive_cmds_need_lc_GCJ
=yes
13584 if test "$enable_shared" = yes && test "$GCC" = yes; then
13585 case $archive_cmds_GCJ in
13587 # FIXME: we may have to deal with multi-command sequences.
13590 # Test whether the compiler implicitly links with -lc since on some
13591 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13592 # to ld, don't add -lc before -lgcc.
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13594 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13596 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13599 (eval $ac_compile) 2>&5
13601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13602 test $ac_status = 0; } 2>conftest.err
; then
13605 libobjs
=conftest.
$ac_objext
13607 wl
=$lt_prog_compiler_wl_GCJ
13613 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
13614 allow_undefined_flag_GCJ
=
13615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13616 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13619 test $ac_status = 0; }
13621 archive_cmds_need_lc_GCJ
=no
13623 archive_cmds_need_lc_GCJ
=yes
13625 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
13627 cat conftest.err
1>&5
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
13631 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13639 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13640 library_names_spec
=
13641 libname_spec
='lib$name'
13645 postuninstall_cmds
=
13649 shlibpath_overrides_runpath
=unknown
13651 dynamic_linker
="$host_os ld.so"
13652 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
13653 if test "$GCC" = yes; then
13654 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13655 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
13656 # if the path contains ";" then we assume it to be the separator
13657 # otherwise default to the standard path separator (i.e. ":") - it is
13658 # assumed that no part of a normal pathname contains ";" but that should
13659 # okay in the real world where ";" in dirpaths is itself problematic.
13660 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13662 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13665 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
13667 need_lib_prefix
=unknown
13668 hardcode_into_libs
=no
13670 # when you set need_version to no, make sure it does not cause -set_version
13671 # flags to be left without arguments
13672 need_version
=unknown
13677 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
13678 shlibpath_var
=LIBPATH
13680 # AIX 3 has no versioning support, so we append a major version to the name.
13681 soname_spec
='${libname}${release}${shared_ext}$major'
13688 hardcode_into_libs
=yes
13689 if test "$host_cpu" = ia64
; then
13690 # AIX 5 supports IA64
13691 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13692 shlibpath_var
=LD_LIBRARY_PATH
13694 # With GCC up to 2.95.x, collect2 would create an import file
13695 # for dependence libraries. The import file would start with
13696 # the line `#! .'. This would cause the generated library to
13697 # depend on `.', always an invalid library. This was fixed in
13698 # development snapshots of GCC prior to 3.0.
13700 aix4 | aix4.
[01] | aix4.
[01].
*)
13701 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13703 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
13706 can_build_shared
=no
13710 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13711 # soname into executable. Probably we can add versioning support to
13712 # collect2, so additional links can be useful in future.
13713 if test "$aix_use_runtimelinking" = yes; then
13714 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13715 # instead of lib<name>.a to let people know that these are not
13716 # typical AIX shared libraries.
13717 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13719 # We preserve .a as extension for shared libraries through AIX4.2
13720 # and later when we are not doing run time linking.
13721 library_names_spec
='${libname}${release}.a $libname.a'
13722 soname_spec
='${libname}${release}${shared_ext}$major'
13724 shlibpath_var
=LIBPATH
13729 library_names_spec
='$libname.ixlibrary $libname.a'
13730 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13731 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
13735 library_names_spec
='${libname}${shared_ext}'
13736 dynamic_linker
="$host_os ld.so"
13737 shlibpath_var
=LIBRARY_PATH
13743 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13744 soname_spec
='${libname}${release}${shared_ext}$major'
13745 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
13746 shlibpath_var
=LD_LIBRARY_PATH
13747 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13748 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
13749 # the default ld.so.conf also contains /usr/contrib/lib and
13750 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13751 # libtool to hard-code these into programs
13754 cygwin
* | mingw
* | pw32
*)
13755 version_type
=windows
13760 case $GCC,$host_os in
13761 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
13762 library_names_spec
='$libname.dll.a'
13763 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13764 postinstall_cmds
='base_file=`basename \${file}`~
13765 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13766 dldir=$destdir/`dirname \$dlpath`~
13767 test -d \$dldir || mkdir -p \$dldir~
13768 $install_prog $dir/$dlname \$dldir/$dlname~
13769 chmod a+x \$dldir/$dlname'
13770 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13771 dlpath=$dir/\$dldll~
13773 shlibpath_overrides_runpath
=yes
13777 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13778 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13779 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
13782 # MinGW DLLs use traditional 'lib' prefix
13783 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13784 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13785 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
13786 # It is most probably a Windows format PATH printed by
13787 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13788 # path with ; separators, and with drive letters. We can handle the
13789 # drive letters (cygwin fileutils understands them), so leave them,
13790 # especially as we might pass files found there to a mingw objdump,
13791 # which wouldn't understand a cygwinified path. Ahh.
13792 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13794 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13798 # pw32 DLLs use 'pw' prefix rather than 'lib'
13799 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13805 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13808 dynamic_linker
='Win32 ld.exe'
13809 # FIXME: first we should search . and the directory the executable is in
13813 darwin
* | rhapsody
*)
13814 dynamic_linker
="$host_os dyld"
13815 version_type
=darwin
13818 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13819 soname_spec
='${libname}${release}${major}$shared_ext'
13820 shlibpath_overrides_runpath
=yes
13821 shlibpath_var
=DYLD_LIBRARY_PATH
13822 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
13823 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13824 if test "$GCC" = yes; then
13825 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13827 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
13829 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
13836 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13837 soname_spec
='${libname}${release}${shared_ext}$major'
13838 shlibpath_var
=LD_LIBRARY_PATH
13849 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13850 soname_spec
='${libname}${release}${shared_ext}$major'
13851 shlibpath_var
=LD_LIBRARY_PATH
13852 shlibpath_overrides_runpath
=no
13853 hardcode_into_libs
=yes
13854 dynamic_linker
='GNU ld.so'
13857 freebsd
* | dragonfly
*)
13858 # DragonFly does not have aout. When/if they implement a new
13859 # versioning mechanism, adjust this.
13860 if test -x /usr
/bin
/objformat
; then
13861 objformat
=`/usr/bin/objformat`
13864 freebsd
[123]*) objformat
=aout
;;
13865 *) objformat
=elf
;;
13868 version_type
=freebsd-
$objformat
13869 case $version_type in
13871 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13876 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13880 shlibpath_var
=LD_LIBRARY_PATH
13883 shlibpath_overrides_runpath
=yes
13885 freebsd3.
[01]* | freebsdelf3.
[01]*)
13886 shlibpath_overrides_runpath
=yes
13887 hardcode_into_libs
=yes
13890 shlibpath_overrides_runpath
=no
13891 hardcode_into_libs
=yes
13900 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13901 soname_spec
='${libname}${release}${shared_ext}$major'
13902 shlibpath_var
=LD_LIBRARY_PATH
13903 hardcode_into_libs
=yes
13906 hpux9
* | hpux10
* | hpux11
*)
13907 # Give a soname corresponding to the major version so that dld.sl refuses to
13908 # link against other versions.
13915 hardcode_into_libs
=yes
13916 dynamic_linker
="$host_os dld.so"
13917 shlibpath_var
=LD_LIBRARY_PATH
13918 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13919 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13920 soname_spec
='${libname}${release}${shared_ext}$major'
13921 if test "X$HPUX_IA64_MODE" = X32
; then
13922 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13924 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
13926 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13930 hardcode_into_libs
=yes
13931 dynamic_linker
="$host_os dld.sl"
13932 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
13933 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13934 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13935 soname_spec
='${libname}${release}${shared_ext}$major'
13936 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13937 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13941 dynamic_linker
="$host_os dld.sl"
13942 shlibpath_var
=SHLIB_PATH
13943 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
13944 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13945 soname_spec
='${libname}${release}${shared_ext}$major'
13948 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13949 postinstall_cmds
='chmod 555 $lib'
13952 irix5
* | irix6
* | nonstopux
*)
13954 nonstopux
*) version_type
=nonstopux
;;
13956 if test "$lt_cv_prog_gnu_ld" = yes; then
13964 soname_spec
='${libname}${release}${shared_ext}$major'
13965 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13967 irix5
* | nonstopux
*)
13968 libsuff
= shlibsuff
=
13971 case $LD in # libtool.m4 will add one of these switches to LD
13972 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
13973 libsuff
= shlibsuff
= libmagic
=32-bit;;
13974 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
13975 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
13976 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
13977 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
13978 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
13982 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
13983 shlibpath_overrides_runpath
=no
13984 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13985 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
13986 hardcode_into_libs
=yes
13989 # No shared lib support for Linux oldld, aout, or coff.
13990 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
13994 # This must be Linux ELF.
13999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14000 soname_spec
='${libname}${release}${shared_ext}$major'
14001 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14002 shlibpath_var
=LD_LIBRARY_PATH
14003 shlibpath_overrides_runpath
=no
14004 # This implies no fast_install, which is unacceptable.
14005 # Some rework will be needed to allow for fast_install
14006 # before this can be enabled.
14007 hardcode_into_libs
=yes
14009 # Append ld.so.conf contents to the search path
14010 if test -f /etc
/ld.so.conf
; then
14011 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14012 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14015 # We used to test for /lib/ld.so.1 and disable shared libraries on
14016 # powerpc, because MkLinux only supported shared libraries with the
14017 # GNU dynamic linker. Since this was broken with cross compilers,
14018 # most powerpc-linux boxes support dynamic linking these days and
14019 # people can always --disable-shared, the test was removed, and we
14020 # assume the GNU/Linux dynamic linker is in use.
14021 dynamic_linker
='GNU/Linux ld.so'
14028 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14029 soname_spec
='${libname}${release}${shared_ext}$major'
14030 shlibpath_var
=LD_LIBRARY_PATH
14031 shlibpath_overrides_runpath
=no
14032 hardcode_into_libs
=yes
14033 dynamic_linker
='GNU ld.so'
14040 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14041 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14042 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14043 dynamic_linker
='NetBSD (a.out) ld.so'
14045 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14046 soname_spec
='${libname}${release}${shared_ext}$major'
14047 dynamic_linker
='NetBSD ld.elf_so'
14049 shlibpath_var
=LD_LIBRARY_PATH
14050 shlibpath_overrides_runpath
=yes
14051 hardcode_into_libs
=yes
14056 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14057 shlibpath_var
=LD_LIBRARY_PATH
14058 shlibpath_overrides_runpath
=yes
14065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14066 soname_spec
='${libname}${release}${shared_ext}$major'
14067 shlibpath_var
=LD_LIBRARY_PATH
14068 shlibpath_overrides_runpath
=yes
14074 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14076 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14077 *) need_version
=no
;;
14079 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14080 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14081 shlibpath_var
=LD_LIBRARY_PATH
14082 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14084 openbsd2.
[89] | openbsd2.
[89].
*)
14085 shlibpath_overrides_runpath
=no
14088 shlibpath_overrides_runpath
=yes
14092 shlibpath_overrides_runpath
=yes
14097 libname_spec
='$name'
14100 library_names_spec
='$libname${shared_ext} $libname.a'
14101 dynamic_linker
='OS/2 ld.exe'
14102 shlibpath_var
=LIBPATH
14105 osf3
* | osf4
* | osf5
*)
14109 soname_spec
='${libname}${release}${shared_ext}$major'
14110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14111 shlibpath_var
=LD_LIBRARY_PATH
14112 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14113 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14118 soname_spec
='${libname}${release}${shared_ext}$major'
14119 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14120 shlibpath_var
=LD_LIBRARY_PATH
14127 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14128 soname_spec
='${libname}${release}${shared_ext}$major'
14129 shlibpath_var
=LD_LIBRARY_PATH
14130 shlibpath_overrides_runpath
=yes
14131 hardcode_into_libs
=yes
14132 # ldd complains unless libraries are executable
14133 postinstall_cmds
='chmod +x $lib'
14138 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14139 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14140 shlibpath_var
=LD_LIBRARY_PATH
14141 shlibpath_overrides_runpath
=yes
14142 if test "$with_gnu_ld" = yes; then
14148 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
14150 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14151 soname_spec
='${libname}${release}${shared_ext}$major'
14152 shlibpath_var
=LD_LIBRARY_PATH
14153 case $host_vendor in
14155 shlibpath_overrides_runpath
=no
14157 export_dynamic_flag_spec
='${wl}-Blargedynsym'
14158 runpath_var
=LD_RUN_PATH
14166 shlibpath_overrides_runpath
=no
14167 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14173 if test -d /usr
/nec
;then
14175 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14176 soname_spec
='$libname${shared_ext}.$major'
14177 shlibpath_var
=LD_LIBRARY_PATH
14183 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14184 soname_spec
='${libname}${release}${shared_ext}$major'
14185 shlibpath_var
=LD_LIBRARY_PATH
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14193 $as_echo "$dynamic_linker" >&6; }
14194 test "$dynamic_linker" = no
&& can_build_shared
=no
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14197 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14198 hardcode_action_GCJ
=
14199 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
14200 test -n "$runpath_var_GCJ" || \
14201 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
14203 # We can hardcode non-existant directories.
14204 if test "$hardcode_direct_GCJ" != no
&&
14205 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14206 # have to relink, otherwise we might link with an installed library
14207 # when we should be linking with a yet-to-be-installed one
14208 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
14209 test "$hardcode_minus_L_GCJ" != no
; then
14210 # Linking always hardcodes the temporary library directory.
14211 hardcode_action_GCJ
=relink
14213 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14214 hardcode_action_GCJ
=immediate
14217 # We cannot hardcode anything, or else we can only hardcode existing
14219 hardcode_action_GCJ
=unsupported
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
14222 $as_echo "$hardcode_action_GCJ" >&6; }
14224 if test "$hardcode_action_GCJ" = relink
; then
14225 # Fast installation is not supported
14226 enable_fast_install
=no
14227 elif test "$shlibpath_overrides_runpath" = yes ||
14228 test "$enable_shared" = no
; then
14229 # Fast installation is not necessary
14230 enable_fast_install
=needless
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14236 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14237 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
14238 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
14239 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14241 $as_echo "yes" >&6; }
14243 # FIXME - insert some real tests, host_os isn't really good enough
14246 if test -n "$STRIP" ; then
14247 striplib
="$STRIP -x"
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14249 $as_echo "yes" >&6; }
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14252 $as_echo "no" >&6; }
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14262 if test "x$enable_dlopen" != xyes
; then
14263 enable_dlopen
=unknown
14264 enable_dlopen_self
=unknown
14265 enable_dlopen_self_static
=unknown
14272 lt_cv_dlopen
="load_add_on"
14274 lt_cv_dlopen_self
=yes
14278 lt_cv_dlopen
="LoadLibrary"
14283 lt_cv_dlopen
="dlopen"
14288 # if libdl is installed we need to link against it
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14290 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14291 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14292 $as_echo_n "(cached) " >&6
14294 ac_check_lib_save_LIBS
=$LIBS
14296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14297 /* end confdefs.h. */
14299 /* Override any GCC internal prototype to avoid an error.
14300 Use char because int might match the return type of a GCC
14301 builtin and then its argument prototype would still apply. */
14314 if ac_fn_c_try_link
"$LINENO"; then :
14315 ac_cv_lib_dl_dlopen
=yes
14317 ac_cv_lib_dl_dlopen
=no
14319 rm -f core conftest.err conftest.
$ac_objext \
14320 conftest
$ac_exeext conftest.
$ac_ext
14321 LIBS
=$ac_check_lib_save_LIBS
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14324 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14325 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
14326 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
14329 lt_cv_dlopen
="dyld"
14331 lt_cv_dlopen_self
=yes
14338 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
14339 if test "x$ac_cv_func_shl_load" = x
""yes; then :
14340 lt_cv_dlopen
="shl_load"
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14343 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14344 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
14345 $as_echo_n "(cached) " >&6
14347 ac_check_lib_save_LIBS
=$LIBS
14349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14352 /* Override any GCC internal prototype to avoid an error.
14353 Use char because int might match the return type of a GCC
14354 builtin and then its argument prototype would still apply. */
14362 return shl_load ();
14367 if ac_fn_c_try_link
"$LINENO"; then :
14368 ac_cv_lib_dld_shl_load
=yes
14370 ac_cv_lib_dld_shl_load
=no
14372 rm -f core conftest.err conftest.
$ac_objext \
14373 conftest
$ac_exeext conftest.
$ac_ext
14374 LIBS
=$ac_check_lib_save_LIBS
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14377 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14378 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
14379 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
14381 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
14382 if test "x$ac_cv_func_dlopen" = x
""yes; then :
14383 lt_cv_dlopen
="dlopen"
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14386 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14387 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14388 $as_echo_n "(cached) " >&6
14390 ac_check_lib_save_LIBS
=$LIBS
14392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14393 /* end confdefs.h. */
14395 /* Override any GCC internal prototype to avoid an error.
14396 Use char because int might match the return type of a GCC
14397 builtin and then its argument prototype would still apply. */
14410 if ac_fn_c_try_link
"$LINENO"; then :
14411 ac_cv_lib_dl_dlopen
=yes
14413 ac_cv_lib_dl_dlopen
=no
14415 rm -f core conftest.err conftest.
$ac_objext \
14416 conftest
$ac_exeext conftest.
$ac_ext
14417 LIBS
=$ac_check_lib_save_LIBS
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14420 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14421 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
14422 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14425 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14426 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
14427 $as_echo_n "(cached) " >&6
14429 ac_check_lib_save_LIBS
=$LIBS
14430 LIBS
="-lsvld $LIBS"
14431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h. */
14434 /* Override any GCC internal prototype to avoid an error.
14435 Use char because int might match the return type of a GCC
14436 builtin and then its argument prototype would still apply. */
14449 if ac_fn_c_try_link
"$LINENO"; then :
14450 ac_cv_lib_svld_dlopen
=yes
14452 ac_cv_lib_svld_dlopen
=no
14454 rm -f core conftest.err conftest.
$ac_objext \
14455 conftest
$ac_exeext conftest.
$ac_ext
14456 LIBS
=$ac_check_lib_save_LIBS
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14459 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14460 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
14461 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14464 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14465 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
14466 $as_echo_n "(cached) " >&6
14468 ac_check_lib_save_LIBS
=$LIBS
14470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h. */
14473 /* Override any GCC internal prototype to avoid an error.
14474 Use char because int might match the return type of a GCC
14475 builtin and then its argument prototype would still apply. */
14483 return dld_link ();
14488 if ac_fn_c_try_link
"$LINENO"; then :
14489 ac_cv_lib_dld_dld_link
=yes
14491 ac_cv_lib_dld_dld_link
=no
14493 rm -f core conftest.err conftest.
$ac_objext \
14494 conftest
$ac_exeext conftest.
$ac_ext
14495 LIBS
=$ac_check_lib_save_LIBS
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14498 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14499 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
14500 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
14521 if test "x$lt_cv_dlopen" != xno
; then
14527 case $lt_cv_dlopen in
14529 save_CPPFLAGS
="$CPPFLAGS"
14530 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
14532 save_LDFLAGS
="$LDFLAGS"
14533 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
14536 LIBS
="$lt_cv_dlopen_libs $LIBS"
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14539 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14540 if test "${lt_cv_dlopen_self+set}" = set; then :
14541 $as_echo_n "(cached) " >&6
14543 if test "$cross_compiling" = yes; then :
14544 lt_cv_dlopen_self
=cross
14546 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
14547 lt_status
=$lt_dlunknown
14548 cat > conftest.
$ac_ext <<EOF
14549 #line 14549 "configure"
14550 #include "confdefs.h"
14559 # define LT_DLGLOBAL RTLD_GLOBAL
14562 # define LT_DLGLOBAL DL_GLOBAL
14564 # define LT_DLGLOBAL 0
14568 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14569 find out it does not work in some platform. */
14570 #ifndef LT_DLLAZY_OR_NOW
14572 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14575 # define LT_DLLAZY_OR_NOW DL_LAZY
14578 # define LT_DLLAZY_OR_NOW RTLD_NOW
14581 # define LT_DLLAZY_OR_NOW DL_NOW
14583 # define LT_DLLAZY_OR_NOW 0
14591 extern "C" void exit (int);
14594 void fnord() { int i=42;}
14597 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14598 int status = $lt_dlunknown;
14602 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14603 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14604 /* dlclose (self); */
14610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14611 (eval $ac_link) 2>&5
14613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14614 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
14615 (.
/conftest
; exit; ) >&5 2>/dev
/null
14617 case x
$lt_status in
14618 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
14619 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
14620 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
14623 # compilation failed
14624 lt_cv_dlopen_self
=no
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14632 $as_echo "$lt_cv_dlopen_self" >&6; }
14634 if test "x$lt_cv_dlopen_self" = xyes
; then
14635 LDFLAGS
="$LDFLAGS $link_static_flag"
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14637 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14638 if test "${lt_cv_dlopen_self_static+set}" = set; then :
14639 $as_echo_n "(cached) " >&6
14641 if test "$cross_compiling" = yes; then :
14642 lt_cv_dlopen_self_static
=cross
14644 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
14645 lt_status
=$lt_dlunknown
14646 cat > conftest.
$ac_ext <<EOF
14647 #line 14647 "configure"
14648 #include "confdefs.h"
14657 # define LT_DLGLOBAL RTLD_GLOBAL
14660 # define LT_DLGLOBAL DL_GLOBAL
14662 # define LT_DLGLOBAL 0
14666 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14667 find out it does not work in some platform. */
14668 #ifndef LT_DLLAZY_OR_NOW
14670 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14673 # define LT_DLLAZY_OR_NOW DL_LAZY
14676 # define LT_DLLAZY_OR_NOW RTLD_NOW
14679 # define LT_DLLAZY_OR_NOW DL_NOW
14681 # define LT_DLLAZY_OR_NOW 0
14689 extern "C" void exit (int);
14692 void fnord() { int i=42;}
14695 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14696 int status = $lt_dlunknown;
14700 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14701 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14702 /* dlclose (self); */
14708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14709 (eval $ac_link) 2>&5
14711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14712 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
14713 (.
/conftest
; exit; ) >&5 2>/dev
/null
14715 case x
$lt_status in
14716 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
14717 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
14718 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
14721 # compilation failed
14722 lt_cv_dlopen_self_static
=no
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14730 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14733 CPPFLAGS
="$save_CPPFLAGS"
14734 LDFLAGS
="$save_LDFLAGS"
14739 case $lt_cv_dlopen_self in
14740 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
14741 *) enable_dlopen_self
=unknown
;;
14744 case $lt_cv_dlopen_self_static in
14745 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
14746 *) enable_dlopen_self_static
=unknown
;;
14751 # The else clause should only fire when bootstrapping the
14752 # libtool distribution, otherwise you forgot to ship ltmain.sh
14753 # with your package, and you will get complaints that there are
14754 # no rules to generate ltmain.sh.
14755 if test -f "$ltmain"; then
14756 # See if we are running on zsh, and set the options which allow our commands through
14757 # without removal of \ escapes.
14758 if test -n "${ZSH_VERSION+set}" ; then
14759 setopt NO_GLOB_SUBST
14761 # Now quote all the things that may contain metacharacters while being
14762 # careful not to overquote the AC_SUBSTed values. We take copies of the
14763 # variables and quote the copies for generation of the libtool script.
14764 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14766 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14767 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14768 deplibs_check_method reload_flag reload_cmds need_locks \
14769 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14770 lt_cv_sys_global_symbol_to_c_name_address \
14771 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14772 old_postinstall_cmds old_postuninstall_cmds \
14776 lt_prog_compiler_wl_GCJ \
14777 lt_prog_compiler_pic_GCJ \
14778 lt_prog_compiler_static_GCJ \
14779 lt_prog_compiler_no_builtin_flag_GCJ \
14780 export_dynamic_flag_spec_GCJ \
14781 thread_safe_flag_spec_GCJ \
14782 whole_archive_flag_spec_GCJ \
14783 enable_shared_with_static_runtimes_GCJ \
14784 old_archive_cmds_GCJ \
14785 old_archive_from_new_cmds_GCJ \
14786 predep_objects_GCJ \
14787 postdep_objects_GCJ \
14790 compiler_lib_search_path_GCJ \
14792 archive_expsym_cmds_GCJ \
14793 postinstall_cmds_GCJ \
14794 postuninstall_cmds_GCJ \
14795 old_archive_from_expsyms_cmds_GCJ \
14796 allow_undefined_flag_GCJ \
14797 no_undefined_flag_GCJ \
14798 export_symbols_cmds_GCJ \
14799 hardcode_libdir_flag_spec_GCJ \
14800 hardcode_libdir_flag_spec_ld_GCJ \
14801 hardcode_libdir_separator_GCJ \
14802 hardcode_automatic_GCJ \
14804 module_expsym_cmds_GCJ \
14805 lt_cv_prog_compiler_c_o_GCJ \
14806 exclude_expsyms_GCJ \
14807 include_expsyms_GCJ
; do
14810 old_archive_cmds_GCJ | \
14811 old_archive_from_new_cmds_GCJ | \
14812 archive_cmds_GCJ | \
14813 archive_expsym_cmds_GCJ | \
14814 module_cmds_GCJ | \
14815 module_expsym_cmds_GCJ | \
14816 old_archive_from_expsyms_cmds_GCJ | \
14817 export_symbols_cmds_GCJ | \
14818 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14819 postinstall_cmds | postuninstall_cmds | \
14820 old_postinstall_cmds | old_postuninstall_cmds | \
14821 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
14822 # Double-quote double-evaled strings.
14823 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14826 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14832 *'\$0 --fallback-echo"')
14833 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14839 cat <<__EOF__ >> "$cfgfile"
14840 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14842 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14844 # Shell to use when invoking shell scripts.
14847 # Whether or not to build shared libraries.
14848 build_libtool_libs=$enable_shared
14850 # Whether or not to build static libraries.
14851 build_old_libs=$enable_static
14853 # Whether or not to add -lc for building shared libraries.
14854 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
14856 # Whether or not to disallow shared libs when runtime libs are static
14857 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
14859 # Whether or not to optimize for fast installation.
14860 fast_install=$enable_fast_install
14863 host_alias=$host_alias
14867 # The build system.
14868 build_alias=$build_alias
14872 # An echo program that does not interpret backslashes.
14877 AR_FLAGS=$lt_AR_FLAGS
14882 # A language-specific compiler.
14883 CC=$lt_compiler_GCJ
14885 # Is the compiler the GNU C compiler?
14891 # The linker used to build libraries.
14894 # Whether we need hard or soft links.
14897 # A BSD-compatible nm program.
14900 # A symbol stripping program
14903 # Used to examine libraries when file_magic_cmd begins "file"
14904 MAGIC_CMD=$MAGIC_CMD
14906 # Used on cygwin: DLL creation program.
14909 # Used on cygwin: object dumper.
14912 # Used on cygwin: assembler.
14915 # The name of the directory that contains temporary libtool files.
14918 # How to create reloadable object files.
14919 reload_flag=$lt_reload_flag
14920 reload_cmds=$lt_reload_cmds
14922 # How to pass a linker flag through the compiler.
14923 wl=$lt_lt_prog_compiler_wl_GCJ
14925 # Object file suffix (normally "o").
14926 objext="$ac_objext"
14928 # Old archive suffix (normally "a").
14931 # Shared library suffix (normally ".so").
14932 shrext_cmds='$shrext_cmds'
14934 # Executable file suffix (normally "").
14937 # Additional compiler flags for building library objects.
14938 pic_flag=$lt_lt_prog_compiler_pic_GCJ
14941 # What is the maximum length of a command?
14942 max_cmd_len=$lt_cv_sys_max_cmd_len
14944 # Does compiler simultaneously support -c and -o options?
14945 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
14947 # Must we lock files when doing compilation?
14948 need_locks=$lt_need_locks
14950 # Do we need the lib prefix for modules?
14951 need_lib_prefix=$need_lib_prefix
14953 # Do we need a version for libraries?
14954 need_version=$need_version
14956 # Whether dlopen is supported.
14957 dlopen_support=$enable_dlopen
14959 # Whether dlopen of programs is supported.
14960 dlopen_self=$enable_dlopen_self
14962 # Whether dlopen of statically linked programs is supported.
14963 dlopen_self_static=$enable_dlopen_self_static
14965 # Compiler flag to prevent dynamic linking.
14966 link_static_flag=$lt_lt_prog_compiler_static_GCJ
14968 # Compiler flag to turn off builtin functions.
14969 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
14971 # Compiler flag to allow reflexive dlopens.
14972 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
14974 # Compiler flag to generate shared objects directly from archives.
14975 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
14977 # Compiler flag to generate thread-safe objects.
14978 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
14980 # Library versioning type.
14981 version_type=$version_type
14983 # Format of library name prefix.
14984 libname_spec=$lt_libname_spec
14986 # List of archive names. First name is the real one, the rest are links.
14987 # The last name is the one that the linker finds with -lNAME.
14988 library_names_spec=$lt_library_names_spec
14990 # The coded name of the library, if different from the real name.
14991 soname_spec=$lt_soname_spec
14993 # Commands used to build and install an old-style archive.
14995 old_archive_cmds=$lt_old_archive_cmds_GCJ
14996 old_postinstall_cmds=$lt_old_postinstall_cmds
14997 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14999 # Create an old-style archive from a shared archive.
15000 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
15002 # Create a temporary old-style archive to link instead of a shared archive.
15003 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
15005 # Commands used to build and install a shared archive.
15006 archive_cmds=$lt_archive_cmds_GCJ
15007 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
15008 postinstall_cmds=$lt_postinstall_cmds
15009 postuninstall_cmds=$lt_postuninstall_cmds
15011 # Commands used to build a loadable module (assumed same as above if empty)
15012 module_cmds=$lt_module_cmds_GCJ
15013 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
15015 # Commands to strip libraries.
15016 old_striplib=$lt_old_striplib
15017 striplib=$lt_striplib
15019 # Dependencies to place before the objects being linked to create a
15021 predep_objects=$lt_predep_objects_GCJ
15023 # Dependencies to place after the objects being linked to create a
15025 postdep_objects=$lt_postdep_objects_GCJ
15027 # Dependencies to place before the objects being linked to create a
15029 predeps=$lt_predeps_GCJ
15031 # Dependencies to place after the objects being linked to create a
15033 postdeps=$lt_postdeps_GCJ
15035 # The library search path used internally by the compiler when linking
15036 # a shared library.
15037 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
15039 # Method to check whether dependent libraries are shared objects.
15040 deplibs_check_method=$lt_deplibs_check_method
15042 # Command to use when deplibs_check_method == file_magic.
15043 file_magic_cmd=$lt_file_magic_cmd
15045 # Flag that allows shared libraries with undefined symbols to be built.
15046 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
15048 # Flag that forces no undefined symbols.
15049 no_undefined_flag=$lt_no_undefined_flag_GCJ
15051 # Commands used to finish a libtool library installation in a directory.
15052 finish_cmds=$lt_finish_cmds
15054 # Same as above, but a single script fragment to be evaled but not shown.
15055 finish_eval=$lt_finish_eval
15057 # Take the output of nm and produce a listing of raw symbols and C names.
15058 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15060 # Transform the output of nm in a proper C declaration
15061 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15063 # Transform the output of nm in a C name address pair
15064 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15066 # This is the shared library runtime path variable.
15067 runpath_var=$runpath_var
15069 # This is the shared library path variable.
15070 shlibpath_var=$shlibpath_var
15072 # Is shlibpath searched before the hard-coded library search path?
15073 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15075 # How to hardcode a shared library path into an executable.
15076 hardcode_action=$hardcode_action_GCJ
15078 # Whether we should hardcode library paths into libraries.
15079 hardcode_into_libs=$hardcode_into_libs
15081 # Flag to hardcode \$libdir into a binary during linking.
15082 # This must work even if \$libdir does not exist.
15083 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
15085 # If ld is used when linking, flag to hardcode \$libdir into
15086 # a binary during linking. This must work even if \$libdir does
15088 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
15090 # Whether we need a single -rpath flag with a separated argument.
15091 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
15093 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15094 # resulting binary.
15095 hardcode_direct=$hardcode_direct_GCJ
15097 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15098 # resulting binary.
15099 hardcode_minus_L=$hardcode_minus_L_GCJ
15101 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15102 # the resulting binary.
15103 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
15105 # Set to yes if building a shared library automatically hardcodes DIR into the library
15106 # and all subsequent libraries and executables linked against it.
15107 hardcode_automatic=$hardcode_automatic_GCJ
15109 # Variables whose values should be saved in libtool wrapper scripts and
15110 # restored at relink time.
15111 variables_saved_for_relink="$variables_saved_for_relink"
15113 # Whether libtool must link a program against all its dependency libraries.
15114 link_all_deplibs=$link_all_deplibs_GCJ
15116 # Compile-time system search path for libraries
15117 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15119 # Run-time system search path for libraries
15120 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15122 # Fix the shell variable \$srcfile for the compiler.
15123 fix_srcfile_path="$fix_srcfile_path_GCJ"
15125 # Set to yes if exported symbols are required.
15126 always_export_symbols=$always_export_symbols_GCJ
15128 # The commands to list exported symbols.
15129 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
15131 # The commands to extract the exported symbol list from a shared archive.
15132 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15134 # Symbols that should not be listed in the preloaded symbols.
15135 exclude_expsyms=$lt_exclude_expsyms_GCJ
15137 # Symbols that must always be exported.
15138 include_expsyms=$lt_include_expsyms_GCJ
15140 # ### END LIBTOOL TAG CONFIG: $tagname
15146 # If there is no Makefile yet, we rely on a make rule to execute
15147 # `config.status --recheck' to rerun these tests and create the
15148 # libtool script then.
15149 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15150 if test -f "$ltmain_in"; then
15151 test -f Makefile
&& make "$ltmain"
15157 ac_cpp
='$CPP $CPPFLAGS'
15158 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15159 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15160 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15172 # Source file extension for RC test sources.
15175 # Object file extension for compiled RC test sources.
15179 # Code to be used in simple compile tests
15180 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
15182 # Code to be used in simple link tests
15183 lt_simple_link_test_code
="$lt_simple_compile_test_code"
15185 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15187 # If no C compiler was specified, use CC.
15190 # Allow CC to be a program name with arguments.
15194 # save warnings/boilerplate of simple test code
15195 ac_outfile
=conftest.
$ac_objext
15196 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
15197 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
15198 _lt_compiler_boilerplate
=`cat conftest.err`
15201 ac_outfile
=conftest.
$ac_objext
15202 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
15203 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
15204 _lt_linker_boilerplate
=`cat conftest.err`
15208 # Allow CC to be a program name with arguments.
15213 for cc_temp
in $compiler""; do
15215 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
15216 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
15221 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15223 lt_cv_prog_compiler_c_o_RC
=yes
15225 # The else clause should only fire when bootstrapping the
15226 # libtool distribution, otherwise you forgot to ship ltmain.sh
15227 # with your package, and you will get complaints that there are
15228 # no rules to generate ltmain.sh.
15229 if test -f "$ltmain"; then
15230 # See if we are running on zsh, and set the options which allow our commands through
15231 # without removal of \ escapes.
15232 if test -n "${ZSH_VERSION+set}" ; then
15233 setopt NO_GLOB_SUBST
15235 # Now quote all the things that may contain metacharacters while being
15236 # careful not to overquote the AC_SUBSTed values. We take copies of the
15237 # variables and quote the copies for generation of the libtool script.
15238 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15240 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15241 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15242 deplibs_check_method reload_flag reload_cmds need_locks \
15243 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15244 lt_cv_sys_global_symbol_to_c_name_address \
15245 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15246 old_postinstall_cmds old_postuninstall_cmds \
15250 lt_prog_compiler_wl_RC \
15251 lt_prog_compiler_pic_RC \
15252 lt_prog_compiler_static_RC \
15253 lt_prog_compiler_no_builtin_flag_RC \
15254 export_dynamic_flag_spec_RC \
15255 thread_safe_flag_spec_RC \
15256 whole_archive_flag_spec_RC \
15257 enable_shared_with_static_runtimes_RC \
15258 old_archive_cmds_RC \
15259 old_archive_from_new_cmds_RC \
15260 predep_objects_RC \
15261 postdep_objects_RC \
15264 compiler_lib_search_path_RC \
15266 archive_expsym_cmds_RC \
15267 postinstall_cmds_RC \
15268 postuninstall_cmds_RC \
15269 old_archive_from_expsyms_cmds_RC \
15270 allow_undefined_flag_RC \
15271 no_undefined_flag_RC \
15272 export_symbols_cmds_RC \
15273 hardcode_libdir_flag_spec_RC \
15274 hardcode_libdir_flag_spec_ld_RC \
15275 hardcode_libdir_separator_RC \
15276 hardcode_automatic_RC \
15278 module_expsym_cmds_RC \
15279 lt_cv_prog_compiler_c_o_RC \
15280 exclude_expsyms_RC \
15281 include_expsyms_RC
; do
15284 old_archive_cmds_RC | \
15285 old_archive_from_new_cmds_RC | \
15286 archive_cmds_RC | \
15287 archive_expsym_cmds_RC | \
15289 module_expsym_cmds_RC | \
15290 old_archive_from_expsyms_cmds_RC | \
15291 export_symbols_cmds_RC | \
15292 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15293 postinstall_cmds | postuninstall_cmds | \
15294 old_postinstall_cmds | old_postuninstall_cmds | \
15295 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15296 # Double-quote double-evaled strings.
15297 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15300 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15306 *'\$0 --fallback-echo"')
15307 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15313 cat <<__EOF__ >> "$cfgfile"
15314 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15316 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15318 # Shell to use when invoking shell scripts.
15321 # Whether or not to build shared libraries.
15322 build_libtool_libs=$enable_shared
15324 # Whether or not to build static libraries.
15325 build_old_libs=$enable_static
15327 # Whether or not to add -lc for building shared libraries.
15328 build_libtool_need_lc=$archive_cmds_need_lc_RC
15330 # Whether or not to disallow shared libs when runtime libs are static
15331 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
15333 # Whether or not to optimize for fast installation.
15334 fast_install=$enable_fast_install
15337 host_alias=$host_alias
15341 # The build system.
15342 build_alias=$build_alias
15346 # An echo program that does not interpret backslashes.
15351 AR_FLAGS=$lt_AR_FLAGS
15356 # A language-specific compiler.
15359 # Is the compiler the GNU C compiler?
15365 # The linker used to build libraries.
15368 # Whether we need hard or soft links.
15371 # A BSD-compatible nm program.
15374 # A symbol stripping program
15377 # Used to examine libraries when file_magic_cmd begins "file"
15378 MAGIC_CMD=$MAGIC_CMD
15380 # Used on cygwin: DLL creation program.
15383 # Used on cygwin: object dumper.
15386 # Used on cygwin: assembler.
15389 # The name of the directory that contains temporary libtool files.
15392 # How to create reloadable object files.
15393 reload_flag=$lt_reload_flag
15394 reload_cmds=$lt_reload_cmds
15396 # How to pass a linker flag through the compiler.
15397 wl=$lt_lt_prog_compiler_wl_RC
15399 # Object file suffix (normally "o").
15400 objext="$ac_objext"
15402 # Old archive suffix (normally "a").
15405 # Shared library suffix (normally ".so").
15406 shrext_cmds='$shrext_cmds'
15408 # Executable file suffix (normally "").
15411 # Additional compiler flags for building library objects.
15412 pic_flag=$lt_lt_prog_compiler_pic_RC
15415 # What is the maximum length of a command?
15416 max_cmd_len=$lt_cv_sys_max_cmd_len
15418 # Does compiler simultaneously support -c and -o options?
15419 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
15421 # Must we lock files when doing compilation?
15422 need_locks=$lt_need_locks
15424 # Do we need the lib prefix for modules?
15425 need_lib_prefix=$need_lib_prefix
15427 # Do we need a version for libraries?
15428 need_version=$need_version
15430 # Whether dlopen is supported.
15431 dlopen_support=$enable_dlopen
15433 # Whether dlopen of programs is supported.
15434 dlopen_self=$enable_dlopen_self
15436 # Whether dlopen of statically linked programs is supported.
15437 dlopen_self_static=$enable_dlopen_self_static
15439 # Compiler flag to prevent dynamic linking.
15440 link_static_flag=$lt_lt_prog_compiler_static_RC
15442 # Compiler flag to turn off builtin functions.
15443 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
15445 # Compiler flag to allow reflexive dlopens.
15446 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
15448 # Compiler flag to generate shared objects directly from archives.
15449 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
15451 # Compiler flag to generate thread-safe objects.
15452 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
15454 # Library versioning type.
15455 version_type=$version_type
15457 # Format of library name prefix.
15458 libname_spec=$lt_libname_spec
15460 # List of archive names. First name is the real one, the rest are links.
15461 # The last name is the one that the linker finds with -lNAME.
15462 library_names_spec=$lt_library_names_spec
15464 # The coded name of the library, if different from the real name.
15465 soname_spec=$lt_soname_spec
15467 # Commands used to build and install an old-style archive.
15469 old_archive_cmds=$lt_old_archive_cmds_RC
15470 old_postinstall_cmds=$lt_old_postinstall_cmds
15471 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15473 # Create an old-style archive from a shared archive.
15474 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
15476 # Create a temporary old-style archive to link instead of a shared archive.
15477 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
15479 # Commands used to build and install a shared archive.
15480 archive_cmds=$lt_archive_cmds_RC
15481 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
15482 postinstall_cmds=$lt_postinstall_cmds
15483 postuninstall_cmds=$lt_postuninstall_cmds
15485 # Commands used to build a loadable module (assumed same as above if empty)
15486 module_cmds=$lt_module_cmds_RC
15487 module_expsym_cmds=$lt_module_expsym_cmds_RC
15489 # Commands to strip libraries.
15490 old_striplib=$lt_old_striplib
15491 striplib=$lt_striplib
15493 # Dependencies to place before the objects being linked to create a
15495 predep_objects=$lt_predep_objects_RC
15497 # Dependencies to place after the objects being linked to create a
15499 postdep_objects=$lt_postdep_objects_RC
15501 # Dependencies to place before the objects being linked to create a
15503 predeps=$lt_predeps_RC
15505 # Dependencies to place after the objects being linked to create a
15507 postdeps=$lt_postdeps_RC
15509 # The library search path used internally by the compiler when linking
15510 # a shared library.
15511 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
15513 # Method to check whether dependent libraries are shared objects.
15514 deplibs_check_method=$lt_deplibs_check_method
15516 # Command to use when deplibs_check_method == file_magic.
15517 file_magic_cmd=$lt_file_magic_cmd
15519 # Flag that allows shared libraries with undefined symbols to be built.
15520 allow_undefined_flag=$lt_allow_undefined_flag_RC
15522 # Flag that forces no undefined symbols.
15523 no_undefined_flag=$lt_no_undefined_flag_RC
15525 # Commands used to finish a libtool library installation in a directory.
15526 finish_cmds=$lt_finish_cmds
15528 # Same as above, but a single script fragment to be evaled but not shown.
15529 finish_eval=$lt_finish_eval
15531 # Take the output of nm and produce a listing of raw symbols and C names.
15532 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15534 # Transform the output of nm in a proper C declaration
15535 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15537 # Transform the output of nm in a C name address pair
15538 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15540 # This is the shared library runtime path variable.
15541 runpath_var=$runpath_var
15543 # This is the shared library path variable.
15544 shlibpath_var=$shlibpath_var
15546 # Is shlibpath searched before the hard-coded library search path?
15547 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15549 # How to hardcode a shared library path into an executable.
15550 hardcode_action=$hardcode_action_RC
15552 # Whether we should hardcode library paths into libraries.
15553 hardcode_into_libs=$hardcode_into_libs
15555 # Flag to hardcode \$libdir into a binary during linking.
15556 # This must work even if \$libdir does not exist.
15557 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
15559 # If ld is used when linking, flag to hardcode \$libdir into
15560 # a binary during linking. This must work even if \$libdir does
15562 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
15564 # Whether we need a single -rpath flag with a separated argument.
15565 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
15567 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15568 # resulting binary.
15569 hardcode_direct=$hardcode_direct_RC
15571 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15572 # resulting binary.
15573 hardcode_minus_L=$hardcode_minus_L_RC
15575 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15576 # the resulting binary.
15577 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
15579 # Set to yes if building a shared library automatically hardcodes DIR into the library
15580 # and all subsequent libraries and executables linked against it.
15581 hardcode_automatic=$hardcode_automatic_RC
15583 # Variables whose values should be saved in libtool wrapper scripts and
15584 # restored at relink time.
15585 variables_saved_for_relink="$variables_saved_for_relink"
15587 # Whether libtool must link a program against all its dependency libraries.
15588 link_all_deplibs=$link_all_deplibs_RC
15590 # Compile-time system search path for libraries
15591 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15593 # Run-time system search path for libraries
15594 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15596 # Fix the shell variable \$srcfile for the compiler.
15597 fix_srcfile_path="$fix_srcfile_path_RC"
15599 # Set to yes if exported symbols are required.
15600 always_export_symbols=$always_export_symbols_RC
15602 # The commands to list exported symbols.
15603 export_symbols_cmds=$lt_export_symbols_cmds_RC
15605 # The commands to extract the exported symbol list from a shared archive.
15606 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15608 # Symbols that should not be listed in the preloaded symbols.
15609 exclude_expsyms=$lt_exclude_expsyms_RC
15611 # Symbols that must always be exported.
15612 include_expsyms=$lt_include_expsyms_RC
15614 # ### END LIBTOOL TAG CONFIG: $tagname
15620 # If there is no Makefile yet, we rely on a make rule to execute
15621 # `config.status --recheck' to rerun these tests and create the
15622 # libtool script then.
15623 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15624 if test -f "$ltmain_in"; then
15625 test -f Makefile
&& make "$ltmain"
15631 ac_cpp
='$CPP $CPPFLAGS'
15632 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15633 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15634 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15641 as_fn_error
"Unsupported tag name: $tagname" "$LINENO" 5
15645 # Append the new tag name to the list of available tags.
15646 if test -n "$tagname" ; then
15647 available_tags
="$available_tags $tagname"
15653 # Now substitute the updated list of available tags.
15654 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
15655 mv "${ofile}T" "$ofile"
15659 as_fn_error
"unable to update list of available tagged configurations." "$LINENO" 5
15665 # This can be used to rebuild libtool when needed
15666 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
15668 # Always use our own libtool.
15669 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
15671 # Prevent multiple expansion
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
15683 $as_echo_n "checking for directory path separator... " >&6; }
15684 if test "${ac_cv_dir_sep+set}" = set; then :
15685 $as_echo_n "(cached) " >&6
15688 case "$ac_cv_dir_sep" in
15690 case "$target_os" in
15691 *djgpp |
*mingw32
* |
*emx
*) ac_cv_dir_sep
="'\\'" ;;
15692 *) ac_cv_dir_sep
="'/'" ;;
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dir_sep" >&5
15699 $as_echo "$ac_cv_dir_sep" >&6; }
15701 cat >>confdefs.h
<<_ACEOF
15702 #define DIR_SEP $ac_cv_dir_sep
15706 # Checks for libraries.
15708 ac_fn_c_check_func
"$LINENO" "gethostent" "ac_cv_func_gethostent"
15709 if test "x$ac_cv_func_gethostent" = x
""yes; then :
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
15713 $as_echo_n "checking for library containing gethostent... " >&6; }
15714 if test "${ac_cv_search_gethostent+set}" = set; then :
15715 $as_echo_n "(cached) " >&6
15717 ac_func_search_save_LIBS
=$LIBS
15718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15719 /* end confdefs.h. */
15721 /* Override any GCC internal prototype to avoid an error.
15722 Use char because int might match the return type of a GCC
15723 builtin and then its argument prototype would still apply. */
15727 char gethostent ();
15731 return gethostent ();
15736 for ac_lib
in '' nsl
; do
15737 if test -z "$ac_lib"; then
15738 ac_res
="none required"
15741 LIBS
="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
15743 if ac_fn_c_try_link
"$LINENO"; then :
15744 ac_cv_search_gethostent
=$ac_res
15746 rm -f core conftest.err conftest.
$ac_objext \
15748 if test "${ac_cv_search_gethostent+set}" = set; then :
15752 if test "${ac_cv_search_gethostent+set}" = set; then :
15755 ac_cv_search_gethostent
=no
15757 rm conftest.
$ac_ext
15758 LIBS
=$ac_func_search_save_LIBS
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
15761 $as_echo "$ac_cv_search_gethostent" >&6; }
15762 ac_res
=$ac_cv_search_gethostent
15763 if test "$ac_res" != no
; then :
15764 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15770 ac_fn_c_check_func
"$LINENO" "openlog" "ac_cv_func_openlog"
15771 if test "x$ac_cv_func_openlog" = x
""yes; then :
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
15775 $as_echo_n "checking for library containing openlog... " >&6; }
15776 if test "${ac_cv_search_openlog+set}" = set; then :
15777 $as_echo_n "(cached) " >&6
15779 ac_func_search_save_LIBS
=$LIBS
15780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15781 /* end confdefs.h. */
15783 /* Override any GCC internal prototype to avoid an error.
15784 Use char because int might match the return type of a GCC
15785 builtin and then its argument prototype would still apply. */
15798 for ac_lib
in '' gen
; do
15799 if test -z "$ac_lib"; then
15800 ac_res
="none required"
15803 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15805 if ac_fn_c_try_link
"$LINENO"; then :
15806 ac_cv_search_openlog
=$ac_res
15808 rm -f core conftest.err conftest.
$ac_objext \
15810 if test "${ac_cv_search_openlog+set}" = set; then :
15814 if test "${ac_cv_search_openlog+set}" = set; then :
15817 ac_cv_search_openlog
=no
15819 rm conftest.
$ac_ext
15820 LIBS
=$ac_func_search_save_LIBS
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
15823 $as_echo "$ac_cv_search_openlog" >&6; }
15824 ac_res
=$ac_cv_search_openlog
15825 if test "$ac_res" != no
; then :
15826 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
15830 $as_echo_n "checking for library containing openlog... " >&6; }
15831 if test "${ac_cv_search_openlog+set}" = set; then :
15832 $as_echo_n "(cached) " >&6
15834 ac_func_search_save_LIBS
=$LIBS
15835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15836 /* end confdefs.h. */
15838 /* Override any GCC internal prototype to avoid an error.
15839 Use char because int might match the return type of a GCC
15840 builtin and then its argument prototype would still apply. */
15853 for ac_lib
in '' syslog
; do
15854 if test -z "$ac_lib"; then
15855 ac_res
="none required"
15858 LIBS
="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
15860 if ac_fn_c_try_link
"$LINENO"; then :
15861 ac_cv_search_openlog
=$ac_res
15863 rm -f core conftest.err conftest.
$ac_objext \
15865 if test "${ac_cv_search_openlog+set}" = set; then :
15869 if test "${ac_cv_search_openlog+set}" = set; then :
15872 ac_cv_search_openlog
=no
15874 rm conftest.
$ac_ext
15875 LIBS
=$ac_func_search_save_LIBS
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
15878 $as_echo "$ac_cv_search_openlog" >&6; }
15879 ac_res
=$ac_cv_search_openlog
15880 if test "$ac_res" != no
; then :
15881 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
15891 $as_echo_n "checking for library containing setsockopt... " >&6; }
15892 if test "${ac_cv_search_setsockopt+set}" = set; then :
15893 $as_echo_n "(cached) " >&6
15895 ac_func_search_save_LIBS
=$LIBS
15896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15897 /* end confdefs.h. */
15899 /* Override any GCC internal prototype to avoid an error.
15900 Use char because int might match the return type of a GCC
15901 builtin and then its argument prototype would still apply. */
15905 char setsockopt ();
15909 return setsockopt ();
15914 for ac_lib
in '' socket xnet
; do
15915 if test -z "$ac_lib"; then
15916 ac_res
="none required"
15919 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15921 if ac_fn_c_try_link
"$LINENO"; then :
15922 ac_cv_search_setsockopt
=$ac_res
15924 rm -f core conftest.err conftest.
$ac_objext \
15926 if test "${ac_cv_search_setsockopt+set}" = set; then :
15930 if test "${ac_cv_search_setsockopt+set}" = set; then :
15933 ac_cv_search_setsockopt
=no
15935 rm conftest.
$ac_ext
15936 LIBS
=$ac_func_search_save_LIBS
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
15939 $as_echo "$ac_cv_search_setsockopt" >&6; }
15940 ac_res
=$ac_cv_search_setsockopt
15941 if test "$ac_res" != no
; then :
15942 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15947 # Checks for header files.
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15949 $as_echo_n "checking for ANSI C header files... " >&6; }
15950 if test "${ac_cv_header_stdc+set}" = set; then :
15951 $as_echo_n "(cached) " >&6
15953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h. */
15955 #include <stdlib.h>
15956 #include <stdarg.h>
15957 #include <string.h>
15968 if ac_fn_c_try_compile
"$LINENO"; then :
15969 ac_cv_header_stdc
=yes
15971 ac_cv_header_stdc
=no
15973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15975 if test $ac_cv_header_stdc = yes; then
15976 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15978 /* end confdefs.h. */
15979 #include <string.h>
15982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15983 $EGREP "memchr" >/dev
/null
2>&1; then :
15986 ac_cv_header_stdc
=no
15992 if test $ac_cv_header_stdc = yes; then
15993 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15995 /* end confdefs.h. */
15996 #include <stdlib.h>
15999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16000 $EGREP "free" >/dev
/null
2>&1; then :
16003 ac_cv_header_stdc
=no
16009 if test $ac_cv_header_stdc = yes; then
16010 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16011 if test "$cross_compiling" = yes; then :
16014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16015 /* end confdefs.h. */
16017 #include <stdlib.h>
16018 #if ((' ' & 0x0FF) == 0x020)
16019 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16020 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16022 # define ISLOWER(c) \
16023 (('a' <= (c) && (c) <= 'i') \
16024 || ('j' <= (c) && (c) <= 'r') \
16025 || ('s' <= (c) && (c) <= 'z'))
16026 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16029 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16034 for (i = 0; i < 256; i++)
16035 if (XOR (islower (i), ISLOWER (i))
16036 || toupper (i) != TOUPPER (i))
16041 if ac_fn_c_try_run
"$LINENO"; then :
16044 ac_cv_header_stdc
=no
16046 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16047 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16053 $as_echo "$ac_cv_header_stdc" >&6; }
16054 if test $ac_cv_header_stdc = yes; then
16056 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16060 for ac_header
in netdb.h netinet
/in.h stdlib.h string.h
strings.h syslog.h
16062 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16063 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16064 eval as_val
=\$
$as_ac_Header
16065 if test "x$as_val" = x
""yes; then :
16066 cat >>confdefs.h
<<_ACEOF
16067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16074 for ac_header
in sys
/socket.h sys
/time.h
16076 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16077 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16078 eval as_val
=\$
$as_ac_Header
16079 if test "x$as_val" = x
""yes; then :
16080 cat >>confdefs.h
<<_ACEOF
16081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16089 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16090 if test "${ac_cv_header_time+set}" = set; then :
16091 $as_echo_n "(cached) " >&6
16093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16094 /* end confdefs.h. */
16095 #include <sys/types.h>
16096 #include <sys/time.h>
16102 if ((struct tm *) 0)
16108 if ac_fn_c_try_compile
"$LINENO"; then :
16109 ac_cv_header_time
=yes
16111 ac_cv_header_time
=no
16113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16116 $as_echo "$ac_cv_header_time" >&6; }
16117 if test $ac_cv_header_time = yes; then
16119 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16124 # Checks for typedefs, structures, and compiler characteristics.
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16126 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16127 if test "${ac_cv_header_stdbool_h+set}" = set; then :
16128 $as_echo_n "(cached) " >&6
16130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16131 /* end confdefs.h. */
16133 #include <stdbool.h>
16135 "error: bool is not defined"
16138 "error: false is not defined"
16141 "error: false is not 0"
16144 "error: true is not defined"
16147 "error: true is not 1"
16149 #ifndef __bool_true_false_are_defined
16150 "error: __bool_true_false_are_defined is not defined"
16153 struct s { _Bool s: 1; _Bool t; } s;
16155 char a[true == 1 ? 1 : -1];
16156 char b[false == 0 ? 1 : -1];
16157 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16158 char d[(bool) 0.5 == true ? 1 : -1];
16160 char f[(_Bool) 0.0 == false ? 1 : -1];
16162 char h[sizeof (_Bool)];
16163 char i[sizeof s.t];
16164 enum { j = false, k = true, l = false * true, m = true * 256 };
16165 /* The following fails for
16166 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16168 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16169 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16170 # if defined __xlc__ || defined __GNUC__
16171 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
16172 reported by James Lemley on 2005-10-05; see
16173 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
16174 This test is not quite right, since xlc is allowed to
16175 reject this program, as the initializer for xlcbug is
16176 not one of the forms that C requires support for.
16177 However, doing the test right would require a runtime
16178 test, and that would make cross-compilation harder.
16179 Let us hope that IBM fixes the xlc bug, and also adds
16180 support for this kind of constant expression. In the
16181 meantime, this test will reject xlc, which is OK, since
16182 our stdbool.h substitute should suffice. We also test
16183 this with GCC, where it should work, to detect more
16184 quickly whether someone messes up the test in the
16186 char digs[] = "0123456789";
16187 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
16189 /* Catch a bug in an HP-UX C compiler. See
16190 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16191 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16202 /* Refer to every declared value, to avoid compiler optimizations. */
16203 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16204 + !m + !n + !o + !p + !q + !pq);
16210 if ac_fn_c_try_compile
"$LINENO"; then :
16211 ac_cv_header_stdbool_h
=yes
16213 ac_cv_header_stdbool_h
=no
16215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16218 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16219 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16220 if test "x$ac_cv_type__Bool" = x
""yes; then :
16222 cat >>confdefs.h
<<_ACEOF
16223 #define HAVE__BOOL 1
16229 if test $ac_cv_header_stdbool_h = yes; then
16231 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16236 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16237 if test "${ac_cv_c_const+set}" = set; then :
16238 $as_echo_n "(cached) " >&6
16240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16246 /* FIXME: Include the comments suggested by Paul. */
16247 #ifndef __cplusplus
16248 /* Ultrix mips cc rejects this. */
16249 typedef int charset[2];
16251 /* SunOS 4.1.1 cc rejects this. */
16252 char const *const *pcpcc;
16254 /* NEC SVR4.0.2 mips cc rejects this. */
16255 struct point {int x, y;};
16256 static struct point const zero = {0,0};
16257 /* AIX XL C 1.02.0.0 rejects this.
16258 It does not let you subtract one const X* pointer from another in
16259 an arm of an if-expression whose if-part is not a constant
16261 const char *g = "string";
16262 pcpcc = &g + (g ? g-g : 0);
16263 /* HPUX 7.0 cc rejects these. */
16265 ppc = (char**) pcpcc;
16266 pcpcc = (char const *const *) ppc;
16267 { /* SCO 3.2v4 cc rejects this. */
16269 char const *s = 0 ? (char *) 0 : (char const *) 0;
16274 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16275 int x[] = {25, 17};
16276 const int *foo = &x[0];
16279 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16280 typedef const int *iptr;
16284 { /* AIX XL C 1.02.0.0 rejects this saying
16285 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16286 struct s { int j; const int *ap[3]; };
16287 struct s *b; b->j = 5;
16289 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16290 const int foo = 10;
16291 if (!foo) return 0;
16293 return !cs[0] && !zero.x;
16300 if ac_fn_c_try_compile
"$LINENO"; then :
16305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16308 $as_echo "$ac_cv_c_const" >&6; }
16309 if test $ac_cv_c_const = no
; then
16311 $as_echo "#define const /**/" >>confdefs.h
16315 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16316 if test "x$ac_cv_type_size_t" = x
""yes; then :
16320 cat >>confdefs.h
<<_ACEOF
16321 #define size_t unsigned int
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16328 $as_echo_n "checking for inline... " >&6; }
16329 if test "${ac_cv_c_inline+set}" = set; then :
16330 $as_echo_n "(cached) " >&6
16333 for ac_kw
in inline __inline__ __inline
; do
16334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16335 /* end confdefs.h. */
16336 #ifndef __cplusplus
16338 static $ac_kw foo_t static_foo () {return 0; }
16339 $ac_kw foo_t foo () {return 0; }
16343 if ac_fn_c_try_compile
"$LINENO"; then :
16344 ac_cv_c_inline
=$ac_kw
16346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16347 test "$ac_cv_c_inline" != no
&& break
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16352 $as_echo "$ac_cv_c_inline" >&6; }
16354 case $ac_cv_c_inline in
16357 case $ac_cv_c_inline in
16359 *) ac_val
=$ac_cv_c_inline;;
16361 cat >>confdefs.h
<<_ACEOF
16362 #ifndef __cplusplus
16363 #define inline $ac_val
16370 case "$ac_cv_c_inline" in
16375 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
16381 $as_echo_n "checking whether char is unsigned... " >&6; }
16382 if test "${ac_cv_c_char_unsigned+set}" = set; then :
16383 $as_echo_n "(cached) " >&6
16385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h. */
16387 $ac_includes_default
16391 static int test_array [1 - 2 * !(((char) -1) < 0)];
16398 if ac_fn_c_try_compile
"$LINENO"; then :
16399 ac_cv_c_char_unsigned
=no
16401 ac_cv_c_char_unsigned
=yes
16403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
16406 $as_echo "$ac_cv_c_char_unsigned" >&6; }
16407 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
16408 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
16411 # The cast to long int works around a bug in the HP C Compiler
16412 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16413 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16414 # This bug is HP SR number 8606223364.
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
16416 $as_echo_n "checking size of signed char... " >&6; }
16417 if test "${ac_cv_sizeof_signed_char+set}" = set; then :
16418 $as_echo_n "(cached) " >&6
16420 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
16423 if test "$ac_cv_type_signed_char" = yes; then
16424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16426 { as_fn_set_status
77
16427 as_fn_error
"cannot compute sizeof (signed char)
16428 See \`config.log' for more details." "$LINENO" 5; }; }
16430 ac_cv_sizeof_signed_char
=0
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
16436 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
16440 cat >>confdefs.h
<<_ACEOF
16441 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
16445 # The cast to long int works around a bug in the HP C Compiler
16446 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16447 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16448 # This bug is HP SR number 8606223364.
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16450 $as_echo_n "checking size of int... " >&6; }
16451 if test "${ac_cv_sizeof_int+set}" = set; then :
16452 $as_echo_n "(cached) " >&6
16454 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16457 if test "$ac_cv_type_int" = yes; then
16458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16460 { as_fn_set_status
77
16461 as_fn_error
"cannot compute sizeof (int)
16462 See \`config.log' for more details." "$LINENO" 5; }; }
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16470 $as_echo "$ac_cv_sizeof_int" >&6; }
16474 cat >>confdefs.h
<<_ACEOF
16475 #define SIZEOF_INT $ac_cv_sizeof_int
16479 # The cast to long int works around a bug in the HP C Compiler
16480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16482 # This bug is HP SR number 8606223364.
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16484 $as_echo_n "checking size of long... " >&6; }
16485 if test "${ac_cv_sizeof_long+set}" = set; then :
16486 $as_echo_n "(cached) " >&6
16488 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16491 if test "$ac_cv_type_long" = yes; then
16492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16494 { as_fn_set_status
77
16495 as_fn_error
"cannot compute sizeof (long)
16496 See \`config.log' for more details." "$LINENO" 5; }; }
16498 ac_cv_sizeof_long
=0
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16504 $as_echo "$ac_cv_sizeof_long" >&6; }
16508 cat >>confdefs.h
<<_ACEOF
16509 #define SIZEOF_LONG $ac_cv_sizeof_long
16514 ac_fn_c_check_type
"$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
16515 if test "x$ac_cv_type_s_char" = x
""yes; then :
16517 cat >>confdefs.h
<<_ACEOF
16518 #define HAVE_S_CHAR 1
16524 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
16526 # We have a typedef for s_char. Might as well believe it...
16529 # We have signed chars, can't say 'signed char', no s_char typedef.
16531 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
16535 # We have signed chars, can say 'signed char', no s_char typedef.
16536 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
16540 # We have unsigned chars, can't say 'signed char', no s_char typedef.
16541 as_fn_error
"No way to specify a signed character!" "$LINENO" 5
16544 # We have unsigned chars, can say 'signed char', no s_char typedef.
16545 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
16550 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
16551 if test "${ac_cv_type_uid_t+set}" = set; then :
16552 $as_echo_n "(cached) " >&6
16554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16555 /* end confdefs.h. */
16556 #include <sys/types.h>
16559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16560 $EGREP "uid_t" >/dev
/null
2>&1; then :
16561 ac_cv_type_uid_t
=yes
16563 ac_cv_type_uid_t
=no
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16569 $as_echo "$ac_cv_type_uid_t" >&6; }
16570 if test $ac_cv_type_uid_t = no
; then
16572 $as_echo "#define uid_t int" >>confdefs.h
16575 $as_echo "#define gid_t int" >>confdefs.h
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
16581 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
16582 if test "${ac_cv_func_getsockname_arg2+set}" = set; then :
16583 $as_echo_n "(cached) " >&6
16585 if test "${ac_cv_func_getsockname_socklen_type+set}" = set; then :
16586 $as_echo_n "(cached) " >&6
16588 for ac_cv_func_getsockname_arg2
in 'struct sockaddr *' 'void *'; do
16589 for ac_cv_func_getsockname_socklen_type
in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
16590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16591 /* end confdefs.h. */
16592 #ifdef HAVE_SYS_TYPES_H
16593 #include <sys/types.h>
16595 #ifdef HAVE_SYS_SOCKET_H
16596 #include <sys/socket.h>
16598 extern getsockname (int, $ac_cv_func_getsockname_arg2, $ac_cv_func_getsockname_socklen_type *);
16607 if ac_fn_c_try_compile
"$LINENO"; then :
16608 ac_not_found
=no
; break 2
16612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16619 if test "$ac_not_found" = yes; then
16620 ac_cv_func_getsockname_socklen_type
='socklen_t'
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname_socklen_type" >&5
16623 $as_echo "$ac_cv_func_getsockname_socklen_type" >&6; }
16625 cat >>confdefs.h
<<_ACEOF
16626 #define GETSOCKNAME_SOCKLEN_TYPE $ac_cv_func_getsockname_socklen_type
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
16631 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16632 if test "${ntp_cv_sockaddr_storage+set}" = set; then :
16633 $as_echo_n "(cached) " >&6
16636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16637 /* end confdefs.h. */
16639 #ifdef HAVE_SYS_TYPES_H
16640 # include <sys/types.h>
16642 #ifdef HAVE_SYS_SOCKET_H
16643 # include <sys/socket.h>
16645 #ifdef HAVE_NETINET_IN_H
16646 # include <netinet/in.h>
16653 struct sockaddr_storage n;
16659 if ac_fn_c_try_compile
"$LINENO"; then :
16660 ntp_cv_sockaddr_storage
="yes"
16662 ntp_cv_sockaddr_storage
="no"
16665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
16670 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
16671 case "$ntp_cv_sockaddr_storage" in
16674 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_family" >&5
16679 $as_echo_n "checking for sockaddr_storage.ss_family... " >&6; }
16680 if test "${ntp_cv_have_ss_family+set}" = set; then :
16681 $as_echo_n "(cached) " >&6
16684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16685 /* end confdefs.h. */
16687 #ifdef HAVE_SYS_TYPES_H
16688 # include <sys/types.h>
16690 #ifdef HAVE_SYS_SOCKET_H
16691 # include <sys/socket.h>
16693 #ifdef HAVE_NETINET_IN_H
16694 # include <netinet/in.h>
16701 struct sockaddr_storage s;
16708 if ac_fn_c_try_compile
"$LINENO"; then :
16709 ntp_cv_have_ss_family
="yes"
16711 ntp_cv_have_ss_family
="no"
16714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_family" >&5
16719 $as_echo "$ntp_cv_have_ss_family" >&6; }
16721 case "$ntp_cv_have_ss_family" in
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
16724 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
16725 if test "${ntp_cv_have___ss_family+set}" = set; then :
16726 $as_echo_n "(cached) " >&6
16729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16730 /* end confdefs.h. */
16732 #ifdef HAVE_SYS_TYPES_H
16733 # include <sys/types.h>
16735 #ifdef HAVE_SYS_SOCKET_H
16736 # include <sys/socket.h>
16738 #ifdef HAVE_NETINET_IN_H
16739 # include <netinet/in.h>
16746 struct sockaddr_storage s;
16753 if ac_fn_c_try_compile
"$LINENO"; then :
16754 ntp_cv_have___ss_family
="yes"
16756 ntp_cv_have___ss_family
="no"
16759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
16764 $as_echo "$ntp_cv_have___ss_family" >&6; }
16765 case "$ntp_cv_have___ss_family" in
16768 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_len" >&5
16776 $as_echo_n "checking for sockaddr_storage.ss_len... " >&6; }
16777 if test "${ntp_cv_have_ss_len+set}" = set; then :
16778 $as_echo_n "(cached) " >&6
16781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16782 /* end confdefs.h. */
16784 #ifdef HAVE_SYS_TYPES_H
16785 # include <sys/types.h>
16787 #ifdef HAVE_SYS_SOCKET_H
16788 # include <sys/socket.h>
16790 #ifdef HAVE_NETINET_IN_H
16791 # include <netinet/in.h>
16798 struct sockaddr_storage s;
16805 if ac_fn_c_try_compile
"$LINENO"; then :
16806 ntp_cv_have_ss_len
="yes"
16808 ntp_cv_have_ss_len
="no"
16811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_len" >&5
16816 $as_echo "$ntp_cv_have_ss_len" >&6; }
16818 case "$ntp_cv_have_ss_len" in
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_len" >&5
16821 $as_echo_n "checking for sockaddr_storage.__ss_len... " >&6; }
16822 if test "${ntp_cv_have___ss_len+set}" = set; then :
16823 $as_echo_n "(cached) " >&6
16826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16827 /* end confdefs.h. */
16829 #ifdef HAVE_SYS_TYPES_H
16830 # include <sys/types.h>
16832 #ifdef HAVE_SYS_SOCKET_H
16833 # include <sys/socket.h>
16835 #ifdef HAVE_NETINET_IN_H
16836 # include <netinet/in.h>
16843 struct sockaddr_storage s;
16850 if ac_fn_c_try_compile
"$LINENO"; then :
16851 ntp_cv_have___ss_len
="yes"
16853 ntp_cv_have___ss_len
="no"
16856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_len" >&5
16861 $as_echo "$ntp_cv_have___ss_len" >&6; }
16862 case "$ntp_cv_have___ss_len" in
16865 $as_echo "#define HAVE___SS_LEN_IN_SS 1" >>confdefs.h
16873 # Look for in_port_t.
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
16876 $as_echo_n "checking for in_port_t... " >&6; }
16877 if test "${isc_cv_have_in_port_t+set}" = set; then :
16878 $as_echo_n "(cached) " >&6
16881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16882 /* end confdefs.h. */
16884 #include <sys/types.h>
16885 #include <netinet/in.h>
16891 in_port_t port = 25;
16898 if ac_fn_c_try_compile
"$LINENO"; then :
16899 isc_cv_have_in_port_t
=yes
16901 isc_cv_have_in_port_t
=no
16904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
16909 $as_echo "$isc_cv_have_in_port_t" >&6; }
16910 case "$isc_cv_have_in_port_t" in
16913 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
16918 $as_echo_n "checking for library containing inet_ntop... " >&6; }
16919 if test "${ac_cv_search_inet_ntop+set}" = set; then :
16920 $as_echo_n "(cached) " >&6
16922 ac_func_search_save_LIBS
=$LIBS
16923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16924 /* end confdefs.h. */
16926 /* Override any GCC internal prototype to avoid an error.
16927 Use char because int might match the return type of a GCC
16928 builtin and then its argument prototype would still apply. */
16936 return inet_ntop ();
16941 for ac_lib
in '' resolv
; do
16942 if test -z "$ac_lib"; then
16943 ac_res
="none required"
16946 LIBS
="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS"
16948 if ac_fn_c_try_link
"$LINENO"; then :
16949 ac_cv_search_inet_ntop
=$ac_res
16951 rm -f core conftest.err conftest.
$ac_objext \
16953 if test "${ac_cv_search_inet_ntop+set}" = set; then :
16957 if test "${ac_cv_search_inet_ntop+set}" = set; then :
16960 ac_cv_search_inet_ntop
=no
16962 rm conftest.
$ac_ext
16963 LIBS
=$ac_func_search_save_LIBS
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
16966 $as_echo "$ac_cv_search_inet_ntop" >&6; }
16967 ac_res
=$ac_cv_search_inet_ntop
16968 if test "$ac_res" != no
; then :
16969 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16973 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
16974 if test "x$ac_cv_func_inet_ntop" = x
""yes; then :
16978 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
16982 ac_fn_c_check_func
"$LINENO" "inet_pton" "ac_cv_func_inet_pton"
16983 if test "x$ac_cv_func_inet_pton" = x
""yes; then :
16987 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
16992 # Check whether --enable-ipv6 was given.
16993 if test "${enable_ipv6+set}" = set; then :
16994 enableval
=$enable_ipv6;
16998 case "$enable_ipv6" in
17001 powerpc-ibm-aix4
*) ;;
17004 $as_echo "#define WANT_IPV6 /**/" >>confdefs.h
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
17014 $as_echo_n "checking for IPv6 structures... " >&6; }
17015 if test "${ac_cv_isc_found_ipv6+set}" = set; then :
17016 $as_echo_n "(cached) " >&6
17019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17020 /* end confdefs.h. */
17023 #include <sys/types.h>
17024 #include <sys/socket.h>
17025 #include <netinet/in.h>
17031 struct sockaddr_in6 sin6;
17039 if ac_fn_c_try_compile
"$LINENO"; then :
17040 ac_cv_isc_found_ipv6
=yes
17042 ac_cv_isc_found_ipv6
=no
17045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_found_ipv6" >&5
17050 $as_echo "$ac_cv_isc_found_ipv6" >&6; }
17053 # See whether IPv6 support is provided via a Kame add-on.
17054 # This is done before other IPv6 linking tests so LIBS is properly set.
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
17057 $as_echo_n "checking for Kame IPv6 support... " >&6; }
17059 # Check whether --with-kame was given.
17060 if test "${with_kame+set}" = set; then :
17061 withval
=$with_kame; use_kame
="$withval"
17067 case "$use_kame" in
17071 kame_path
=/usr
/local
/v6
17074 kame_path
="$use_kame"
17078 case "$use_kame" in
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17081 $as_echo "no" >&6; }
17084 if test -f $kame_path/lib
/libinet6.a
; then
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
17086 $as_echo "$kame_path/lib/libinet6.a" >&6; }
17087 LIBS
="-L$kame_path/lib -linet6 $LIBS"
17089 as_fn_error
"$kame_path/lib/libinet6.a not found.
17091 Please choose the proper path with the following command:
17093 configure --with-kame=PATH
17100 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
17101 # Including it on Kame-using platforms is very bad, though, because
17102 # Kame uses #error against direct inclusion. So include it on only
17103 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
17104 # This is done before the in6_pktinfo check because that's what
17105 # netinet6/in6.h is needed for.
17110 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
17112 # does anything use LWRES_PLATFORM_NEEDNETINET6IN6H? Can't it use above?
17114 $as_echo "#define LWRES_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
17116 isc_netinet6in6_hack
="#include <netinet6/in6.h>"
17119 isc_netinet6in6_hack
=""
17123 # This is similar to the netinet6/in6.h issue.
17126 *-sco-sysv*uw
*|
*-*-sysv*UnixWare
*|
*-*-sysv*OpenUNIX
*)
17128 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
17130 isc_netinetin6_hack
="#include <netinet/in6.h>"
17133 isc_netinetin6_hack
=""
17137 case "$ac_cv_isc_found_ipv6" in
17140 $as_echo "#define ISC_PLATFORM_HAVEIPV6 /**/" >>confdefs.h
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
17144 $as_echo_n "checking for in6_pktinfo... " >&6; }
17145 if test "${ac_cv_have_in6_pktinfo+set}" = set; then :
17146 $as_echo_n "(cached) " >&6
17149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17150 /* end confdefs.h. */
17153 #include <sys/types.h>
17154 #include <sys/socket.h>
17155 #include <netinet/in.h>
17156 $isc_netinetin6_hack
17157 $isc_netinet6in6_hack
17163 struct in6_pktinfo xyzzy;
17171 if ac_fn_c_try_compile
"$LINENO"; then :
17172 ac_cv_have_in6_pktinfo
=yes
17174 ac_cv_have_in6_pktinfo
=no
17177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_in6_pktinfo" >&5
17182 $as_echo "$ac_cv_have_in6_pktinfo" >&6; }
17184 case "$ac_cv_have_in6_pktinfo" in
17187 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO /**/" >>confdefs.h
17192 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
17194 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
17195 if test "${ac_cv_have_sin6_scope_id+set}" = set; then :
17196 $as_echo_n "(cached) " >&6
17199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17200 /* end confdefs.h. */
17203 #include <sys/types.h>
17204 #include <sys/socket.h>
17205 #include <netinet/in.h>
17206 $isc_netinetin6_hack
17207 $isc_netinet6in6_hack
17213 struct sockaddr_in6 xyzzy;
17214 xyzzy.sin6_scope_id = 0;
17222 if ac_fn_c_try_compile
"$LINENO"; then :
17223 ac_cv_have_sin6_scope_id
=yes
17225 ac_cv_have_sin6_scope_id
=no
17228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sin6_scope_id" >&5
17233 $as_echo "$ac_cv_have_sin6_scope_id" >&6; }
17235 case "$ac_cv_have_sin6_scope_id" in
17238 $as_echo "#define ISC_PLATFORM_HAVESCOPEID /**/" >>confdefs.h
17244 # We need this check run even without ac_cv_isc_found_ipv6=yes
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
17247 $as_echo_n "checking for in6addr_any... " >&6; }
17248 if test "${isc_cv_have_in6addr_any+set}" = set; then :
17249 $as_echo_n "(cached) " >&6
17252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17253 /* end confdefs.h. */
17256 #include <sys/types.h>
17257 #include <sys/socket.h>
17258 #include <netinet/in.h>
17259 $isc_netinetin6_hack
17260 $isc_netinet6in6_hack
17266 struct in6_addr in6;
17275 if ac_fn_c_try_link
"$LINENO"; then :
17276 isc_cv_have_in6addr_any
=yes
17278 isc_cv_have_in6addr_any
=no
17281 rm -f core conftest.err conftest.
$ac_objext \
17282 conftest
$ac_exeext conftest.
$ac_ext
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6addr_any" >&5
17287 $as_echo "$isc_cv_have_in6addr_any" >&6; }
17289 case "$isc_cv_have_in6addr_any" in
17292 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY /**/" >>confdefs.h
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
17298 $as_echo_n "checking for struct if_laddrconf... " >&6; }
17299 if test "${ac_cv_isc_struct_if_laddrconf+set}" = set; then :
17300 $as_echo_n "(cached) " >&6
17303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17304 /* end confdefs.h. */
17307 #include <sys/types.h>
17308 #include <net/if6.h>
17314 struct if_laddrconf a;
17322 if ac_fn_c_try_compile
"$LINENO"; then :
17323 ac_cv_isc_struct_if_laddrconf
=yes
17325 ac_cv_isc_struct_if_laddrconf
=no
17328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrconf" >&5
17333 $as_echo "$ac_cv_isc_struct_if_laddrconf" >&6; }
17335 case "$ac_cv_isc_struct_if_laddrconf" in
17338 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF /**/" >>confdefs.h
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
17343 $as_echo_n "checking for struct if_laddrreq... " >&6; }
17344 if test "${ac_cv_isc_struct_if_laddrreq+set}" = set; then :
17345 $as_echo_n "(cached) " >&6
17348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17349 /* end confdefs.h. */
17352 #include <sys/types.h>
17353 #include <net/if6.h>
17359 struct if_laddrreq a;
17367 if ac_fn_c_try_compile
"$LINENO"; then :
17368 ac_cv_isc_struct_if_laddrreq
=yes
17370 ac_cv_isc_struct_if_laddrreq
=no
17373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrreq" >&5
17378 $as_echo "$ac_cv_isc_struct_if_laddrreq" >&6; }
17380 case "$ac_cv_isc_struct_if_laddrreq" in
17383 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ /**/" >>confdefs.h
17392 $as_echo "#define HAVE_NO_NICE 1" >>confdefs.h
17395 $as_echo "#define HAVE_TERMIOS 1" >>confdefs.h
17398 # Checks for library functions.
17399 for ac_func
in atexit memset socket
17401 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17402 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17403 eval as_val
=\$
$as_ac_var
17404 if test "x$as_val" = x
""yes; then :
17405 cat >>confdefs.h
<<_ACEOF
17406 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5
17414 $as_echo_n "checking for bin subdirectory... " >&6; }
17416 # Check whether --with-binsubdir was given.
17417 if test "${with_binsubdir+set}" = set; then :
17418 withval
=$with_binsubdir; use_binsubdir
="$withval"
17420 use_binsubdir
="bin"
17424 case "$use_binsubdir" in
17430 as_fn_error
"<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5
17434 $as_echo "$use_binsubdir" >&6; }
17435 BINSUBDIR
=$use_binsubdir
17438 ac_config_files
="$ac_config_files Makefile"
17440 cat >confcache
<<\_ACEOF
17441 # This file is a shell script that caches the results of configure
17442 # tests run on this system so they can be shared between configure
17443 # scripts and configure runs, see configure's option --config-cache.
17444 # It is not useful on other systems. If it contains results you don't
17445 # want to keep, you may remove or edit it.
17447 # config.status only pays attention to the cache file if you give it
17448 # the --recheck option to rerun configure.
17450 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17451 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17452 # following values.
17456 # The following way of writing the cache mishandles newlines in values,
17457 # but we know of no workaround that is simple, portable, and efficient.
17458 # So, we kill variables containing newlines.
17459 # Ultrix sh set writes to stderr and can't be redirected directly,
17460 # and sets the high bit in the cache file unless we assign to the vars.
17462 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17463 eval ac_val
=\$
$ac_var
17467 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17468 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17471 _ | IFS | as_nl
) ;; #(
17472 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17473 *) { eval $ac_var=; unset $ac_var;} ;;
17479 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17480 *${as_nl}ac_space
=\
*)
17481 # `set' does not quote correctly, so add quotes: double-quote
17482 # substitution turns \\\\ into \\, and sed turns \\ into \.
17485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17488 # `set' quotes correctly as required by POSIX, so do not add quotes.
17489 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17498 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17500 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17502 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17503 if test -w "$cache_file"; then
17504 test "x$cache_file" != "x/dev/null" &&
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17506 $as_echo "$as_me: updating cache $cache_file" >&6;}
17507 cat confcache
>$cache_file
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17510 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17515 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17516 # Let make expand exec_prefix.
17517 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17519 DEFS
=-DHAVE_CONFIG_H
17523 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17524 # 1. Remove the extension, and $U if already installed.
17525 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17526 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17527 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17528 # will be set to the directory where LIBOBJS objects are built.
17529 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17530 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17532 LIBOBJS
=$ac_libobjs
17534 LTLIBOBJS
=$ac_ltlibobjs
17537 if test -n "$EXEEXT"; then
17539 am__EXEEXT_FALSE
='#'
17541 am__EXEEXT_TRUE
='#'
17545 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17546 as_fn_error
"conditional \"AMDEP\" was never defined.
17547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17549 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17550 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
17551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17553 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
17554 as_fn_error
"conditional \"INSTALL_LIBOPTS\" was never defined.
17555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17557 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
17558 as_fn_error
"conditional \"NEED_LIBOPTS\" was never defined.
17559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17562 : ${CONFIG_STATUS=./config.status}
17564 ac_clean_files_save
=$ac_clean_files
17565 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17567 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17569 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17571 # Generated by $as_me.
17572 # Run this file to recreate the current configuration.
17573 # Compiler output produced by configure, useful for debugging
17574 # configure, is in config.log if it exists.
17577 ac_cs_recheck=false
17580 SHELL=\${CONFIG_SHELL-$SHELL}
17583 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17584 ## -------------------- ##
17585 ## M4sh Initialization. ##
17586 ## -------------------- ##
17588 # Be more Bourne compatible
17589 DUALCASE
=1; export DUALCASE
# for MKS sh
17590 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17593 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17594 # is contrary to our usage. Disable this feature.
17595 alias -g '${1+"$@"}'='"$@"'
17596 setopt NO_GLOB_SUBST
17598 case `(set -o) 2>/dev/null` in #(
17610 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17611 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17612 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17613 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17614 # Prefer a ksh shell builtin over an external printf program on Solaris,
17615 # but without wasting forks for bash or zsh.
17616 if test -z "$BASH_VERSION$ZSH_VERSION" \
17617 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17618 as_echo='print
-r --'
17619 as_echo_n='print
-rn --'
17620 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17621 as_echo='printf %s
\n'
17622 as_echo_n='printf %s
'
17624 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17625 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17626 as_echo_n='/usr
/ucb
/echo -n'
17628 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17629 as_echo_n_body='eval
17633 expr "X$arg" : "X\\(.*\\)$as_nl";
17634 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17636 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17638 export as_echo_n_body
17639 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17641 export as_echo_body
17642 as_echo='sh
-c $as_echo_body as_echo
'
17645 # The user is always right.
17646 if test "${PATH_SEPARATOR+set}" != set; then
17648 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17649 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17656 # We need space, tab and new line, in precisely that order. Quoting is
17657 # there to prevent editors from complaining about space-tab.
17658 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17659 # splitting by setting IFS to empty value.)
17662 # Find who we are. Look in the path if we contain no directory separator.
17664 *[\\/]* ) as_myself=$0 ;;
17665 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17666 for as_dir in $PATH
17669 test -z "$as_dir" && as_dir=.
17670 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17676 # We did not find ourselves, most probably we were run as `sh COMMAND'
17677 # in which case we are not to be found in the path.
17678 if test "x$as_myself" = x
; then
17681 if test ! -f "$as_myself"; then
17682 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17686 # Unset variables that we do not need and which cause bugs (e.g. in
17687 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17688 # suppresses any "Segmentation fault" message there. '((' could
17689 # trigger a bug in pdksh 5.2.14.
17690 for as_var
in BASH_ENV ENV MAIL MAILPATH
17691 do eval test x\
${$as_var+set} = xset \
17692 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17705 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17708 # as_fn_error ERROR [LINENO LOG_FD]
17709 # ---------------------------------
17710 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17711 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17712 # script with status $?, using 1 if that was 0.
17715 as_status
=$?
; test $as_status -eq 0 && as_status
=1
17717 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17718 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17720 $as_echo "$as_me: error: $1" >&2
17721 as_fn_exit
$as_status
17725 # as_fn_set_status STATUS
17726 # -----------------------
17727 # Set $? to STATUS, without forking.
17728 as_fn_set_status
()
17731 } # as_fn_set_status
17733 # as_fn_exit STATUS
17734 # -----------------
17735 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17739 as_fn_set_status
$1
17745 # Portably unset VAR.
17748 { eval $1=; unset $1;}
17750 as_unset
=as_fn_unset
17751 # as_fn_append VAR VALUE
17752 # ----------------------
17753 # Append the text in VALUE to the end of the definition contained in VAR. Take
17754 # advantage of any shell optimizations that allow amortized linear growth over
17755 # repeated appends, instead of the typical quadratic growth present in naive
17757 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17758 eval 'as_fn_append ()
17769 # as_fn_arith ARG...
17770 # ------------------
17771 # Perform arithmetic evaluation on the ARGs, and store the result in the
17772 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17773 # must be portable across $(()) and expr.
17774 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17775 eval 'as_fn_arith ()
17782 as_val
=`expr "$@" || test $? -eq 1`
17787 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17788 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17794 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17795 as_basename
=basename
17800 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17806 as_me
=`$as_basename -- "$0" ||
17807 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17808 X"$0" : 'X\(//\)$' \| \
17809 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17811 sed '/^.*\/\([^/][^/]*\)\/*$/{
17825 # Avoid depending upon Character Ranges.
17826 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17827 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17828 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17829 as_cr_digits
='0123456789'
17830 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17832 ECHO_C
= ECHO_N
= ECHO_T
=
17833 case `echo -n x` in #(((((
17835 case `echo 'xy\c'` in
17836 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17838 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17845 rm -f conf$$ conf$$.exe conf$$.
file
17846 if test -d conf$$.dir
; then
17847 rm -f conf$$.dir
/conf$$.
file
17850 mkdir conf$$.dir
2>/dev
/null
17852 if (echo >conf$$.
file) 2>/dev
/null
; then
17853 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17855 # ... but there are two gotchas:
17856 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17857 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17858 # In both cases, we have to default to `cp -p'.
17859 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17861 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17869 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17870 rmdir conf$$.dir
2>/dev
/null
17875 # Create "$as_dir" as a directory, including parents if necessary.
17880 -*) as_dir
=.
/$as_dir;;
17882 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17886 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17887 *) as_qdir
=$as_dir;;
17889 as_dirs
="'$as_qdir' $as_dirs"
17890 as_dir
=`$as_dirname -- "$as_dir" ||
17891 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17892 X"$as_dir" : 'X\(//\)[^/]' \| \
17893 X"$as_dir" : 'X\(//\)$' \| \
17894 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17895 $as_echo X"$as_dir" |
17896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17900 /^X\(\/\/\)[^/].*/{
17913 test -d "$as_dir" && break
17915 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17916 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
17920 if mkdir
-p .
2>/dev
/null
; then
17921 as_mkdir_p
='mkdir -p "$as_dir"'
17923 test -d .
/-p && rmdir .
/-p
17927 if test -x / >/dev
/null
2>&1; then
17928 as_test_x
='test -x'
17930 if ls -dL / >/dev
/null
2>&1; then
17937 if test -d "$1"; then
17943 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17944 ???[sx]*):;;*)false;;esac;fi
17948 as_executable_p
=$as_test_x
17950 # Sed expression to map a string onto a valid CPP name.
17951 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17953 # Sed expression to map a string onto a valid variable name.
17954 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17958 ## ----------------------------------- ##
17959 ## Main body of $CONFIG_STATUS script. ##
17960 ## ----------------------------------- ##
17962 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17965 # Save the log message, to keep $0 and so on meaningful, and to
17966 # report actual input values of CONFIG_FILES etc. instead of their
17967 # values after options handling.
17969 This file was extended by sntp $as_me 4.2.6, which was
17970 generated by GNU Autoconf 2.65. Invocation command line was
17972 CONFIG_FILES = $CONFIG_FILES
17973 CONFIG_HEADERS = $CONFIG_HEADERS
17974 CONFIG_LINKS = $CONFIG_LINKS
17975 CONFIG_COMMANDS = $CONFIG_COMMANDS
17978 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17983 case $ac_config_files in *"
17984 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17987 case $ac_config_headers in *"
17988 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17993 # Files that config.status was made for.
17994 config_files="$ac_config_files"
17995 config_headers="$ac_config_headers"
17996 config_commands="$ac_config_commands"
18000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18002 \`$as_me' instantiates files and other configuration actions
18003 from templates according to the current configuration. Unless the files
18004 and actions are specified as TAGs, all are instantiated by default.
18006 Usage: $0 [OPTION]... [TAG]...
18008 -h, --help print this help, then exit
18009 -V, --version print version number and configuration settings, then exit
18010 --config print configuration, then exit
18011 -q, --quiet, --silent
18012 do not print progress messages
18013 -d, --debug don't remove temporary files
18014 --recheck update $as_me by reconfiguring in the same conditions
18015 --file=FILE[:TEMPLATE]
18016 instantiate the configuration file FILE
18017 --header=FILE[:TEMPLATE]
18018 instantiate the configuration header FILE
18020 Configuration files:
18023 Configuration headers:
18026 Configuration commands:
18029 Report bugs to the package provider."
18032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18033 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18035 sntp config.status 4.2.6
18036 configured by $0, generated by GNU Autoconf 2.65,
18037 with options \\"\$ac_cs_config\\"
18039 Copyright (C) 2009 Free Software Foundation, Inc.
18040 This config.status script is free software; the Free Software Foundation
18041 gives unlimited permission to copy, distribute and modify it."
18048 test -n "\$AWK" || AWK=awk
18051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18052 # The default lists apply if the user does not specify any file.
18058 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18059 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18070 # Handling of the options.
18071 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18073 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18074 $as_echo "$ac_cs_version"; exit ;;
18075 --config |
--confi |
--conf |
--con |
--co |
--c )
18076 $as_echo "$ac_cs_config"; exit ;;
18077 --debug |
--debu |
--deb |
--de |
--d |
-d )
18079 --file |
--fil |
--fi |
--f )
18082 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18084 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18085 ac_need_defaults
=false
;;
18086 --header |
--heade |
--head |
--hea )
18089 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18091 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18092 ac_need_defaults
=false
;;
18094 # Conflict between --help and --header
18095 as_fn_error
"ambiguous option: \`$1'
18096 Try \`$0 --help' for more information.";;
18097 --help |
--hel |
-h )
18098 $as_echo "$ac_cs_usage"; exit ;;
18099 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18100 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18103 # This is an error.
18104 -*) as_fn_error
"unrecognized option: \`$1'
18105 Try \`$0 --help' for more information." ;;
18107 *) as_fn_append ac_config_targets
" $1"
18108 ac_need_defaults
=false
;;
18114 ac_configure_extra_args
=
18116 if $ac_cs_silent; then
18118 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18123 if \$ac_cs_recheck; then
18124 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18126 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18127 CONFIG_SHELL='$SHELL'
18128 export CONFIG_SHELL
18133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18137 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18138 ## Running $as_me. ##
18144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18148 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18154 # Handling of arguments.
18155 for ac_config_target
in $ac_config_targets
18157 case $ac_config_target in
18158 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
18159 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18160 "libopts/Makefile") CONFIG_FILES
="$CONFIG_FILES libopts/Makefile" ;;
18161 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18163 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18168 # If the user did not use the arguments to specify the items to instantiate,
18169 # then the envvar interface is used. Set only those that are not.
18170 # We use the long form for the default assignment because of an extremely
18171 # bizarre bug on SunOS 4.1.3.
18172 if $ac_need_defaults; then
18173 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18174 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18175 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18178 # Have a temporary directory for convenience. Make it in the build tree
18179 # simply because there is no reason against having it here, and in addition,
18180 # creating and moving files from /tmp can sometimes cause problems.
18181 # Hook for its removal unless debugging.
18182 # Note that there is a small window in which the directory will not be cleaned:
18183 # after its creation but before its name has been assigned to `$tmp'.
18187 trap 'exit_status=$?
18188 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18190 trap 'as_fn_exit 1' 1 2 13 15
18192 # Create a (secure) tmp directory for tmp files.
18195 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18196 test -n "$tmp" && test -d "$tmp"
18199 tmp
=.
/conf$$
-$RANDOM
18200 (umask 077 && mkdir
"$tmp")
18201 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
18203 # Set up the scripts for CONFIG_FILES section.
18204 # No need to generate them if there are no CONFIG_FILES.
18205 # This happens for instance with `./config.status config.h'.
18206 if test -n "$CONFIG_FILES"; then
18209 ac_cr
=`echo X | tr X '\015'`
18210 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18211 # But we know of no other shell where ac_cr would be empty at this
18212 # point, so we can use a bashism as a fallback.
18213 if test "x$ac_cr" = x
; then
18214 eval ac_cr
=\$
\'\\r
\'
18216 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18217 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18220 ac_cs_awk_cr
=$ac_cr
18223 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18228 echo "cat >conf$$subs.awk <<_ACEOF" &&
18229 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18231 } >conf$$subs.sh ||
18232 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18233 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18235 for ac_last_try in false false false false false :; do
18236 . ./conf$$subs.sh ||
18237 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18239 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18240 if test $ac_delim_n = $ac_delim_num; then
18242 elif $ac_last_try; then
18243 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18245 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18248 rm -f conf$$subs.sh
18250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18251 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
18255 s/^/S["/; s
/!.
*/"]=/
18265 s/\(.\{148\}\)..*/\1/
18267 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18272 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18279 s/\(.\{148\}\)..*/\1/
18281 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18285 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18290 ' <conf$$subs.awk | sed '
18295 ' >>$CONFIG_STATUS || ac_write_fail=1
18296 rm -f conf$$subs.awk
18297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18299 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
18300 for (key in S) S_is_set[key] = 1
18306 nfields = split(line, field, "@
")
18308 len = length(field[1])
18309 for (i = 2; i < nfields; i++) {
18311 keylen = length(key)
18312 if (S_is_set[key]) {
18314 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18315 len += length(value) + length(field[++i])
18326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18327 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18328 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18331 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
18332 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
18335 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18336 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
18337 # trailing colons and then remove the whole line if VPATH becomes empty
18338 # (actually we leave an empty line to preserve line numbers).
18339 if test "x
$srcdir" = x.; then
18340 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18341 s/:*\$(srcdir):*/:/
18342 s/:*\${srcdir}:*/:/
18344 s/^\([^=]*=[ ]*\):*/\1/
18350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18351 fi # test -n "$CONFIG_FILES"
18353 # Set up the scripts for CONFIG_HEADERS section.
18354 # No need to generate them if there are no CONFIG_HEADERS.
18355 # This happens for instance with `./config.status Makefile'.
18356 if test -n "$CONFIG_HEADERS"; then
18357 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18361 # Transform confdefs.h into an awk script `defines.awk', embedded as
18362 # here-document in config.status, that substitutes the proper values into
18363 # config.h.in to produce config.h.
18365 # Create a delimiter string that does not exist in confdefs.h, to ease
18366 # handling of long lines.
18368 for ac_last_try in false false :; do
18369 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18370 if test -z "$ac_t"; then
18372 elif $ac_last_try; then
18373 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
18375 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18379 # For the awk script, D is an array of macro values keyed by name,
18380 # likewise P contains macro parameters if any. Preserve backslash
18381 # newline sequences.
18383 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18385 s/.\{148\}/&'"$ac_delim"'/g
18388 s/^[ ]*#[ ]*define[ ][ ]*/ /
18395 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18397 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18401 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18402 D["\
1"]=" \
3\\\\\\n
"\\/p
18404 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18409 s/.\{148\}/&'"$ac_delim"'/g
18414 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18417 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18419 ' <confdefs.h | sed '
18420 s/'"$ac_delim"'/"\\\
18421 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18424 for (key in D) D_is_set[key] = 1
18427 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18429 split(line, arg, " ")
18430 if (arg[1] == "#") {
18434 defundef
= substr
(arg
[1], 2)
18437 split(mac1
, mac2
, "(") #)
18439 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18440 if (D_is_set
[macro
]) {
18441 # Preserve the white space surrounding the "#".
18442 print prefix
"define", macro P
[macro
] D
[macro
]
18445 # Replace #undef with comments. This is necessary, for example,
18446 # in the case of _POSIX_SOURCE, which is predefined and required
18447 # on some systems where configure will not decide to define it.
18448 if (defundef
== "undef") {
18449 print
"/*", prefix defundef
, macro
, "*/"
18457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18458 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
18459 fi # test -n "$CONFIG_HEADERS"
18462 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18467 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18469 case $ac_mode$ac_tag in
18471 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18472 :[FH
]-) ac_tag
=-:-;;
18473 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18490 -) ac_f
="$tmp/stdin";;
18491 *) # Look for the file first in the build tree, then in the source tree
18492 # (if the path is not absolute). The absolute path cannot be DOS-style,
18493 # because $ac_f cannot contain `:'.
18497 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18499 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
18501 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18502 as_fn_append ac_file_inputs
" '$ac_f'"
18505 # Let's still pretend it is `configure' which instantiates (i.e., don't
18506 # use $as_me), people would be surprised to read:
18507 # /* config.h. Generated by config.status. */
18508 configure_input
='Generated from '`
18509 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18511 if test x
"$ac_file" != x-
; then
18512 configure_input
="$ac_file. $configure_input"
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18514 $as_echo "$as_me: creating $ac_file" >&6;}
18516 # Neutralize special characters interpreted by sed in replacement strings.
18517 case $configure_input in #(
18518 *\
&* |
*\|
* |
*\\* )
18519 ac_sed_conf_input
=`$as_echo "$configure_input" |
18520 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18521 *) ac_sed_conf_input
=$configure_input;;
18525 *:-:* |
*:-) cat >"$tmp/stdin" \
18526 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
18531 ac_dir
=`$as_dirname -- "$ac_file" ||
18532 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18533 X"$ac_file" : 'X\(//\)[^/]' \| \
18534 X"$ac_file" : 'X\(//\)$' \| \
18535 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18536 $as_echo X"$ac_file" |
18537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18541 /^X\(\/\/\)[^/].*/{
18554 as_dir
="$ac_dir"; as_fn_mkdir_p
18558 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18560 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18561 # A ".." for each directory in $ac_dir_suffix.
18562 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18563 case $ac_top_builddir_sub in
18564 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18565 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18568 ac_abs_top_builddir
=$ac_pwd
18569 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18570 # for backward compatibility:
18571 ac_top_builddir
=$ac_top_build_prefix
18574 .
) # We are building in place.
18576 ac_top_srcdir
=$ac_top_builddir_sub
18577 ac_abs_top_srcdir
=$ac_pwd ;;
18578 [\\/]* | ?
:[\\/]* ) # Absolute name.
18579 ac_srcdir
=$srcdir$ac_dir_suffix;
18580 ac_top_srcdir
=$srcdir
18581 ac_abs_top_srcdir
=$srcdir ;;
18582 *) # Relative name.
18583 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18584 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18585 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18587 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18597 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18598 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18600 ac_MKDIR_P
=$MKDIR_P
18602 [\\/$
]* | ?
:[\\/]* ) ;;
18603 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18608 # If the template does not know about datarootdir, expand it.
18609 # FIXME: This hack should be removed a few years after 2.60.
18610 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18621 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18622 *datarootdir
*) ac_datarootdir_seen
=yes;;
18623 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18625 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18628 ac_datarootdir_hack='
18629 s&@datadir@&$datadir&g
18630 s&@docdir@&$docdir&g
18631 s&@infodir@&$infodir&g
18632 s&@localedir@&$localedir&g
18633 s&@mandir@&$mandir&g
18634 s&\\\${datarootdir}&$datarootdir&g' ;;
18638 # Neutralize VPATH when `$srcdir' = `.'.
18639 # Shell code in configure.ac might set extrasub.
18640 # FIXME: do we really want to maintain this feature?
18641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18642 ac_sed_extra="$ac_vpsub
18645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18647 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18648 s|@configure_input@|
$ac_sed_conf_input|
;t t
18649 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18650 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18651 s
&@srcdir@
&$ac_srcdir&;t t
18652 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18653 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18654 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18655 s
&@builddir@
&$ac_builddir&;t t
18656 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18657 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18658 s
&@INSTALL@
&$ac_INSTALL&;t t
18659 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18660 $ac_datarootdir_hack
18662 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
18663 || as_fn_error "could not create
$ac_file" "$LINENO" 5
18665 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18666 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18667 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18669 which seems to be undefined. Please make sure it is defined." >&5
18670 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18671 which seems to be undefined. Please make sure it is defined." >&2;}
18675 -) cat "$tmp/out" && rm -f "$tmp/out";;
18676 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18678 || as_fn_error "could not create $ac_file" "$LINENO" 5
18684 if test x"$ac_file" != x-; then
18686 $as_echo "/* $configure_input */" \
18687 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18688 } >"$tmp/config.h" \
18689 || as_fn_error "could not create $ac_file" "$LINENO" 5
18690 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18692 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18695 mv "$tmp/config.h" "$ac_file" \
18696 || as_fn_error "could not create $ac_file" "$LINENO" 5
18699 $as_echo "/* $configure_input */" \
18700 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18701 || as_fn_error "could not create -" "$LINENO" 5
18703 # Compute "$ac_file"'s index
in $config_headers.
18706 for _am_header
in $config_headers :; do
18707 case $_am_header in
18708 $_am_arg |
$_am_arg:* )
18711 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18714 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18715 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18716 X"$_am_arg" : 'X\(//\)[^/]' \| \
18717 X"$_am_arg" : 'X\(//\)$' \| \
18718 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18719 $as_echo X"$_am_arg" |
18720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18724 /^X\(\/\/\)[^/].*/{
18736 s/.*/./; q'`/stamp-h
$_am_stamp_count
18739 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18740 $as_echo "$as_me: executing $ac_file commands" >&6;}
18745 case $ac_file$ac_mode in
18746 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18747 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18748 # are listed without --file. Let's play safe and only enable the eval
18749 # if we detect the quoting.
18750 case $CONFIG_FILES in
18751 *\'*) eval set x
"$CONFIG_FILES" ;;
18752 *) set x
$CONFIG_FILES ;;
18757 # Strip MF so we end up with the name of the file.
18758 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18759 # Check whether this is an Automake generated Makefile or not.
18760 # We used to match only the files named `Makefile.in', but
18761 # some people rename them; so instead we look at the file content.
18762 # Grep'ing the first line is not enough: some people post-process
18763 # each Makefile.in and add a new line on top of each file to say so.
18764 # Grep'ing the whole file is not good either: AIX grep has a line
18765 # limit of 2048, but all sed's we know have understand at least 4000.
18766 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18767 dirpart
=`$as_dirname -- "$mf" ||
18768 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18769 X"$mf" : 'X\(//\)[^/]' \| \
18770 X"$mf" : 'X\(//\)$' \| \
18771 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18777 /^X\(\/\/\)[^/].*/{
18793 # Extract the definition of DEPDIR, am__include, and am__quote
18794 # from the Makefile without running `make'.
18795 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18796 test -z "$DEPDIR" && continue
18797 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18798 test -z "am__include" && continue
18799 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18800 # When using ansi2knr, U may be empty or an underscore; expand it
18801 U
=`sed -n 's/^U = //p' < "$mf"`
18802 # Find all dependency output files, they are included files with
18803 # $(DEPDIR) in their names. We invoke sed twice because it is the
18804 # simplest approach to changing $(DEPDIR) to its actual value in the
18806 for file in `sed -n "
18807 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18808 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18809 # Make sure the directory exists.
18810 test -f "$dirpart/$file" && continue
18811 fdir
=`$as_dirname -- "$file" ||
18812 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18813 X"$file" : 'X\(//\)[^/]' \| \
18814 X"$file" : 'X\(//\)$' \| \
18815 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18816 $as_echo X"$file" |
18817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18821 /^X\(\/\/\)[^/].*/{
18834 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18835 # echo "creating $dirpart/$file"
18836 echo '# dummy' > "$dirpart/$file"
18848 ac_clean_files
=$ac_clean_files_save
18850 test $ac_write_fail = 0 ||
18851 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18854 # configure is writing to config.log, and then calls config.status.
18855 # config.status does its own redirection, appending to config.log.
18856 # Unfortunately, on DOS this fails, as config.log is still kept open
18857 # by configure, so config.status won't be able to write to it; its
18858 # output is simply discarded. So we exec the FD to /dev/null,
18859 # effectively closing config.log, so it can be properly (re)opened and
18860 # appended to by config.status. When coming back to configure, we
18861 # need to make the FD available again.
18862 if test "$no_create" != yes; then
18864 ac_config_status_args
=
18865 test "$silent" = yes &&
18866 ac_config_status_args
="$ac_config_status_args --quiet"
18868 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18870 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18871 # would make configure fail if this is the last instruction.
18872 $ac_cs_success || as_fn_exit $?
18874 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18876 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}