2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Atomic Library 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
557 PACKAGE_NAME
='GNU Atomic Library'
558 PACKAGE_TARNAME
='libatomic'
559 PACKAGE_VERSION
='1.0'
560 PACKAGE_STRING
='GNU Atomic Library 1.0'
562 PACKAGE_URL
='http://www.gnu.org/software/libatomic/'
564 # Factoring default headers for most tests.
565 ac_includes_default
="\
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
577 # ifdef HAVE_STDLIB_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
600 ac_subst_vars
='am__EXEEXT_FALSE
616 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
617 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
618 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
619 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
620 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
621 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
626 MAINTAINER_MODE_FALSE
650 am__fastdepCCAS_FALSE
682 INSTALL_STRIP_PROGRAM
738 program_transform_name
751 enable_option_checking
752 enable_version_specific_runtime_libs
753 enable_generated_files_in_srcdir
755 enable_dependency_tracking
762 enable_maintainer_mode
765 ac_precious_vars
='build_alias
772 # Initialize some variables set by options.
774 ac_init_version
=false
775 ac_unrecognized_opts
=
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
786 program_transform_name
=s
,x
,x
,
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir
='${exec_prefix}/bin'
801 sbindir
='${exec_prefix}/sbin'
802 libexecdir
='${exec_prefix}/libexec'
803 datarootdir
='${prefix}/share'
804 datadir
='${datarootdir}'
805 sysconfdir
='${prefix}/etc'
806 sharedstatedir
='${prefix}/com'
807 localstatedir
='${prefix}/var'
808 includedir
='${prefix}/include'
809 oldincludedir
='/usr/include'
810 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
811 infodir
='${datarootdir}/info'
816 libdir
='${exec_prefix}/lib'
817 localedir
='${datarootdir}/locale'
818 mandir
='${datarootdir}/man'
824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
826 eval $ac_prev=\
$ac_option
832 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836 # Accept the important Cygnus configure options, so we can diagnose typos.
838 case $ac_dashdash$ac_option in
842 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
844 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
847 -build |
--build |
--buil |
--bui |
--bu)
848 ac_prev
=build_alias
;;
849 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
850 build_alias
=$ac_optarg ;;
852 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
853 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
854 ac_prev
=cache_file
;;
855 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
856 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
857 cache_file
=$ac_optarg ;;
860 cache_file
=config.cache
;;
862 -datadir |
--datadir |
--datadi |
--datad)
864 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
865 datadir
=$ac_optarg ;;
867 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
868 |
--dataroo |
--dataro |
--datar)
869 ac_prev
=datarootdir
;;
870 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
871 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
872 datarootdir
=$ac_optarg ;;
874 -disable-* |
--disable-*)
875 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
878 as_fn_error
"invalid feature name: $ac_useropt"
879 ac_useropt_orig
=$ac_useropt
880 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
885 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep
=', ';;
888 eval enable_
$ac_useropt=no
;;
890 -docdir |
--docdir |
--docdi |
--doc |
--do)
892 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
895 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
897 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
900 -enable-* |
--enable-*)
901 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
904 as_fn_error
"invalid feature name: $ac_useropt"
905 ac_useropt_orig
=$ac_useropt
906 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
911 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep
=', ';;
914 eval enable_
$ac_useropt=\
$ac_optarg ;;
916 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
917 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
918 |
--exec |
--exe |
--ex)
919 ac_prev
=exec_prefix
;;
920 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
921 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
922 |
--exec=* |
--exe=* |
--ex=*)
923 exec_prefix
=$ac_optarg ;;
925 -gas |
--gas |
--ga |
--g)
926 # Obsolete; use --with-gas.
929 -help |
--help |
--hel |
--he |
-h)
931 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
932 ac_init_help
=recursive
;;
933 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
934 ac_init_help
=short
;;
936 -host |
--host |
--hos |
--ho)
937 ac_prev
=host_alias
;;
938 -host=* |
--host=* |
--hos=* |
--ho=*)
939 host_alias
=$ac_optarg ;;
941 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
943 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
945 htmldir
=$ac_optarg ;;
947 -includedir |
--includedir |
--includedi |
--included |
--include \
948 |
--includ |
--inclu |
--incl |
--inc)
949 ac_prev
=includedir
;;
950 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
951 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
952 includedir
=$ac_optarg ;;
954 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
956 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
957 infodir
=$ac_optarg ;;
959 -libdir |
--libdir |
--libdi |
--libd)
961 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
964 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
965 |
--libexe |
--libex |
--libe)
966 ac_prev
=libexecdir
;;
967 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
968 |
--libexe=* |
--libex=* |
--libe=*)
969 libexecdir
=$ac_optarg ;;
971 -localedir |
--localedir |
--localedi |
--localed |
--locale)
973 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
974 localedir
=$ac_optarg ;;
976 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
977 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
978 ac_prev
=localstatedir
;;
979 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
980 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
981 localstatedir
=$ac_optarg ;;
983 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
985 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
989 # Obsolete; use --without-fp.
992 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
993 |
--no-cr |
--no-c |
-n)
996 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
997 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1000 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1001 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1002 |
--oldin |
--oldi |
--old |
--ol |
--o)
1003 ac_prev
=oldincludedir
;;
1004 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1005 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1006 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1007 oldincludedir
=$ac_optarg ;;
1009 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1011 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1012 prefix
=$ac_optarg ;;
1014 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1015 |
--program-pre |
--program-pr |
--program-p)
1016 ac_prev
=program_prefix
;;
1017 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1018 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1019 program_prefix
=$ac_optarg ;;
1021 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1022 |
--program-suf |
--program-su |
--program-s)
1023 ac_prev
=program_suffix
;;
1024 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1025 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1026 program_suffix
=$ac_optarg ;;
1028 -program-transform-name |
--program-transform-name \
1029 |
--program-transform-nam |
--program-transform-na \
1030 |
--program-transform-n |
--program-transform- \
1031 |
--program-transform |
--program-transfor \
1032 |
--program-transfo |
--program-transf \
1033 |
--program-trans |
--program-tran \
1034 |
--progr-tra |
--program-tr |
--program-t)
1035 ac_prev
=program_transform_name
;;
1036 -program-transform-name=* |
--program-transform-name=* \
1037 |
--program-transform-nam=* |
--program-transform-na=* \
1038 |
--program-transform-n=* |
--program-transform-=* \
1039 |
--program-transform=* |
--program-transfor=* \
1040 |
--program-transfo=* |
--program-transf=* \
1041 |
--program-trans=* |
--program-tran=* \
1042 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1043 program_transform_name
=$ac_optarg ;;
1045 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1047 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1048 pdfdir
=$ac_optarg ;;
1050 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1052 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1055 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1056 |
-silent |
--silent |
--silen |
--sile |
--sil)
1059 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1061 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1063 sbindir
=$ac_optarg ;;
1065 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1066 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1067 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1069 ac_prev
=sharedstatedir
;;
1070 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1071 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1072 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1074 sharedstatedir
=$ac_optarg ;;
1076 -site |
--site |
--sit)
1078 -site=* |
--site=* |
--sit=*)
1081 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1083 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1084 srcdir
=$ac_optarg ;;
1086 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1087 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1088 ac_prev
=sysconfdir
;;
1089 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1090 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1091 sysconfdir
=$ac_optarg ;;
1093 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1094 ac_prev
=target_alias
;;
1095 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1096 target_alias
=$ac_optarg ;;
1098 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1101 -version |
--version |
--versio |
--versi |
--vers |
-V)
1102 ac_init_version
=: ;;
1105 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1108 as_fn_error
"invalid package name: $ac_useropt"
1109 ac_useropt_orig
=$ac_useropt
1110 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1115 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep
=', ';;
1118 eval with_
$ac_useropt=\
$ac_optarg ;;
1120 -without-* |
--without-*)
1121 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1124 as_fn_error
"invalid package name: $ac_useropt"
1125 ac_useropt_orig
=$ac_useropt
1126 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1131 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep
=', ';;
1134 eval with_
$ac_useropt=no
;;
1137 # Obsolete; use --with-x.
1140 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1141 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1142 ac_prev
=x_includes
;;
1143 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1144 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1145 x_includes
=$ac_optarg ;;
1147 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1148 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1149 ac_prev
=x_libraries
;;
1150 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1151 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1152 x_libraries
=$ac_optarg ;;
1154 -*) as_fn_error
"unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information."
1159 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 case $ac_envvar in #(
1162 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1163 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1165 eval $ac_envvar=\
$ac_optarg
1166 export $ac_envvar ;;
1169 # FIXME: should be removed in autoconf 3.0.
1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1179 if test -n "$ac_prev"; then
1180 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1181 as_fn_error
"missing argument to $ac_option"
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1187 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1192 # Check all directory arguments for consistency.
1193 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1198 eval ac_val
=\$
$ac_var
1199 # Remove trailing slashes.
1202 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\
$ac_val;;
1205 # Be sure to have absolute directory names.
1207 [\\/$
]* | ?
:[\\/]* ) continue;;
1208 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1210 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1218 target
=$target_alias
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x
; then
1222 if test "x$build_alias" = x
; then
1223 cross_compiling
=maybe
1224 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1225 If a cross compiler is detected then cross compile mode will be used." >&2
1226 elif test "x$build_alias" != "x$host_alias"; then
1232 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1234 test "$silent" = yes && exec 6>/dev
/null
1237 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1238 ac_ls_di
=`ls -di .` &&
1239 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1240 as_fn_error
"working directory cannot be determined"
1241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242 as_fn_error
"pwd does not report name of working directory"
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247 ac_srcdir_defaulted
=yes
1248 # Try the directory containing this script, then the parent directory.
1249 ac_confdir
=`$as_dirname -- "$as_myself" ||
1250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$as_myself" : 'X\(//\)[^/]' \| \
1252 X"$as_myself" : 'X\(//\)$' \| \
1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254 $as_echo X"$as_myself" |
1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1277 ac_srcdir_defaulted
=no
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1281 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1283 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1295 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 for ac_var
in $ac_precious_vars; do
1298 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1300 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1305 # Report the --help message.
1307 if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1311 \`configure' configures GNU Atomic Library 1.0 to adapt to many kinds of systems.
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE. See below for descriptions of some of the useful variables.
1318 Defaults for the options are specified in brackets.
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331 Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
1333 [$ac_default_prefix]
1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1342 For better control, use the options below.
1344 Fine tuning of the installation directories:
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
1369 --program-prefix=PREFIX prepend PREFIX to installed program names
1370 --program-suffix=SUFFIX append SUFFIX to installed program names
1371 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1374 --build=BUILD configure
for building on BUILD
[guessed
]
1375 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1376 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1380 if test -n "$ac_init_help"; then
1381 case $ac_init_help in
1382 short | recursive
) echo "Configuration of GNU Atomic Library 1.0:";;
1387 --disable-option-checking ignore unrecognized
--enable/--with options
1388 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1389 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1390 --enable-version-specific-runtime-libs
1391 Specify that runtime libraries should be installed
1392 in a compiler-specific directory
[default
=no
]
1393 --enable-generated-files-in-srcdir
1394 put copies of generated files
in source dir intended
1395 for creating
source tarballs
for users without
1396 texinfo bison or flex.
[default
=no
]
1397 --enable-multilib build many library versions
(default
)
1398 --disable-dependency-tracking speeds up one-time build
1399 --enable-dependency-tracking do not reject slow dependency extractors
1400 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1401 --enable-static[=PKGS
] build static libraries
[default
=yes]
1402 --enable-fast-install[=PKGS
]
1403 optimize
for fast installation
[default
=yes]
1404 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1405 --enable-maintainer-mode enable make rules and dependencies not useful
1406 (and sometimes confusing
) to the casual installer
1407 --enable-symvers=STYLE enables symbol versioning of the shared library
1411 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1412 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1413 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1415 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1417 Some influential environment variables
:
1418 CC C compiler
command
1419 CFLAGS C compiler flags
1420 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1421 nonstandard directory
<lib dir
>
1422 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1423 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1424 you have headers
in a nonstandard directory
<include dir
>
1425 CCAS assembler compiler
command (defaults to CC
)
1426 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1429 Use these variables to override the choices made by
`configure' or to help
1430 it to find libraries and programs with nonstandard names/locations.
1432 Report bugs to the package provider.
1433 GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
1434 General help using GNU software: <http://www.gnu.org/gethelp/>.
1439 if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
1441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442 test -d "$ac_dir" ||
1443 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1451 # A ".." for each directory in $ac_dir_suffix.
1452 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1453 case $ac_top_builddir_sub in
1454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1458 ac_abs_top_builddir=$ac_pwd
1459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1460 # for backward compatibility:
1461 ac_top_builddir=$ac_top_build_prefix
1464 .) # We are building in place.
1466 ac_top_srcdir=$ac_top_builddir_sub
1467 ac_abs_top_srcdir=$ac_pwd ;;
1468 [\\/]* | ?:[\\/]* ) # Absolute name.
1469 ac_srcdir=$srcdir$ac_dir_suffix;
1470 ac_top_srcdir=$srcdir
1471 ac_abs_top_srcdir=$srcdir ;;
1473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1474 ac_top_srcdir=$ac_top_build_prefix$srcdir
1475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479 cd "$ac_dir" || { ac_status=$?; continue; }
1480 # Check for guested configure.
1481 if test -f "$ac_srcdir/configure.gnu"; then
1483 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1484 elif test -f "$ac_srcdir/configure"; then
1486 $SHELL "$ac_srcdir/configure" --help=recursive
1488 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490 cd "$ac_pwd" || { ac_status=$?; break; }
1494 test -n "$ac_init_help" && exit $ac_status
1495 if $ac_init_version; then
1497 GNU Atomic Library configure 1.0
1498 generated by GNU Autoconf 2.64
1500 Copyright (C) 2009 Free Software Foundation, Inc.
1501 This configure script is free software; the Free Software Foundation
1502 gives unlimited permission to copy, distribute and modify it.
1507 ## ------------------------ ##
1508 ## Autoconf initialization. ##
1509 ## ------------------------ ##
1511 # ac_fn_c_try_compile LINENO
1512 # --------------------------
1513 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1514 ac_fn_c_try_compile ()
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 rm -f conftest.$ac_objext
1518 if { { ac_try="$ac_compile"
1520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1521 *) ac_try_echo
=$ac_try;;
1523 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524 $as_echo "$ac_try_echo"; } >&5
1525 (eval "$ac_compile") 2>conftest.err
1527 if test -s conftest.err
; then
1528 grep -v '^ *+' conftest.err
>conftest.er1
1529 cat conftest.er1
>&5
1530 mv -f conftest.er1 conftest.err
1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533 test $ac_status = 0; } && {
1534 test -z "$ac_c_werror_flag" ||
1535 test ! -s conftest.err
1536 } && test -s conftest.
$ac_objext; then :
1539 $as_echo "$as_me: failed program was:" >&5
1540 sed 's/^/| /' conftest.
$ac_ext >&5
1544 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1547 } # ac_fn_c_try_compile
1549 # ac_fn_c_try_link LINENO
1550 # -----------------------
1551 # Try to link conftest.$ac_ext, and return whether this succeeded.
1554 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1555 rm -f conftest.
$ac_objext conftest
$ac_exeext
1556 if { { ac_try
="$ac_link"
1558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 $as_echo "$ac_try_echo"; } >&5
1563 (eval "$ac_link") 2>conftest.err
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_c_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest$ac_exeext && {
1575 test "$cross_compiling" = yes ||
1576 $as_test_x conftest$ac_exeext
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1585 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1586 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1587 # interfere with the next link command; also delete a directory that is
1588 # left behind by Apple's compiler. We do this before executing the actions.
1589 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593 } # ac_fn_c_try_link
1595 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1596 # -------------------------------------------------------
1597 # Tests whether HEADER exists and can be compiled using the include files in
1598 # INCLUDES, setting the cache variable VAR accordingly.
1599 ac_fn_c_check_header_compile ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603 $as_echo_n "checking for $2... " >&6; }
1604 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1605 $as_echo_n "(cached) " >&6
1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608 /* end confdefs.h. */
1612 if ac_fn_c_try_compile "$LINENO"; then :
1617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621 $as_echo "$ac_res" >&6; }
1622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624 } # ac_fn_c_check_header_compile
1626 # ac_fn_c_try_cpp LINENO
1627 # ----------------------
1628 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 if { { ac_try="$ac_cpp conftest.$ac_ext"
1634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1635 *) ac_try_echo
=$ac_try;;
1637 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641 if test -s conftest.err
; then
1642 grep -v '^ *+' conftest.err
>conftest.er1
1643 cat conftest.er1
>&5
1644 mv -f conftest.er1 conftest.err
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } >/dev
/null
&& {
1648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.
$ac_ext >&5
1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1663 # ac_fn_c_try_run LINENO
1664 # ----------------------
1665 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1666 # that executables *can* be run.
1669 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1670 if { { ac_try
="$ac_link"
1672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_link") 2>&5
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1681 { { case "(($ac_try" in
1682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1683 *) ac_try_echo
=$ac_try;;
1685 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_try") 2>&5
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; }; }; then :
1693 $as_echo "$as_me: program exited with status $ac_status" >&5
1694 $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.
$ac_ext >&5
1697 ac_retval
=$ac_status
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1705 # ac_fn_c_check_func LINENO FUNC VAR
1706 # ----------------------------------
1707 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1708 ac_fn_c_check_func
()
1710 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1714 $as_echo_n "(cached) " >&6
1716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1718 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1720 #define $2 innocuous_$2
1722 /* System header to define __stub macros and hopefully few prototypes,
1723 which can conflict with char $2 (); below.
1724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1725 <limits.h> exists even on freestanding compilers. */
1728 # include <limits.h>
1730 # include <assert.h>
1735 /* Override any GCC internal prototype to avoid an error.
1736 Use char because int might match the return type of a GCC
1737 builtin and then its argument prototype would still apply. */
1742 /* The GNU C library defines this for functions which it implements
1743 to always fail with ENOSYS. Some functions are actually named
1744 something starting with __ and the normal name is an alias. */
1745 #if defined __stub_$2 || defined __stub___$2
1757 if ac_fn_c_try_link
"$LINENO"; then :
1762 rm -f core conftest.err conftest.
$ac_objext \
1763 conftest
$ac_exeext conftest.
$ac_ext
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1770 } # ac_fn_c_check_func
1772 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1773 # -------------------------------------------
1774 # Tests whether TYPE exists after having included INCLUDES, setting cache
1775 # variable VAR accordingly.
1776 ac_fn_c_check_type
()
1778 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782 $as_echo_n "(cached) " >&6
1785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1797 if ac_fn_c_try_compile
"$LINENO"; then :
1798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1810 if ac_fn_c_try_compile
"$LINENO"; then :
1815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1824 } # ac_fn_c_check_type
1826 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1827 # --------------------------------------------
1828 # Tries to find the compile-time value of EXPR in a program that includes
1829 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1831 ac_fn_c_compute_int
()
1833 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1834 if test "$cross_compiling" = yes; then
1835 # Depending upon the size, compute the lo and hi bounds.
1836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1842 static int test_array [1 - 2 * !(($2) >= 0)];
1849 if ac_fn_c_try_compile
"$LINENO"; then :
1852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1858 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1865 if ac_fn_c_try_compile
"$LINENO"; then :
1866 ac_hi
=$ac_mid; break
1868 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1869 if test $ac_lo -le $ac_mid; then
1873 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1884 static int test_array [1 - 2 * !(($2) < 0)];
1891 if ac_fn_c_try_compile
"$LINENO"; then :
1894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1900 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1907 if ac_fn_c_try_compile
"$LINENO"; then :
1908 ac_lo
=$ac_mid; break
1910 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1911 if test $ac_mid -le $ac_hi; then
1915 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
1917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1925 # Binary search between lo and hi bounds.
1926 while test "x$ac_lo" != "x$ac_hi"; do
1927 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
1928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1934 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1941 if ac_fn_c_try_compile
"$LINENO"; then :
1944 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
1946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1949 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
1953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1956 static long int longval () { return $2; }
1957 static unsigned long int ulongval () { return $2; }
1964 FILE *f = fopen ("conftest.val", "w");
1969 long int i = longval ();
1972 fprintf (f, "%ld", i);
1976 unsigned long int i = ulongval ();
1979 fprintf (f, "%lu", i);
1981 /* Do not output a trailing newline, as this causes \r\n confusion
1982 on some platforms. */
1983 return ferror (f) || fclose (f) != 0;
1989 if ac_fn_c_try_run
"$LINENO"; then :
1990 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
1994 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
1995 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2002 } # ac_fn_c_compute_int
2004 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2007 # the include files in INCLUDES and setting the cache variable VAR
2009 ac_fn_c_check_header_mongrel
()
2011 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2012 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2016 $as_echo_n "(cached) " >&6
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2022 # Is the header compilable?
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2024 $as_echo_n "checking $2 usability... " >&6; }
2025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2030 if ac_fn_c_try_compile
"$LINENO"; then :
2031 ac_header_compiler
=yes
2033 ac_header_compiler
=no
2035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2037 $as_echo "$ac_header_compiler" >&6; }
2039 # Is the header present?
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2041 $as_echo_n "checking $2 presence... " >&6; }
2042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2046 if ac_fn_c_try_cpp
"$LINENO"; then :
2047 ac_header_preproc
=yes
2049 ac_header_preproc
=no
2051 rm -f conftest.err conftest.
$ac_ext
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2053 $as_echo "$ac_header_preproc" >&6; }
2055 # So? What about this header?
2056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2059 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2061 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2065 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2067 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2069 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2071 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2073 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077 $as_echo_n "checking for $2... " >&6; }
2078 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2079 $as_echo_n "(cached) " >&6
2081 eval "$3=\$ac_header_compiler"
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2087 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2089 } # ac_fn_c_check_header_mongrel
2090 cat >config.log
<<_ACEOF
2091 This file contains any messages produced by compilers while
2092 running configure, to aid debugging if configure makes a mistake.
2094 It was created by GNU Atomic Library $as_me 1.0, which was
2095 generated by GNU Autoconf 2.64. Invocation command line was
2107 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2108 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2109 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2110 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2111 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2113 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2114 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2116 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2117 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2118 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2119 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2120 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2121 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2122 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2130 test -z "$as_dir" && as_dir
=.
2131 $as_echo "PATH: $as_dir"
2147 # Keep a trace of the command line.
2148 # Strip out --no-create and --no-recursion so they do not pile up.
2149 # Strip out --silent because we don't want to record it for future runs.
2150 # Also quote any args containing shell meta-characters.
2151 # Make two passes to allow for proper duplicate-argument suppression.
2155 ac_must_keep_next
=false
2161 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2162 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2163 |
-silent |
--silent |
--silen |
--sile |
--sil)
2166 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2169 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2171 as_fn_append ac_configure_args1
" '$ac_arg'"
2172 if test $ac_must_keep_next = true
; then
2173 ac_must_keep_next
=false
# Got value, back to normal.
2176 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2177 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2178 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2179 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2180 case "$ac_configure_args0 " in
2181 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2184 -* ) ac_must_keep_next
=true
;;
2187 as_fn_append ac_configure_args
" '$ac_arg'"
2192 { ac_configure_args0
=; unset ac_configure_args0
;}
2193 { ac_configure_args1
=; unset ac_configure_args1
;}
2195 # When interrupted or exit'd, cleanup temporary files, and complete
2196 # config.log. We remove comments because anyway the quotes in there
2197 # would cause problems or look ugly.
2198 # WARNING: Use '\'' to represent an apostrophe within the trap.
2199 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2200 trap 'exit_status=$?
2201 # Save into config.log some information that might help in debugging.
2206 ## ---------------- ##
2207 ## Cache variables. ##
2208 ## ---------------- ##
2211 # The following way of writing the cache mishandles newlines in values,
2213 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2214 eval ac_val=\$$ac_var
2218 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2219 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2222 _ | IFS | as_nl) ;; #(
2223 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2224 *) { eval $ac_var=; unset $ac_var;} ;;
2229 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2230 *${as_nl}ac_space=\ *)
2232 "s/'\''/'\''\\\\'\'''\''/g;
2233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2244 ## ----------------- ##
2245 ## Output variables. ##
2246 ## ----------------- ##
2249 for ac_var in $ac_subst_vars
2251 eval ac_val=\$$ac_var
2253 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2255 $as_echo "$ac_var='\''$ac_val'\''"
2259 if test -n "$ac_subst_files"; then
2261 ## ------------------- ##
2262 ## File substitutions. ##
2263 ## ------------------- ##
2266 for ac_var
in $ac_subst_files
2268 eval ac_val
=\$
$ac_var
2270 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2272 $as_echo "$ac_var='\''$ac_val'\''"
2277 if test -s confdefs.h; then
2287 test "$ac_signal" != 0 &&
2288 $as_echo "$as_me: caught signal $ac_signal"
2289 $as_echo "$as_me: exit $exit_status"
2291 rm -f core *.core core.conftest.* &&
2292 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2295 for ac_signal
in 1 2 13 15; do
2296 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2300 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2301 rm -f -r conftest
* confdefs.h
2303 $as_echo "/* confdefs.h */" > confdefs.h
2305 # Predefined preprocessor variables.
2307 cat >>confdefs.h
<<_ACEOF
2308 #define PACKAGE_NAME "$PACKAGE_NAME"
2311 cat >>confdefs.h
<<_ACEOF
2312 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2315 cat >>confdefs.h
<<_ACEOF
2316 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2319 cat >>confdefs.h
<<_ACEOF
2320 #define PACKAGE_STRING "$PACKAGE_STRING"
2323 cat >>confdefs.h
<<_ACEOF
2324 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2327 cat >>confdefs.h
<<_ACEOF
2328 #define PACKAGE_URL "$PACKAGE_URL"
2332 # Let the site file select an alternate cache file if it wants to.
2333 # Prefer an explicitly selected file to automatically selected ones.
2336 if test -n "$CONFIG_SITE"; then
2337 ac_site_file1
=$CONFIG_SITE
2338 elif test "x$prefix" != xNONE
; then
2339 ac_site_file1
=$prefix/share
/config.site
2340 ac_site_file2
=$prefix/etc
/config.site
2342 ac_site_file1
=$ac_default_prefix/share
/config.site
2343 ac_site_file2
=$ac_default_prefix/etc
/config.site
2345 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2347 test "x$ac_site_file" = xNONE
&& continue
2348 if test -r "$ac_site_file"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2350 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2351 sed 's/^/| /' "$ac_site_file" >&5
2356 if test -r "$cache_file"; then
2357 # Some versions of bash will fail to source /dev/null (special
2358 # files actually), so we avoid doing that.
2359 if test -f "$cache_file"; then
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2361 $as_echo "$as_me: loading cache $cache_file" >&6;}
2363 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2364 *) .
"./$cache_file";;
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2369 $as_echo "$as_me: creating cache $cache_file" >&6;}
2373 # Check that the precious variables saved in the cache have kept the same
2375 ac_cache_corrupted
=false
2376 for ac_var
in $ac_precious_vars; do
2377 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2378 eval ac_new_set
=\
$ac_env_${ac_var}_set
2379 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2380 eval ac_new_val
=\
$ac_env_${ac_var}_value
2381 case $ac_old_set,$ac_new_set in
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2384 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2385 ac_cache_corrupted
=: ;;
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2388 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2389 ac_cache_corrupted
=: ;;
2392 if test "x$ac_old_val" != "x$ac_new_val"; then
2393 # differences in whitespace do not lead to failure.
2394 ac_old_val_w
=`echo x $ac_old_val`
2395 ac_new_val_w
=`echo x $ac_new_val`
2396 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2398 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2399 ac_cache_corrupted
=:
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2402 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2403 eval $ac_var=\
$ac_old_val
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2406 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2408 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2411 # Pass precious variables to config.status.
2412 if test "$ac_new_set" = set; then
2414 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2415 *) ac_arg
=$ac_var=$ac_new_val ;;
2417 case " $ac_configure_args " in
2418 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2419 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2423 if $ac_cache_corrupted; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2427 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2428 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2430 ## -------------------- ##
2431 ## Main body of script. ##
2432 ## -------------------- ##
2435 ac_cpp
='$CPP $CPPFLAGS'
2436 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2444 ac_config_headers
="$ac_config_headers auto-config.h"
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2452 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2453 # Check whether --enable-version-specific-runtime-libs was given.
2454 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2455 enableval
=$enable_version_specific_runtime_libs;
2456 case "$enableval" in
2458 *) as_fn_error
"Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2462 enable_version_specific_runtime_libs
=no
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2467 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2469 # We would like our source tree to be readonly. However when releases or
2470 # pre-releases are generated, the flex/bison generated files as well as the
2471 # various formats of manuals need to be included along with the rest of the
2472 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2475 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2476 # Check whether --enable-generated-files-in-srcdir was given.
2477 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2478 enableval
=$enable_generated_files_in_srcdir;
2479 case "$enableval" in
2481 *) as_fn_error
"Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2485 enable_generated_files_in_srcdir
=no
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2490 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2491 if test "$enable_generated_files_in_srcdir" = yes; then
2503 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2505 # You will slowly go insane if you do not grok the following fact: when
2506 # building this library, the top-level /target/ becomes the library's /host/.
2508 # configure then causes --target to default to --host, exactly like any
2509 # other package using autoconf. Therefore, 'target' and 'host' will
2510 # always be the same. This makes sense both for native and cross compilers
2511 # just think about it for a little while. :-)
2513 # Also, if this library is being configured as part of a cross compiler, the
2514 # top-level configure script will pass the "real" host as $with_cross_host.
2516 # Do not delete or change the following two lines. For why, see
2517 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2519 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2520 for ac_t
in install-sh
install.sh shtool
; do
2521 if test -f "$ac_dir/$ac_t"; then
2523 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2528 if test -z "$ac_aux_dir"; then
2529 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2532 # These three variables are undocumented and unsupported,
2533 # and are intended to be withdrawn in a future Autoconf release.
2534 # They can cause serious problems if a builder's source tree is in a directory
2535 # whose full name contains unusual characters.
2536 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2537 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2538 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2541 # Make sure we can run config.sub.
2542 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2543 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2546 $as_echo_n "checking build system type... " >&6; }
2547 if test "${ac_cv_build+set}" = set; then :
2548 $as_echo_n "(cached) " >&6
2550 ac_build_alias
=$build_alias
2551 test "x$ac_build_alias" = x
&&
2552 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2553 test "x$ac_build_alias" = x
&&
2554 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
2555 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2556 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2560 $as_echo "$ac_cv_build" >&6; }
2561 case $ac_cv_build in
2563 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
2566 ac_save_IFS
=$IFS; IFS
='-'
2572 # Remember, the first character of IFS is used to create $*,
2573 # except with old shells:
2576 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2580 $as_echo_n "checking host system type... " >&6; }
2581 if test "${ac_cv_host+set}" = set; then :
2582 $as_echo_n "(cached) " >&6
2584 if test "x$host_alias" = x
; then
2585 ac_cv_host
=$ac_cv_build
2587 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2588 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2593 $as_echo "$ac_cv_host" >&6; }
2596 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
2599 ac_save_IFS
=$IFS; IFS
='-'
2605 # Remember, the first character of IFS is used to create $*,
2606 # except with old shells:
2609 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2613 $as_echo_n "checking target system type... " >&6; }
2614 if test "${ac_cv_target+set}" = set; then :
2615 $as_echo_n "(cached) " >&6
2617 if test "x$target_alias" = x
; then
2618 ac_cv_target
=$ac_cv_host
2620 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2621 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2626 $as_echo "$ac_cv_target" >&6; }
2627 case $ac_cv_target in
2629 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
2631 target
=$ac_cv_target
2632 ac_save_IFS
=$IFS; IFS
='-'
2638 # Remember, the first character of IFS is used to create $*,
2639 # except with old shells:
2642 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2645 # The aliases save the names the user supplied, while $host etc.
2646 # will get canonicalized.
2647 test -n "$target_alias" &&
2648 test "$program_prefix$program_suffix$program_transform_name" = \
2650 program_prefix
=${target_alias}-
2652 target_alias
=${target_alias-$host_alias}
2654 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2655 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2656 # 1.9.0: minimum required version
2657 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2658 # of other PACKAGE_* variables will, however, and there's nothing
2659 # we can do about that; they come from AC_INIT).
2660 # no-dist: we don't want 'dist' and related rules.
2661 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2662 # file in the top srcdir, etc, etc), so stop complaining.
2663 # -Wall: turns on all automake warnings...
2664 # -Wno-portability: ...except this one, since GNU make is required.
2665 # -Wno-override: ... and this one, since we do want this in testsuite.
2666 am__api_version
='1.11'
2668 # Find a good install program. We prefer a C program (faster),
2669 # so one script is as good as another. But avoid the broken or
2670 # incompatible versions:
2671 # SysV /etc/install, /usr/sbin/install
2672 # SunOS /usr/etc/install
2673 # IRIX /sbin/install
2675 # AmigaOS /C/install, which installs bootblocks on floppy discs
2676 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2677 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2678 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2679 # OS/2's system install, which has a completely different semantic
2680 # ./install, which can be erroneously created by make from ./install.sh.
2681 # Reject install programs that cannot install multiple files.
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2683 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2684 if test -z "$INSTALL"; then
2685 if test "${ac_cv_path_install+set}" = set; then :
2686 $as_echo_n "(cached) " >&6
2688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2692 test -z "$as_dir" && as_dir
=.
2693 # Account for people who put trailing slashes in PATH elements.
2694 case $as_dir/ in #((
2695 .
/ | .
// |
/[cC
]/* | \
2696 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2697 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2700 # OSF1 and SCO ODT 3.0 have their own names for install.
2701 # Don't use installbsd from OSF since it installs stuff as root
2703 for ac_prog
in ginstall scoinst
install; do
2704 for ac_exec_ext
in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2706 if test $ac_prog = install &&
2707 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2708 # AIX install. It has an incompatible calling convention.
2710 elif test $ac_prog = install &&
2711 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2712 # program-specific install script used by HP pwplus--don't use.
2715 rm -rf conftest.one conftest.two conftest.dir
2716 echo one
> conftest.one
2717 echo two
> conftest.two
2719 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2720 test -s conftest.one
&& test -s conftest.two
&&
2721 test -s conftest.dir
/conftest.one
&&
2722 test -s conftest.dir
/conftest.two
2724 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2737 rm -rf conftest.one conftest.two conftest.dir
2740 if test "${ac_cv_path_install+set}" = set; then
2741 INSTALL
=$ac_cv_path_install
2743 # As a last resort, use the slow shell script. Don't cache a
2744 # value for INSTALL within a source directory, because that will
2745 # break other packages using the cache if that directory is
2746 # removed, or if the value is a relative name.
2747 INSTALL
=$ac_install_sh
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2751 $as_echo "$INSTALL" >&6; }
2753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2754 # It thinks the first close brace ends the variable substitution.
2755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2759 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2762 $as_echo_n "checking whether build environment is sane... " >&6; }
2765 echo timestamp
> conftest.
file
2766 # Reject unsafe characters in $srcdir or the absolute working directory
2767 # name. Accept space and tab only in the latter.
2771 *[\\\"\
#\$\&\'\`$am_lf]*)
2772 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2775 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2776 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2779 # Do `set' in a subshell so we don't clobber the current shell's
2780 # arguments. Must try -L first in case configure is actually a
2781 # symlink; some systems play weird games with the mod time of symlinks
2782 # (eg FreeBSD returns the mod time of the symlink's containing
2785 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2786 if test "$*" = "X"; then
2788 set X
`ls -t "$srcdir/configure" conftest.file`
2791 if test "$*" != "X $srcdir/configure conftest.file" \
2792 && test "$*" != "X conftest.file $srcdir/configure"; then
2794 # If neither matched, then we have a broken ls. This can happen
2795 # if, for instance, CONFIG_SHELL is bash and it inherits a
2796 # broken ls alias from the environment. This has actually
2797 # happened. Such a system could not be considered "sane".
2798 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2799 alias in your environment" "$LINENO" 5
2802 test "$2" = conftest.
file
2808 as_fn_error
"newly created file is older than distributed files!
2809 Check your system clock" "$LINENO" 5
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2812 $as_echo "yes" >&6; }
2813 test "$program_prefix" != NONE
&&
2814 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2815 # Use a double $ so make ignores it.
2816 test "$program_suffix" != NONE
&&
2817 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2818 # Double any \ or $.
2819 # By default was `s,x,x', remove it if useless.
2820 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2821 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2823 # expand $ac_aux_dir to an absolute path
2824 am_aux_dir
=`cd $ac_aux_dir && pwd`
2826 if test x
"${MISSING+set}" != xset
; then
2829 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2831 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2834 # Use eval to expand $SHELL
2835 if eval "$MISSING --run true"; then
2836 am_missing_run
="$MISSING --run "
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2840 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2843 if test x
"${install_sh}" != xset
; then
2846 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2848 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2852 # Installed binaries are usually stripped using `strip' when the user
2853 # run `make install-strip'. However `strip' might not be the right
2854 # tool to use in cross-compilation environments, therefore Automake
2855 # will honor the `STRIP' environment variable to overrule this program.
2856 if test "$cross_compiling" != no
; then
2857 if test -n "$ac_tool_prefix"; then
2858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2859 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if test "${ac_cv_prog_STRIP+set}" = set; then :
2863 $as_echo_n "(cached) " >&6
2865 if test -n "$STRIP"; then
2866 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2872 test -z "$as_dir" && as_dir
=.
2873 for ac_exec_ext
in '' $ac_executable_extensions; do
2874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2875 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 STRIP
=$ac_cv_prog_STRIP
2886 if test -n "$STRIP"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2888 $as_echo "$STRIP" >&6; }
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2896 if test -z "$ac_cv_prog_STRIP"; then
2898 # Extract the first word of "strip", so it can be a program name with args.
2899 set dummy strip
; ac_word
=$2
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2903 $as_echo_n "(cached) " >&6
2905 if test -n "$ac_ct_STRIP"; then
2906 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2912 test -z "$as_dir" && as_dir
=.
2913 for ac_exec_ext
in '' $ac_executable_extensions; do
2914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2915 ac_cv_prog_ac_ct_STRIP
="strip"
2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2926 if test -n "$ac_ct_STRIP"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2928 $as_echo "$ac_ct_STRIP" >&6; }
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2934 if test "x$ac_ct_STRIP" = x
; then
2937 case $cross_compiling:$ac_tool_warned in
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2941 ac_tool_warned
=yes ;;
2946 STRIP
="$ac_cv_prog_STRIP"
2950 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2953 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2954 if test -z "$MKDIR_P"; then
2955 if test "${ac_cv_path_mkdir+set}" = set; then :
2956 $as_echo_n "(cached) " >&6
2958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2959 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2962 test -z "$as_dir" && as_dir
=.
2963 for ac_prog
in mkdir gmkdir
; do
2964 for ac_exec_ext
in '' $ac_executable_extensions; do
2965 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2966 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2967 'mkdir (GNU coreutils) '* | \
2968 'mkdir (coreutils) '* | \
2969 'mkdir (fileutils) '4.1*)
2970 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2980 if test "${ac_cv_path_mkdir+set}" = set; then
2981 MKDIR_P
="$ac_cv_path_mkdir -p"
2983 # As a last resort, use the slow shell script. Don't cache a
2984 # value for MKDIR_P within a source directory, because that will
2985 # break other packages using the cache if that directory is
2986 # removed, or if the value is a relative name.
2987 test -d .
/--version && rmdir .
/--version
2988 MKDIR_P
="$ac_install_sh -d"
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2992 $as_echo "$MKDIR_P" >&6; }
2996 [\\/$
]* | ?
:[\\/]*) ;;
2997 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3000 for ac_prog
in gawk mawk nawk
awk
3002 # Extract the first word of "$ac_prog", so it can be a program name with args.
3003 set dummy
$ac_prog; ac_word
=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if test "${ac_cv_prog_AWK+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3009 if test -n "$AWK"; then
3010 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir
=.
3017 for ac_exec_ext
in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019 ac_cv_prog_AWK
="$ac_prog"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 if test -n "$AWK"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3032 $as_echo "$AWK" >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3039 test -n "$AWK" && break
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3043 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3045 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3046 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3047 $as_echo_n "(cached) " >&6
3049 cat >conftest.
make <<\_ACEOF
3052 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3054 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3055 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3057 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3059 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3063 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3065 $as_echo "yes" >&6; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3070 SET_MAKE
="MAKE=${MAKE-make}"
3073 rm -rf .tst
2>/dev
/null
3074 mkdir .tst
2>/dev
/null
3075 if test -d .tst
; then
3080 rmdir .tst
2>/dev
/null
3082 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3083 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3084 # is not polluted with repeated "-I."
3085 am__isrc
=' -I$(srcdir)'
3086 # test to see if srcdir already configured
3087 if test -f $srcdir/config.status
; then
3088 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3092 # test whether we have cygpath
3093 if test -z "$CYGPATH_W"; then
3094 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3095 CYGPATH_W
='cygpath -w'
3102 # Define the identity of the package.
3107 cat >>confdefs.h
<<_ACEOF
3108 #define PACKAGE "$PACKAGE"
3112 cat >>confdefs.h
<<_ACEOF
3113 #define VERSION "$VERSION"
3116 # Some tools Automake needs.
3118 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3121 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3124 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3127 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3130 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3132 # We need awk for the "check" target. The system "awk" is bad on
3134 # Always define AMTAR for backward compatibility.
3136 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3138 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3144 # Default to --enable-multilib
3145 # Check whether --enable-multilib was given.
3146 if test "${enable_multilib+set}" = set; then :
3147 enableval
=$enable_multilib; case "$enableval" in
3148 yes) multilib
=yes ;;
3150 *) as_fn_error
"bad value $enableval for multilib option" "$LINENO" 5 ;;
3157 # We may get other options which we leave undocumented:
3158 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3159 # See config-ml.in if you want the gory details.
3161 if test "$srcdir" = "."; then
3162 if test "$with_target_subdir" != "."; then
3163 multi_basedir
="$srcdir/$with_multisrctop../.."
3165 multi_basedir
="$srcdir/$with_multisrctop.."
3168 multi_basedir
="$srcdir/.."
3172 # Even if the default multilib is not a cross compilation,
3173 # it may be that some of the other multilibs are.
3174 if test $cross_compiling = no
&& test $multilib = yes \
3175 && test "x${with_multisubdir}" != x
; then
3176 cross_compiling
=maybe
3179 ac_config_commands
="$ac_config_commands default-1"
3182 # Calculate toolexeclibdir
3183 # Also toolexecdir, though it's only used in toolexeclibdir
3184 case ${enable_version_specific_runtime_libs} in
3186 # Need the gcc compiler version to know where to install libraries
3187 # and header files if --enable-version-specific-runtime-libs option
3189 toolexecdir
='$(libdir)/gcc/$(target_alias)'
3190 toolexeclibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3193 if test -n "$with_cross_host" &&
3194 test x
"$with_cross_host" != x
"no"; then
3195 # Install a library built with a cross compiler in tooldir, not libdir.
3196 toolexecdir
='$(exec_prefix)/$(target_alias)'
3197 toolexeclibdir
='$(toolexecdir)/lib'
3199 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3200 toolexeclibdir
='$(libdir)'
3202 multi_os_directory
=`$CC -print-multi-os-directory`
3203 case $multi_os_directory in
3204 .
) ;; # Avoid trailing /.
3205 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3212 # Check the compiler.
3213 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3214 # We must force CC to /not/ be precious variables; otherwise
3215 # the wrong, non-multilib-adjusted value will be used in multilibs.
3216 # As a side effect, we have to subst CFLAGS ourselves.
3221 ac_cpp
='$CPP $CPPFLAGS'
3222 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3225 if test -n "$ac_tool_prefix"; then
3226 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3227 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if test "${ac_cv_prog_CC+set}" = set; then :
3231 $as_echo_n "(cached) " >&6
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC
="$CC" # Let the user override the test.
3236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3240 test -z "$as_dir" && as_dir
=.
3241 for ac_exec_ext
in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 if test -n "$CC"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3264 if test -z "$ac_cv_prog_CC"; then
3266 # Extract the first word of "gcc", so it can be a program name with args.
3267 set dummy gcc
; ac_word
=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3271 $as_echo_n "(cached) " >&6
3273 if test -n "$ac_ct_CC"; then
3274 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir
=.
3281 for ac_exec_ext
in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283 ac_cv_prog_ac_ct_CC
="gcc"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3294 if test -n "$ac_ct_CC"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3296 $as_echo "$ac_ct_CC" >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3302 if test "x$ac_ct_CC" = x
; then
3305 case $cross_compiling:$ac_tool_warned in
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309 ac_tool_warned
=yes ;;
3317 if test -z "$CC"; then
3318 if test -n "$ac_tool_prefix"; then
3319 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3320 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322 $as_echo_n "checking for $ac_word... " >&6; }
3323 if test "${ac_cv_prog_CC+set}" = set; then :
3324 $as_echo_n "(cached) " >&6
3326 if test -n "$CC"; then
3327 ac_cv_prog_CC
="$CC" # Let the user override the test.
3329 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3333 test -z "$as_dir" && as_dir
=.
3334 for ac_exec_ext
in '' $ac_executable_extensions; do
3335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3336 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 if test -n "$CC"; then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349 $as_echo "$CC" >&6; }
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 $as_echo "no" >&6; }
3358 if test -z "$CC"; then
3359 # Extract the first word of "cc", so it can be a program name with args.
3360 set dummy cc
; ac_word
=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if test "${ac_cv_prog_CC+set}" = set; then :
3364 $as_echo_n "(cached) " >&6
3366 if test -n "$CC"; then
3367 ac_cv_prog_CC
="$CC" # Let the user override the test.
3370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3374 test -z "$as_dir" && as_dir
=.
3375 for ac_exec_ext
in '' $ac_executable_extensions; do
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3378 ac_prog_rejected
=yes
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 if test $ac_prog_rejected = yes; then
3390 # We found a bogon in the path, so make sure we never use it.
3391 set dummy
$ac_cv_prog_CC
3393 if test $# != 0; then
3394 # We chose a different compiler from the bogus one.
3395 # However, it has the same basename, so the bogon will be chosen
3396 # first if we set CC to just the basename; use the full file name.
3398 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3404 if test -n "$CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406 $as_echo "$CC" >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3414 if test -z "$CC"; then
3415 if test -n "$ac_tool_prefix"; then
3416 for ac_prog
in cl.exe
3418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3419 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if test "${ac_cv_prog_CC+set}" = set; then :
3423 $as_echo_n "(cached) " >&6
3425 if test -n "$CC"; then
3426 ac_cv_prog_CC
="$CC" # Let the user override the test.
3428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3432 test -z "$as_dir" && as_dir
=.
3433 for ac_exec_ext
in '' $ac_executable_extensions; do
3434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 if test -n "$CC"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448 $as_echo "$CC" >&6; }
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3455 test -n "$CC" && break
3458 if test -z "$CC"; then
3460 for ac_prog
in cl.exe
3462 # Extract the first word of "$ac_prog", so it can be a program name with args.
3463 set dummy
$ac_prog; ac_word
=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
3469 if test -n "$ac_ct_CC"; then
3470 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3476 test -z "$as_dir" && as_dir
=.
3477 for ac_exec_ext
in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479 ac_cv_prog_ac_ct_CC
="$ac_prog"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3490 if test -n "$ac_ct_CC"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3492 $as_echo "$ac_ct_CC" >&6; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3499 test -n "$ac_ct_CC" && break
3502 if test "x$ac_ct_CC" = x
; then
3505 case $cross_compiling:$ac_tool_warned in
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3509 ac_tool_warned
=yes ;;
3518 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 as_fn_error
"no acceptable C compiler found in \$PATH
3521 See \`config.log' for more details." "$LINENO" 5; }
3523 # Provide some information about the compiler.
3524 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3527 for ac_option
in --version -v -V -qversion; do
3528 { { ac_try
="$ac_compiler $ac_option >&5"
3530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534 $as_echo "$ac_try_echo"; } >&5
3535 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3537 if test -s conftest.err; then
3539 ... rest of stderr output deleted ...
3540 10q' conftest.err >conftest.er1
3541 cat conftest.er1 >&5
3542 rm -f conftest.er1 conftest.err
3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545 test $ac_status = 0; }
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3559 ac_clean_files_save=$ac_clean_files
3560 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3561 # Try to create an executable without -o first, disregard a.out.
3562 # It will help us diagnose broken compilers, and finding out an intuition
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3565 $as_echo_n "checking for C compiler default output file name... " >&6; }
3566 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3568 # The possible output files:
3569 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3572 for ac_file in $ac_files
3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3576 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3581 if { { ac_try="$ac_link_default"
3583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3584 *) ac_try_echo
=$ac_try;;
3586 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587 $as_echo "$ac_try_echo"; } >&5
3588 (eval "$ac_link_default") 2>&5
3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }; then :
3592 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3593 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3594 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3595 # so that the user can short-circuit this test for compilers unknown to
3597 for ac_file
in $ac_files ''
3599 test -f "$ac_file" ||
continue
3601 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3604 # We found the default executable, but exeext='' is most
3608 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3610 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3612 # We set ac_cv_exeext here because the later test for it is not
3613 # safe: cross compilers may not add the suffix if given an `-o'
3614 # argument, so we may need to know it at that point already.
3615 # Even if this section looks crufty: it has the advantage of
3622 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3628 $as_echo "$ac_file" >&6; }
3629 if test -z "$ac_file"; then :
3630 $as_echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.
$ac_ext >&5
3633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635 { as_fn_set_status
77
3636 as_fn_error
"C compiler cannot create executables
3637 See \`config.log' for more details." "$LINENO" 5; }; }
3639 ac_exeext
=$ac_cv_exeext
3641 # Check that the compiler produces executables we can run. If not, either
3642 # the compiler is broken, or we cross compile.
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3644 $as_echo_n "checking whether the C compiler works... " >&6; }
3645 # If not cross compiling, check that we can run a simple program.
3646 if test "$cross_compiling" != yes; then
3647 if { ac_try
='./$ac_file'
3648 { { case "(($ac_try" in
3649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654 (eval "$ac_try") 2>&5
3656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657 test $ac_status = 0; }; }; then
3660 if test "$cross_compiling" = maybe; then
3663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 as_fn_error "cannot run C compiled programs.
3666 If you meant to cross compile
, use \
`--host'.
3667 See \`config.log
' for more details." "$LINENO" 5; }
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3672 $as_echo "yes" >&6; }
3674 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3675 ac_clean_files=$ac_clean_files_save
3676 # Check that the compiler produces executables we can run. If not, either
3677 # the compiler is broken, or we cross compile.
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3679 $as_echo_n "checking whether we are cross compiling... " >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3681 $as_echo "$cross_compiling" >&6; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3684 $as_echo_n "checking for suffix of executables... " >&6; }
3685 if { { ac_try="$ac_link"
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691 $as_echo "$ac_try_echo"; } >&5
3692 (eval "$ac_link") 2>&5
3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695 test $ac_status = 0; }; then :
3696 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3697 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3698 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3700 for ac_file
in conftest.exe conftest conftest.
*; do
3701 test -f "$ac_file" ||
continue
3703 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3704 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3713 See \`config.log' for more details." "$LINENO" 5; }
3715 rm -f conftest
$ac_cv_exeext
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3717 $as_echo "$ac_cv_exeext" >&6; }
3719 rm -f conftest.
$ac_ext
3720 EXEEXT
=$ac_cv_exeext
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3723 $as_echo_n "checking for suffix of object files... " >&6; }
3724 if test "${ac_cv_objext+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
3727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3738 rm -f conftest.o conftest.obj
3739 if { { ac_try
="$ac_compile"
3741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745 $as_echo "$ac_try_echo"; } >&5
3746 (eval "$ac_compile") 2>&5
3748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3749 test $ac_status = 0; }; then :
3750 for ac_file in conftest.o conftest.obj conftest.*; do
3751 test -f "$ac_file" || continue;
3753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3754 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3759 $as_echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error "cannot compute suffix of object files
: cannot compile
3765 See \
`config.log' for more details." "$LINENO" 5; }
3767 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3770 $as_echo "$ac_cv_objext" >&6; }
3771 OBJEXT=$ac_cv_objext
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3774 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3775 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3776 $as_echo_n "(cached) " >&6
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3792 if ac_fn_c_try_compile "$LINENO"; then :
3797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3802 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3803 if test $ac_compiler_gnu = yes; then
3808 ac_test_CFLAGS=${CFLAGS+set}
3809 ac_save_CFLAGS=$CFLAGS
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3811 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3812 if test "${ac_cv_prog_cc_g+set}" = set; then :
3813 $as_echo_n "(cached) " >&6
3815 ac_save_c_werror_flag=$ac_c_werror_flag
3816 ac_c_werror_flag=yes
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3830 if ac_fn_c_try_compile "$LINENO"; then :
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3845 if ac_fn_c_try_compile "$LINENO"; then :
3848 ac_c_werror_flag=$ac_save_c_werror_flag
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3861 if ac_fn_c_try_compile "$LINENO"; then :
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 ac_c_werror_flag=$ac_save_c_werror_flag
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3872 $as_echo "$ac_cv_prog_cc_g" >&6; }
3873 if test "$ac_test_CFLAGS" = set; then
3874 CFLAGS=$ac_save_CFLAGS
3875 elif test $ac_cv_prog_cc_g = yes; then
3876 if test "$GCC" = yes; then
3882 if test "$GCC" = yes; then
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3889 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3890 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3891 $as_echo_n "(cached) " >&6
3893 ac_cv_prog_cc_c89=no
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3899 #include <sys/types.h>
3900 #include <sys/stat.h>
3901 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3902 struct buf { int x; };
3903 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3904 static char *e (p, i)
3910 static char *f (char * (*g) (char **, int), char **p, ...)
3915 s = g (p, va_arg (v,int));
3920 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3921 function prototypes and stuff, but not '\xHH' hex character constants.
3922 These don't provoke an error unfortunately, instead are silently treated
3923 as 'x'. The following induces an error, until -std is added to get
3924 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3925 array size at least. It's necessary to write '\x00'==0 to get something
3926 that's true only with -std. */
3927 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3929 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3930 inside strings and character constants. */
3932 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3934 int test (int i, double x);
3935 struct s1 {int (*f) (int a);};
3936 struct s2 {int (*f) (double a);};
3937 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3943 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3948 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3949 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3951 CC="$ac_save_CC $ac_arg"
3952 if ac_fn_c_try_compile "$LINENO"; then :
3953 ac_cv_prog_cc_c89=$ac_arg
3955 rm -f core conftest.err conftest.$ac_objext
3956 test "x$ac_cv_prog_cc_c89" != "xno" && break
3958 rm -f conftest.$ac_ext
3963 case "x$ac_cv_prog_cc_c89" in
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3966 $as_echo "none needed" >&6; } ;;
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3969 $as_echo "unsupported" >&6; } ;;
3971 CC="$CC $ac_cv_prog_cc_c89"
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3973 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3975 if test "x$ac_cv_prog_cc_c89" != xno; then :
3980 ac_cpp='$CPP $CPPFLAGS'
3981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3984 DEPDIR="${am__leading_dot}deps"
3986 ac_config_commands="$ac_config_commands depfiles"
3989 am_make=${MAKE-make}
3990 cat > confinc << 'END'
3992 @echo this is the am__doit target
3995 # If we don't find an include directive, just comment out the code.
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3997 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4001 # First try GNU make style include.
4002 echo "include confinc" > confmf
4003 # Ignore all kinds of additional output from `make'.
4004 case `$am_make -s -f confmf 2> /dev/null` in #(
4005 *the\ am__doit\ target*)
4011 # Now try BSD make style include.
4012 if test "$am__include" = "#"; then
4013 echo '.include
"confinc"' > confmf
4014 case `$am_make -s -f confmf 2> /dev/null` in #(
4015 *the\ am__doit\ target*)
4016 am__include=.include
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4025 $as_echo "$_am_result" >&6; }
4026 rm -f confinc confmf
4028 # Check whether --enable-dependency-tracking was given.
4029 if test "${enable_dependency_tracking+set}" = set; then :
4030 enableval=$enable_dependency_tracking;
4033 if test "x$enable_dependency_tracking" != xno; then
4034 am_depcomp="$ac_aux_dir/depcomp"
4037 if test "x$enable_dependency_tracking" != xno
; then
4047 depcc
="$CC" am_compiler_list
=
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4050 $as_echo_n "checking dependency style of $depcc... " >&6; }
4051 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4052 $as_echo_n "(cached) " >&6
4054 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4055 # We make a subdir and do the tests there. Otherwise we can end up
4056 # making bogus files that we don't know about and never remove. For
4057 # instance it was reported that on HP-UX the gcc test will end up
4058 # making a dummy file named `D' -- because `-MD' means `put the output
4061 # Copy depcomp to subdir because otherwise we won't find it if we're
4062 # using a relative directory.
4063 cp "$am_depcomp" conftest.dir
4065 # We will build objects and dependencies in a subdirectory because
4066 # it helps to detect inapplicable dependency modes. For instance
4067 # both Tru64's cc and ICC support -MD to output dependencies as a
4068 # side effect of compilation, but ICC will put the dependencies in
4069 # the current directory while Tru64 will put them in the object
4073 am_cv_CC_dependencies_compiler_type
=none
4074 if test "$am_compiler_list" = ""; then
4075 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4078 case " $depcc " in #(
4079 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4082 for depmode
in $am_compiler_list; do
4083 # Setup a source with many dependencies, because some compilers
4084 # like to wrap large dependency lists on column 80 (with \), and
4085 # we should not choose a depcomp mode which is confused by this.
4087 # We need to recreate these files for each test, as the compiler may
4088 # overwrite some of them when testing with obscure command lines.
4089 # This happens at least with the AIX C compiler.
4091 for i
in 1 2 3 4 5 6; do
4092 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4093 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4094 # Solaris 8's {/usr,}/bin/sh.
4095 touch sub
/conftst
$i.h
4097 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4099 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4100 # mode. It turns out that the SunPro C++ compiler does not properly
4101 # handle `-M -o', and we need to detect this. Also, some Intel
4102 # versions had trouble with output in subdirs
4103 am__obj
=sub
/conftest.
${OBJEXT-o}
4104 am__minus_obj
="-o $am__obj"
4107 # This depmode causes a compiler race in universal mode.
4108 test "$am__universal" = false ||
continue
4111 # after this tag, mechanisms are not by side-effect, so they'll
4112 # only be used when explicitly requested
4113 if test "x$enable_dependency_tracking" = xyes
; then
4119 msvisualcpp | msvcmsys
)
4120 # This compiler won't grok `-c -o', but also, the minuso test has
4121 # not run yet. These depmodes are late enough in the game, and
4122 # so weak that their functioning should not be impacted.
4123 am__obj
=conftest.
${OBJEXT-o}
4128 if depmode
=$depmode \
4129 source=sub
/conftest.c object
=$am__obj \
4130 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4131 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4132 >/dev
/null
2>conftest.err
&&
4133 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4134 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4135 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4136 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4137 # icc doesn't choke on unknown options, it will just issue warnings
4138 # or remarks (even with -Werror). So we grep stderr for any message
4139 # that says an option was ignored or not supported.
4140 # When given -MP, icc 7.0 and 7.1 complain thusly:
4141 # icc: Command line warning: ignoring option '-M'; no argument required
4142 # The diagnosis changed in icc 8.0:
4143 # icc: Command line remark: option '-MP' not supported
4144 if (grep 'ignoring option' conftest.err ||
4145 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4146 am_cv_CC_dependencies_compiler_type
=$depmode
4155 am_cv_CC_dependencies_compiler_type
=none
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4160 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4161 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4164 test "x$enable_dependency_tracking" != xno \
4165 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4167 am__fastdepCC_FALSE
='#'
4169 am__fastdepCC_TRUE
='#'
4170 am__fastdepCC_FALSE
=
4174 # By default we simply use the C compiler to build assembly code.
4176 test "${CCAS+set}" = set || CCAS
=$CC
4177 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
4181 depcc
="$CCAS" am_compiler_list
=
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4184 $as_echo_n "checking dependency style of $depcc... " >&6; }
4185 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4186 $as_echo_n "(cached) " >&6
4188 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4189 # We make a subdir and do the tests there. Otherwise we can end up
4190 # making bogus files that we don't know about and never remove. For
4191 # instance it was reported that on HP-UX the gcc test will end up
4192 # making a dummy file named `D' -- because `-MD' means `put the output
4195 # Copy depcomp to subdir because otherwise we won't find it if we're
4196 # using a relative directory.
4197 cp "$am_depcomp" conftest.dir
4199 # We will build objects and dependencies in a subdirectory because
4200 # it helps to detect inapplicable dependency modes. For instance
4201 # both Tru64's cc and ICC support -MD to output dependencies as a
4202 # side effect of compilation, but ICC will put the dependencies in
4203 # the current directory while Tru64 will put them in the object
4207 am_cv_CCAS_dependencies_compiler_type
=none
4208 if test "$am_compiler_list" = ""; then
4209 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4214 for depmode
in $am_compiler_list; do
4215 # Setup a source with many dependencies, because some compilers
4216 # like to wrap large dependency lists on column 80 (with \), and
4217 # we should not choose a depcomp mode which is confused by this.
4219 # We need to recreate these files for each test, as the compiler may
4220 # overwrite some of them when testing with obscure command lines.
4221 # This happens at least with the AIX C compiler.
4223 for i
in 1 2 3 4 5 6; do
4224 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4225 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4226 # Solaris 8's {/usr,}/bin/sh.
4227 touch sub
/conftst
$i.h
4229 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4231 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4232 # mode. It turns out that the SunPro C++ compiler does not properly
4233 # handle `-M -o', and we need to detect this. Also, some Intel
4234 # versions had trouble with output in subdirs
4235 am__obj
=sub
/conftest.
${OBJEXT-o}
4236 am__minus_obj
="-o $am__obj"
4239 # This depmode causes a compiler race in universal mode.
4240 test "$am__universal" = false ||
continue
4243 # after this tag, mechanisms are not by side-effect, so they'll
4244 # only be used when explicitly requested
4245 if test "x$enable_dependency_tracking" = xyes
; then
4251 msvisualcpp | msvcmsys
)
4252 # This compiler won't grok `-c -o', but also, the minuso test has
4253 # not run yet. These depmodes are late enough in the game, and
4254 # so weak that their functioning should not be impacted.
4255 am__obj
=conftest.
${OBJEXT-o}
4260 if depmode
=$depmode \
4261 source=sub
/conftest.c object
=$am__obj \
4262 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4263 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4264 >/dev
/null
2>conftest.err
&&
4265 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4266 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4267 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4268 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4269 # icc doesn't choke on unknown options, it will just issue warnings
4270 # or remarks (even with -Werror). So we grep stderr for any message
4271 # that says an option was ignored or not supported.
4272 # When given -MP, icc 7.0 and 7.1 complain thusly:
4273 # icc: Command line warning: ignoring option '-M'; no argument required
4274 # The diagnosis changed in icc 8.0:
4275 # icc: Command line remark: option '-MP' not supported
4276 if (grep 'ignoring option' conftest.err ||
4277 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4278 am_cv_CCAS_dependencies_compiler_type
=$depmode
4287 am_cv_CCAS_dependencies_compiler_type
=none
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4292 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4293 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
4296 test "x$enable_dependency_tracking" != xno \
4297 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
4298 am__fastdepCCAS_TRUE
=
4299 am__fastdepCCAS_FALSE
='#'
4301 am__fastdepCCAS_TRUE
='#'
4302 am__fastdepCCAS_FALSE
=
4310 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4311 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4312 # in both places for now and restore CFLAGS at the end of config.
4313 save_CFLAGS
="$CFLAGS"
4315 # Find other programs we need.
4316 if test -n "$ac_tool_prefix"; then
4317 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4318 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 $as_echo_n "checking for $ac_word... " >&6; }
4321 if test "${ac_cv_prog_AR+set}" = set; then :
4322 $as_echo_n "(cached) " >&6
4324 if test -n "$AR"; then
4325 ac_cv_prog_AR
="$AR" # Let the user override the test.
4327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4331 test -z "$as_dir" && as_dir
=.
4332 for ac_exec_ext
in '' $ac_executable_extensions; do
4333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4334 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 if test -n "$AR"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4347 $as_echo "$AR" >&6; }
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4355 if test -z "$ac_cv_prog_AR"; then
4357 # Extract the first word of "ar", so it can be a program name with args.
4358 set dummy
ar; ac_word
=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4362 $as_echo_n "(cached) " >&6
4364 if test -n "$ac_ct_AR"; then
4365 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4371 test -z "$as_dir" && as_dir
=.
4372 for ac_exec_ext
in '' $ac_executable_extensions; do
4373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4374 ac_cv_prog_ac_ct_AR
="ar"
4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4385 if test -n "$ac_ct_AR"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4387 $as_echo "$ac_ct_AR" >&6; }
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4393 if test "x$ac_ct_AR" = x
; then
4396 case $cross_compiling:$ac_tool_warned in
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4400 ac_tool_warned
=yes ;;
4408 if test -n "$ac_tool_prefix"; then
4409 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4410 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4412 $as_echo_n "checking for $ac_word... " >&6; }
4413 if test "${ac_cv_prog_NM+set}" = set; then :
4414 $as_echo_n "(cached) " >&6
4416 if test -n "$NM"; then
4417 ac_cv_prog_NM
="$NM" # Let the user override the test.
4419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4423 test -z "$as_dir" && as_dir
=.
4424 for ac_exec_ext
in '' $ac_executable_extensions; do
4425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4426 ac_cv_prog_NM
="${ac_tool_prefix}nm"
4427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 if test -n "$NM"; then
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4439 $as_echo "$NM" >&6; }
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442 $as_echo "no" >&6; }
4447 if test -z "$ac_cv_prog_NM"; then
4449 # Extract the first word of "nm", so it can be a program name with args.
4450 set dummy nm
; ac_word
=$2
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452 $as_echo_n "checking for $ac_word... " >&6; }
4453 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
4454 $as_echo_n "(cached) " >&6
4456 if test -n "$ac_ct_NM"; then
4457 ac_cv_prog_ac_ct_NM
="$ac_ct_NM" # Let the user override the test.
4459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4463 test -z "$as_dir" && as_dir
=.
4464 for ac_exec_ext
in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 ac_cv_prog_ac_ct_NM
="nm"
4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 ac_ct_NM
=$ac_cv_prog_ac_ct_NM
4477 if test -n "$ac_ct_NM"; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4479 $as_echo "$ac_ct_NM" >&6; }
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482 $as_echo "no" >&6; }
4485 if test "x$ac_ct_NM" = x
; then
4488 case $cross_compiling:$ac_tool_warned in
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4492 ac_tool_warned
=yes ;;
4500 if test -n "$ac_tool_prefix"; then
4501 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4502 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504 $as_echo_n "checking for $ac_word... " >&6; }
4505 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4506 $as_echo_n "(cached) " >&6
4508 if test -n "$RANLIB"; then
4509 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4515 test -z "$as_dir" && as_dir
=.
4516 for ac_exec_ext
in '' $ac_executable_extensions; do
4517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4518 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 RANLIB
=$ac_cv_prog_RANLIB
4529 if test -n "$RANLIB"; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4531 $as_echo "$RANLIB" >&6; }
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4539 if test -z "$ac_cv_prog_RANLIB"; then
4540 ac_ct_RANLIB
=$RANLIB
4541 # Extract the first word of "ranlib", so it can be a program name with args.
4542 set dummy ranlib
; ac_word
=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
4548 if test -n "$ac_ct_RANLIB"; then
4549 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4555 test -z "$as_dir" && as_dir
=.
4556 for ac_exec_ext
in '' $ac_executable_extensions; do
4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4569 if test -n "$ac_ct_RANLIB"; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4571 $as_echo "$ac_ct_RANLIB" >&6; }
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 $as_echo "no" >&6; }
4577 if test "x$ac_ct_RANLIB" = x
; then
4578 RANLIB
="ranlib-not-found-in-path-error"
4580 case $cross_compiling:$ac_tool_warned in
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4584 ac_tool_warned
=yes ;;
4586 RANLIB
=$ac_ct_RANLIB
4589 RANLIB
="$ac_cv_prog_RANLIB"
4592 # Extract the first word of "perl", so it can be a program name with args.
4593 set dummy perl
; ac_word
=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if test "${ac_cv_path_PERL+set}" = set; then :
4597 $as_echo_n "(cached) " >&6
4601 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
4604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir
=.
4609 for ac_exec_ext
in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="perl-not-found-in-path-error"
4623 PERL
=$ac_cv_path_PERL
4624 if test -n "$PERL"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4626 $as_echo "$PERL" >&6; }
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4639 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4644 macro_version
='2.2.7a'
4645 macro_revision
='1.3134'
4659 ltmain
="$ac_aux_dir/ltmain.sh"
4661 # Backslashify metacharacters that are still active within
4662 # double-quoted strings.
4663 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
4665 # Same as above, but do not quote variable references.
4666 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
4668 # Sed substitution to delay expansion of an escaped shell variable in a
4669 # double_quote_subst'ed string.
4670 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
4672 # Sed substitution to delay expansion of an escaped single quote.
4673 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
4675 # Sed substitution to avoid accidental globbing in evaled expressions
4676 no_glob_subst
='s/\*/\\\*/g'
4678 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4679 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4680 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4683 $as_echo_n "checking how to print strings... " >&6; }
4684 # Test print first, because it will be a builtin if present.
4685 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4686 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4688 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4691 # Use this function as a fallback that always works.
4692 func_fallback_echo ()
4694 eval 'cat <<_LTECHO_EOF
4698 ECHO='func_fallback_echo
'
4701 # func_echo_all arg...
4702 # Invoke $ECHO with all args, space-separated.
4709 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4710 $as_echo "printf" >&6; } ;;
4711 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4712 $as_echo "print -r" >&6; } ;;
4713 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4714 $as_echo "cat" >&6; } ;;
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4731 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4732 if test "${ac_cv_path_SED+set}" = set; then :
4733 $as_echo_n "(cached) " >&6
4735 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4736 for ac_i in 1 2 3 4 5 6 7; do
4737 ac_script="$ac_script$as_nl$ac_script"
4739 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4740 { ac_script=; unset ac_script;}
4741 if test -z "$SED"; then
4742 ac_path_SED_found=false
4743 # Loop through the user's path and
test for each of PROGNAME-LIST
4744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir
=.
4749 for ac_prog
in sed gsed
; do
4750 for ac_exec_ext
in '' $ac_executable_extensions; do
4751 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4752 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4753 # Check for GNU ac_path_SED and select it if it is found.
4754 # Check for GNU $ac_path_SED
4755 case `"$ac_path_SED" --version 2>&1` in
4757 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4760 $as_echo_n 0123456789 >"conftest.in"
4763 cat "conftest.in" "conftest.in" >"conftest.tmp"
4764 mv "conftest.tmp" "conftest.in"
4765 cp "conftest.in" "conftest.nl"
4766 $as_echo '' >> "conftest.nl"
4767 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4768 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4769 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4770 if test $ac_count -gt ${ac_path_SED_max-0}; then
4771 # Best one so far, save it but keep looking for a better one
4772 ac_cv_path_SED
="$ac_path_SED"
4773 ac_path_SED_max
=$ac_count
4775 # 10*(2^10) chars as input seems more than enough
4776 test $ac_count -gt 10 && break
4778 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4781 $ac_path_SED_found && break 3
4786 if test -z "$ac_cv_path_SED"; then
4787 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4795 $as_echo "$ac_cv_path_SED" >&6; }
4796 SED
="$ac_cv_path_SED"
4799 test -z "$SED" && SED
=sed
4800 Xsed
="$SED -e 1s/^X//"
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4813 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4814 if test "${ac_cv_path_GREP+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4817 if test -z "$GREP"; then
4818 ac_path_GREP_found
=false
4819 # Loop through the user's path and test for each of PROGNAME-LIST
4820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4821 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4824 test -z "$as_dir" && as_dir
=.
4825 for ac_prog
in grep ggrep
; do
4826 for ac_exec_ext
in '' $ac_executable_extensions; do
4827 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4828 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4829 # Check for GNU ac_path_GREP and select it if it is found.
4830 # Check for GNU $ac_path_GREP
4831 case `"$ac_path_GREP" --version 2>&1` in
4833 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4836 $as_echo_n 0123456789 >"conftest.in"
4839 cat "conftest.in" "conftest.in" >"conftest.tmp"
4840 mv "conftest.tmp" "conftest.in"
4841 cp "conftest.in" "conftest.nl"
4842 $as_echo 'GREP' >> "conftest.nl"
4843 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4844 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4845 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4846 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4847 # Best one so far, save it but keep looking for a better one
4848 ac_cv_path_GREP
="$ac_path_GREP"
4849 ac_path_GREP_max
=$ac_count
4851 # 10*(2^10) chars as input seems more than enough
4852 test $ac_count -gt 10 && break
4854 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4857 $ac_path_GREP_found && break 3
4862 if test -z "$ac_cv_path_GREP"; then
4863 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4866 ac_cv_path_GREP
=$GREP
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4871 $as_echo "$ac_cv_path_GREP" >&6; }
4872 GREP
="$ac_cv_path_GREP"
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4876 $as_echo_n "checking for egrep... " >&6; }
4877 if test "${ac_cv_path_EGREP+set}" = set; then :
4878 $as_echo_n "(cached) " >&6
4880 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4881 then ac_cv_path_EGREP
="$GREP -E"
4883 if test -z "$EGREP"; then
4884 ac_path_EGREP_found
=false
4885 # Loop through the user's path and test for each of PROGNAME-LIST
4886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4887 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4890 test -z "$as_dir" && as_dir
=.
4891 for ac_prog
in egrep; do
4892 for ac_exec_ext
in '' $ac_executable_extensions; do
4893 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4894 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4895 # Check for GNU ac_path_EGREP and select it if it is found.
4896 # Check for GNU $ac_path_EGREP
4897 case `"$ac_path_EGREP" --version 2>&1` in
4899 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4902 $as_echo_n 0123456789 >"conftest.in"
4905 cat "conftest.in" "conftest.in" >"conftest.tmp"
4906 mv "conftest.tmp" "conftest.in"
4907 cp "conftest.in" "conftest.nl"
4908 $as_echo 'EGREP' >> "conftest.nl"
4909 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4910 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4911 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4912 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4913 # Best one so far, save it but keep looking for a better one
4914 ac_cv_path_EGREP
="$ac_path_EGREP"
4915 ac_path_EGREP_max
=$ac_count
4917 # 10*(2^10) chars as input seems more than enough
4918 test $ac_count -gt 10 && break
4920 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4923 $ac_path_EGREP_found && break 3
4928 if test -z "$ac_cv_path_EGREP"; then
4929 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4932 ac_cv_path_EGREP
=$EGREP
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4938 $as_echo "$ac_cv_path_EGREP" >&6; }
4939 EGREP
="$ac_cv_path_EGREP"
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4943 $as_echo_n "checking for fgrep... " >&6; }
4944 if test "${ac_cv_path_FGREP+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
4947 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4948 then ac_cv_path_FGREP
="$GREP -F"
4950 if test -z "$FGREP"; then
4951 ac_path_FGREP_found
=false
4952 # Loop through the user's path and test for each of PROGNAME-LIST
4953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4954 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4957 test -z "$as_dir" && as_dir
=.
4958 for ac_prog
in fgrep
; do
4959 for ac_exec_ext
in '' $ac_executable_extensions; do
4960 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4961 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4962 # Check for GNU ac_path_FGREP and select it if it is found.
4963 # Check for GNU $ac_path_FGREP
4964 case `"$ac_path_FGREP" --version 2>&1` in
4966 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4969 $as_echo_n 0123456789 >"conftest.in"
4972 cat "conftest.in" "conftest.in" >"conftest.tmp"
4973 mv "conftest.tmp" "conftest.in"
4974 cp "conftest.in" "conftest.nl"
4975 $as_echo 'FGREP' >> "conftest.nl"
4976 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4977 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4978 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4979 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4980 # Best one so far, save it but keep looking for a better one
4981 ac_cv_path_FGREP
="$ac_path_FGREP"
4982 ac_path_FGREP_max
=$ac_count
4984 # 10*(2^10) chars as input seems more than enough
4985 test $ac_count -gt 10 && break
4987 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4990 $ac_path_FGREP_found && break 3
4995 if test -z "$ac_cv_path_FGREP"; then
4996 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4999 ac_cv_path_FGREP
=$FGREP
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5005 $as_echo "$ac_cv_path_FGREP" >&6; }
5006 FGREP
="$ac_cv_path_FGREP"
5009 test -z "$GREP" && GREP
=grep
5029 # Check whether --with-gnu-ld was given.
5030 if test "${with_gnu_ld+set}" = set; then :
5031 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5037 if test "$GCC" = yes; then
5038 # Check if gcc -print-prog-name=ld gives a path.
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5040 $as_echo_n "checking for ld used by $CC... " >&6; }
5043 # gcc leaves a trailing carriage return which upsets mingw
5044 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5046 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5049 # Accept absolute paths.
5051 re_direlt
='/[^/][^/]*/\.\./'
5052 # Canonicalize the pathname of ld
5053 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5054 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5055 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5057 test -z "$LD" && LD
="$ac_prog"
5060 # If it fails, then pretend we aren't using GCC.
5064 # If it is relative, then search for the first ld in PATH.
5068 elif test "$with_gnu_ld" = yes; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5070 $as_echo_n "checking for GNU ld... " >&6; }
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5073 $as_echo_n "checking for non-GNU ld... " >&6; }
5075 if test "${lt_cv_path_LD+set}" = set; then :
5076 $as_echo_n "(cached) " >&6
5078 if test -z "$LD"; then
5079 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5080 for ac_dir
in $PATH; do
5082 test -z "$ac_dir" && ac_dir
=.
5083 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5084 lt_cv_path_LD
="$ac_dir/$ac_prog"
5085 # Check to see if the program is GNU ld. I'd rather use --version,
5086 # but apparently some variants of GNU ld only accept -v.
5087 # Break only if it was the GNU/non-GNU ld that we prefer.
5088 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5089 *GNU
* |
*'with BFD'*)
5090 test "$with_gnu_ld" != no
&& break
5093 test "$with_gnu_ld" != yes && break
5100 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5105 if test -n "$LD"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5107 $as_echo "$LD" >&6; }
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5112 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5114 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5115 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5118 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5119 case `$LD -v 2>&1 </dev/null` in
5120 *GNU
* |
*'with BFD'*)
5121 lt_cv_prog_gnu_ld
=yes
5124 lt_cv_prog_gnu_ld
=no
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5129 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5130 with_gnu_ld
=$lt_cv_prog_gnu_ld
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5141 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5142 if test "${lt_cv_path_NM+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5145 if test -n "$NM"; then
5146 # Let the user override the test.
5149 lt_nm_to_check
="${ac_tool_prefix}nm"
5150 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5151 lt_nm_to_check
="$lt_nm_to_check nm"
5153 for lt_tmp_nm
in $lt_nm_to_check; do
5154 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5155 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5157 test -z "$ac_dir" && ac_dir
=.
5158 tmp_nm
="$ac_dir/$lt_tmp_nm"
5159 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5160 # Check to see if the nm accepts a BSD-compat flag.
5161 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5162 # nm: unknown option "B" ignored
5163 # Tru64's nm complains that /dev/null is an invalid object file
5164 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5165 */dev
/null
* |
*'Invalid file or object type'*)
5166 lt_cv_path_NM
="$tmp_nm -B"
5170 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5172 lt_cv_path_NM
="$tmp_nm -p"
5176 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5177 continue # so that we can try to find one that supports BSD flags
5186 : ${lt_cv_path_NM=no}
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5190 $as_echo "$lt_cv_path_NM" >&6; }
5191 if test "$lt_cv_path_NM" != "no"; then
5194 # Didn't find any BSD compatible name lister, look for dumpbin.
5195 if test -n "$DUMPBIN"; then :
5196 # Let the user override the test.
5198 if test -n "$ac_tool_prefix"; then
5199 for ac_prog
in dumpbin
"link -dump"
5201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5202 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204 $as_echo_n "checking for $ac_word... " >&6; }
5205 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5206 $as_echo_n "(cached) " >&6
5208 if test -n "$DUMPBIN"; then
5209 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5215 test -z "$as_dir" && as_dir
=.
5216 for ac_exec_ext
in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 DUMPBIN
=$ac_cv_prog_DUMPBIN
5229 if test -n "$DUMPBIN"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5231 $as_echo "$DUMPBIN" >&6; }
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5238 test -n "$DUMPBIN" && break
5241 if test -z "$DUMPBIN"; then
5242 ac_ct_DUMPBIN
=$DUMPBIN
5243 for ac_prog
in dumpbin
"link -dump"
5245 # Extract the first word of "$ac_prog", so it can be a program name with args.
5246 set dummy
$ac_prog; ac_word
=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
5252 if test -n "$ac_ct_DUMPBIN"; then
5253 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5259 test -z "$as_dir" && as_dir
=.
5260 for ac_exec_ext
in '' $ac_executable_extensions; do
5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5273 if test -n "$ac_ct_DUMPBIN"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5275 $as_echo "$ac_ct_DUMPBIN" >&6; }
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5282 test -n "$ac_ct_DUMPBIN" && break
5285 if test "x$ac_ct_DUMPBIN" = x
; then
5288 case $cross_compiling:$ac_tool_warned in
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5292 ac_tool_warned
=yes ;;
5294 DUMPBIN
=$ac_ct_DUMPBIN
5298 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5300 DUMPBIN
="$DUMPBIN -symbols"
5308 if test "$DUMPBIN" != ":"; then
5312 test -z "$NM" && NM
=nm
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5320 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5321 if test "${lt_cv_nm_interface+set}" = set; then :
5322 $as_echo_n "(cached) " >&6
5324 lt_cv_nm_interface
="BSD nm"
5325 echo "int some_variable = 0;" > conftest.
$ac_ext
5326 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5327 (eval "$ac_compile" 2>conftest.err
)
5328 cat conftest.err
>&5
5329 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5330 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5331 cat conftest.err
>&5
5332 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5333 cat conftest.out
>&5
5334 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5335 lt_cv_nm_interface
="MS dumpbin"
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5340 $as_echo "$lt_cv_nm_interface" >&6; }
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5343 $as_echo_n "checking whether ln -s works... " >&6; }
5345 if test "$LN_S" = "ln -s"; then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5347 $as_echo "yes" >&6; }
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5350 $as_echo "no, using $LN_S" >&6; }
5353 # find the maximum length of command line arguments
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5355 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5356 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5364 # On DJGPP, this test can blow up pretty badly due to problems in libc
5365 # (any single argument exceeding 2000 bytes causes a buffer overrun
5366 # during glob expansion). Even if it were fixed, the result of this
5367 # check would be larger than it should be.
5368 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5372 # Under GNU Hurd, this test is not required because there is
5373 # no limit to the length of command line arguments.
5374 # Libtool will interpret -1 as no limit whatsoever
5375 lt_cv_sys_max_cmd_len
=-1;
5378 cygwin
* | mingw
* | cegcc
*)
5379 # On Win9x/ME, this test blows up -- it succeeds, but takes
5380 # about 5 minutes as the teststring grows exponentially.
5381 # Worse, since 9x/ME are not pre-emptively multitasking,
5382 # you end up with a "frozen" computer, even though with patience
5383 # the test eventually succeeds (with a max line length of 256k).
5384 # Instead, let's just punt: use the minimum linelength reported by
5385 # all of the supported platforms: 8192 (on NT/2K/XP).
5386 lt_cv_sys_max_cmd_len
=8192;
5390 # On MiNT this can take a long time and run out of memory.
5391 lt_cv_sys_max_cmd_len
=8192;
5395 # On AmigaOS with pdksh, this test takes hours, literally.
5396 # So we just punt and use a minimum line length of 8192.
5397 lt_cv_sys_max_cmd_len
=8192;
5400 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5401 # This has been around since 386BSD, at least. Likely further.
5402 if test -x /sbin
/sysctl
; then
5403 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5404 elif test -x /usr
/sbin
/sysctl
; then
5405 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5407 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5409 # And add a safety zone
5410 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5411 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5415 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5416 lt_cv_sys_max_cmd_len
=196608
5420 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5421 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5422 # nice to cause kernel panics so lets avoid the loop below.
5423 # First set a reasonable default.
5424 lt_cv_sys_max_cmd_len
=16384
5426 if test -x /sbin
/sysconfig
; then
5427 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5428 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5433 lt_cv_sys_max_cmd_len
=102400
5435 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5436 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5437 if test -n "$kargmax"; then
5438 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5440 lt_cv_sys_max_cmd_len
=32768
5444 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5445 if test -n "$lt_cv_sys_max_cmd_len"; then
5446 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5447 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5449 # Make teststring a little bigger before we do anything with it.
5450 # a 1K string should be a reasonable start.
5451 for i
in 1 2 3 4 5 6 7 8 ; do
5452 teststring
=$teststring$teststring
5454 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5455 # If test is not a shell built-in, we'll probably end up computing a
5456 # maximum length that is only half of the actual maximum length, but
5458 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5459 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
5460 test $i != 17 # 1/2 MB should be enough
5463 teststring
=$teststring$teststring
5465 # Only check the string length outside the loop.
5466 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5468 # Add a significant safety factor because C++ compilers can tack on
5469 # massive amounts of additional arguments before passing them to the
5470 # linker. It appears as though 1/2 is a usable value.
5471 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5478 if test -n $lt_cv_sys_max_cmd_len ; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5480 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5483 $as_echo "none" >&6; }
5485 max_cmd_len
=$lt_cv_sys_max_cmd_len
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5497 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5498 # Try some XSI features
5501 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5503 && eval 'test $(( 1 + 1 )) -eq 2 \
5504 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5507 $as_echo "$xsi_shell" >&6; }
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5511 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5513 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5515 && lt_shell_append=yes
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5517 $as_echo "$lt_shell_append" >&6; }
5520 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5530 # test EBCDIC or ASCII
5531 case `echo X|tr X '\101'` in
5532 A) # ASCII based system
5533 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5534 lt_SP2NL='tr \040 \012'
5535 lt_NL2SP='tr \015\012 \040\040'
5537 *) # EBCDIC based system
5538 lt_SP2NL='tr \100 \n'
5539 lt_NL2SP='tr \r\n \100\100'
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5552 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5553 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5554 $as_echo_n "(cached
) " >&6
5556 lt_cv_ld_reload_flag='-r'
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5559 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5560 reload_flag=$lt_cv_ld_reload_flag
5561 case $reload_flag in
5563 *) reload_flag=" $reload_flag" ;;
5565 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5568 if test "$GCC" = yes; then
5569 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5571 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5584 if test -n "$ac_tool_prefix"; then
5585 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5586 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5588 $as_echo_n "checking
for $ac_word...
" >&6; }
5589 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5590 $as_echo_n "(cached
) " >&6
5592 if test -n "$OBJDUMP"; then
5593 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5602 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5603 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5612 OBJDUMP=$ac_cv_prog_OBJDUMP
5613 if test -n "$OBJDUMP"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5615 $as_echo "$OBJDUMP" >&6; }
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5618 $as_echo "no
" >&6; }
5623 if test -z "$ac_cv_prog_OBJDUMP"; then
5624 ac_ct_OBJDUMP=$OBJDUMP
5625 # Extract the first word of "objdump
", so it can be a program name with args.
5626 set dummy objdump; ac_word=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5628 $as_echo_n "checking
for $ac_word...
" >&6; }
5629 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5630 $as_echo_n "(cached
) " >&6
5632 if test -n "$ac_ct_OBJDUMP"; then
5633 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 test -z "$as_dir" && as_dir=.
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5643 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5652 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5653 if test -n "$ac_ct_OBJDUMP"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5655 $as_echo "$ac_ct_OBJDUMP" >&6; }
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5658 $as_echo "no
" >&6; }
5661 if test "x
$ac_ct_OBJDUMP" = x; then
5664 case $cross_compiling:$ac_tool_warned in
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5667 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5668 ac_tool_warned=yes ;;
5670 OBJDUMP=$ac_ct_OBJDUMP
5673 OBJDUMP="$ac_cv_prog_OBJDUMP"
5676 test -z "$OBJDUMP" && OBJDUMP=objdump
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5687 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5688 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5689 $as_echo_n "(cached
) " >&6
5691 lt_cv_file_magic_cmd='$MAGIC_CMD'
5692 lt_cv_file_magic_test_file=
5693 lt_cv_deplibs_check_method='unknown'
5694 # Need to set the preceding variable on all platforms that support
5695 # interlibrary dependencies.
5696 # 'none' -- dependencies not supported.
5697 # `unknown' -- same as none, but documents that we really don't know.
5698 # 'pass_all' -- all dependencies passed with no checks.
5699 # 'test_compile' -- check by making test program.
5700 # 'file_magic [[regex]]' -- check by looking for files in library path
5701 # which responds to the $file_magic_cmd with a given extended regex.
5702 # If you have `file' or equivalent on your system and you're not sure
5703 # whether `pass_all' will *always* work, you probably want this one.
5707 lt_cv_deplibs_check_method=pass_all
5711 lt_cv_deplibs_check_method=pass_all
5715 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5716 lt_cv_file_magic_cmd='/usr/bin/file -L'
5717 lt_cv_file_magic_test_file=/shlib/libc.so
5721 # func_win32_libid is a shell function defined in ltmain.sh
5722 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5723 lt_cv_file_magic_cmd='func_win32_libid'
5727 # Base MSYS/MinGW do not provide the 'file' command needed by
5728 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5729 # unless we find 'file', for example because we are cross-compiling.
5730 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5731 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
5732 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5733 lt_cv_file_magic_cmd='func_win32_libid'
5735 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5736 lt_cv_file_magic_cmd='$OBJDUMP -f'
5741 # use the weaker test based on 'objdump'. See mingw*.
5742 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5743 lt_cv_file_magic_cmd='$OBJDUMP -f'
5746 darwin* | rhapsody*)
5747 lt_cv_deplibs_check_method=pass_all
5750 freebsd* | dragonfly*)
5751 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5754 # Not sure whether the presence of OpenBSD here was a mistake.
5755 # Let's accept both of them until this is cleared up.
5756 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5757 lt_cv_file_magic_cmd=/usr/bin/file
5758 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5762 lt_cv_deplibs_check_method=pass_all
5767 lt_cv_deplibs_check_method=pass_all
5771 lt_cv_deplibs_check_method=pass_all
5774 hpux10.20* | hpux11*)
5775 lt_cv_file_magic_cmd=/usr/bin/file
5778 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5779 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5782 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5783 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5786 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5787 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5793 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5797 irix5* | irix6* | nonstopux*)
5799 *-32|*"-32 ") libmagic=32-bit;;
5800 *-n32|*"-n32 ") libmagic=N32;;
5801 *-64|*"-64 ") libmagic=64-bit;;
5802 *) libmagic=never-match;;
5804 lt_cv_deplibs_check_method=pass_all
5807 # This must be Linux ELF.
5808 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5809 lt_cv_deplibs_check_method=pass_all
5813 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5822 lt_cv_file_magic_cmd=/usr/bin/file
5823 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5827 lt_cv_deplibs_check_method=pass_all
5831 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5838 osf3* | osf4* | osf5*)
5839 lt_cv_deplibs_check_method=pass_all
5843 lt_cv_deplibs_check_method=pass_all
5847 lt_cv_deplibs_check_method=pass_all
5850 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5851 lt_cv_deplibs_check_method=pass_all
5855 case $host_vendor in
5857 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]'
5858 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5861 lt_cv_deplibs_check_method=pass_all
5864 lt_cv_file_magic_cmd='/bin/file'
5865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5868 lt_cv_file_magic_cmd='/bin/file'
5869 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5870 lt_cv_file_magic_test_file=/lib/libc.so
5873 lt_cv_deplibs_check_method=pass_all
5876 lt_cv_deplibs_check_method=pass_all
5882 lt_cv_deplibs_check_method=pass_all
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5888 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5889 file_magic_cmd=$lt_cv_file_magic_cmd
5890 deplibs_check_method=$lt_cv_deplibs_check_method
5891 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5904 if test -n "$ac_tool_prefix"; then
5905 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5906 set dummy ${ac_tool_prefix}ar; ac_word=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5908 $as_echo_n "checking
for $ac_word...
" >&6; }
5909 if test "${ac_cv_prog_AR+set}" = set; then :
5910 $as_echo_n "(cached
) " >&6
5912 if test -n "$AR"; then
5913 ac_cv_prog_AR="$AR" # Let the user override the test.
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5922 ac_cv_prog_AR="${ac_tool_prefix}ar"
5923 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5933 if test -n "$AR"; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5935 $as_echo "$AR" >&6; }
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5938 $as_echo "no
" >&6; }
5943 if test -z "$ac_cv_prog_AR"; then
5945 # Extract the first word of "ar", so it can be a program name with args.
5946 set dummy ar; ac_word=$2
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5948 $as_echo_n "checking
for $ac_word...
" >&6; }
5949 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5950 $as_echo_n "(cached
) " >&6
5952 if test -n "$ac_ct_AR"; then
5953 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 ac_cv_prog_ac_ct_AR="ar"
5963 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5972 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5973 if test -n "$ac_ct_AR"; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5975 $as_echo "$ac_ct_AR" >&6; }
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5978 $as_echo "no
" >&6; }
5981 if test "x
$ac_ct_AR" = x; then
5984 case $cross_compiling:$ac_tool_warned in
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5987 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5988 ac_tool_warned=yes ;;
5996 test -z "$AR" && AR=ar
5997 test -z "$AR_FLAGS" && AR_FLAGS=cru
6009 if test -n "$ac_tool_prefix"; then
6010 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6011 set dummy ${ac_tool_prefix}strip; ac_word=$2
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6013 $as_echo_n "checking
for $ac_word...
" >&6; }
6014 if test "${ac_cv_prog_STRIP+set}" = set; then :
6015 $as_echo_n "(cached
) " >&6
6017 if test -n "$STRIP"; then
6018 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6027 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6028 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6037 STRIP=$ac_cv_prog_STRIP
6038 if test -n "$STRIP"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6040 $as_echo "$STRIP" >&6; }
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6043 $as_echo "no
" >&6; }
6048 if test -z "$ac_cv_prog_STRIP"; then
6050 # Extract the first word of "strip
", so it can be a program name with args.
6051 set dummy strip; ac_word=$2
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6053 $as_echo_n "checking
for $ac_word...
" >&6; }
6054 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6055 $as_echo_n "(cached
) " >&6
6057 if test -n "$ac_ct_STRIP"; then
6058 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6067 ac_cv_prog_ac_ct_STRIP="strip
"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6077 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6078 if test -n "$ac_ct_STRIP"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6080 $as_echo "$ac_ct_STRIP" >&6; }
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6083 $as_echo "no
" >&6; }
6086 if test "x
$ac_ct_STRIP" = x; then
6089 case $cross_compiling:$ac_tool_warned in
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6092 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6093 ac_tool_warned=yes ;;
6098 STRIP="$ac_cv_prog_STRIP"
6101 test -z "$STRIP" && STRIP=:
6108 if test -n "$ac_tool_prefix"; then
6109 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6110 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6112 $as_echo_n "checking
for $ac_word...
" >&6; }
6113 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6114 $as_echo_n "(cached
) " >&6
6116 if test -n "$RANLIB"; then
6117 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6126 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6127 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6136 RANLIB=$ac_cv_prog_RANLIB
6137 if test -n "$RANLIB"; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6139 $as_echo "$RANLIB" >&6; }
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6142 $as_echo "no
" >&6; }
6147 if test -z "$ac_cv_prog_RANLIB"; then
6148 ac_ct_RANLIB=$RANLIB
6149 # Extract the first word of "ranlib
", so it can be a program name with args.
6150 set dummy ranlib; ac_word=$2
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6152 $as_echo_n "checking
for $ac_word...
" >&6; }
6153 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6154 $as_echo_n "(cached
) " >&6
6156 if test -n "$ac_ct_RANLIB"; then
6157 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6166 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6167 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6176 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6177 if test -n "$ac_ct_RANLIB"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6179 $as_echo "$ac_ct_RANLIB" >&6; }
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6182 $as_echo "no
" >&6; }
6185 if test "x
$ac_ct_RANLIB" = x; then
6188 case $cross_compiling:$ac_tool_warned in
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6191 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6192 ac_tool_warned=yes ;;
6194 RANLIB=$ac_ct_RANLIB
6197 RANLIB="$ac_cv_prog_RANLIB"
6200 test -z "$RANLIB" && RANLIB=:
6207 # Determine commands to create old-style static archives.
6208 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6209 old_postinstall_cmds='chmod 644 $oldlib'
6210 old_postuninstall_cmds=
6212 if test -n "$RANLIB"; then
6215 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6218 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6221 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6226 lock_old_archive_extraction=yes ;;
6228 lock_old_archive_extraction=no ;;
6269 # If no C compiler was specified, use CC.
6272 # If no C compiler flags were specified, use CFLAGS.
6273 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6275 # Allow CC to be a program name with arguments.
6279 # Check for command to grab the raw symbol name followed by C symbol from nm.
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6281 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6282 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6283 $as_echo_n "(cached
) " >&6
6286 # These are sane defaults that work on at least a few old systems.
6287 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6289 # Character class describing NM global symbol codes.
6290 symcode='[BCDEGRST]'
6292 # Regexp to match symbols that can be accessed directly from C.
6293 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6295 # Define system-specific variables.
6300 cygwin* | mingw* | pw32* | cegcc*)
6301 symcode='[ABCDGISTW]'
6304 if test "$host_cpu" = ia64; then
6305 symcode='[ABCDEGRST]'
6309 symcode='[BCDEGRST]'
6312 symcode='[BCDEGQRST]'
6323 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6331 # If we're using GNU nm, then use its standard symbol codes.
6332 case `$NM -V 2>&1` in
6333 *GNU* | *'with BFD'*)
6334 symcode='[ABCDGIRSTW]' ;;
6337 # Transform an extracted symbol line into a proper C declaration.
6338 # Some systems (esp. on ia64) link data and code symbols differently,
6339 # so use this general approach.
6340 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6342 # Transform an extracted symbol line into symbol name and symbol address
6343 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6344 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6346 # Handle CRLF in mingw tool chain
6350 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6354 # Try without a prefix underscore, then with it.
6355 for ac_symprfx in "" "_
"; do
6357 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6358 symxfrm="\\1 $ac_symprfx\\2 \\2"
6360 # Write the raw and C identifiers.
6361 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6362 # Fake it for dumpbin and say T for any non-static function
6363 # and D for any global variable.
6364 # Also find C++ and __fastcall symbols from MSVC++,
6365 # which start with @ or ?.
6366 lt_cv_sys_global_symbol_pipe="$AWK '"\
6367 " {last_section=section; section=\$ 3};"\
6368 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6369 " \$ 0!~/External *\|/{next};"\
6370 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6371 " {if(hide[section]) next};"\
6372 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6373 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6374 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6375 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6376 " ' prfx
=^
$ac_symprfx"
6378 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6381 # Check to see that the pipe works correctly.
6385 cat > conftest.$ac_ext <<_LT_EOF
6390 void nm_test_func(void);
6391 void nm_test_func(void){}
6395 int main(){nm_test_var='a';nm_test_func();return(0);}
6398 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6399 (eval $ac_compile) 2>&5
6401 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6402 test $ac_status = 0; }; then
6403 # Now try to grab the symbols.
6405 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6406 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6408 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6409 test $ac_status = 0; } && test -s "$nlist"; then
6410 # Try sorting and uniquifying the output.
6411 if sort "$nlist" | uniq > "$nlist"T; then
6412 mv -f "$nlist"T "$nlist"
6417 # Make sure that we snagged all the symbols we need.
6418 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6419 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6420 cat <<_LT_EOF > conftest.$ac_ext
6426 # Now generate the symbol file.
6427 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6429 cat <<_LT_EOF >> conftest.$ac_ext
6431 /* The mapping between symbol names and symbols. */
6436 lt__PROGRAM__LTX_preloaded_symbols[] =
6438 { "@PROGRAM@
", (void *) 0 },
6440 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6441 cat <<\_LT_EOF >> conftest.$ac_ext
6445 /* This works around a problem in FreeBSD linker */
6446 #ifdef FREEBSD_WORKAROUND
6447 static const void *lt_preloaded_setup() {
6448 return lt__PROGRAM__LTX_preloaded_symbols;
6456 # Now try linking the two files.
6457 mv conftest.$ac_objext conftstm.$ac_objext
6458 lt_save_LIBS="$LIBS"
6459 lt_save_CFLAGS="$CFLAGS"
6460 LIBS="conftstm.
$ac_objext"
6461 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6462 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6463 (eval $ac_link) 2>&5
6465 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6466 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6469 LIBS="$lt_save_LIBS"
6470 CFLAGS="$lt_save_CFLAGS"
6472 echo "cannot
find nm_test_func
in $nlist" >&5
6475 echo "cannot
find nm_test_var
in $nlist" >&5
6478 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6481 echo "$progname: failed program was
:" >&5
6482 cat conftest.$ac_ext >&5
6484 rm -rf conftest* conftst*
6486 # Do not use the global_symbol_pipe unless it works.
6487 if test "$pipe_works" = yes; then
6490 lt_cv_sys_global_symbol_pipe=
6496 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6497 lt_cv_sys_global_symbol_to_cdecl=
6499 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6501 $as_echo "failed
" >&6; }
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6504 $as_echo "ok
" >&6; }
6529 # Check whether --enable-libtool-lock was given.
6530 if test "${enable_libtool_lock+set}" = set; then :
6531 enableval=$enable_libtool_lock;
6534 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6536 # Some flags need to be propagated to the compiler or linker for good
6540 # Find out which ABI we are using.
6541 echo 'int i;' > conftest.$ac_ext
6542 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6543 (eval $ac_compile) 2>&5
6545 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6546 test $ac_status = 0; }; then
6547 case `/usr/bin/file conftest.$ac_objext` in
6559 # Find out which ABI we are using.
6560 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6561 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6562 (eval $ac_compile) 2>&5
6564 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6565 test $ac_status = 0; }; then
6566 if test "$lt_cv_prog_gnu_ld" = yes; then
6567 case `/usr/bin/file conftest.$ac_objext` in
6569 LD="${LD-ld} -melf32bsmip"
6572 LD="${LD-ld} -melf32bmipn32"
6575 LD="${LD-ld} -melf64bmip"
6579 case `/usr/bin/file conftest.$ac_objext` in
6595 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6596 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6597 # Find out which ABI we are using.
6598 echo 'int i;' > conftest.$ac_ext
6599 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6600 (eval $ac_compile) 2>&5
6602 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6603 test $ac_status = 0; }; then
6604 case `/usr/bin/file conftest.o` in
6607 x86_64-*kfreebsd*-gnu)
6608 LD="${LD-ld} -m elf_i386_fbsd
"
6611 case `/usr/bin/file conftest.o` in
6613 LD="${LD-ld} -m elf32_x86_64
"
6616 LD="${LD-ld} -m elf_i386
"
6620 powerpc64le-*linux*)
6621 LD="${LD-ld} -m elf32lppclinux
"
6624 LD="${LD-ld} -m elf32ppclinux
"
6627 LD="${LD-ld} -m elf_s390
"
6630 LD="${LD-ld} -m elf32_sparc
"
6636 x86_64-*kfreebsd*-gnu)
6637 LD="${LD-ld} -m elf_x86_64_fbsd
"
6640 LD="${LD-ld} -m elf_x86_64
"
6643 LD="${LD-ld} -m elf64lppc
"
6646 LD="${LD-ld} -m elf64ppc
"
6648 s390*-*linux*|s390*-*tpf*)
6649 LD="${LD-ld} -m elf64_s390
"
6652 LD="${LD-ld} -m elf64_sparc
"
6662 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6663 SAVE_CFLAGS="$CFLAGS"
6664 CFLAGS="$CFLAGS -belf"
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6666 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6667 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6668 $as_echo_n "(cached
) " >&6
6671 ac_cpp='$CPP $CPPFLAGS'
6672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6687 if ac_fn_c_try_link "$LINENO"; then :
6688 lt_cv_cc_needs_belf=yes
6690 lt_cv_cc_needs_belf=no
6692 rm -f core conftest.err conftest.$ac_objext \
6693 conftest$ac_exeext conftest.$ac_ext
6695 ac_cpp='$CPP $CPPFLAGS'
6696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6702 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6703 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6704 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6705 CFLAGS="$SAVE_CFLAGS"
6709 # Find out which ABI we are using.
6710 echo 'int i;' > conftest.$ac_ext
6711 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6712 (eval $ac_compile) 2>&5
6714 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6715 test $ac_status = 0; }; then
6716 case `/usr/bin/file conftest.o` in
6718 case $lt_cv_prog_gnu_ld in
6719 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6721 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6733 need_locks="$enable_libtool_lock"
6737 rhapsody* | darwin*)
6738 if test -n "$ac_tool_prefix"; then
6739 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6740 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6742 $as_echo_n "checking
for $ac_word...
" >&6; }
6743 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6744 $as_echo_n "(cached
) " >&6
6746 if test -n "$DSYMUTIL"; then
6747 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6756 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6766 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6767 if test -n "$DSYMUTIL"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
6769 $as_echo "$DSYMUTIL" >&6; }
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6772 $as_echo "no
" >&6; }
6777 if test -z "$ac_cv_prog_DSYMUTIL"; then
6778 ac_ct_DSYMUTIL=$DSYMUTIL
6779 # Extract the first word of "dsymutil
", so it can be a program name with args.
6780 set dummy dsymutil; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6782 $as_echo_n "checking
for $ac_word...
" >&6; }
6783 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6784 $as_echo_n "(cached
) " >&6
6786 if test -n "$ac_ct_DSYMUTIL"; then
6787 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6797 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6806 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6807 if test -n "$ac_ct_DSYMUTIL"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
6809 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6812 $as_echo "no
" >&6; }
6815 if test "x
$ac_ct_DSYMUTIL" = x; then
6818 case $cross_compiling:$ac_tool_warned in
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6821 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6822 ac_tool_warned=yes ;;
6824 DSYMUTIL=$ac_ct_DSYMUTIL
6827 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6830 if test -n "$ac_tool_prefix"; then
6831 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6832 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6834 $as_echo_n "checking
for $ac_word...
" >&6; }
6835 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6836 $as_echo_n "(cached
) " >&6
6838 if test -n "$NMEDIT"; then
6839 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6858 NMEDIT=$ac_cv_prog_NMEDIT
6859 if test -n "$NMEDIT"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
6861 $as_echo "$NMEDIT" >&6; }
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6864 $as_echo "no
" >&6; }
6869 if test -z "$ac_cv_prog_NMEDIT"; then
6870 ac_ct_NMEDIT=$NMEDIT
6871 # Extract the first word of "nmedit
", so it can be a program name with args.
6872 set dummy nmedit; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6874 $as_echo_n "checking
for $ac_word...
" >&6; }
6875 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6876 $as_echo_n "(cached
) " >&6
6878 if test -n "$ac_ct_NMEDIT"; then
6879 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6889 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6898 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6899 if test -n "$ac_ct_NMEDIT"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
6901 $as_echo "$ac_ct_NMEDIT" >&6; }
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6904 $as_echo "no
" >&6; }
6907 if test "x
$ac_ct_NMEDIT" = x; then
6910 case $cross_compiling:$ac_tool_warned in
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6913 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6914 ac_tool_warned=yes ;;
6916 NMEDIT=$ac_ct_NMEDIT
6919 NMEDIT="$ac_cv_prog_NMEDIT"
6922 if test -n "$ac_tool_prefix"; then
6923 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6924 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6926 $as_echo_n "checking
for $ac_word...
" >&6; }
6927 if test "${ac_cv_prog_LIPO+set}" = set; then :
6928 $as_echo_n "(cached
) " >&6
6930 if test -n "$LIPO"; then
6931 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6940 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6950 LIPO=$ac_cv_prog_LIPO
6951 if test -n "$LIPO"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
6953 $as_echo "$LIPO" >&6; }
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6956 $as_echo "no
" >&6; }
6961 if test -z "$ac_cv_prog_LIPO"; then
6963 # Extract the first word of "lipo
", so it can be a program name with args.
6964 set dummy lipo; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6966 $as_echo_n "checking
for $ac_word...
" >&6; }
6967 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6968 $as_echo_n "(cached
) " >&6
6970 if test -n "$ac_ct_LIPO"; then
6971 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 test -z "$as_dir" && as_dir=.
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6980 ac_cv_prog_ac_ct_LIPO="lipo
"
6981 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6990 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6991 if test -n "$ac_ct_LIPO"; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
6993 $as_echo "$ac_ct_LIPO" >&6; }
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6996 $as_echo "no
" >&6; }
6999 if test "x
$ac_ct_LIPO" = x; then
7002 case $cross_compiling:$ac_tool_warned in
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7005 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7006 ac_tool_warned=yes ;;
7011 LIPO="$ac_cv_prog_LIPO"
7014 if test -n "$ac_tool_prefix"; then
7015 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7016 set dummy ${ac_tool_prefix}otool; ac_word=$2
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7018 $as_echo_n "checking
for $ac_word...
" >&6; }
7019 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7020 $as_echo_n "(cached
) " >&6
7022 if test -n "$OTOOL"; then
7023 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7032 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7033 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7042 OTOOL=$ac_cv_prog_OTOOL
7043 if test -n "$OTOOL"; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7045 $as_echo "$OTOOL" >&6; }
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7048 $as_echo "no
" >&6; }
7053 if test -z "$ac_cv_prog_OTOOL"; then
7055 # Extract the first word of "otool
", so it can be a program name with args.
7056 set dummy otool; ac_word=$2
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7058 $as_echo_n "checking
for $ac_word...
" >&6; }
7059 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7060 $as_echo_n "(cached
) " >&6
7062 if test -n "$ac_ct_OTOOL"; then
7063 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 test -z "$as_dir" && as_dir=.
7070 for ac_exec_ext in '' $ac_executable_extensions; do
7071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7072 ac_cv_prog_ac_ct_OTOOL="otool
"
7073 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7082 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7083 if test -n "$ac_ct_OTOOL"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7085 $as_echo "$ac_ct_OTOOL" >&6; }
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7088 $as_echo "no
" >&6; }
7091 if test "x
$ac_ct_OTOOL" = x; then
7094 case $cross_compiling:$ac_tool_warned in
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7097 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7098 ac_tool_warned=yes ;;
7103 OTOOL="$ac_cv_prog_OTOOL"
7106 if test -n "$ac_tool_prefix"; then
7107 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7108 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7110 $as_echo_n "checking
for $ac_word...
" >&6; }
7111 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7112 $as_echo_n "(cached
) " >&6
7114 if test -n "$OTOOL64"; then
7115 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7125 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7134 OTOOL64=$ac_cv_prog_OTOOL64
7135 if test -n "$OTOOL64"; then
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7137 $as_echo "$OTOOL64" >&6; }
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7140 $as_echo "no
" >&6; }
7145 if test -z "$ac_cv_prog_OTOOL64"; then
7146 ac_ct_OTOOL64=$OTOOL64
7147 # Extract the first word of "otool64
", so it can be a program name with args.
7148 set dummy otool64; ac_word=$2
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7150 $as_echo_n "checking
for $ac_word...
" >&6; }
7151 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7152 $as_echo_n "(cached
) " >&6
7154 if test -n "$ac_ct_OTOOL64"; then
7155 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 test -z "$as_dir" && as_dir=.
7162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7164 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7165 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7174 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7175 if test -n "$ac_ct_OTOOL64"; then
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7177 $as_echo "$ac_ct_OTOOL64" >&6; }
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7180 $as_echo "no
" >&6; }
7183 if test "x
$ac_ct_OTOOL64" = x; then
7186 case $cross_compiling:$ac_tool_warned in
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7189 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7190 ac_tool_warned=yes ;;
7192 OTOOL64=$ac_ct_OTOOL64
7195 OTOOL64="$ac_cv_prog_OTOOL64"
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7225 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7226 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7227 $as_echo_n "(cached
) " >&6
7229 lt_cv_apple_cc_single_mod=no
7230 if test -z "${LT_MULTI_MODULE}"; then
7231 # By default we will add the -single_module flag. You can override
7232 # by either setting the environment variable LT_MULTI_MODULE
7233 # non-empty at configure time, or by adding -multi_module to the
7235 rm -rf libconftest.dylib*
7236 echo "int foo
(void
){return 1;}" > conftest.c
7237 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7238 -dynamiclib -Wl,-single_module conftest.c
" >&5
7239 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7240 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7242 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7243 lt_cv_apple_cc_single_mod=yes
7245 cat conftest.err >&5
7247 rm -rf libconftest.dylib*
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7252 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7254 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7255 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7256 $as_echo_n "(cached
) " >&6
7258 lt_cv_ld_exported_symbols_list=no
7259 save_LDFLAGS=$LDFLAGS
7260 echo "_main
" > conftest.sym
7261 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h. */
7273 if ac_fn_c_try_link "$LINENO"; then :
7274 lt_cv_ld_exported_symbols_list=yes
7276 lt_cv_ld_exported_symbols_list=no
7278 rm -f core conftest.err conftest.$ac_objext \
7279 conftest$ac_exeext conftest.$ac_ext
7280 LDFLAGS="$save_LDFLAGS"
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7284 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7286 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7287 if test "${lt_cv_ld_force_load+set}" = set; then :
7288 $as_echo_n "(cached
) " >&6
7290 lt_cv_ld_force_load=no
7291 cat > conftest.c << _LT_EOF
7292 int forced_loaded() { return 2;}
7294 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7295 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7296 echo "$AR cru libconftest.a conftest.o
" >&5
7297 $AR cru libconftest.a conftest.o 2>&5
7298 cat > conftest.c << _LT_EOF
7299 int main() { return 0;}
7301 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7302 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7304 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7305 lt_cv_ld_force_load=yes
7307 cat conftest.err >&5
7309 rm -f conftest.err libconftest.a conftest conftest.c
7310 rm -rf conftest.dSYM
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7314 $as_echo "$lt_cv_ld_force_load" >&6; }
7316 rhapsody* | darwin1.[012])
7317 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7319 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7320 darwin*) # darwin 5.x on
7321 # if running on 10.5 or later, the deployment target defaults
7322 # to the OS version, if on x86, and 10.4, the deployment
7323 # target defaults to 10.4. Don't you love it?
7324 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7325 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7326 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7328 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7330 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7334 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7335 _lt_dar_single_mod='$single_module'
7337 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7338 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7340 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7342 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7343 _lt_dsymutil='~$DSYMUTIL $lib || :'
7351 ac_cpp='$CPP $CPPFLAGS'
7352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7356 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7357 # On Suns, sometimes $CPP names a directory.
7358 if test -n "$CPP" && test -d "$CPP"; then
7361 if test -z "$CPP"; then
7362 if test "${ac_cv_prog_CPP+set}" = set; then :
7363 $as_echo_n "(cached
) " >&6
7365 # Double quotes because CPP needs to be expanded
7366 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7369 for ac_c_preproc_warn_flag in '' yes
7371 # Use a header file that comes with gcc, so configuring glibc
7372 # with a fresh cross-compiler works.
7373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7374 # <limits.h> exists even on freestanding compilers.
7375 # On the NeXT, cc -E runs the code through the compiler's parser,
7376 # not just through cpp. "Syntax error
" is here to catch this case.
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7380 # include <limits.h>
7382 # include <assert.h>
7386 if ac_fn_c_try_cpp "$LINENO"; then :
7389 # Broken: fails on valid input.
7392 rm -f conftest.err conftest.$ac_ext
7394 # OK, works on sane cases. Now check whether nonexistent headers
7395 # can be detected and how.
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7398 #include <ac_nonexistent.h>
7400 if ac_fn_c_try_cpp "$LINENO"; then :
7401 # Broken: success on invalid input.
7404 # Passes both tests.
7408 rm -f conftest.err conftest.$ac_ext
7411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7412 rm -f conftest.err conftest.$ac_ext
7413 if $ac_preproc_ok; then :
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7426 $as_echo "$CPP" >&6; }
7428 for ac_c_preproc_warn_flag in '' yes
7430 # Use a header file that comes with gcc, so configuring glibc
7431 # with a fresh cross-compiler works.
7432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7433 # <limits.h> exists even on freestanding compilers.
7434 # On the NeXT, cc -E runs the code through the compiler's parser,
7435 # not just through cpp. "Syntax error
" is here to catch this case.
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7439 # include <limits.h>
7441 # include <assert.h>
7445 if ac_fn_c_try_cpp "$LINENO"; then :
7448 # Broken: fails on valid input.
7451 rm -f conftest.err conftest.$ac_ext
7453 # OK, works on sane cases. Now check whether nonexistent headers
7454 # can be detected and how.
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7457 #include <ac_nonexistent.h>
7459 if ac_fn_c_try_cpp "$LINENO"; then :
7460 # Broken: success on invalid input.
7463 # Passes both tests.
7467 rm -f conftest.err conftest.$ac_ext
7470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7471 rm -f conftest.err conftest.$ac_ext
7472 if $ac_preproc_ok; then :
7475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7477 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7478 See \`config.log' for more details.
" "$LINENO" 5; }
7482 ac_cpp='$CPP $CPPFLAGS'
7483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7489 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7490 if test "${ac_cv_header_stdc+set}" = set; then :
7491 $as_echo_n "(cached
) " >&6
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7508 if ac_fn_c_try_compile "$LINENO"; then :
7509 ac_cv_header_stdc=yes
7511 ac_cv_header_stdc=no
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515 if test $ac_cv_header_stdc = yes; then
7516 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7522 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7523 $EGREP "memchr
" >/dev/null 2>&1; then :
7526 ac_cv_header_stdc=no
7532 if test $ac_cv_header_stdc = yes; then
7533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7539 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7540 $EGREP "free
" >/dev/null 2>&1; then :
7543 ac_cv_header_stdc=no
7549 if test $ac_cv_header_stdc = yes; then
7550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7551 if test "$cross_compiling" = yes; then :
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7558 #if ((' ' & 0x0FF) == 0x020)
7559 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7560 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7562 # define ISLOWER(c) \
7563 (('a' <= (c) && (c) <= 'i') \
7564 || ('j' <= (c) && (c) <= 'r') \
7565 || ('s' <= (c) && (c) <= 'z'))
7566 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7569 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7574 for (i = 0; i < 256; i++)
7575 if (XOR (islower (i), ISLOWER (i))
7576 || toupper (i) != TOUPPER (i))
7581 if ac_fn_c_try_run "$LINENO"; then :
7584 ac_cv_header_stdc=no
7586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7587 conftest.$ac_objext conftest.beam conftest.$ac_ext
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7593 $as_echo "$ac_cv_header_stdc" >&6; }
7594 if test $ac_cv_header_stdc = yes; then
7596 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7600 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7601 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7602 inttypes.h stdint.h unistd.h
7604 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7607 eval as_val
=\$
$as_ac_Header
7608 if test "x$as_val" = x
""yes; then :
7609 cat >>confdefs.h
<<_ACEOF
7610 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7618 for ac_header
in dlfcn.h
7620 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7622 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
7623 cat >>confdefs.h
<<_ACEOF
7624 #define HAVE_DLFCN_H 1
7645 # Check whether --enable-shared was given.
7646 if test "${enable_shared+set}" = set; then :
7647 enableval
=$enable_shared; p
=${PACKAGE-default}
7649 yes) enable_shared
=yes ;;
7650 no
) enable_shared
=no
;;
7653 # Look at the argument we got. We use all the common list separators.
7654 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7655 for pkg
in $enableval; do
7657 if test "X$pkg" = "X$p"; then
7676 # Check whether --enable-static was given.
7677 if test "${enable_static+set}" = set; then :
7678 enableval
=$enable_static; p
=${PACKAGE-default}
7680 yes) enable_static
=yes ;;
7681 no
) enable_static
=no
;;
7684 # Look at the argument we got. We use all the common list separators.
7685 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7686 for pkg
in $enableval; do
7688 if test "X$pkg" = "X$p"; then
7708 # Check whether --with-pic was given.
7709 if test "${with_pic+set}" = set; then :
7710 withval
=$with_pic; pic_mode
="$withval"
7716 test -z "$pic_mode" && pic_mode
=default
7724 # Check whether --enable-fast-install was given.
7725 if test "${enable_fast_install+set}" = set; then :
7726 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7728 yes) enable_fast_install
=yes ;;
7729 no
) enable_fast_install
=no
;;
7731 enable_fast_install
=no
7732 # Look at the argument we got. We use all the common list separators.
7733 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7734 for pkg
in $enableval; do
7736 if test "X$pkg" = "X$p"; then
7737 enable_fast_install
=yes
7744 enable_fast_install
=yes
7757 # This can be used to rebuild libtool when needed
7758 LIBTOOL_DEPS
="$ltmain"
7760 # Always use our own libtool.
7761 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7788 test -z "$LN_S" && LN_S
="ln -s"
7803 if test -n "${ZSH_VERSION+set}" ; then
7804 setopt NO_GLOB_SUBST
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7808 $as_echo_n "checking for objdir... " >&6; }
7809 if test "${lt_cv_objdir+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7812 rm -f .libs
2>/dev
/null
7813 mkdir .libs
2>/dev
/null
7814 if test -d .libs
; then
7817 # MS-DOS does not allow filenames that begin with a dot.
7820 rmdir .libs
2>/dev
/null
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7823 $as_echo "$lt_cv_objdir" >&6; }
7824 objdir
=$lt_cv_objdir
7830 cat >>confdefs.h
<<_ACEOF
7831 #define LT_OBJDIR "$lt_cv_objdir/"
7839 # AIX sometimes has problems with the GCC collect2 program. For some
7840 # reason, if we set the COLLECT_NAMES environment variable, the problems
7841 # vanish in a puff of smoke.
7842 if test "X${COLLECT_NAMES+set}" != Xset
; then
7844 export COLLECT_NAMES
7851 can_build_shared
=yes
7853 # All known linkers require a `.a' archive for static linking (except MSVC,
7854 # which needs '.lib').
7857 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7860 old_CFLAGS
="$CFLAGS"
7862 # Set sane defaults for various variables
7863 test -z "$CC" && CC
=cc
7864 test -z "$LTCC" && LTCC
=$CC
7865 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7866 test -z "$LD" && LD
=ld
7867 test -z "$ac_objext" && ac_objext
=o
7869 for cc_temp
in $compiler""; do
7871 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7872 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7877 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7880 # Only perform the check for file, if the check method requires it
7881 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7882 case $deplibs_check_method in
7884 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7886 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7887 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7892 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7895 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7896 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7897 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7898 for ac_dir
in $ac_dummy; do
7900 test -z "$ac_dir" && ac_dir
=.
7901 if test -f $ac_dir/${ac_tool_prefix}file; then
7902 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7903 if test -n "$file_magic_test_file"; then
7904 case $deplibs_check_method in
7906 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7907 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7908 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7909 $EGREP "$file_magic_regex" > /dev
/null
; then
7914 *** Warning: the command libtool uses to detect shared libraries,
7915 *** $file_magic_cmd, produces output that libtool cannot recognize.
7916 *** The result is that libtool may fail to recognize shared libraries
7917 *** as such. This will affect the creation of libtool libraries that
7918 *** depend on shared libraries, but programs linked with such libtool
7919 *** libraries will work regardless of this problem. Nevertheless, you
7920 *** may want to report the problem to your system manager and/or to
7921 *** bug-libtool@gnu.org
7931 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7936 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7937 if test -n "$MAGIC_CMD"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7939 $as_echo "$MAGIC_CMD" >&6; }
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7949 if test -z "$lt_cv_path_MAGIC_CMD"; then
7950 if test -n "$ac_tool_prefix"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7952 $as_echo_n "checking for file... " >&6; }
7953 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7958 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7961 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7962 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7963 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7964 for ac_dir
in $ac_dummy; do
7966 test -z "$ac_dir" && ac_dir
=.
7967 if test -f $ac_dir/file; then
7968 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7969 if test -n "$file_magic_test_file"; then
7970 case $deplibs_check_method in
7972 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7973 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7974 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7975 $EGREP "$file_magic_regex" > /dev
/null
; then
7980 *** Warning: the command libtool uses to detect shared libraries,
7981 *** $file_magic_cmd, produces output that libtool cannot recognize.
7982 *** The result is that libtool may fail to recognize shared libraries
7983 *** as such. This will affect the creation of libtool libraries that
7984 *** depend on shared libraries, but programs linked with such libtool
7985 *** libraries will work regardless of this problem. Nevertheless, you
7986 *** may want to report the problem to your system manager and/or to
7987 *** bug-libtool@gnu.org
7997 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8002 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8003 if test -n "$MAGIC_CMD"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8005 $as_echo "$MAGIC_CMD" >&6; }
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8021 # Use C for the default configuration in the libtool script
8025 ac_cpp
='$CPP $CPPFLAGS'
8026 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8027 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8028 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8031 # Source file extension for C test sources.
8034 # Object file extension for compiled C test sources.
8038 # Code to be used in simple compile tests
8039 lt_simple_compile_test_code
="int some_variable = 0;"
8041 # Code to be used in simple link tests
8042 lt_simple_link_test_code
='int main(){return(0);}'
8050 # If no C compiler was specified, use CC.
8053 # If no C compiler flags were specified, use CFLAGS.
8054 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8056 # Allow CC to be a program name with arguments.
8059 # Save the default compiler, since it gets overwritten when the other
8060 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8061 compiler_DEFAULT
=$CC
8063 # save warnings/boilerplate of simple test code
8064 ac_outfile
=conftest.
$ac_objext
8065 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8066 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8067 _lt_compiler_boilerplate
=`cat conftest.err`
8070 ac_outfile
=conftest.
$ac_objext
8071 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8072 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8073 _lt_linker_boilerplate
=`cat conftest.err`
8078 ## There is no encapsulation within the following macros, do not change
8079 ## the running order or otherwise move them around unless you know exactly
8080 ## what you are doing...
8081 if test -n "$compiler"; then
8083 lt_prog_compiler_no_builtin_flag
=
8085 if test "$GCC" = yes; then
8086 case $cc_basename in
8088 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8090 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8094 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8095 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8096 $as_echo_n "(cached) " >&6
8098 lt_cv_prog_compiler_rtti_exceptions
=no
8099 ac_outfile
=conftest.
$ac_objext
8100 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8101 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8102 # Insert the option either (1) after the last *FLAGS variable, or
8103 # (2) before a word containing "conftest.", or (3) at the end.
8104 # Note that $ac_compile itself does not contain backslashes and begins
8105 # with a dollar sign (not a hyphen), so the echo should work correctly.
8106 # The option is referenced via a variable to avoid confusing sed.
8107 lt_compile
=`echo "$ac_compile" | $SED \
8108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8110 -e 's:$: $lt_compiler_flag:'`
8111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8112 (eval "$lt_compile" 2>conftest.err
)
8114 cat conftest.err
>&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 if (exit $ac_status) && test -s "$ac_outfile"; then
8117 # The compiler can only warn and ignore the option if not recognized
8118 # So say no if there are warnings other than the usual output.
8119 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8120 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8121 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8122 lt_cv_prog_compiler_rtti_exceptions
=yes
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8129 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8131 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8132 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8144 lt_prog_compiler_wl
=
8145 lt_prog_compiler_pic
=
8146 lt_prog_compiler_static
=
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8149 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8151 if test "$GCC" = yes; then
8152 lt_prog_compiler_wl
='-Wl,'
8153 lt_prog_compiler_static
='-static'
8157 # All AIX code is PIC.
8158 if test "$host_cpu" = ia64
; then
8159 # AIX 5 now supports IA64 processor
8160 lt_prog_compiler_static
='-Bstatic'
8162 lt_prog_compiler_pic
='-fPIC'
8168 # see comment about AmigaOS4 .so support
8169 lt_prog_compiler_pic
='-fPIC'
8172 # FIXME: we need at least 68020 code to build shared libraries, but
8173 # adding the `-m68020' flag to GCC prevents building anything better,
8175 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8180 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8181 # PIC is the default for these OSes.
8184 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8185 # This hack is so that the source file can tell whether it is being
8186 # built for inclusion in a dll (and should export symbols for example).
8187 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8188 # (--disable-auto-import) libraries
8189 lt_prog_compiler_pic
='-DDLL_EXPORT'
8192 darwin
* | rhapsody
*)
8193 # PIC is the default on this platform
8194 # Common symbols not allowed in MH_DYLIB files
8195 lt_prog_compiler_pic
='-fno-common'
8199 # PIC is the default for Haiku.
8200 # The "-static" flag exists, but is broken.
8201 lt_prog_compiler_static
=
8205 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8206 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8207 # sets the default TLS model and affects inlining.
8213 lt_prog_compiler_pic
='-fPIC'
8219 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8220 # Instead, we relocate shared libraries at runtime.
8224 # Just because we use GCC doesn't mean we suddenly get shared libraries
8225 # on systems that don't support them.
8226 lt_prog_compiler_can_build_shared
=no
8231 # QNX uses GNU C++, but need to define -shared option too, otherwise
8233 lt_prog_compiler_pic
='-fPIC -shared'
8237 if test -d /usr
/nec
; then
8238 lt_prog_compiler_pic
=-Kconform_pic
8243 lt_prog_compiler_pic
='-fPIC'
8247 case $cc_basename in
8248 nvcc
*) # Cuda Compiler Driver 2.2
8249 lt_prog_compiler_wl
='-Xlinker '
8250 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8254 # PORTME Check for flag to pass linker flags through the system compiler.
8257 lt_prog_compiler_wl
='-Wl,'
8258 if test "$host_cpu" = ia64
; then
8259 # AIX 5 now supports IA64 processor
8260 lt_prog_compiler_static
='-Bstatic'
8262 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8266 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8267 # This hack is so that the source file can tell whether it is being
8268 # built for inclusion in a dll (and should export symbols for example).
8269 lt_prog_compiler_pic
='-DDLL_EXPORT'
8272 hpux9
* | hpux10
* | hpux11
*)
8273 lt_prog_compiler_wl
='-Wl,'
8274 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8281 lt_prog_compiler_pic
='+Z'
8284 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8285 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8288 irix5
* | irix6
* | nonstopux
*)
8289 lt_prog_compiler_wl
='-Wl,'
8290 # PIC (with -KPIC) is the default.
8291 lt_prog_compiler_static
='-non_shared'
8294 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8295 case $cc_basename in
8296 # old Intel for x86_64 which still supported -KPIC.
8298 lt_prog_compiler_wl
='-Wl,'
8299 lt_prog_compiler_pic
='-KPIC'
8300 lt_prog_compiler_static
='-static'
8302 # icc used to be incompatible with GCC.
8303 # ICC 10 doesn't accept -KPIC any more.
8305 lt_prog_compiler_wl
='-Wl,'
8306 lt_prog_compiler_pic
='-fPIC'
8307 lt_prog_compiler_static
='-static'
8309 # Lahey Fortran 8.1.
8311 lt_prog_compiler_wl
='-Wl,'
8312 lt_prog_compiler_pic
='--shared'
8313 lt_prog_compiler_static
='--static'
8315 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8316 # Portland Group compilers (*not* the Pentium gcc compiler,
8317 # which looks to be a dead project)
8318 lt_prog_compiler_wl
='-Wl,'
8319 lt_prog_compiler_pic
='-fpic'
8320 lt_prog_compiler_static
='-Bstatic'
8323 lt_prog_compiler_wl
='-Wl,'
8324 # All Alpha code is PIC.
8325 lt_prog_compiler_static
='-non_shared'
8327 xl
* | bgxl
* | bgf
* | mpixl
*)
8328 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8329 lt_prog_compiler_wl
='-Wl,'
8330 lt_prog_compiler_pic
='-qpic'
8331 lt_prog_compiler_static
='-qstaticlink'
8334 case `$CC -V 2>&1 | sed 5q` in
8335 *Sun\ F
* |
*Sun
*Fortran
*)
8336 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8337 lt_prog_compiler_pic
='-KPIC'
8338 lt_prog_compiler_static
='-Bstatic'
8339 lt_prog_compiler_wl
=''
8343 lt_prog_compiler_pic
='-KPIC'
8344 lt_prog_compiler_static
='-Bstatic'
8345 lt_prog_compiler_wl
='-Wl,'
8353 lt_prog_compiler_pic
='-KPIC'
8354 lt_prog_compiler_static
='-Bstatic'
8358 # QNX uses GNU C++, but need to define -shared option too, otherwise
8360 lt_prog_compiler_pic
='-fPIC -shared'
8363 osf3
* | osf4
* | osf5
*)
8364 lt_prog_compiler_wl
='-Wl,'
8365 # All OSF/1 code is PIC.
8366 lt_prog_compiler_static
='-non_shared'
8370 lt_prog_compiler_static
='-non_shared'
8374 lt_prog_compiler_pic
='-KPIC'
8375 lt_prog_compiler_static
='-Bstatic'
8376 case $cc_basename in
8378 lt_prog_compiler_wl
='-Qoption ld ';;
8380 lt_prog_compiler_wl
='-Wl,';;
8385 lt_prog_compiler_wl
='-Qoption ld '
8386 lt_prog_compiler_pic
='-PIC'
8387 lt_prog_compiler_static
='-Bstatic'
8390 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8391 lt_prog_compiler_wl
='-Wl,'
8392 lt_prog_compiler_pic
='-KPIC'
8393 lt_prog_compiler_static
='-Bstatic'
8397 if test -d /usr
/nec
;then
8398 lt_prog_compiler_pic
='-Kconform_pic'
8399 lt_prog_compiler_static
='-Bstatic'
8403 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8404 lt_prog_compiler_wl
='-Wl,'
8405 lt_prog_compiler_pic
='-KPIC'
8406 lt_prog_compiler_static
='-Bstatic'
8410 lt_prog_compiler_wl
='-Wl,'
8411 lt_prog_compiler_can_build_shared
=no
8415 lt_prog_compiler_pic
='-pic'
8416 lt_prog_compiler_static
='-Bstatic'
8420 lt_prog_compiler_can_build_shared
=no
8426 # For platforms which do not support PIC, -DPIC is meaningless:
8428 lt_prog_compiler_pic
=
8431 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8435 $as_echo "$lt_prog_compiler_pic" >&6; }
8443 # Check to make sure the PIC flag actually works.
8445 if test -n "$lt_prog_compiler_pic"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8447 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8448 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8449 $as_echo_n "(cached) " >&6
8451 lt_cv_prog_compiler_pic_works
=no
8452 ac_outfile
=conftest.
$ac_objext
8453 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8454 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8455 # Insert the option either (1) after the last *FLAGS variable, or
8456 # (2) before a word containing "conftest.", or (3) at the end.
8457 # Note that $ac_compile itself does not contain backslashes and begins
8458 # with a dollar sign (not a hyphen), so the echo should work correctly.
8459 # The option is referenced via a variable to avoid confusing sed.
8460 lt_compile
=`echo "$ac_compile" | $SED \
8461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8463 -e 's:$: $lt_compiler_flag:'`
8464 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8465 (eval "$lt_compile" 2>conftest.err
)
8467 cat conftest.err
>&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 if (exit $ac_status) && test -s "$ac_outfile"; then
8470 # The compiler can only warn and ignore the option if not recognized
8471 # So say no if there are warnings other than the usual output.
8472 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8473 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8474 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8475 lt_cv_prog_compiler_pic_works
=yes
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8482 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8484 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8485 case $lt_prog_compiler_pic in
8487 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8490 lt_prog_compiler_pic
=
8491 lt_prog_compiler_can_build_shared
=no
8502 # Check to make sure the static flag actually works.
8504 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8506 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8507 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8508 $as_echo_n "(cached) " >&6
8510 lt_cv_prog_compiler_static_works
=no
8511 save_LDFLAGS
="$LDFLAGS"
8512 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8513 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8514 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8515 # The linker can only warn and ignore the option if not recognized
8516 # So say no if there are warnings
8517 if test -s conftest.err
; then
8518 # Append any errors to the config.log.
8519 cat conftest.err
1>&5
8520 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8521 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8522 if diff conftest.exp conftest.er2
>/dev
/null
; then
8523 lt_cv_prog_compiler_static_works
=yes
8526 lt_cv_prog_compiler_static_works
=yes
8530 LDFLAGS
="$save_LDFLAGS"
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8534 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8536 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8539 lt_prog_compiler_static
=
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8549 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8550 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8551 $as_echo_n "(cached) " >&6
8553 lt_cv_prog_compiler_c_o
=no
8554 $RM -r conftest
2>/dev
/null
8558 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8560 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8561 # Insert the option either (1) after the last *FLAGS variable, or
8562 # (2) before a word containing "conftest.", or (3) at the end.
8563 # Note that $ac_compile itself does not contain backslashes and begins
8564 # with a dollar sign (not a hyphen), so the echo should work correctly.
8565 lt_compile
=`echo "$ac_compile" | $SED \
8566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8568 -e 's:$: $lt_compiler_flag:'`
8569 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8570 (eval "$lt_compile" 2>out
/conftest.err
)
8572 cat out
/conftest.err
>&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8576 # The compiler can only warn and ignore the option if not recognized
8577 # So say no if there are warnings
8578 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8579 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8580 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8581 lt_cv_prog_compiler_c_o
=yes
8586 # SGI C++ compiler will create directory out/ii_files/ for
8587 # template instantiation
8588 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8589 $RM out
/* && rmdir out
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8596 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8604 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8605 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
8608 lt_cv_prog_compiler_c_o
=no
8609 $RM -r conftest
2>/dev
/null
8613 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8615 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8616 # Insert the option either (1) after the last *FLAGS variable, or
8617 # (2) before a word containing "conftest.", or (3) at the end.
8618 # Note that $ac_compile itself does not contain backslashes and begins
8619 # with a dollar sign (not a hyphen), so the echo should work correctly.
8620 lt_compile
=`echo "$ac_compile" | $SED \
8621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8623 -e 's:$: $lt_compiler_flag:'`
8624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8625 (eval "$lt_compile" 2>out
/conftest.err
)
8627 cat out
/conftest.err
>&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8631 # The compiler can only warn and ignore the option if not recognized
8632 # So say no if there are warnings
8633 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8634 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8635 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8636 lt_cv_prog_compiler_c_o
=yes
8641 # SGI C++ compiler will create directory out/ii_files/ for
8642 # template instantiation
8643 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8644 $RM out
/* && rmdir out
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8651 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8656 hard_links
="nottested"
8657 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8658 # do not overwrite the value of need_locks provided by the user
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8660 $as_echo_n "checking if we can lock with hard links... " >&6; }
8663 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8665 ln conftest.a conftest.b
2>&5 || hard_links
=no
8666 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8668 $as_echo "$hard_links" >&6; }
8669 if test "$hard_links" = no
; then
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8671 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8684 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8687 allow_undefined_flag
=
8688 always_export_symbols
=no
8690 archive_expsym_cmds
=
8691 compiler_needs_object
=no
8692 enable_shared_with_static_runtimes
=no
8693 export_dynamic_flag_spec
=
8694 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8695 hardcode_automatic
=no
8697 hardcode_direct_absolute
=no
8698 hardcode_libdir_flag_spec
=
8699 hardcode_libdir_flag_spec_ld
=
8700 hardcode_libdir_separator
=
8702 hardcode_shlibpath_var
=unsupported
8704 link_all_deplibs
=unknown
8707 old_archive_from_new_cmds
=
8708 old_archive_from_expsyms_cmds
=
8709 thread_safe_flag_spec
=
8710 whole_archive_flag_spec
=
8711 # include_expsyms should be a list of space-separated symbols to be *always*
8712 # included in the symbol list
8714 # exclude_expsyms can be an extended regexp of symbols to exclude
8715 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8716 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8717 # as well as any symbol that contains `d'.
8718 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8719 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8720 # platforms (ab)use it in PIC code, but their linkers get confused if
8721 # the symbol is explicitly referenced. Since portable code cannot
8722 # rely on this symbol name, it's probably fine to never include it in
8723 # preloaded symbol tables.
8724 # Exclude shared library initialization/finalization symbols.
8725 extract_expsyms_cmds
=
8728 cygwin
* | mingw
* | pw32
* | cegcc
*)
8729 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8730 # When not using gcc, we currently assume that we are using
8731 # Microsoft Visual C++.
8732 if test "$GCC" != yes; then
8737 # we just hope/assume this is gcc and not c89 (= MSVC++)
8747 # On some targets, GNU ld is compatible enough with the native linker
8748 # that we're better off using the native interface for both.
8749 lt_use_gnu_ld_interface
=no
8750 if test "$with_gnu_ld" = yes; then
8753 # The AIX port of GNU ld has always aspired to compatibility
8754 # with the native linker. However, as the warning in the GNU ld
8755 # block says, versions before 2.19.5* couldn't really create working
8756 # shared libraries, regardless of the interface used.
8757 case `$LD -v 2>&1` in
8758 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
8759 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
8760 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
8762 lt_use_gnu_ld_interface
=yes
8767 lt_use_gnu_ld_interface
=yes
8772 if test "$lt_use_gnu_ld_interface" = yes; then
8773 # If archive_cmds runs LD, not CC, wlarc should be empty
8776 # Set some defaults for GNU ld with shared library support. These
8777 # are reset later if shared libraries are not supported. Putting them
8778 # here allows them to be overridden if necessary.
8779 runpath_var
=LD_RUN_PATH
8780 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8781 export_dynamic_flag_spec
='${wl}--export-dynamic'
8782 # ancient GNU ld didn't support --whole-archive et. al.
8783 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8784 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8786 whole_archive_flag_spec
=
8788 supports_anon_versioning
=no
8789 case `$LD -v 2>&1` in
8790 *GNU\ gold
*) supports_anon_versioning
=yes ;;
8791 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8792 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8793 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8794 *\
2.11.
*) ;; # other 2.11 versions
8795 *) supports_anon_versioning
=yes ;;
8798 # See if GNU ld supports shared libraries.
8801 # On AIX/PPC, the GNU linker is very broken
8802 if test "$host_cpu" != ia64
; then
8806 *** Warning: the GNU linker, at least up to release 2.19, is reported
8807 *** to be unable to reliably create shared libraries on AIX.
8808 *** Therefore, libtool is disabling shared libraries support. If you
8809 *** really care for shared libraries, you may want to install binutils
8810 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8811 *** You will then need to restart the configuration process.
8820 # see comment about AmigaOS4 .so support
8821 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8822 archive_expsym_cmds
=''
8825 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)'
8826 hardcode_libdir_flag_spec
='-L$libdir'
8827 hardcode_minus_L
=yes
8833 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8834 allow_undefined_flag
=unsupported
8835 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8836 # support --undefined. This deserves some investigation. FIXME
8837 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8843 cygwin
* | mingw
* | pw32
* | cegcc
*)
8844 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8845 # as there is no search path for DLLs.
8846 hardcode_libdir_flag_spec
='-L$libdir'
8847 export_dynamic_flag_spec
='${wl}--export-all-symbols'
8848 allow_undefined_flag
=unsupported
8849 always_export_symbols
=no
8850 enable_shared_with_static_runtimes
=yes
8851 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8853 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8854 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8855 # If the export-symbols file already is a .def file (1st line
8856 # is EXPORTS), use it as is; otherwise, prepend...
8857 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8858 cp $export_symbols $output_objdir/$soname.def;
8860 echo EXPORTS > $output_objdir/$soname.def;
8861 cat $export_symbols >> $output_objdir/$soname.def;
8863 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8870 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8871 link_all_deplibs
=yes
8876 hardcode_shlibpath_var
=no
8877 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8878 export_dynamic_flag_spec
='${wl}-E'
8879 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8880 # Instead, shared libraries are loaded at an image base (0x10000000 by
8881 # default) and relocated if they conflict, which is a slow very memory
8882 # consuming and fragmenting process. To avoid this, we pick a random,
8883 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8884 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8885 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8886 archive_expsym_cmds
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8889 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8891 if test "$host_os" = linux-dietlibc
; then
8892 case $cc_basename in
8893 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8896 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8897 && test "$tmp_diet" = no
8900 tmp_sharedflag
='-shared'
8901 case $cc_basename,$host_cpu in
8902 pgcc
*) # Portland Group C compiler
8903 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8904 tmp_addflag
=' $pic_flag'
8906 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8907 # Portland Group f77 and f90 compilers
8908 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8909 tmp_addflag
=' $pic_flag -Mnomain' ;;
8910 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8911 tmp_addflag
=' -i_dynamic' ;;
8912 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8913 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8914 ifc
* | ifort
*) # Intel Fortran compiler
8915 tmp_addflag
=' -nofor_main' ;;
8916 lf95
*) # Lahey Fortran 8.1
8917 whole_archive_flag_spec
=
8918 tmp_sharedflag
='--shared' ;;
8919 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8920 tmp_sharedflag
='-qmkshrobj'
8922 nvcc
*) # Cuda Compiler Driver 2.2
8923 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8924 compiler_needs_object
=yes
8927 case `$CC -V 2>&1 | sed 5q` in
8928 *Sun\ C
*) # Sun C 5.9
8929 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8930 compiler_needs_object
=yes
8931 tmp_sharedflag
='-G' ;;
8932 *Sun\ F
*) # Sun Fortran 8.3
8933 tmp_sharedflag
='-G' ;;
8935 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8937 if test "x$supports_anon_versioning" = xyes
; then
8938 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8939 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8940 echo "local: *; };" >> $output_objdir/$libname.ver~
8941 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8944 case $cc_basename in
8945 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
8946 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8947 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8948 hardcode_libdir_flag_spec
=
8949 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8950 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8951 if test "x$supports_anon_versioning" = xyes
; then
8952 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8953 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8954 echo "local: *; };" >> $output_objdir/$libname.ver~
8955 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8965 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8966 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8969 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8975 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8979 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8980 *** create shared libraries on Solaris systems. Therefore, libtool
8981 *** is disabling shared libraries support. We urge you to upgrade GNU
8982 *** binutils to release 2.9.1 or newer. Another option is to modify
8983 *** your PATH or compiler configuration so that the native linker is
8984 *** used, and then restart.
8987 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8988 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8995 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8996 case `$LD -v 2>&1` in
8997 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9001 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9002 *** reliably create shared libraries on SCO systems. Therefore, libtool
9003 *** is disabling shared libraries support. We urge you to upgrade GNU
9004 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9005 *** your PATH or compiler configuration so that the native linker is
9006 *** used, and then restart.
9011 # For security reasons, it is highly recommended that you always
9012 # use absolute paths for naming shared libraries, and exclude the
9013 # DT_RUNPATH tag from executables and libraries. But doing so
9014 # requires that you compile everything twice, which is a pain.
9015 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9016 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9017 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9018 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9027 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9030 hardcode_shlibpath_var
=no
9034 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9035 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9043 if test "$ld_shlibs" = no
; then
9045 hardcode_libdir_flag_spec
=
9046 export_dynamic_flag_spec
=
9047 whole_archive_flag_spec
=
9050 # PORTME fill in a description of your system's linker (not GNU ld)
9053 allow_undefined_flag
=unsupported
9054 always_export_symbols
=yes
9055 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'
9056 # Note: this linker hardcodes the directories in LIBPATH if there
9057 # are no directories specified by -L.
9058 hardcode_minus_L
=yes
9059 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9060 # Neither direct hardcoding nor static linking is supported with a
9062 hardcode_direct
=unsupported
9067 if test "$host_cpu" = ia64
; then
9068 # On IA64, the linker does run time linking by default, so we don't
9069 # have to do anything special.
9070 aix_use_runtimelinking
=no
9071 exp_sym_flag
='-Bexport'
9074 # If we're using GNU nm, then we don't want the "-C" option.
9075 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9076 # Also, AIX nm treats weak defined symbols like other global
9077 # defined symbols, whereas GNU nm marks them as "W".
9078 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9079 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9081 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'
9083 aix_use_runtimelinking
=no
9085 # Test if we are trying to use run time linking or normal
9086 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9087 # need to do runtime linking.
9088 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9089 for ld_flag
in $LDFLAGS; do
9090 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9091 aix_use_runtimelinking
=yes
9098 exp_sym_flag
='-bexport'
9099 no_entry_flag
='-bnoentry'
9102 # When large executables or shared objects are built, AIX ld can
9103 # have problems creating the table of contents. If linking a library
9104 # or program results in "error TOC overflow" add -mminimal-toc to
9105 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9106 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9110 hardcode_direct_absolute
=yes
9111 hardcode_libdir_separator
=':'
9112 link_all_deplibs
=yes
9113 file_list_spec
='${wl}-f,'
9115 if test "$GCC" = yes; then
9116 case $host_os in aix4.
[012]|aix4.
[012].
*)
9117 # We only want to do this on AIX 4.2 and lower, the check
9118 # below for broken collect2 doesn't work under 4.3+
9119 collect2name
=`${CC} -print-prog-name=collect2`
9120 if test -f "$collect2name" &&
9121 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9123 # We have reworked collect2
9126 # We have old collect2
9127 hardcode_direct
=unsupported
9128 # It fails to find uninstalled libraries when the uninstalled
9129 # path is not listed in the libpath. Setting hardcode_minus_L
9130 # to unsupported forces relinking
9131 hardcode_minus_L
=yes
9132 hardcode_libdir_flag_spec
='-L$libdir'
9133 hardcode_libdir_separator
=
9137 shared_flag
='-shared'
9138 if test "$aix_use_runtimelinking" = yes; then
9139 shared_flag
="$shared_flag "'${wl}-G'
9143 if test "$host_cpu" = ia64
; then
9144 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9145 # chokes on -Wl,-G. The following line is correct:
9148 if test "$aix_use_runtimelinking" = yes; then
9149 shared_flag
='${wl}-G'
9151 shared_flag
='${wl}-bM:SRE'
9156 export_dynamic_flag_spec
='${wl}-bexpall'
9157 # It seems that -bexpall does not export symbols beginning with
9158 # underscore (_), so it is better to generate a list of symbols to export.
9159 always_export_symbols
=yes
9160 if test "$aix_use_runtimelinking" = yes; then
9161 # Warning - without using the other runtime loading flags (-brtl),
9162 # -berok will link without error, but may produce a broken library.
9163 allow_undefined_flag
='-berok'
9164 # Determine the default libpath from the value encoded in an
9166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9177 if ac_fn_c_try_link
"$LINENO"; then :
9179 lt_aix_libpath_sed
='
9180 /Import File Strings/,/^$/ {
9186 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9187 # Check for a 64-bit object if we didn't find anything.
9188 if test -z "$aix_libpath"; then
9189 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9192 rm -f core conftest.err conftest.
$ac_objext \
9193 conftest
$ac_exeext conftest.
$ac_ext
9194 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9196 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9197 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9199 if test "$host_cpu" = ia64
; then
9200 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9201 allow_undefined_flag
="-z nodefs"
9202 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9204 # Determine the default libpath from the value encoded in an
9206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9217 if ac_fn_c_try_link
"$LINENO"; then :
9219 lt_aix_libpath_sed
='
9220 /Import File Strings/,/^$/ {
9226 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9227 # Check for a 64-bit object if we didn't find anything.
9228 if test -z "$aix_libpath"; then
9229 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9232 rm -f core conftest.err conftest.
$ac_objext \
9233 conftest
$ac_exeext conftest.
$ac_ext
9234 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9236 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9237 # Warning - without using the other run time loading flags,
9238 # -berok will link without error, but may produce a broken library.
9239 no_undefined_flag
=' ${wl}-bernotok'
9240 allow_undefined_flag
=' ${wl}-berok'
9241 if test "$with_gnu_ld" = yes; then
9242 # We only use this code for GNU lds that support --whole-archive.
9243 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9245 # Exported symbols can be pulled into shared objects from archives
9246 whole_archive_flag_spec
='$convenience'
9248 archive_cmds_need_lc
=yes
9249 # This is similar to how AIX traditionally builds its shared libraries.
9250 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9258 # see comment about AmigaOS4 .so support
9259 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9260 archive_expsym_cmds
=''
9263 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)'
9264 hardcode_libdir_flag_spec
='-L$libdir'
9265 hardcode_minus_L
=yes
9271 export_dynamic_flag_spec
=-rdynamic
9274 cygwin
* | mingw
* | pw32
* | cegcc
*)
9275 # When not using gcc, we currently assume that we are using
9276 # Microsoft Visual C++.
9277 # hardcode_libdir_flag_spec is actually meaningless, as there is
9278 # no search path for DLLs.
9279 hardcode_libdir_flag_spec
=' '
9280 allow_undefined_flag
=unsupported
9281 # Tell ltmain to make .lib files, not .a files.
9283 # Tell ltmain to make .dll files, not .so files.
9285 # FIXME: Setting linknames here is a bad hack.
9286 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9287 # The linker will automatically build a .lib file if we build a DLL.
9288 old_archive_from_new_cmds
='true'
9289 # FIXME: Should let the user specify the lib program.
9290 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9291 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9292 enable_shared_with_static_runtimes
=yes
9295 darwin
* | rhapsody
*)
9298 archive_cmds_need_lc
=no
9300 hardcode_automatic
=yes
9301 hardcode_shlibpath_var
=unsupported
9302 if test "$lt_cv_ld_force_load" = "yes"; then
9303 whole_archive_flag_spec
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9305 whole_archive_flag_spec
=''
9307 link_all_deplibs
=yes
9308 allow_undefined_flag
="$_lt_dar_allow_undefined"
9309 case $cc_basename in
9310 ifort
*) _lt_dar_can_shared
=yes ;;
9311 *) _lt_dar_can_shared
=$GCC ;;
9313 if test "$_lt_dar_can_shared" = "yes"; then
9314 output_verbose_link_cmd
=func_echo_all
9315 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9316 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9317 archive_expsym_cmds
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9318 module_expsym_cmds
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9327 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328 hardcode_libdir_flag_spec
='-L$libdir'
9329 hardcode_shlibpath_var
=no
9332 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9333 # support. Future versions do this automatically, but an explicit c++rt0.o
9334 # does not break anything, and helps significantly (at the cost of a little
9337 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9338 hardcode_libdir_flag_spec
='-R$libdir'
9340 hardcode_shlibpath_var
=no
9343 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9345 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9347 hardcode_minus_L
=yes
9348 hardcode_shlibpath_var
=no
9351 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9352 freebsd
* | dragonfly
*)
9353 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9354 hardcode_libdir_flag_spec
='-R$libdir'
9356 hardcode_shlibpath_var
=no
9360 if test "$GCC" = yes; then
9361 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'
9363 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'
9365 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9366 hardcode_libdir_separator
=:
9369 # hardcode_minus_L: Not really in the search PATH,
9370 # but as the default location of the library.
9371 hardcode_minus_L
=yes
9372 export_dynamic_flag_spec
='${wl}-E'
9376 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9377 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9379 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9381 if test "$with_gnu_ld" = no
; then
9382 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9383 hardcode_libdir_flag_spec_ld
='+b $libdir'
9384 hardcode_libdir_separator
=:
9386 hardcode_direct_absolute
=yes
9387 export_dynamic_flag_spec
='${wl}-E'
9388 # hardcode_minus_L: Not really in the search PATH,
9389 # but as the default location of the library.
9390 hardcode_minus_L
=yes
9395 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9398 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9401 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9404 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9410 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9413 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9417 # Older versions of the 11.00 compiler do not understand -b yet
9418 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9420 $as_echo_n "checking if $CC understands -b... " >&6; }
9421 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9422 $as_echo_n "(cached) " >&6
9424 lt_cv_prog_compiler__b
=no
9425 save_LDFLAGS
="$LDFLAGS"
9426 LDFLAGS
="$LDFLAGS -b"
9427 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9428 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9429 # The linker can only warn and ignore the option if not recognized
9430 # So say no if there are warnings
9431 if test -s conftest.err
; then
9432 # Append any errors to the config.log.
9433 cat conftest.err
1>&5
9434 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9435 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9436 if diff conftest.exp conftest.er2
>/dev
/null
; then
9437 lt_cv_prog_compiler__b
=yes
9440 lt_cv_prog_compiler__b
=yes
9444 LDFLAGS
="$save_LDFLAGS"
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9448 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9450 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9451 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9453 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9459 if test "$with_gnu_ld" = no
; then
9460 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9461 hardcode_libdir_separator
=:
9466 hardcode_shlibpath_var
=no
9470 hardcode_direct_absolute
=yes
9471 export_dynamic_flag_spec
='${wl}-E'
9473 # hardcode_minus_L: Not really in the search PATH,
9474 # but as the default location of the library.
9475 hardcode_minus_L
=yes
9481 irix5
* | irix6
* | nonstopux
*)
9482 if test "$GCC" = yes; then
9483 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9484 # Try to use the -exported_symbol ld option, if it does not
9485 # work, assume that -exports_file does not work either and
9486 # implicitly export all symbols.
9487 save_LDFLAGS
="$LDFLAGS"
9488 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9490 /* end confdefs.h. */
9493 if ac_fn_c_try_link
"$LINENO"; then :
9494 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9497 rm -f core conftest.err conftest.
$ac_objext \
9498 conftest
$ac_exeext conftest.
$ac_ext
9499 LDFLAGS
="$save_LDFLAGS"
9501 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9502 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9504 archive_cmds_need_lc
='no'
9505 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9506 hardcode_libdir_separator
=:
9508 link_all_deplibs
=yes
9512 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9513 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9515 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9517 hardcode_libdir_flag_spec
='-R$libdir'
9519 hardcode_shlibpath_var
=no
9523 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9525 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9526 hardcode_libdir_separator
=:
9527 hardcode_shlibpath_var
=no
9534 if test -f /usr
/libexec
/ld.so
; then
9536 hardcode_shlibpath_var
=no
9537 hardcode_direct_absolute
=yes
9538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9539 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9540 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9541 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9542 export_dynamic_flag_spec
='${wl}-E'
9545 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9546 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9547 hardcode_libdir_flag_spec
='-R$libdir'
9550 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9551 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9561 hardcode_libdir_flag_spec
='-L$libdir'
9562 hardcode_minus_L
=yes
9563 allow_undefined_flag
=unsupported
9564 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'
9565 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9569 if test "$GCC" = yes; then
9570 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9571 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9573 allow_undefined_flag
=' -expect_unresolved \*'
9574 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9576 archive_cmds_need_lc
='no'
9577 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9578 hardcode_libdir_separator
=:
9581 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9582 if test "$GCC" = yes; then
9583 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9584 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9585 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9587 allow_undefined_flag
=' -expect_unresolved \*'
9588 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9589 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9590 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9592 # Both c and cxx compiler support -rpath directly
9593 hardcode_libdir_flag_spec
='-rpath $libdir'
9595 archive_cmds_need_lc
='no'
9596 hardcode_libdir_separator
=:
9600 no_undefined_flag
=' -z defs'
9601 if test "$GCC" = yes; then
9603 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9604 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9605 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9607 case `$CC -V 2>&1` in
9610 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9612 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9616 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9617 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9618 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9622 hardcode_libdir_flag_spec
='-R$libdir'
9623 hardcode_shlibpath_var
=no
9625 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9627 # The compiler driver will combine and reorder linker options,
9628 # but understands `-z linker_flag'. GCC discards it without `$wl',
9629 # but is careful enough not to reorder.
9630 # Supported since Solaris 2.6 (maybe 2.5.1?)
9631 if test "$GCC" = yes; then
9632 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9634 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9638 link_all_deplibs
=yes
9642 if test "x$host_vendor" = xsequent
; then
9643 # Use $CC to link under sequent, because it throws in some extra .o
9644 # files that make .init and .fini sections work.
9645 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9647 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9649 hardcode_libdir_flag_spec
='-L$libdir'
9651 hardcode_minus_L
=yes
9652 hardcode_shlibpath_var
=no
9656 case $host_vendor in
9658 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9659 hardcode_direct
=yes # is this really true???
9662 ## LD is ld it makes a PLAMLIB
9663 ## CC just makes a GrossModule.
9664 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9665 reload_cmds
='$CC -r -o $output$reload_objs'
9669 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9670 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9673 runpath_var
='LD_RUN_PATH'
9674 hardcode_shlibpath_var
=no
9678 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679 hardcode_shlibpath_var
=no
9680 export_dynamic_flag_spec
='-Bexport'
9684 if test -d /usr
/nec
; then
9685 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9686 hardcode_shlibpath_var
=no
9687 runpath_var
=LD_RUN_PATH
9688 hardcode_runpath_var
=yes
9693 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9694 no_undefined_flag
='${wl}-z,text'
9695 archive_cmds_need_lc
=no
9696 hardcode_shlibpath_var
=no
9697 runpath_var
='LD_RUN_PATH'
9699 if test "$GCC" = yes; then
9700 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9708 sysv5
* | sco3.2v5
* | sco5v6
*)
9709 # Note: We can NOT use -z defs as we might desire, because we do not
9710 # link with -lc, and that would cause any symbols used from libc to
9711 # always be unresolved, which means just about no library would
9712 # ever link correctly. If we're not using GNU ld we use -z text
9713 # though, which does catch some bad symbols but isn't as heavy-handed
9715 no_undefined_flag
='${wl}-z,text'
9716 allow_undefined_flag
='${wl}-z,nodefs'
9717 archive_cmds_need_lc
=no
9718 hardcode_shlibpath_var
=no
9719 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9720 hardcode_libdir_separator
=':'
9721 link_all_deplibs
=yes
9722 export_dynamic_flag_spec
='${wl}-Bexport'
9723 runpath_var
='LD_RUN_PATH'
9725 if test "$GCC" = yes; then
9726 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9729 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9730 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736 hardcode_libdir_flag_spec
='-L$libdir'
9737 hardcode_shlibpath_var
=no
9745 if test x
$host_vendor = xsni
; then
9747 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9748 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9755 $as_echo "$ld_shlibs" >&6; }
9756 test "$ld_shlibs" = no
&& can_build_shared
=no
9758 with_gnu_ld
=$with_gnu_ld
9775 # Do we need to explicitly link libc?
9777 case "x$archive_cmds_need_lc" in
9779 # Assume -lc should be added
9780 archive_cmds_need_lc
=yes
9782 if test "$enable_shared" = yes && test "$GCC" = yes; then
9783 case $archive_cmds in
9785 # FIXME: we may have to deal with multi-command sequences.
9788 # Test whether the compiler implicitly links with -lc since on some
9789 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9790 # to ld, don't add -lc before -lgcc.
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9792 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9793 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9794 $as_echo_n "(cached) " >&6
9797 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9800 (eval $ac_compile) 2>&5
9802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9803 test $ac_status = 0; } 2>conftest.err
; then
9806 libobjs
=conftest.
$ac_objext
9808 wl
=$lt_prog_compiler_wl
9809 pic_flag
=$lt_prog_compiler_pic
9815 lt_save_allow_undefined_flag
=$allow_undefined_flag
9816 allow_undefined_flag
=
9817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9818 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9821 test $ac_status = 0; }
9823 lt_cv_archive_cmds_need_lc
=no
9825 lt_cv_archive_cmds_need_lc
=yes
9827 allow_undefined_flag
=$lt_save_allow_undefined_flag
9829 cat conftest.err
1>&5
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9835 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9836 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10000 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10002 if test "$GCC" = yes; then
10004 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10005 *) lt_awk_arg
="/^libraries:/" ;;
10008 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10009 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10011 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10012 case $lt_search_path_spec in
10014 # if the path contains ";" then we assume it to be the separator
10015 # otherwise default to the standard path separator (i.e. ":") - it is
10016 # assumed that no part of a normal pathname contains ";" but that should
10017 # okay in the real world where ";" in dirpaths is itself problematic.
10018 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10021 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10024 # Ok, now we have the path, separated by spaces, we can step through it
10025 # and add multilib dir if necessary.
10026 lt_tmp_lt_search_path_spec
=
10027 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10028 for lt_sys_path
in $lt_search_path_spec; do
10029 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10030 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10032 test -d "$lt_sys_path" && \
10033 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10036 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10037 BEGIN {RS=" "; FS="/|\n";} {
10040 for (lt_i = NF; lt_i > 0; lt_i--) {
10041 if ($lt_i != "" && $lt_i != ".") {
10042 if ($lt_i == "..") {
10045 if (lt_count == 0) {
10046 lt_foo="/" $lt_i lt_foo;
10053 if (lt_foo != "") { lt_freq[lt_foo]++; }
10054 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10056 # AWK program above erroneously prepends '/' to C:/dos/paths
10059 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10060 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10062 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10064 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10066 library_names_spec
=
10067 libname_spec
='lib$name'
10071 postuninstall_cmds
=
10075 shlibpath_overrides_runpath
=unknown
10077 dynamic_linker
="$host_os ld.so"
10078 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10079 need_lib_prefix
=unknown
10080 hardcode_into_libs
=no
10082 # when you set need_version to no, make sure it does not cause -set_version
10083 # flags to be left without arguments
10084 need_version
=unknown
10089 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10090 shlibpath_var
=LIBPATH
10092 # AIX 3 has no versioning support, so we append a major version to the name.
10093 soname_spec
='${libname}${release}${shared_ext}$major'
10100 hardcode_into_libs
=yes
10101 if test "$host_cpu" = ia64
; then
10102 # AIX 5 supports IA64
10103 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10104 shlibpath_var
=LD_LIBRARY_PATH
10106 # With GCC up to 2.95.x, collect2 would create an import file
10107 # for dependence libraries. The import file would start with
10108 # the line `#! .'. This would cause the generated library to
10109 # depend on `.', always an invalid library. This was fixed in
10110 # development snapshots of GCC prior to 3.0.
10112 aix4 | aix4.
[01] | aix4.
[01].
*)
10113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10115 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10118 can_build_shared
=no
10122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10123 # soname into executable. Probably we can add versioning support to
10124 # collect2, so additional links can be useful in future.
10125 if test "$aix_use_runtimelinking" = yes; then
10126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10127 # instead of lib<name>.a to let people know that these are not
10128 # typical AIX shared libraries.
10129 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 # We preserve .a as extension for shared libraries through AIX4.2
10132 # and later when we are not doing run time linking.
10133 library_names_spec
='${libname}${release}.a $libname.a'
10134 soname_spec
='${libname}${release}${shared_ext}$major'
10136 shlibpath_var
=LIBPATH
10143 # Since July 2007 AmigaOS4 officially supports .so libraries.
10144 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148 library_names_spec
='$libname.ixlibrary $libname.a'
10149 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10150 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10156 library_names_spec
='${libname}${shared_ext}'
10157 dynamic_linker
="$host_os ld.so"
10158 shlibpath_var
=LIBRARY_PATH
10164 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165 soname_spec
='${libname}${release}${shared_ext}$major'
10166 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10167 shlibpath_var
=LD_LIBRARY_PATH
10168 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10169 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10170 # the default ld.so.conf also contains /usr/contrib/lib and
10171 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10172 # libtool to hard-code these into programs
10175 cygwin
* | mingw
* | pw32
* | cegcc
*)
10176 version_type
=windows
10181 case $GCC,$host_os in
10182 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10183 library_names_spec
='$libname.dll.a'
10184 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10185 postinstall_cmds
='base_file=`basename \${file}`~
10186 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10187 dldir=$destdir/`dirname \$dlpath`~
10188 test -d \$dldir || mkdir -p \$dldir~
10189 $install_prog $dir/$dlname \$dldir/$dlname~
10190 chmod a+x \$dldir/$dlname~
10191 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10192 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10194 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10195 dlpath=$dir/\$dldll~
10197 shlibpath_overrides_runpath
=yes
10201 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10202 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10204 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10207 # MinGW DLLs use traditional 'lib' prefix
10208 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10211 # pw32 DLLs use 'pw' prefix rather than 'lib'
10212 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10218 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10221 dynamic_linker
='Win32 ld.exe'
10222 # FIXME: first we should search . and the directory the executable is in
10226 darwin
* | rhapsody
*)
10227 dynamic_linker
="$host_os dyld"
10228 version_type
=darwin
10231 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10232 soname_spec
='${libname}${release}${major}$shared_ext'
10233 shlibpath_overrides_runpath
=yes
10234 shlibpath_var
=DYLD_LIBRARY_PATH
10235 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10237 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10238 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10245 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10246 soname_spec
='${libname}${release}${shared_ext}$major'
10247 shlibpath_var
=LD_LIBRARY_PATH
10250 freebsd
* | dragonfly
*)
10251 # DragonFly does not have aout. When/if they implement a new
10252 # versioning mechanism, adjust this.
10253 if test -x /usr
/bin
/objformat
; then
10254 objformat
=`/usr/bin/objformat`
10257 freebsd
[23].
*) objformat
=aout
;;
10258 *) objformat
=elf
;;
10261 version_type
=freebsd-
$objformat
10262 case $version_type in
10264 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10269 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10273 shlibpath_var
=LD_LIBRARY_PATH
10276 shlibpath_overrides_runpath
=yes
10278 freebsd3.
[01]* | freebsdelf3.
[01]*)
10279 shlibpath_overrides_runpath
=yes
10280 hardcode_into_libs
=yes
10282 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10283 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10284 shlibpath_overrides_runpath
=no
10285 hardcode_into_libs
=yes
10287 *) # from 4.6 on, and DragonFly
10288 shlibpath_overrides_runpath
=yes
10289 hardcode_into_libs
=yes
10298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10299 soname_spec
='${libname}${release}${shared_ext}$major'
10300 shlibpath_var
=LD_LIBRARY_PATH
10301 hardcode_into_libs
=yes
10308 dynamic_linker
="$host_os runtime_loader"
10309 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10310 soname_spec
='${libname}${release}${shared_ext}$major'
10311 shlibpath_var
=LIBRARY_PATH
10312 shlibpath_overrides_runpath
=yes
10313 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10314 hardcode_into_libs
=yes
10317 hpux9
* | hpux10
* | hpux11
*)
10318 # Give a soname corresponding to the major version so that dld.sl refuses to
10319 # link against other versions.
10326 hardcode_into_libs
=yes
10327 dynamic_linker
="$host_os dld.so"
10328 shlibpath_var
=LD_LIBRARY_PATH
10329 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10330 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331 soname_spec
='${libname}${release}${shared_ext}$major'
10332 if test "X$HPUX_IA64_MODE" = X32
; then
10333 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10335 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10337 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10341 hardcode_into_libs
=yes
10342 dynamic_linker
="$host_os dld.sl"
10343 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10344 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10345 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346 soname_spec
='${libname}${release}${shared_ext}$major'
10347 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10348 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10352 dynamic_linker
="$host_os dld.sl"
10353 shlibpath_var
=SHLIB_PATH
10354 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10355 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356 soname_spec
='${libname}${release}${shared_ext}$major'
10359 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10360 postinstall_cmds
='chmod 555 $lib'
10361 # or fails outright, so override atomically:
10362 install_override_mode
=555
10369 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10370 soname_spec
='${libname}${release}${shared_ext}$major'
10371 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10372 shlibpath_var
=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath
=no
10374 hardcode_into_libs
=yes
10377 irix5
* | irix6
* | nonstopux
*)
10379 nonstopux
*) version_type
=nonstopux
;;
10381 if test "$lt_cv_prog_gnu_ld" = yes; then
10389 soname_spec
='${libname}${release}${shared_ext}$major'
10390 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10392 irix5
* | nonstopux
*)
10393 libsuff
= shlibsuff
=
10396 case $LD in # libtool.m4 will add one of these switches to LD
10397 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10398 libsuff
= shlibsuff
= libmagic
=32-bit;;
10399 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10400 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10401 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10402 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10403 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10407 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10408 shlibpath_overrides_runpath
=no
10409 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10410 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10411 hardcode_into_libs
=yes
10414 # No shared lib support for Linux oldld, aout, or coff.
10415 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10419 # This must be Linux ELF.
10420 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10424 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 soname_spec
='${libname}${release}${shared_ext}$major'
10426 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10427 shlibpath_var
=LD_LIBRARY_PATH
10428 shlibpath_overrides_runpath
=no
10430 # Some binutils ld are patched to set DT_RUNPATH
10431 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10432 $as_echo_n "(cached) " >&6
10434 lt_cv_shlibpath_overrides_runpath
=no
10435 save_LDFLAGS
=$LDFLAGS
10436 save_libdir
=$libdir
10437 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10438 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h. */
10450 if ac_fn_c_try_link
"$LINENO"; then :
10451 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10452 lt_cv_shlibpath_overrides_runpath
=yes
10455 rm -f core conftest.err conftest.
$ac_objext \
10456 conftest
$ac_exeext conftest.
$ac_ext
10457 LDFLAGS
=$save_LDFLAGS
10458 libdir
=$save_libdir
10462 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10464 # This implies no fast_install, which is unacceptable.
10465 # Some rework will be needed to allow for fast_install
10466 # before this can be enabled.
10467 hardcode_into_libs
=yes
10469 # Append ld.so.conf contents to the search path
10470 if test -f /etc
/ld.so.conf
; then
10471 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10472 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10475 # We used to test for /lib/ld.so.1 and disable shared libraries on
10476 # powerpc, because MkLinux only supported shared libraries with the
10477 # GNU dynamic linker. Since this was broken with cross compilers,
10478 # most powerpc-linux boxes support dynamic linking these days and
10479 # people can always --disable-shared, the test was removed, and we
10480 # assume the GNU/Linux dynamic linker is in use.
10481 dynamic_linker
='GNU/Linux ld.so'
10488 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10489 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10490 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10491 dynamic_linker
='NetBSD (a.out) ld.so'
10493 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10494 soname_spec
='${libname}${release}${shared_ext}$major'
10495 dynamic_linker
='NetBSD ld.elf_so'
10497 shlibpath_var
=LD_LIBRARY_PATH
10498 shlibpath_overrides_runpath
=yes
10499 hardcode_into_libs
=yes
10504 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10505 shlibpath_var
=LD_LIBRARY_PATH
10506 shlibpath_overrides_runpath
=yes
10513 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514 soname_spec
='${libname}${release}${shared_ext}$major'
10515 shlibpath_var
=LD_LIBRARY_PATH
10516 shlibpath_overrides_runpath
=no
10517 hardcode_into_libs
=yes
10518 dynamic_linker
='ldqnx.so'
10523 sys_lib_dlsearch_path_spec
="/usr/lib"
10525 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10527 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10528 *) need_version
=no
;;
10530 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10531 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10532 shlibpath_var
=LD_LIBRARY_PATH
10533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10535 openbsd2.
[89] | openbsd2.
[89].
*)
10536 shlibpath_overrides_runpath
=no
10539 shlibpath_overrides_runpath
=yes
10543 shlibpath_overrides_runpath
=yes
10548 libname_spec
='$name'
10551 library_names_spec
='$libname${shared_ext} $libname.a'
10552 dynamic_linker
='OS/2 ld.exe'
10553 shlibpath_var
=LIBPATH
10556 osf3
* | osf4
* | osf5
*)
10560 soname_spec
='${libname}${release}${shared_ext}$major'
10561 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10562 shlibpath_var
=LD_LIBRARY_PATH
10563 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10564 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10575 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10576 soname_spec
='${libname}${release}${shared_ext}$major'
10577 shlibpath_var
=LD_LIBRARY_PATH
10578 shlibpath_overrides_runpath
=yes
10579 hardcode_into_libs
=yes
10580 # ldd complains unless libraries are executable
10581 postinstall_cmds
='chmod +x $lib'
10586 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10587 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10588 shlibpath_var
=LD_LIBRARY_PATH
10589 shlibpath_overrides_runpath
=yes
10590 if test "$with_gnu_ld" = yes; then
10598 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599 soname_spec
='${libname}${release}${shared_ext}$major'
10600 shlibpath_var
=LD_LIBRARY_PATH
10601 case $host_vendor in
10603 shlibpath_overrides_runpath
=no
10605 runpath_var
=LD_RUN_PATH
10613 shlibpath_overrides_runpath
=no
10614 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10620 if test -d /usr
/nec
;then
10622 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10623 soname_spec
='$libname${shared_ext}.$major'
10624 shlibpath_var
=LD_LIBRARY_PATH
10628 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10629 version_type
=freebsd-elf
10632 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10633 soname_spec
='${libname}${release}${shared_ext}$major'
10634 shlibpath_var
=LD_LIBRARY_PATH
10635 shlibpath_overrides_runpath
=yes
10636 hardcode_into_libs
=yes
10637 if test "$with_gnu_ld" = yes; then
10638 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10640 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10643 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10647 sys_lib_dlsearch_path_spec
='/usr/lib'
10651 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10655 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10656 shlibpath_var
=LD_LIBRARY_PATH
10657 shlibpath_overrides_runpath
=no
10658 hardcode_into_libs
=yes
10663 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664 soname_spec
='${libname}${release}${shared_ext}$major'
10665 shlibpath_var
=LD_LIBRARY_PATH
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10673 $as_echo "$dynamic_linker" >&6; }
10674 test "$dynamic_linker" = no
&& can_build_shared
=no
10676 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10677 if test "$GCC" = yes; then
10678 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10681 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10682 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10684 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10685 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10780 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10782 if test -n "$hardcode_libdir_flag_spec" ||
10783 test -n "$runpath_var" ||
10784 test "X$hardcode_automatic" = "Xyes" ; then
10786 # We can hardcode non-existent directories.
10787 if test "$hardcode_direct" != no
&&
10788 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10789 # have to relink, otherwise we might link with an installed library
10790 # when we should be linking with a yet-to-be-installed one
10791 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10792 test "$hardcode_minus_L" != no
; then
10793 # Linking always hardcodes the temporary library directory.
10794 hardcode_action
=relink
10796 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10797 hardcode_action
=immediate
10800 # We cannot hardcode anything, or else we can only hardcode existing
10802 hardcode_action
=unsupported
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10805 $as_echo "$hardcode_action" >&6; }
10807 if test "$hardcode_action" = relink ||
10808 test "$inherit_rpath" = yes; then
10809 # Fast installation is not supported
10810 enable_fast_install
=no
10811 elif test "$shlibpath_overrides_runpath" = yes ||
10812 test "$enable_shared" = no
; then
10813 # Fast installation is not necessary
10814 enable_fast_install
=needless
10822 if test "x$enable_dlopen" != xyes
; then
10823 enable_dlopen
=unknown
10824 enable_dlopen_self
=unknown
10825 enable_dlopen_self_static
=unknown
10832 lt_cv_dlopen
="load_add_on"
10834 lt_cv_dlopen_self
=yes
10837 mingw
* | pw32
* | cegcc
*)
10838 lt_cv_dlopen
="LoadLibrary"
10843 lt_cv_dlopen
="dlopen"
10848 # if libdl is installed we need to link against it
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10850 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10851 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10852 $as_echo_n "(cached) " >&6
10854 ac_check_lib_save_LIBS
=$LIBS
10856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10859 /* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10874 if ac_fn_c_try_link
"$LINENO"; then :
10875 ac_cv_lib_dl_dlopen
=yes
10877 ac_cv_lib_dl_dlopen
=no
10879 rm -f core conftest.err conftest.
$ac_objext \
10880 conftest
$ac_exeext conftest.
$ac_ext
10881 LIBS
=$ac_check_lib_save_LIBS
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10884 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10885 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10886 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10889 lt_cv_dlopen
="dyld"
10891 lt_cv_dlopen_self
=yes
10898 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
10899 if test "x$ac_cv_func_shl_load" = x
""yes; then :
10900 lt_cv_dlopen
="shl_load"
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10903 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10904 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10905 $as_echo_n "(cached) " >&6
10907 ac_check_lib_save_LIBS
=$LIBS
10909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10910 /* end confdefs.h. */
10912 /* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
10922 return shl_load ();
10927 if ac_fn_c_try_link
"$LINENO"; then :
10928 ac_cv_lib_dld_shl_load
=yes
10930 ac_cv_lib_dld_shl_load
=no
10932 rm -f core conftest.err conftest.
$ac_objext \
10933 conftest
$ac_exeext conftest.
$ac_ext
10934 LIBS
=$ac_check_lib_save_LIBS
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10937 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10938 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
10939 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10941 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10942 if test "x$ac_cv_func_dlopen" = x
""yes; then :
10943 lt_cv_dlopen
="dlopen"
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10946 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10947 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10948 $as_echo_n "(cached) " >&6
10950 ac_check_lib_save_LIBS
=$LIBS
10952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10953 /* end confdefs.h. */
10955 /* Override any GCC internal prototype to avoid an error.
10956 Use char because int might match the return type of a GCC
10957 builtin and then its argument prototype would still apply. */
10970 if ac_fn_c_try_link
"$LINENO"; then :
10971 ac_cv_lib_dl_dlopen
=yes
10973 ac_cv_lib_dl_dlopen
=no
10975 rm -f core conftest.err conftest.
$ac_objext \
10976 conftest
$ac_exeext conftest.
$ac_ext
10977 LIBS
=$ac_check_lib_save_LIBS
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10980 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10981 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10982 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10985 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10986 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10987 $as_echo_n "(cached) " >&6
10989 ac_check_lib_save_LIBS
=$LIBS
10990 LIBS
="-lsvld $LIBS"
10991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10994 /* Override any GCC internal prototype to avoid an error.
10995 Use char because int might match the return type of a GCC
10996 builtin and then its argument prototype would still apply. */
11009 if ac_fn_c_try_link
"$LINENO"; then :
11010 ac_cv_lib_svld_dlopen
=yes
11012 ac_cv_lib_svld_dlopen
=no
11014 rm -f core conftest.err conftest.
$ac_objext \
11015 conftest
$ac_exeext conftest.
$ac_ext
11016 LIBS
=$ac_check_lib_save_LIBS
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11019 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11020 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
11021 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11024 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11025 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11026 $as_echo_n "(cached) " >&6
11028 ac_check_lib_save_LIBS
=$LIBS
11030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11033 /* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11043 return dld_link ();
11048 if ac_fn_c_try_link
"$LINENO"; then :
11049 ac_cv_lib_dld_dld_link
=yes
11051 ac_cv_lib_dld_dld_link
=no
11053 rm -f core conftest.err conftest.
$ac_objext \
11054 conftest
$ac_exeext conftest.
$ac_ext
11055 LIBS
=$ac_check_lib_save_LIBS
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11058 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11059 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
11060 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11081 if test "x$lt_cv_dlopen" != xno
; then
11087 case $lt_cv_dlopen in
11089 save_CPPFLAGS
="$CPPFLAGS"
11090 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11092 save_LDFLAGS
="$LDFLAGS"
11093 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11096 LIBS
="$lt_cv_dlopen_libs $LIBS"
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11099 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11100 if test "${lt_cv_dlopen_self+set}" = set; then :
11101 $as_echo_n "(cached) " >&6
11103 if test "$cross_compiling" = yes; then :
11104 lt_cv_dlopen_self
=cross
11106 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11107 lt_status
=$lt_dlunknown
11108 cat > conftest.
$ac_ext <<_LT_EOF
11109 #line 11109 "configure"
11110 #include "confdefs.h"
11119 # define LT_DLGLOBAL RTLD_GLOBAL
11122 # define LT_DLGLOBAL DL_GLOBAL
11124 # define LT_DLGLOBAL 0
11128 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11129 find out it does not work in some platform. */
11130 #ifndef LT_DLLAZY_OR_NOW
11132 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11135 # define LT_DLLAZY_OR_NOW DL_LAZY
11138 # define LT_DLLAZY_OR_NOW RTLD_NOW
11141 # define LT_DLLAZY_OR_NOW DL_NOW
11143 # define LT_DLLAZY_OR_NOW 0
11150 /* When -fvisbility=hidden is used, assume the code has been annotated
11151 correspondingly for the symbols needed. */
11152 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11153 void fnord () __attribute__((visibility("default")));
11156 void fnord () { int i=42; }
11159 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11160 int status = $lt_dlunknown;
11164 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11167 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11168 else puts (dlerror ());
11170 /* dlclose (self); */
11178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11179 (eval $ac_link) 2>&5
11181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11182 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11183 (.
/conftest
; exit; ) >&5 2>/dev
/null
11185 case x
$lt_status in
11186 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11187 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11188 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11191 # compilation failed
11192 lt_cv_dlopen_self
=no
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11200 $as_echo "$lt_cv_dlopen_self" >&6; }
11202 if test "x$lt_cv_dlopen_self" = xyes
; then
11203 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11205 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11206 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11207 $as_echo_n "(cached) " >&6
11209 if test "$cross_compiling" = yes; then :
11210 lt_cv_dlopen_self_static
=cross
11212 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11213 lt_status
=$lt_dlunknown
11214 cat > conftest.
$ac_ext <<_LT_EOF
11215 #line 11215 "configure"
11216 #include "confdefs.h"
11225 # define LT_DLGLOBAL RTLD_GLOBAL
11228 # define LT_DLGLOBAL DL_GLOBAL
11230 # define LT_DLGLOBAL 0
11234 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11235 find out it does not work in some platform. */
11236 #ifndef LT_DLLAZY_OR_NOW
11238 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11241 # define LT_DLLAZY_OR_NOW DL_LAZY
11244 # define LT_DLLAZY_OR_NOW RTLD_NOW
11247 # define LT_DLLAZY_OR_NOW DL_NOW
11249 # define LT_DLLAZY_OR_NOW 0
11256 /* When -fvisbility=hidden is used, assume the code has been annotated
11257 correspondingly for the symbols needed. */
11258 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11259 void fnord () __attribute__((visibility("default")));
11262 void fnord () { int i=42; }
11265 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11266 int status = $lt_dlunknown;
11270 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11273 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11274 else puts (dlerror ());
11276 /* dlclose (self); */
11284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11285 (eval $ac_link) 2>&5
11287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11288 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11289 (.
/conftest
; exit; ) >&5 2>/dev
/null
11291 case x
$lt_status in
11292 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11293 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11294 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11297 # compilation failed
11298 lt_cv_dlopen_self_static
=no
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11306 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11309 CPPFLAGS
="$save_CPPFLAGS"
11310 LDFLAGS
="$save_LDFLAGS"
11315 case $lt_cv_dlopen_self in
11316 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11317 *) enable_dlopen_self
=unknown
;;
11320 case $lt_cv_dlopen_self_static in
11321 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11322 *) enable_dlopen_self_static
=unknown
;;
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11345 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11346 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11347 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11348 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11350 $as_echo "yes" >&6; }
11352 # FIXME - insert some real tests, host_os isn't really good enough
11355 if test -n "$STRIP" ; then
11356 striplib
="$STRIP -x"
11357 old_striplib
="$STRIP -S"
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11359 $as_echo "yes" >&6; }
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362 $as_echo "no" >&6; }
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11383 # Report which library types will actually be built
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11385 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11387 $as_echo "$can_build_shared" >&6; }
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11390 $as_echo_n "checking whether to build shared libraries... " >&6; }
11391 test "$can_build_shared" = "no" && enable_shared
=no
11393 # On AIX, shared libraries and static libraries use the same namespace, and
11394 # are all built from PIC.
11397 test "$enable_shared" = yes && enable_static
=no
11398 if test -n "$RANLIB"; then
11399 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11400 postinstall_cmds
='$RANLIB $lib'
11405 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11406 test "$enable_shared" = yes && enable_static
=no
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11411 $as_echo "$enable_shared" >&6; }
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11414 $as_echo_n "checking whether to build static libraries... " >&6; }
11415 # Make sure either enable_shared or enable_static is yes.
11416 test "$enable_shared" = yes || enable_static
=yes
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11418 $as_echo "$enable_static" >&6; }
11425 ac_cpp
='$CPP $CPPFLAGS'
11426 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11427 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11428 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11444 ac_config_commands
="$ac_config_commands libtool"
11449 # Only expand once:
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11456 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11457 # Check whether --enable-maintainer-mode was given.
11458 if test "${enable_maintainer_mode+set}" = set; then :
11459 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
11461 USE_MAINTAINER_MODE
=no
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11465 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11466 if test $USE_MAINTAINER_MODE = yes; then
11467 MAINTAINER_MODE_TRUE
=
11468 MAINTAINER_MODE_FALSE
='#'
11470 MAINTAINER_MODE_TRUE
='#'
11471 MAINTAINER_MODE_FALSE
=
11474 MAINT
=$MAINTAINER_MODE_TRUE
11478 # For libtool versioning info, format is CURRENT:REVISION:AGE
11479 libtool_VERSION
=2:0:1
11482 # Get target configury.
11483 .
${srcdir}/configure.tgt
11484 if test -n "$UNSUPPORTED"; then
11485 as_fn_error
"Configuration ${target} is unsupported." "$LINENO" 5
11488 # Disable fallbacks to __sync routines from libgcc. Otherwise we'll
11489 # make silly decisions about what the cpu can do.
11490 CFLAGS
="$save_CFLAGS -fno-sync-libcalls $XCFLAGS"
11492 # Check header files.
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11494 $as_echo_n "checking for ANSI C header files... " >&6; }
11495 if test "${ac_cv_header_stdc+set}" = set; then :
11496 $as_echo_n "(cached) " >&6
11498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h. */
11500 #include <stdlib.h>
11501 #include <stdarg.h>
11502 #include <string.h>
11513 if ac_fn_c_try_compile
"$LINENO"; then :
11514 ac_cv_header_stdc
=yes
11516 ac_cv_header_stdc
=no
11518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11520 if test $ac_cv_header_stdc = yes; then
11521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11524 #include <string.h>
11527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11528 $EGREP "memchr" >/dev
/null
2>&1; then :
11531 ac_cv_header_stdc
=no
11537 if test $ac_cv_header_stdc = yes; then
11538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11540 /* end confdefs.h. */
11541 #include <stdlib.h>
11544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11545 $EGREP "free" >/dev
/null
2>&1; then :
11548 ac_cv_header_stdc
=no
11554 if test $ac_cv_header_stdc = yes; then
11555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11556 if test "$cross_compiling" = yes; then :
11559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11562 #include <stdlib.h>
11563 #if ((' ' & 0x0FF) == 0x020)
11564 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11565 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11567 # define ISLOWER(c) \
11568 (('a' <= (c) && (c) <= 'i') \
11569 || ('j' <= (c) && (c) <= 'r') \
11570 || ('s' <= (c) && (c) <= 'z'))
11571 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11574 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11579 for (i = 0; i < 256; i++)
11580 if (XOR (islower (i), ISLOWER (i))
11581 || toupper (i) != TOUPPER (i))
11586 if ac_fn_c_try_run
"$LINENO"; then :
11589 ac_cv_header_stdc
=no
11591 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11592 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11598 $as_echo "$ac_cv_header_stdc" >&6; }
11599 if test $ac_cv_header_stdc = yes; then
11601 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
11606 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
11607 if test "${gcc_cv_header_string+set}" = set; then :
11608 $as_echo_n "(cached) " >&6
11610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11612 #include <string.h>
11613 #include <strings.h>
11622 if ac_fn_c_try_compile
"$LINENO"; then :
11623 gcc_cv_header_string
=yes
11625 gcc_cv_header_string
=no
11627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
11630 $as_echo "$gcc_cv_header_string" >&6; }
11631 if test $gcc_cv_header_string = yes; then
11633 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
11639 inttype_headers
=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11641 acx_cv_header_stdint
=stddef.h
11642 acx_cv_header_stdint_kind
="(already complete)"
11643 for i
in stdint.h
$inttype_headers; do
11644 unset ac_cv_type_uintptr_t
11645 unset ac_cv_type_uintmax_t
11646 unset ac_cv_type_int_least32_t
11647 unset ac_cv_type_int_fast32_t
11648 unset ac_cv_type_uint64_t
11649 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
11650 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
11653 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
11654 acx_cv_header_stdint
=$i
11659 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11662 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
11665 acx_cv_header_stdint_kind
="(mostly complete)"
11668 ac_fn_c_check_type
"$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
11671 if test "x$ac_cv_type_int_least32_t" = x
""yes; then :
11674 acx_cv_header_stdint_kind
="(mostly complete)"
11677 ac_fn_c_check_type
"$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
11680 if test "x$ac_cv_type_int_fast32_t" = x
""yes; then :
11683 acx_cv_header_stdint_kind
="(mostly complete)"
11686 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11689 if test "x$ac_cv_type_uint64_t" = x
""yes; then :
11692 acx_cv_header_stdint_kind
="(lacks uint64_t)"
11697 if test "$acx_cv_header_stdint" = stddef.h
; then
11698 acx_cv_header_stdint_kind
="(lacks uintmax_t)"
11699 for i
in stdint.h
$inttype_headers; do
11700 unset ac_cv_type_uintptr_t
11701 unset ac_cv_type_uint32_t
11702 unset ac_cv_type_uint64_t
11703 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
11704 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
11707 if test "x$ac_cv_type_uint32_t" = x
""yes; then :
11708 acx_cv_header_stdint
=$i
11713 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11716 if test "x$ac_cv_type_uint64_t" = x
""yes; then :
11720 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11723 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
11730 if test "$acx_cv_header_stdint" = stddef.h
; then
11731 acx_cv_header_stdint_kind
="(u_intXX_t style)"
11732 for i
in sys
/types.h
$inttype_headers; do
11733 unset ac_cv_type_u_int32_t
11734 unset ac_cv_type_u_int64_t
11735 $as_echo_n "looking for u_intXX_t types in $i, " >&6
11736 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
11739 if test "x$ac_cv_type_u_int32_t" = x
""yes; then :
11740 acx_cv_header_stdint
=$i
11745 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
11748 if test "x$ac_cv_type_u_int64_t" = x
""yes; then :
11755 if test "$acx_cv_header_stdint" = stddef.h
; then
11756 acx_cv_header_stdint_kind
="(using manual detection)"
11759 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t
=no
11760 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t
=no
11761 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t
=no
11762 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t
=no
11763 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t
=no
11765 # ----------------- Summarize what we found so far
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
11768 $as_echo_n "checking what to include in gstdint.h... " >&6; }
11770 case `$as_basename -- gstdint.h ||
11771 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
11772 Xgstdint.h : 'X\(//\)$' \| \
11773 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
11774 $as_echo X/gstdint.h |
11775 sed '/^.*\/\([^/][^/]*\)\/*$/{
11788 stdint.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
11789 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11790 inttypes.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
11791 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
11796 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
11798 # ----------------- done included file, check C basic types --------
11800 # Lacking an uintptr_t? Test size of void *
11801 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
11802 stddef.h
:* |
*:no
) # The cast to long int works around a bug in the HP C Compiler
11803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11805 # This bug is HP SR number 8606223364.
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
11807 $as_echo_n "checking size of void *... " >&6; }
11808 if test "${ac_cv_sizeof_void_p+set}" = set; then :
11809 $as_echo_n "(cached) " >&6
11811 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
11814 if test "$ac_cv_type_void_p" = yes; then
11815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11817 { as_fn_set_status
77
11818 as_fn_error
"cannot compute sizeof (void *)
11819 See \`config.log' for more details." "$LINENO" 5; }; }
11821 ac_cv_sizeof_void_p
=0
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
11827 $as_echo "$ac_cv_sizeof_void_p" >&6; }
11831 cat >>confdefs.h
<<_ACEOF
11832 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
11838 # Lacking an uint64_t? Test size of long
11839 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
11840 stddef.h
:*:* |
*:no
:no
) # The cast to long int works around a bug in the HP C Compiler
11841 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11842 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11843 # This bug is HP SR number 8606223364.
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11845 $as_echo_n "checking size of long... " >&6; }
11846 if test "${ac_cv_sizeof_long+set}" = set; then :
11847 $as_echo_n "(cached) " >&6
11849 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
11852 if test "$ac_cv_type_long" = yes; then
11853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11855 { as_fn_set_status
77
11856 as_fn_error
"cannot compute sizeof (long)
11857 See \`config.log' for more details." "$LINENO" 5; }; }
11859 ac_cv_sizeof_long
=0
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11865 $as_echo "$ac_cv_sizeof_long" >&6; }
11869 cat >>confdefs.h
<<_ACEOF
11870 #define SIZEOF_LONG $ac_cv_sizeof_long
11876 if test $acx_cv_header_stdint = stddef.h
; then
11877 # Lacking a good header? Test size of everything and deduce all types.
11878 # The cast to long int works around a bug in the HP C Compiler
11879 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11880 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11881 # This bug is HP SR number 8606223364.
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11883 $as_echo_n "checking size of int... " >&6; }
11884 if test "${ac_cv_sizeof_int+set}" = set; then :
11885 $as_echo_n "(cached) " >&6
11887 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
11890 if test "$ac_cv_type_int" = yes; then
11891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11893 { as_fn_set_status
77
11894 as_fn_error
"cannot compute sizeof (int)
11895 See \`config.log' for more details." "$LINENO" 5; }; }
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11903 $as_echo "$ac_cv_sizeof_int" >&6; }
11907 cat >>confdefs.h
<<_ACEOF
11908 #define SIZEOF_INT $ac_cv_sizeof_int
11912 # The cast to long int works around a bug in the HP C Compiler
11913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11915 # This bug is HP SR number 8606223364.
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
11917 $as_echo_n "checking size of short... " >&6; }
11918 if test "${ac_cv_sizeof_short+set}" = set; then :
11919 $as_echo_n "(cached) " >&6
11921 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
11924 if test "$ac_cv_type_short" = yes; then
11925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11927 { as_fn_set_status
77
11928 as_fn_error
"cannot compute sizeof (short)
11929 See \`config.log' for more details." "$LINENO" 5; }; }
11931 ac_cv_sizeof_short
=0
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
11937 $as_echo "$ac_cv_sizeof_short" >&6; }
11941 cat >>confdefs.h
<<_ACEOF
11942 #define SIZEOF_SHORT $ac_cv_sizeof_short
11946 # The cast to long int works around a bug in the HP C Compiler
11947 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11948 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11949 # This bug is HP SR number 8606223364.
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
11951 $as_echo_n "checking size of char... " >&6; }
11952 if test "${ac_cv_sizeof_char+set}" = set; then :
11953 $as_echo_n "(cached) " >&6
11955 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
11958 if test "$ac_cv_type_char" = yes; then
11959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11961 { as_fn_set_status
77
11962 as_fn_error
"cannot compute sizeof (char)
11963 See \`config.log' for more details." "$LINENO" 5; }; }
11965 ac_cv_sizeof_char
=0
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
11971 $as_echo "$ac_cv_sizeof_char" >&6; }
11975 cat >>confdefs.h
<<_ACEOF
11976 #define SIZEOF_CHAR $ac_cv_sizeof_char
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
11982 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
11983 case "$ac_cv_sizeof_char" in
11984 1) acx_cv_type_int8_t
=char
;;
11985 *) as_fn_error
"no 8-bit type, please report a bug" "$LINENO" 5
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
11988 $as_echo "$acx_cv_type_int8_t" >&6; }
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
11991 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
11992 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
11993 2:*) acx_cv_type_int16_t
=int
;;
11994 *:2) acx_cv_type_int16_t
=short
;;
11995 *) as_fn_error
"no 16-bit type, please report a bug" "$LINENO" 5
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
11998 $as_echo "$acx_cv_type_int16_t" >&6; }
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12001 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
12002 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12003 4:*) acx_cv_type_int32_t
=int
;;
12004 *:4) acx_cv_type_int32_t
=long
;;
12005 *) as_fn_error
"no 32-bit type, please report a bug" "$LINENO" 5
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12008 $as_echo "$acx_cv_type_int32_t" >&6; }
12011 # These tests are here to make the output prettier
12013 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12014 case "$ac_cv_sizeof_long" in
12015 8) acx_cv_type_int64_t
=long
;;
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12018 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12020 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12023 # Now we can use the above types
12025 if test "$ac_cv_type_uintptr_t" != yes; then
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12027 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12028 case $ac_cv_sizeof_void_p in
12029 2) acx_cv_type_intptr_t
=int16_t
;;
12030 4) acx_cv_type_intptr_t
=int32_t
;;
12031 8) acx_cv_type_intptr_t
=int64_t
;;
12032 *) as_fn_error
"no equivalent for intptr_t, please report a bug" "$LINENO" 5
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12035 $as_echo "$acx_cv_type_intptr_t" >&6; }
12038 # ----------------- done all checks, emit header -------------
12039 ac_config_commands
="$ac_config_commands gstdint.h"
12043 for ac_header
in fenv.h
12045 ac_fn_c_check_header_mongrel
"$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
12046 if test "x$ac_cv_header_fenv_h" = x
""yes; then :
12047 cat >>confdefs.h
<<_ACEOF
12048 #define HAVE_FENV_H 1
12056 # Check for common type sizes
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 1 byte integer" >&5
12059 $as_echo_n "checking for 1 byte integer... " >&6; }
12060 if test "${libat_cv_have_mode_QI+set}" = set; then :
12061 $as_echo_n "(cached) " >&6
12063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12064 /* end confdefs.h. */
12065 int x __attribute__((mode(QI)));
12067 if ac_fn_c_try_compile
"$LINENO"; then :
12068 libat_cv_have_mode_QI
=yes
12070 libat_cv_have_mode_QI
=no
12072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_QI" >&5
12075 $as_echo "$libat_cv_have_mode_QI" >&6; }
12077 yesno
=`echo $libat_cv_have_mode_QI | tr 'yesno' '1 0 '`
12079 cat >>confdefs.h
<<_ACEOF
12080 #define HAVE_INT1 $yesno
12084 if test x
$libat_cv_have_mode_QI = xyes
; then
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2 byte integer" >&5
12090 $as_echo_n "checking for 2 byte integer... " >&6; }
12091 if test "${libat_cv_have_mode_HI+set}" = set; then :
12092 $as_echo_n "(cached) " >&6
12094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12096 int x __attribute__((mode(HI)));
12098 if ac_fn_c_try_compile
"$LINENO"; then :
12099 libat_cv_have_mode_HI
=yes
12101 libat_cv_have_mode_HI
=no
12103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_HI" >&5
12106 $as_echo "$libat_cv_have_mode_HI" >&6; }
12108 yesno
=`echo $libat_cv_have_mode_HI | tr 'yesno' '1 0 '`
12110 cat >>confdefs.h
<<_ACEOF
12111 #define HAVE_INT2 $yesno
12115 if test x
$libat_cv_have_mode_HI = xyes
; then
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4 byte integer" >&5
12121 $as_echo_n "checking for 4 byte integer... " >&6; }
12122 if test "${libat_cv_have_mode_SI+set}" = set; then :
12123 $as_echo_n "(cached) " >&6
12125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12127 int x __attribute__((mode(SI)));
12129 if ac_fn_c_try_compile
"$LINENO"; then :
12130 libat_cv_have_mode_SI
=yes
12132 libat_cv_have_mode_SI
=no
12134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_SI" >&5
12137 $as_echo "$libat_cv_have_mode_SI" >&6; }
12139 yesno
=`echo $libat_cv_have_mode_SI | tr 'yesno' '1 0 '`
12141 cat >>confdefs.h
<<_ACEOF
12142 #define HAVE_INT4 $yesno
12146 if test x
$libat_cv_have_mode_SI = xyes
; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 8 byte integer" >&5
12152 $as_echo_n "checking for 8 byte integer... " >&6; }
12153 if test "${libat_cv_have_mode_DI+set}" = set; then :
12154 $as_echo_n "(cached) " >&6
12156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12158 int x __attribute__((mode(DI)));
12160 if ac_fn_c_try_compile
"$LINENO"; then :
12161 libat_cv_have_mode_DI
=yes
12163 libat_cv_have_mode_DI
=no
12165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_DI" >&5
12168 $as_echo "$libat_cv_have_mode_DI" >&6; }
12170 yesno
=`echo $libat_cv_have_mode_DI | tr 'yesno' '1 0 '`
12172 cat >>confdefs.h
<<_ACEOF
12173 #define HAVE_INT8 $yesno
12177 if test x
$libat_cv_have_mode_DI = xyes
; then
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16 byte integer" >&5
12183 $as_echo_n "checking for 16 byte integer... " >&6; }
12184 if test "${libat_cv_have_mode_TI+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
12187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h. */
12189 int x __attribute__((mode(TI)));
12191 if ac_fn_c_try_compile
"$LINENO"; then :
12192 libat_cv_have_mode_TI
=yes
12194 libat_cv_have_mode_TI
=no
12196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_TI" >&5
12199 $as_echo "$libat_cv_have_mode_TI" >&6; }
12201 yesno
=`echo $libat_cv_have_mode_TI | tr 'yesno' '1 0 '`
12203 cat >>confdefs.h
<<_ACEOF
12204 #define HAVE_INT16 $yesno
12208 if test x
$libat_cv_have_mode_TI = xyes
; then
12214 # Check for compiler builtins of atomic operations.
12216 # Do link tests if possible, instead asm tests, limited to some platforms
12217 # see discussion in PR target/40134, PR libstdc++/40133 and the thread
12218 # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html
12219 atomic_builtins_link_tests
=no
12220 if test x
$gcc_no_link != xyes
; then
12221 # Can do link tests. Limit to some tested platforms
12223 *-*-linux* |
*-*-uclinux* |
*-*-kfreebsd*-gnu |
*-*-gnu*)
12224 atomic_builtins_link_tests
=yes
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 1" >&5
12232 $as_echo_n "checking for __atomic_load/store for size 1... " >&6; }
12233 if test "${libat_cv_have_at_ldst_1+set}" = set; then :
12234 $as_echo_n "(cached) " >&6
12237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12243 typedef int T __attribute__((mode(QI)));
12244 T *x; volatile T sink; asm("" : "=g"(x));
12245 sink = __atomic_load_n(x, 0);
12246 __atomic_store_n(x, sink, 0);
12251 if test x
$atomic_builtins_link_tests = xyes
; then
12252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12253 (eval $ac_link) 2>&5
12255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12256 test $ac_status = 0; }; then
12257 eval libat_cv_have_at_ldst_1
=yes
12259 eval libat_cv_have_at_ldst_1
=no
12262 old_CFLAGS
="$CFLAGS"
12263 # Compile unoptimized.
12264 CFLAGS
="$CFLAGS -O0 -S"
12265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12266 (eval $ac_compile) 2>&5
12268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12269 test $ac_status = 0; }; then
12270 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12271 eval libat_cv_have_at_ldst_1
=no
12273 eval libat_cv_have_at_ldst_1
=yes
12276 eval libat_cv_have_at_ldst_1
=no
12278 CFLAGS
="$old_CFLAGS"
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_1" >&5
12284 $as_echo "$libat_cv_have_at_ldst_1" >&6; }
12287 yesno
=`echo $libat_cv_have_at_ldst_1 | tr 'yesno' '1 0 '`
12289 cat >>confdefs.h
<<_ACEOF
12290 #define HAVE_ATOMIC_LDST_1 $yesno
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 2" >&5
12299 $as_echo_n "checking for __atomic_load/store for size 2... " >&6; }
12300 if test "${libat_cv_have_at_ldst_2+set}" = set; then :
12301 $as_echo_n "(cached) " >&6
12304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12305 /* end confdefs.h. */
12310 typedef int T __attribute__((mode(HI)));
12311 T *x; volatile T sink; asm("" : "=g"(x));
12312 sink = __atomic_load_n(x, 0);
12313 __atomic_store_n(x, sink, 0);
12318 if test x
$atomic_builtins_link_tests = xyes
; then
12319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12320 (eval $ac_link) 2>&5
12322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12323 test $ac_status = 0; }; then
12324 eval libat_cv_have_at_ldst_2
=yes
12326 eval libat_cv_have_at_ldst_2
=no
12329 old_CFLAGS
="$CFLAGS"
12330 # Compile unoptimized.
12331 CFLAGS
="$CFLAGS -O0 -S"
12332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12333 (eval $ac_compile) 2>&5
12335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12336 test $ac_status = 0; }; then
12337 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12338 eval libat_cv_have_at_ldst_2
=no
12340 eval libat_cv_have_at_ldst_2
=yes
12343 eval libat_cv_have_at_ldst_2
=no
12345 CFLAGS
="$old_CFLAGS"
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_2" >&5
12351 $as_echo "$libat_cv_have_at_ldst_2" >&6; }
12354 yesno
=`echo $libat_cv_have_at_ldst_2 | tr 'yesno' '1 0 '`
12356 cat >>confdefs.h
<<_ACEOF
12357 #define HAVE_ATOMIC_LDST_2 $yesno
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 4" >&5
12366 $as_echo_n "checking for __atomic_load/store for size 4... " >&6; }
12367 if test "${libat_cv_have_at_ldst_4+set}" = set; then :
12368 $as_echo_n "(cached) " >&6
12371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12377 typedef int T __attribute__((mode(SI)));
12378 T *x; volatile T sink; asm("" : "=g"(x));
12379 sink = __atomic_load_n(x, 0);
12380 __atomic_store_n(x, sink, 0);
12385 if test x
$atomic_builtins_link_tests = xyes
; then
12386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12387 (eval $ac_link) 2>&5
12389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12390 test $ac_status = 0; }; then
12391 eval libat_cv_have_at_ldst_4
=yes
12393 eval libat_cv_have_at_ldst_4
=no
12396 old_CFLAGS
="$CFLAGS"
12397 # Compile unoptimized.
12398 CFLAGS
="$CFLAGS -O0 -S"
12399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12400 (eval $ac_compile) 2>&5
12402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12403 test $ac_status = 0; }; then
12404 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12405 eval libat_cv_have_at_ldst_4
=no
12407 eval libat_cv_have_at_ldst_4
=yes
12410 eval libat_cv_have_at_ldst_4
=no
12412 CFLAGS
="$old_CFLAGS"
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_4" >&5
12418 $as_echo "$libat_cv_have_at_ldst_4" >&6; }
12421 yesno
=`echo $libat_cv_have_at_ldst_4 | tr 'yesno' '1 0 '`
12423 cat >>confdefs.h
<<_ACEOF
12424 #define HAVE_ATOMIC_LDST_4 $yesno
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 8" >&5
12433 $as_echo_n "checking for __atomic_load/store for size 8... " >&6; }
12434 if test "${libat_cv_have_at_ldst_8+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
12438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12444 typedef int T __attribute__((mode(DI)));
12445 T *x; volatile T sink; asm("" : "=g"(x));
12446 sink = __atomic_load_n(x, 0);
12447 __atomic_store_n(x, sink, 0);
12452 if test x
$atomic_builtins_link_tests = xyes
; then
12453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12454 (eval $ac_link) 2>&5
12456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12457 test $ac_status = 0; }; then
12458 eval libat_cv_have_at_ldst_8
=yes
12460 eval libat_cv_have_at_ldst_8
=no
12463 old_CFLAGS
="$CFLAGS"
12464 # Compile unoptimized.
12465 CFLAGS
="$CFLAGS -O0 -S"
12466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12467 (eval $ac_compile) 2>&5
12469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12470 test $ac_status = 0; }; then
12471 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12472 eval libat_cv_have_at_ldst_8
=no
12474 eval libat_cv_have_at_ldst_8
=yes
12477 eval libat_cv_have_at_ldst_8
=no
12479 CFLAGS
="$old_CFLAGS"
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_8" >&5
12485 $as_echo "$libat_cv_have_at_ldst_8" >&6; }
12488 yesno
=`echo $libat_cv_have_at_ldst_8 | tr 'yesno' '1 0 '`
12490 cat >>confdefs.h
<<_ACEOF
12491 #define HAVE_ATOMIC_LDST_8 $yesno
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 16" >&5
12500 $as_echo_n "checking for __atomic_load/store for size 16... " >&6; }
12501 if test "${libat_cv_have_at_ldst_16+set}" = set; then :
12502 $as_echo_n "(cached) " >&6
12505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12511 typedef int T __attribute__((mode(TI)));
12512 T *x; volatile T sink; asm("" : "=g"(x));
12513 sink = __atomic_load_n(x, 0);
12514 __atomic_store_n(x, sink, 0);
12519 if test x
$atomic_builtins_link_tests = xyes
; then
12520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12521 (eval $ac_link) 2>&5
12523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12524 test $ac_status = 0; }; then
12525 eval libat_cv_have_at_ldst_16
=yes
12527 eval libat_cv_have_at_ldst_16
=no
12530 old_CFLAGS
="$CFLAGS"
12531 # Compile unoptimized.
12532 CFLAGS
="$CFLAGS -O0 -S"
12533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12534 (eval $ac_compile) 2>&5
12536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12537 test $ac_status = 0; }; then
12538 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12539 eval libat_cv_have_at_ldst_16
=no
12541 eval libat_cv_have_at_ldst_16
=yes
12544 eval libat_cv_have_at_ldst_16
=no
12546 CFLAGS
="$old_CFLAGS"
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_16" >&5
12552 $as_echo "$libat_cv_have_at_ldst_16" >&6; }
12555 yesno
=`echo $libat_cv_have_at_ldst_16 | tr 'yesno' '1 0 '`
12557 cat >>confdefs.h
<<_ACEOF
12558 #define HAVE_ATOMIC_LDST_16 $yesno
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 1" >&5
12568 $as_echo_n "checking for __atomic_test_and_set for size 1... " >&6; }
12569 if test "${libat_cv_have_at_tas_1+set}" = set; then :
12570 $as_echo_n "(cached) " >&6
12573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12574 /* end confdefs.h. */
12579 typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
12580 __atomic_test_and_set(x, 0);
12585 if test x
$atomic_builtins_link_tests = xyes
; then
12586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12587 (eval $ac_link) 2>&5
12589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12590 test $ac_status = 0; }; then
12591 eval libat_cv_have_at_tas_1
=yes
12593 eval libat_cv_have_at_tas_1
=no
12596 old_CFLAGS
="$CFLAGS"
12597 # Compile unoptimized.
12598 CFLAGS
="$CFLAGS -O0 -S"
12599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12600 (eval $ac_compile) 2>&5
12602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12603 test $ac_status = 0; }; then
12604 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12605 eval libat_cv_have_at_tas_1
=no
12607 eval libat_cv_have_at_tas_1
=yes
12610 eval libat_cv_have_at_tas_1
=no
12612 CFLAGS
="$old_CFLAGS"
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_1" >&5
12618 $as_echo "$libat_cv_have_at_tas_1" >&6; }
12621 yesno
=`echo $libat_cv_have_at_tas_1 | tr 'yesno' '1 0 '`
12623 cat >>confdefs.h
<<_ACEOF
12624 #define HAVE_ATOMIC_TAS_1 $yesno
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 2" >&5
12633 $as_echo_n "checking for __atomic_test_and_set for size 2... " >&6; }
12634 if test "${libat_cv_have_at_tas_2+set}" = set; then :
12635 $as_echo_n "(cached) " >&6
12638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12644 typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
12645 __atomic_test_and_set(x, 0);
12650 if test x
$atomic_builtins_link_tests = xyes
; then
12651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12652 (eval $ac_link) 2>&5
12654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12655 test $ac_status = 0; }; then
12656 eval libat_cv_have_at_tas_2
=yes
12658 eval libat_cv_have_at_tas_2
=no
12661 old_CFLAGS
="$CFLAGS"
12662 # Compile unoptimized.
12663 CFLAGS
="$CFLAGS -O0 -S"
12664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12665 (eval $ac_compile) 2>&5
12667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12668 test $ac_status = 0; }; then
12669 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12670 eval libat_cv_have_at_tas_2
=no
12672 eval libat_cv_have_at_tas_2
=yes
12675 eval libat_cv_have_at_tas_2
=no
12677 CFLAGS
="$old_CFLAGS"
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_2" >&5
12683 $as_echo "$libat_cv_have_at_tas_2" >&6; }
12686 yesno
=`echo $libat_cv_have_at_tas_2 | tr 'yesno' '1 0 '`
12688 cat >>confdefs.h
<<_ACEOF
12689 #define HAVE_ATOMIC_TAS_2 $yesno
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 4" >&5
12698 $as_echo_n "checking for __atomic_test_and_set for size 4... " >&6; }
12699 if test "${libat_cv_have_at_tas_4+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
12703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h. */
12709 typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
12710 __atomic_test_and_set(x, 0);
12715 if test x
$atomic_builtins_link_tests = xyes
; then
12716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12717 (eval $ac_link) 2>&5
12719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12720 test $ac_status = 0; }; then
12721 eval libat_cv_have_at_tas_4
=yes
12723 eval libat_cv_have_at_tas_4
=no
12726 old_CFLAGS
="$CFLAGS"
12727 # Compile unoptimized.
12728 CFLAGS
="$CFLAGS -O0 -S"
12729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12730 (eval $ac_compile) 2>&5
12732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12733 test $ac_status = 0; }; then
12734 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12735 eval libat_cv_have_at_tas_4
=no
12737 eval libat_cv_have_at_tas_4
=yes
12740 eval libat_cv_have_at_tas_4
=no
12742 CFLAGS
="$old_CFLAGS"
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_4" >&5
12748 $as_echo "$libat_cv_have_at_tas_4" >&6; }
12751 yesno
=`echo $libat_cv_have_at_tas_4 | tr 'yesno' '1 0 '`
12753 cat >>confdefs.h
<<_ACEOF
12754 #define HAVE_ATOMIC_TAS_4 $yesno
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 8" >&5
12763 $as_echo_n "checking for __atomic_test_and_set for size 8... " >&6; }
12764 if test "${libat_cv_have_at_tas_8+set}" = set; then :
12765 $as_echo_n "(cached) " >&6
12768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h. */
12774 typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
12775 __atomic_test_and_set(x, 0);
12780 if test x
$atomic_builtins_link_tests = xyes
; then
12781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12782 (eval $ac_link) 2>&5
12784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12785 test $ac_status = 0; }; then
12786 eval libat_cv_have_at_tas_8
=yes
12788 eval libat_cv_have_at_tas_8
=no
12791 old_CFLAGS
="$CFLAGS"
12792 # Compile unoptimized.
12793 CFLAGS
="$CFLAGS -O0 -S"
12794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12795 (eval $ac_compile) 2>&5
12797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12798 test $ac_status = 0; }; then
12799 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12800 eval libat_cv_have_at_tas_8
=no
12802 eval libat_cv_have_at_tas_8
=yes
12805 eval libat_cv_have_at_tas_8
=no
12807 CFLAGS
="$old_CFLAGS"
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_8" >&5
12813 $as_echo "$libat_cv_have_at_tas_8" >&6; }
12816 yesno
=`echo $libat_cv_have_at_tas_8 | tr 'yesno' '1 0 '`
12818 cat >>confdefs.h
<<_ACEOF
12819 #define HAVE_ATOMIC_TAS_8 $yesno
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 16" >&5
12828 $as_echo_n "checking for __atomic_test_and_set for size 16... " >&6; }
12829 if test "${libat_cv_have_at_tas_16+set}" = set; then :
12830 $as_echo_n "(cached) " >&6
12833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h. */
12839 typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
12840 __atomic_test_and_set(x, 0);
12845 if test x
$atomic_builtins_link_tests = xyes
; then
12846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12847 (eval $ac_link) 2>&5
12849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12850 test $ac_status = 0; }; then
12851 eval libat_cv_have_at_tas_16
=yes
12853 eval libat_cv_have_at_tas_16
=no
12856 old_CFLAGS
="$CFLAGS"
12857 # Compile unoptimized.
12858 CFLAGS
="$CFLAGS -O0 -S"
12859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12860 (eval $ac_compile) 2>&5
12862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12863 test $ac_status = 0; }; then
12864 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12865 eval libat_cv_have_at_tas_16
=no
12867 eval libat_cv_have_at_tas_16
=yes
12870 eval libat_cv_have_at_tas_16
=no
12872 CFLAGS
="$old_CFLAGS"
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_16" >&5
12878 $as_echo "$libat_cv_have_at_tas_16" >&6; }
12881 yesno
=`echo $libat_cv_have_at_tas_16 | tr 'yesno' '1 0 '`
12883 cat >>confdefs.h
<<_ACEOF
12884 #define HAVE_ATOMIC_TAS_16 $yesno
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 1" >&5
12894 $as_echo_n "checking for __atomic_exchange for size 1... " >&6; }
12895 if test "${libat_cv_have_at_exch_1+set}" = set; then :
12896 $as_echo_n "(cached) " >&6
12899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12900 /* end confdefs.h. */
12905 typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
12906 __atomic_exchange_n(x, 0, 0);
12911 if test x
$atomic_builtins_link_tests = xyes
; then
12912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12913 (eval $ac_link) 2>&5
12915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12916 test $ac_status = 0; }; then
12917 eval libat_cv_have_at_exch_1
=yes
12919 eval libat_cv_have_at_exch_1
=no
12922 old_CFLAGS
="$CFLAGS"
12923 # Compile unoptimized.
12924 CFLAGS
="$CFLAGS -O0 -S"
12925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12926 (eval $ac_compile) 2>&5
12928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12929 test $ac_status = 0; }; then
12930 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12931 eval libat_cv_have_at_exch_1
=no
12933 eval libat_cv_have_at_exch_1
=yes
12936 eval libat_cv_have_at_exch_1
=no
12938 CFLAGS
="$old_CFLAGS"
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_1" >&5
12944 $as_echo "$libat_cv_have_at_exch_1" >&6; }
12947 yesno
=`echo $libat_cv_have_at_exch_1 | tr 'yesno' '1 0 '`
12949 cat >>confdefs.h
<<_ACEOF
12950 #define HAVE_ATOMIC_EXCHANGE_1 $yesno
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 2" >&5
12959 $as_echo_n "checking for __atomic_exchange for size 2... " >&6; }
12960 if test "${libat_cv_have_at_exch_2+set}" = set; then :
12961 $as_echo_n "(cached) " >&6
12964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12970 typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
12971 __atomic_exchange_n(x, 0, 0);
12976 if test x
$atomic_builtins_link_tests = xyes
; then
12977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12978 (eval $ac_link) 2>&5
12980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12981 test $ac_status = 0; }; then
12982 eval libat_cv_have_at_exch_2
=yes
12984 eval libat_cv_have_at_exch_2
=no
12987 old_CFLAGS
="$CFLAGS"
12988 # Compile unoptimized.
12989 CFLAGS
="$CFLAGS -O0 -S"
12990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12991 (eval $ac_compile) 2>&5
12993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12994 test $ac_status = 0; }; then
12995 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12996 eval libat_cv_have_at_exch_2
=no
12998 eval libat_cv_have_at_exch_2
=yes
13001 eval libat_cv_have_at_exch_2
=no
13003 CFLAGS
="$old_CFLAGS"
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_2" >&5
13009 $as_echo "$libat_cv_have_at_exch_2" >&6; }
13012 yesno
=`echo $libat_cv_have_at_exch_2 | tr 'yesno' '1 0 '`
13014 cat >>confdefs.h
<<_ACEOF
13015 #define HAVE_ATOMIC_EXCHANGE_2 $yesno
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 4" >&5
13024 $as_echo_n "checking for __atomic_exchange for size 4... " >&6; }
13025 if test "${libat_cv_have_at_exch_4+set}" = set; then :
13026 $as_echo_n "(cached) " >&6
13029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h. */
13035 typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
13036 __atomic_exchange_n(x, 0, 0);
13041 if test x
$atomic_builtins_link_tests = xyes
; then
13042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13043 (eval $ac_link) 2>&5
13045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13046 test $ac_status = 0; }; then
13047 eval libat_cv_have_at_exch_4
=yes
13049 eval libat_cv_have_at_exch_4
=no
13052 old_CFLAGS
="$CFLAGS"
13053 # Compile unoptimized.
13054 CFLAGS
="$CFLAGS -O0 -S"
13055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13056 (eval $ac_compile) 2>&5
13058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13059 test $ac_status = 0; }; then
13060 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13061 eval libat_cv_have_at_exch_4
=no
13063 eval libat_cv_have_at_exch_4
=yes
13066 eval libat_cv_have_at_exch_4
=no
13068 CFLAGS
="$old_CFLAGS"
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_4" >&5
13074 $as_echo "$libat_cv_have_at_exch_4" >&6; }
13077 yesno
=`echo $libat_cv_have_at_exch_4 | tr 'yesno' '1 0 '`
13079 cat >>confdefs.h
<<_ACEOF
13080 #define HAVE_ATOMIC_EXCHANGE_4 $yesno
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 8" >&5
13089 $as_echo_n "checking for __atomic_exchange for size 8... " >&6; }
13090 if test "${libat_cv_have_at_exch_8+set}" = set; then :
13091 $as_echo_n "(cached) " >&6
13094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h. */
13100 typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
13101 __atomic_exchange_n(x, 0, 0);
13106 if test x
$atomic_builtins_link_tests = xyes
; then
13107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13108 (eval $ac_link) 2>&5
13110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13111 test $ac_status = 0; }; then
13112 eval libat_cv_have_at_exch_8
=yes
13114 eval libat_cv_have_at_exch_8
=no
13117 old_CFLAGS
="$CFLAGS"
13118 # Compile unoptimized.
13119 CFLAGS
="$CFLAGS -O0 -S"
13120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13121 (eval $ac_compile) 2>&5
13123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13124 test $ac_status = 0; }; then
13125 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13126 eval libat_cv_have_at_exch_8
=no
13128 eval libat_cv_have_at_exch_8
=yes
13131 eval libat_cv_have_at_exch_8
=no
13133 CFLAGS
="$old_CFLAGS"
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_8" >&5
13139 $as_echo "$libat_cv_have_at_exch_8" >&6; }
13142 yesno
=`echo $libat_cv_have_at_exch_8 | tr 'yesno' '1 0 '`
13144 cat >>confdefs.h
<<_ACEOF
13145 #define HAVE_ATOMIC_EXCHANGE_8 $yesno
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 16" >&5
13154 $as_echo_n "checking for __atomic_exchange for size 16... " >&6; }
13155 if test "${libat_cv_have_at_exch_16+set}" = set; then :
13156 $as_echo_n "(cached) " >&6
13159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h. */
13165 typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
13166 __atomic_exchange_n(x, 0, 0);
13171 if test x
$atomic_builtins_link_tests = xyes
; then
13172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13173 (eval $ac_link) 2>&5
13175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13176 test $ac_status = 0; }; then
13177 eval libat_cv_have_at_exch_16
=yes
13179 eval libat_cv_have_at_exch_16
=no
13182 old_CFLAGS
="$CFLAGS"
13183 # Compile unoptimized.
13184 CFLAGS
="$CFLAGS -O0 -S"
13185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13186 (eval $ac_compile) 2>&5
13188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13189 test $ac_status = 0; }; then
13190 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13191 eval libat_cv_have_at_exch_16
=no
13193 eval libat_cv_have_at_exch_16
=yes
13196 eval libat_cv_have_at_exch_16
=no
13198 CFLAGS
="$old_CFLAGS"
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_16" >&5
13204 $as_echo "$libat_cv_have_at_exch_16" >&6; }
13207 yesno
=`echo $libat_cv_have_at_exch_16 | tr 'yesno' '1 0 '`
13209 cat >>confdefs.h
<<_ACEOF
13210 #define HAVE_ATOMIC_EXCHANGE_16 $yesno
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 1" >&5
13220 $as_echo_n "checking for __atomic_compare_exchange for size 1... " >&6; }
13221 if test "${libat_cv_have_at_cas_1+set}" = set; then :
13222 $as_echo_n "(cached) " >&6
13225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13226 /* end confdefs.h. */
13231 typedef int T __attribute__((mode(QI))); T *x, *y;
13232 asm("" : "=g"(x), "=g"(y));
13233 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13238 if test x
$atomic_builtins_link_tests = xyes
; then
13239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13240 (eval $ac_link) 2>&5
13242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13243 test $ac_status = 0; }; then
13244 eval libat_cv_have_at_cas_1
=yes
13246 eval libat_cv_have_at_cas_1
=no
13249 old_CFLAGS
="$CFLAGS"
13250 # Compile unoptimized.
13251 CFLAGS
="$CFLAGS -O0 -S"
13252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13253 (eval $ac_compile) 2>&5
13255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13256 test $ac_status = 0; }; then
13257 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13258 eval libat_cv_have_at_cas_1
=no
13260 eval libat_cv_have_at_cas_1
=yes
13263 eval libat_cv_have_at_cas_1
=no
13265 CFLAGS
="$old_CFLAGS"
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_1" >&5
13271 $as_echo "$libat_cv_have_at_cas_1" >&6; }
13274 yesno
=`echo $libat_cv_have_at_cas_1 | tr 'yesno' '1 0 '`
13276 cat >>confdefs.h
<<_ACEOF
13277 #define HAVE_ATOMIC_CAS_1 $yesno
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 2" >&5
13286 $as_echo_n "checking for __atomic_compare_exchange for size 2... " >&6; }
13287 if test "${libat_cv_have_at_cas_2+set}" = set; then :
13288 $as_echo_n "(cached) " >&6
13291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13297 typedef int T __attribute__((mode(HI))); T *x, *y;
13298 asm("" : "=g"(x), "=g"(y));
13299 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13304 if test x
$atomic_builtins_link_tests = xyes
; then
13305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13306 (eval $ac_link) 2>&5
13308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13309 test $ac_status = 0; }; then
13310 eval libat_cv_have_at_cas_2
=yes
13312 eval libat_cv_have_at_cas_2
=no
13315 old_CFLAGS
="$CFLAGS"
13316 # Compile unoptimized.
13317 CFLAGS
="$CFLAGS -O0 -S"
13318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13319 (eval $ac_compile) 2>&5
13321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13322 test $ac_status = 0; }; then
13323 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13324 eval libat_cv_have_at_cas_2
=no
13326 eval libat_cv_have_at_cas_2
=yes
13329 eval libat_cv_have_at_cas_2
=no
13331 CFLAGS
="$old_CFLAGS"
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_2" >&5
13337 $as_echo "$libat_cv_have_at_cas_2" >&6; }
13340 yesno
=`echo $libat_cv_have_at_cas_2 | tr 'yesno' '1 0 '`
13342 cat >>confdefs.h
<<_ACEOF
13343 #define HAVE_ATOMIC_CAS_2 $yesno
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 4" >&5
13352 $as_echo_n "checking for __atomic_compare_exchange for size 4... " >&6; }
13353 if test "${libat_cv_have_at_cas_4+set}" = set; then :
13354 $as_echo_n "(cached) " >&6
13357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13363 typedef int T __attribute__((mode(SI))); T *x, *y;
13364 asm("" : "=g"(x), "=g"(y));
13365 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13370 if test x
$atomic_builtins_link_tests = xyes
; then
13371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13372 (eval $ac_link) 2>&5
13374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13375 test $ac_status = 0; }; then
13376 eval libat_cv_have_at_cas_4
=yes
13378 eval libat_cv_have_at_cas_4
=no
13381 old_CFLAGS
="$CFLAGS"
13382 # Compile unoptimized.
13383 CFLAGS
="$CFLAGS -O0 -S"
13384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13385 (eval $ac_compile) 2>&5
13387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13388 test $ac_status = 0; }; then
13389 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13390 eval libat_cv_have_at_cas_4
=no
13392 eval libat_cv_have_at_cas_4
=yes
13395 eval libat_cv_have_at_cas_4
=no
13397 CFLAGS
="$old_CFLAGS"
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_4" >&5
13403 $as_echo "$libat_cv_have_at_cas_4" >&6; }
13406 yesno
=`echo $libat_cv_have_at_cas_4 | tr 'yesno' '1 0 '`
13408 cat >>confdefs.h
<<_ACEOF
13409 #define HAVE_ATOMIC_CAS_4 $yesno
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 8" >&5
13418 $as_echo_n "checking for __atomic_compare_exchange for size 8... " >&6; }
13419 if test "${libat_cv_have_at_cas_8+set}" = set; then :
13420 $as_echo_n "(cached) " >&6
13423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13429 typedef int T __attribute__((mode(DI))); T *x, *y;
13430 asm("" : "=g"(x), "=g"(y));
13431 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13436 if test x
$atomic_builtins_link_tests = xyes
; then
13437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13438 (eval $ac_link) 2>&5
13440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13441 test $ac_status = 0; }; then
13442 eval libat_cv_have_at_cas_8
=yes
13444 eval libat_cv_have_at_cas_8
=no
13447 old_CFLAGS
="$CFLAGS"
13448 # Compile unoptimized.
13449 CFLAGS
="$CFLAGS -O0 -S"
13450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13451 (eval $ac_compile) 2>&5
13453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13454 test $ac_status = 0; }; then
13455 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13456 eval libat_cv_have_at_cas_8
=no
13458 eval libat_cv_have_at_cas_8
=yes
13461 eval libat_cv_have_at_cas_8
=no
13463 CFLAGS
="$old_CFLAGS"
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_8" >&5
13469 $as_echo "$libat_cv_have_at_cas_8" >&6; }
13472 yesno
=`echo $libat_cv_have_at_cas_8 | tr 'yesno' '1 0 '`
13474 cat >>confdefs.h
<<_ACEOF
13475 #define HAVE_ATOMIC_CAS_8 $yesno
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 16" >&5
13484 $as_echo_n "checking for __atomic_compare_exchange for size 16... " >&6; }
13485 if test "${libat_cv_have_at_cas_16+set}" = set; then :
13486 $as_echo_n "(cached) " >&6
13489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13495 typedef int T __attribute__((mode(TI))); T *x, *y;
13496 asm("" : "=g"(x), "=g"(y));
13497 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13502 if test x
$atomic_builtins_link_tests = xyes
; then
13503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13504 (eval $ac_link) 2>&5
13506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13507 test $ac_status = 0; }; then
13508 eval libat_cv_have_at_cas_16
=yes
13510 eval libat_cv_have_at_cas_16
=no
13513 old_CFLAGS
="$CFLAGS"
13514 # Compile unoptimized.
13515 CFLAGS
="$CFLAGS -O0 -S"
13516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13517 (eval $ac_compile) 2>&5
13519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13520 test $ac_status = 0; }; then
13521 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13522 eval libat_cv_have_at_cas_16
=no
13524 eval libat_cv_have_at_cas_16
=yes
13527 eval libat_cv_have_at_cas_16
=no
13529 CFLAGS
="$old_CFLAGS"
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_16" >&5
13535 $as_echo "$libat_cv_have_at_cas_16" >&6; }
13538 yesno
=`echo $libat_cv_have_at_cas_16 | tr 'yesno' '1 0 '`
13540 cat >>confdefs.h
<<_ACEOF
13541 #define HAVE_ATOMIC_CAS_16 $yesno
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 1" >&5
13551 $as_echo_n "checking for __atomic_fetch_add for size 1... " >&6; }
13552 if test "${libat_cv_have_at_fadd_1+set}" = set; then :
13553 $as_echo_n "(cached) " >&6
13556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h. */
13562 typedef int T __attribute__((mode(QI))); T *x, y;
13563 asm("" : "=g"(x), "=g"(y));
13564 __atomic_fetch_add (x, y, 0);
13565 __atomic_add_fetch (x, y, 0);
13570 if test x
$atomic_builtins_link_tests = xyes
; then
13571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13572 (eval $ac_link) 2>&5
13574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13575 test $ac_status = 0; }; then
13576 eval libat_cv_have_at_fadd_1
=yes
13578 eval libat_cv_have_at_fadd_1
=no
13581 old_CFLAGS
="$CFLAGS"
13582 # Compile unoptimized.
13583 CFLAGS
="$CFLAGS -O0 -S"
13584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13585 (eval $ac_compile) 2>&5
13587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13588 test $ac_status = 0; }; then
13589 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13590 eval libat_cv_have_at_fadd_1
=no
13592 eval libat_cv_have_at_fadd_1
=yes
13595 eval libat_cv_have_at_fadd_1
=no
13597 CFLAGS
="$old_CFLAGS"
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_1" >&5
13603 $as_echo "$libat_cv_have_at_fadd_1" >&6; }
13606 yesno
=`echo $libat_cv_have_at_fadd_1 | tr 'yesno' '1 0 '`
13608 cat >>confdefs.h
<<_ACEOF
13609 #define HAVE_ATOMIC_FETCH_ADD_1 $yesno
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 2" >&5
13618 $as_echo_n "checking for __atomic_fetch_add for size 2... " >&6; }
13619 if test "${libat_cv_have_at_fadd_2+set}" = set; then :
13620 $as_echo_n "(cached) " >&6
13623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13629 typedef int T __attribute__((mode(HI))); T *x, y;
13630 asm("" : "=g"(x), "=g"(y));
13631 __atomic_fetch_add (x, y, 0);
13632 __atomic_add_fetch (x, y, 0);
13637 if test x
$atomic_builtins_link_tests = xyes
; then
13638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13639 (eval $ac_link) 2>&5
13641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13642 test $ac_status = 0; }; then
13643 eval libat_cv_have_at_fadd_2
=yes
13645 eval libat_cv_have_at_fadd_2
=no
13648 old_CFLAGS
="$CFLAGS"
13649 # Compile unoptimized.
13650 CFLAGS
="$CFLAGS -O0 -S"
13651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13652 (eval $ac_compile) 2>&5
13654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13655 test $ac_status = 0; }; then
13656 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13657 eval libat_cv_have_at_fadd_2
=no
13659 eval libat_cv_have_at_fadd_2
=yes
13662 eval libat_cv_have_at_fadd_2
=no
13664 CFLAGS
="$old_CFLAGS"
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_2" >&5
13670 $as_echo "$libat_cv_have_at_fadd_2" >&6; }
13673 yesno
=`echo $libat_cv_have_at_fadd_2 | tr 'yesno' '1 0 '`
13675 cat >>confdefs.h
<<_ACEOF
13676 #define HAVE_ATOMIC_FETCH_ADD_2 $yesno
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 4" >&5
13685 $as_echo_n "checking for __atomic_fetch_add for size 4... " >&6; }
13686 if test "${libat_cv_have_at_fadd_4+set}" = set; then :
13687 $as_echo_n "(cached) " >&6
13690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13696 typedef int T __attribute__((mode(SI))); T *x, y;
13697 asm("" : "=g"(x), "=g"(y));
13698 __atomic_fetch_add (x, y, 0);
13699 __atomic_add_fetch (x, y, 0);
13704 if test x
$atomic_builtins_link_tests = xyes
; then
13705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13706 (eval $ac_link) 2>&5
13708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13709 test $ac_status = 0; }; then
13710 eval libat_cv_have_at_fadd_4
=yes
13712 eval libat_cv_have_at_fadd_4
=no
13715 old_CFLAGS
="$CFLAGS"
13716 # Compile unoptimized.
13717 CFLAGS
="$CFLAGS -O0 -S"
13718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13719 (eval $ac_compile) 2>&5
13721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13722 test $ac_status = 0; }; then
13723 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13724 eval libat_cv_have_at_fadd_4
=no
13726 eval libat_cv_have_at_fadd_4
=yes
13729 eval libat_cv_have_at_fadd_4
=no
13731 CFLAGS
="$old_CFLAGS"
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_4" >&5
13737 $as_echo "$libat_cv_have_at_fadd_4" >&6; }
13740 yesno
=`echo $libat_cv_have_at_fadd_4 | tr 'yesno' '1 0 '`
13742 cat >>confdefs.h
<<_ACEOF
13743 #define HAVE_ATOMIC_FETCH_ADD_4 $yesno
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 8" >&5
13752 $as_echo_n "checking for __atomic_fetch_add for size 8... " >&6; }
13753 if test "${libat_cv_have_at_fadd_8+set}" = set; then :
13754 $as_echo_n "(cached) " >&6
13757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13763 typedef int T __attribute__((mode(DI))); T *x, y;
13764 asm("" : "=g"(x), "=g"(y));
13765 __atomic_fetch_add (x, y, 0);
13766 __atomic_add_fetch (x, y, 0);
13771 if test x
$atomic_builtins_link_tests = xyes
; then
13772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13773 (eval $ac_link) 2>&5
13775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13776 test $ac_status = 0; }; then
13777 eval libat_cv_have_at_fadd_8
=yes
13779 eval libat_cv_have_at_fadd_8
=no
13782 old_CFLAGS
="$CFLAGS"
13783 # Compile unoptimized.
13784 CFLAGS
="$CFLAGS -O0 -S"
13785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13786 (eval $ac_compile) 2>&5
13788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13789 test $ac_status = 0; }; then
13790 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13791 eval libat_cv_have_at_fadd_8
=no
13793 eval libat_cv_have_at_fadd_8
=yes
13796 eval libat_cv_have_at_fadd_8
=no
13798 CFLAGS
="$old_CFLAGS"
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_8" >&5
13804 $as_echo "$libat_cv_have_at_fadd_8" >&6; }
13807 yesno
=`echo $libat_cv_have_at_fadd_8 | tr 'yesno' '1 0 '`
13809 cat >>confdefs.h
<<_ACEOF
13810 #define HAVE_ATOMIC_FETCH_ADD_8 $yesno
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 16" >&5
13819 $as_echo_n "checking for __atomic_fetch_add for size 16... " >&6; }
13820 if test "${libat_cv_have_at_fadd_16+set}" = set; then :
13821 $as_echo_n "(cached) " >&6
13824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13830 typedef int T __attribute__((mode(TI))); T *x, y;
13831 asm("" : "=g"(x), "=g"(y));
13832 __atomic_fetch_add (x, y, 0);
13833 __atomic_add_fetch (x, y, 0);
13838 if test x
$atomic_builtins_link_tests = xyes
; then
13839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13840 (eval $ac_link) 2>&5
13842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13843 test $ac_status = 0; }; then
13844 eval libat_cv_have_at_fadd_16
=yes
13846 eval libat_cv_have_at_fadd_16
=no
13849 old_CFLAGS
="$CFLAGS"
13850 # Compile unoptimized.
13851 CFLAGS
="$CFLAGS -O0 -S"
13852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13853 (eval $ac_compile) 2>&5
13855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13856 test $ac_status = 0; }; then
13857 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13858 eval libat_cv_have_at_fadd_16
=no
13860 eval libat_cv_have_at_fadd_16
=yes
13863 eval libat_cv_have_at_fadd_16
=no
13865 CFLAGS
="$old_CFLAGS"
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_16" >&5
13871 $as_echo "$libat_cv_have_at_fadd_16" >&6; }
13874 yesno
=`echo $libat_cv_have_at_fadd_16 | tr 'yesno' '1 0 '`
13876 cat >>confdefs.h
<<_ACEOF
13877 #define HAVE_ATOMIC_FETCH_ADD_16 $yesno
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 1" >&5
13887 $as_echo_n "checking for __atomic_fetch_op for size 1... " >&6; }
13888 if test "${libat_cv_have_at_fop_1+set}" = set; then :
13889 $as_echo_n "(cached) " >&6
13892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13893 /* end confdefs.h. */
13898 typedef int T __attribute__((mode(QI))); T *x, y;
13899 asm("" : "=g"(x), "=g"(y));
13900 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
13901 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
13902 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
13903 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
13904 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
13905 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
13910 if test x
$atomic_builtins_link_tests = xyes
; then
13911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13912 (eval $ac_link) 2>&5
13914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13915 test $ac_status = 0; }; then
13916 eval libat_cv_have_at_fop_1
=yes
13918 eval libat_cv_have_at_fop_1
=no
13921 old_CFLAGS
="$CFLAGS"
13922 # Compile unoptimized.
13923 CFLAGS
="$CFLAGS -O0 -S"
13924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13925 (eval $ac_compile) 2>&5
13927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13928 test $ac_status = 0; }; then
13929 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13930 eval libat_cv_have_at_fop_1
=no
13932 eval libat_cv_have_at_fop_1
=yes
13935 eval libat_cv_have_at_fop_1
=no
13937 CFLAGS
="$old_CFLAGS"
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_1" >&5
13943 $as_echo "$libat_cv_have_at_fop_1" >&6; }
13946 yesno
=`echo $libat_cv_have_at_fop_1 | tr 'yesno' '1 0 '`
13948 cat >>confdefs.h
<<_ACEOF
13949 #define HAVE_ATOMIC_FETCH_OP_1 $yesno
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 2" >&5
13958 $as_echo_n "checking for __atomic_fetch_op for size 2... " >&6; }
13959 if test "${libat_cv_have_at_fop_2+set}" = set; then :
13960 $as_echo_n "(cached) " >&6
13963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13964 /* end confdefs.h. */
13969 typedef int T __attribute__((mode(HI))); T *x, y;
13970 asm("" : "=g"(x), "=g"(y));
13971 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
13972 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
13973 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
13974 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
13975 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
13976 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
13981 if test x
$atomic_builtins_link_tests = xyes
; then
13982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13983 (eval $ac_link) 2>&5
13985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13986 test $ac_status = 0; }; then
13987 eval libat_cv_have_at_fop_2
=yes
13989 eval libat_cv_have_at_fop_2
=no
13992 old_CFLAGS
="$CFLAGS"
13993 # Compile unoptimized.
13994 CFLAGS
="$CFLAGS -O0 -S"
13995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13996 (eval $ac_compile) 2>&5
13998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13999 test $ac_status = 0; }; then
14000 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
14001 eval libat_cv_have_at_fop_2
=no
14003 eval libat_cv_have_at_fop_2
=yes
14006 eval libat_cv_have_at_fop_2
=no
14008 CFLAGS
="$old_CFLAGS"
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_2" >&5
14014 $as_echo "$libat_cv_have_at_fop_2" >&6; }
14017 yesno
=`echo $libat_cv_have_at_fop_2 | tr 'yesno' '1 0 '`
14019 cat >>confdefs.h
<<_ACEOF
14020 #define HAVE_ATOMIC_FETCH_OP_2 $yesno
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 4" >&5
14029 $as_echo_n "checking for __atomic_fetch_op for size 4... " >&6; }
14030 if test "${libat_cv_have_at_fop_4+set}" = set; then :
14031 $as_echo_n "(cached) " >&6
14034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14040 typedef int T __attribute__((mode(SI))); T *x, y;
14041 asm("" : "=g"(x), "=g"(y));
14042 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14043 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14044 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14045 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14046 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14047 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14052 if test x
$atomic_builtins_link_tests = xyes
; then
14053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14054 (eval $ac_link) 2>&5
14056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14057 test $ac_status = 0; }; then
14058 eval libat_cv_have_at_fop_4
=yes
14060 eval libat_cv_have_at_fop_4
=no
14063 old_CFLAGS
="$CFLAGS"
14064 # Compile unoptimized.
14065 CFLAGS
="$CFLAGS -O0 -S"
14066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14067 (eval $ac_compile) 2>&5
14069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14070 test $ac_status = 0; }; then
14071 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
14072 eval libat_cv_have_at_fop_4
=no
14074 eval libat_cv_have_at_fop_4
=yes
14077 eval libat_cv_have_at_fop_4
=no
14079 CFLAGS
="$old_CFLAGS"
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_4" >&5
14085 $as_echo "$libat_cv_have_at_fop_4" >&6; }
14088 yesno
=`echo $libat_cv_have_at_fop_4 | tr 'yesno' '1 0 '`
14090 cat >>confdefs.h
<<_ACEOF
14091 #define HAVE_ATOMIC_FETCH_OP_4 $yesno
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 8" >&5
14100 $as_echo_n "checking for __atomic_fetch_op for size 8... " >&6; }
14101 if test "${libat_cv_have_at_fop_8+set}" = set; then :
14102 $as_echo_n "(cached) " >&6
14105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14111 typedef int T __attribute__((mode(DI))); T *x, y;
14112 asm("" : "=g"(x), "=g"(y));
14113 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14114 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14115 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14116 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14117 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14118 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14123 if test x
$atomic_builtins_link_tests = xyes
; then
14124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14125 (eval $ac_link) 2>&5
14127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14128 test $ac_status = 0; }; then
14129 eval libat_cv_have_at_fop_8
=yes
14131 eval libat_cv_have_at_fop_8
=no
14134 old_CFLAGS
="$CFLAGS"
14135 # Compile unoptimized.
14136 CFLAGS
="$CFLAGS -O0 -S"
14137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14138 (eval $ac_compile) 2>&5
14140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14141 test $ac_status = 0; }; then
14142 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
14143 eval libat_cv_have_at_fop_8
=no
14145 eval libat_cv_have_at_fop_8
=yes
14148 eval libat_cv_have_at_fop_8
=no
14150 CFLAGS
="$old_CFLAGS"
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_8" >&5
14156 $as_echo "$libat_cv_have_at_fop_8" >&6; }
14159 yesno
=`echo $libat_cv_have_at_fop_8 | tr 'yesno' '1 0 '`
14161 cat >>confdefs.h
<<_ACEOF
14162 #define HAVE_ATOMIC_FETCH_OP_8 $yesno
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 16" >&5
14171 $as_echo_n "checking for __atomic_fetch_op for size 16... " >&6; }
14172 if test "${libat_cv_have_at_fop_16+set}" = set; then :
14173 $as_echo_n "(cached) " >&6
14176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14177 /* end confdefs.h. */
14182 typedef int T __attribute__((mode(TI))); T *x, y;
14183 asm("" : "=g"(x), "=g"(y));
14184 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14185 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14186 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14187 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14188 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14189 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14194 if test x
$atomic_builtins_link_tests = xyes
; then
14195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14196 (eval $ac_link) 2>&5
14198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14199 test $ac_status = 0; }; then
14200 eval libat_cv_have_at_fop_16
=yes
14202 eval libat_cv_have_at_fop_16
=no
14205 old_CFLAGS
="$CFLAGS"
14206 # Compile unoptimized.
14207 CFLAGS
="$CFLAGS -O0 -S"
14208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14209 (eval $ac_compile) 2>&5
14211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14212 test $ac_status = 0; }; then
14213 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
14214 eval libat_cv_have_at_fop_16
=no
14216 eval libat_cv_have_at_fop_16
=yes
14219 eval libat_cv_have_at_fop_16
=no
14221 CFLAGS
="$old_CFLAGS"
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_16" >&5
14227 $as_echo "$libat_cv_have_at_fop_16" >&6; }
14230 yesno
=`echo $libat_cv_have_at_fop_16 | tr 'yesno' '1 0 '`
14232 cat >>confdefs.h
<<_ACEOF
14233 #define HAVE_ATOMIC_FETCH_OP_16 $yesno
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14242 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14243 if test "${ac_cv_c_bigendian+set}" = set; then :
14244 $as_echo_n "(cached) " >&6
14246 ac_cv_c_bigendian
=unknown
14247 # See if we're dealing with a universal compiler.
14248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14250 #ifndef __APPLE_CC__
14251 not a universal capable compiler
14256 if ac_fn_c_try_compile
"$LINENO"; then :
14258 # Check for potential -arch flags. It is not universal unless
14259 # there are at least two -arch flags with different values.
14262 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14263 if test -n "$ac_prev"; then
14265 i?
86 | x86_64 | ppc | ppc64
)
14266 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
14269 ac_cv_c_bigendian
=universal
14275 elif test "x$ac_word" = "x-arch"; then
14280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14281 if test $ac_cv_c_bigendian = unknown
; then
14282 # See if sys/param.h defines the BYTE_ORDER macro.
14283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14285 #include <sys/types.h>
14286 #include <sys/param.h>
14291 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14292 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14294 bogus endian macros
14301 if ac_fn_c_try_compile
"$LINENO"; then :
14302 # It does; now see whether it defined to BIG_ENDIAN or not.
14303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14304 /* end confdefs.h. */
14305 #include <sys/types.h>
14306 #include <sys/param.h>
14311 #if BYTE_ORDER != BIG_ENDIAN
14319 if ac_fn_c_try_compile
"$LINENO"; then :
14320 ac_cv_c_bigendian
=yes
14322 ac_cv_c_bigendian
=no
14324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14328 if test $ac_cv_c_bigendian = unknown
; then
14329 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h. */
14332 #include <limits.h>
14337 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14338 bogus endian macros
14345 if ac_fn_c_try_compile
"$LINENO"; then :
14346 # It does; now see whether it defined to _BIG_ENDIAN or not.
14347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14348 /* end confdefs.h. */
14349 #include <limits.h>
14354 #ifndef _BIG_ENDIAN
14362 if ac_fn_c_try_compile
"$LINENO"; then :
14363 ac_cv_c_bigendian
=yes
14365 ac_cv_c_bigendian
=no
14367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14371 if test $ac_cv_c_bigendian = unknown
; then
14372 # Compile a test program.
14373 if test "$cross_compiling" = yes; then :
14374 # Try to guess by grepping values from an object file.
14375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14377 short int ascii_mm[] =
14378 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14379 short int ascii_ii[] =
14380 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14381 int use_ascii (int i) {
14382 return ascii_mm[i] + ascii_ii[i];
14384 short int ebcdic_ii[] =
14385 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14386 short int ebcdic_mm[] =
14387 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14388 int use_ebcdic (int i) {
14389 return ebcdic_mm[i] + ebcdic_ii[i];
14396 return use_ascii (foo) == use_ebcdic (foo);
14401 if ac_fn_c_try_compile
"$LINENO"; then :
14402 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
14403 ac_cv_c_bigendian
=yes
14405 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
14406 if test "$ac_cv_c_bigendian" = unknown
; then
14407 ac_cv_c_bigendian
=no
14409 # finding both strings is unlikely to happen, but who knows?
14410 ac_cv_c_bigendian
=unknown
14414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h. */
14418 $ac_includes_default
14423 /* Are we little or big endian? From Harbison&Steele. */
14427 char c[sizeof (long int)];
14430 return u.c[sizeof (long int) - 1] == 1;
14436 if ac_fn_c_try_run
"$LINENO"; then :
14437 ac_cv_c_bigendian
=no
14439 ac_cv_c_bigendian
=yes
14441 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14442 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14448 $as_echo "$ac_cv_c_bigendian" >&6; }
14449 case $ac_cv_c_bigendian in #(
14451 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14457 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14461 as_fn_error
"unknown endianness
14462 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14465 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the word size" >&5
14470 $as_echo_n "checking for the word size... " >&6; }
14471 if test "${libat_cv_wordsize+set}" = set; then :
14472 $as_echo_n "(cached) " >&6
14474 if ac_fn_c_compute_int
"$LINENO" "sizeof(word)" "libat_cv_wordsize" "typedef int word __attribute__((mode(word)));"; then :
14477 as_fn_error
"Could not determine word size." "$LINENO" 5
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_wordsize" >&5
14482 $as_echo "$libat_cv_wordsize" >&6; }
14484 cat >>confdefs.h
<<_ACEOF
14485 #define WORDSIZE $libat_cv_wordsize
14490 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14491 # In case the pthread.h system header is not found, this test will fail.
14492 case " $config_path " in
14495 CFLAGS
="$CFLAGS -pthread"
14496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14498 #include <pthread.h>
14499 void *g(void *d) { return NULL; }
14503 pthread_t t; pthread_create(&t,NULL,g,NULL);
14508 if ac_fn_c_try_link
"$LINENO"; then :
14509 XPCFLAGS
=" -pthread"
14511 CFLAGS
="$save_CFLAGS $XCFLAGS" LIBS
="-lpthread $LIBS"
14512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14513 /* end confdefs.h. */
14514 #include <pthread.h>
14515 void *g(void *d) { return NULL; }
14519 pthread_t t; pthread_create(&t,NULL,g,NULL);
14524 if ac_fn_c_try_link
"$LINENO"; then :
14527 as_fn_error
"Pthreads are required to build libatomic" "$LINENO" 5
14529 rm -f core conftest.err conftest.
$ac_objext \
14530 conftest
$ac_exeext conftest.
$ac_ext
14532 rm -f core conftest.err conftest.
$ac_objext \
14533 conftest
$ac_exeext conftest.
$ac_ext
14534 CFLAGS
="$save_CFLAGS $XPCFLAGS"
14538 # See what sort of export controls are available.
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
14541 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
14542 if test "${libat_cv_have_attribute_visibility+set}" = set; then :
14543 $as_echo_n "(cached) " >&6
14546 save_CFLAGS
="$CFLAGS"
14547 CFLAGS
="$CFLAGS -Werror"
14548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h. */
14550 void __attribute__((visibility("hidden"))) foo(void) { }
14559 if ac_fn_c_try_compile
"$LINENO"; then :
14560 libat_cv_have_attribute_visibility
=yes
14562 libat_cv_have_attribute_visibility
=no
14564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14565 CFLAGS
="$save_CFLAGS"
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_visibility" >&5
14568 $as_echo "$libat_cv_have_attribute_visibility" >&6; }
14569 if test $libat_cv_have_attribute_visibility = yes; then
14571 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
14576 $as_echo_n "checking whether the target supports dllexport... " >&6; }
14577 if test "${libat_cv_have_attribute_dllexport+set}" = set; then :
14578 $as_echo_n "(cached) " >&6
14581 save_CFLAGS
="$CFLAGS"
14582 CFLAGS
="$CFLAGS -Werror"
14583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14584 /* end confdefs.h. */
14585 void __attribute__((dllexport)) foo(void) { }
14594 if ac_fn_c_try_compile
"$LINENO"; then :
14595 libat_cv_have_attribute_dllexport
=yes
14597 libat_cv_have_attribute_dllexport
=no
14599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14600 CFLAGS
="$save_CFLAGS"
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_dllexport" >&5
14603 $as_echo "$libat_cv_have_attribute_dllexport" >&6; }
14604 if test $libat_cv_have_attribute_dllexport = yes; then
14606 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
14611 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
14612 if test "${libat_cv_have_attribute_alias+set}" = set; then :
14613 $as_echo_n "(cached) " >&6
14616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14620 extern void bar(void) __attribute__((alias("foo")));
14629 if ac_fn_c_try_link
"$LINENO"; then :
14630 libat_cv_have_attribute_alias
=yes
14632 libat_cv_have_attribute_alias
=no
14634 rm -f core conftest.err conftest.
$ac_objext \
14635 conftest
$ac_exeext conftest.
$ac_ext
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_alias" >&5
14638 $as_echo "$libat_cv_have_attribute_alias" >&6; }
14639 if test $libat_cv_have_attribute_alias = yes; then
14641 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
14644 if test x
$try_ifunc = xyes
; then
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports the ifunc attribute" >&5
14647 $as_echo_n "checking whether the target supports the ifunc attribute... " >&6; }
14648 if test "${libat_cv_have_ifunc+set}" = set; then :
14649 $as_echo_n "(cached) " >&6
14652 save_CFLAGS
="$CFLAGS"
14653 CFLAGS
="$CFLAGS -Werror"
14654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14655 /* end confdefs.h. */
14657 int foo_alt(void) { return 0; }
14658 void *foo_sel(void) { return foo_alt; }
14659 int foo(void) __attribute__((ifunc("foo_sel")));
14668 if ac_fn_c_try_link
"$LINENO"; then :
14669 libat_cv_have_ifunc
=yes
14671 libat_cv_have_ifunc
=no
14673 rm -f core conftest.err conftest.
$ac_objext \
14674 conftest
$ac_exeext conftest.
$ac_ext
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_ifunc" >&5
14677 $as_echo "$libat_cv_have_ifunc" >&6; }
14679 yesno
=`echo $libat_cv_have_ifunc | tr 'yesno' '1 0 '`
14681 cat >>confdefs.h
<<_ACEOF
14682 #define HAVE_IFUNC $yesno
14689 # Check linker support.
14692 # Check whether --with-gnu-ld was given.
14693 if test "${with_gnu_ld+set}" = set; then :
14694 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
14700 if test "$GCC" = yes; then
14701 # Check if gcc -print-prog-name=ld gives a path.
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14703 $as_echo_n "checking for ld used by $CC... " >&6; }
14706 # gcc leaves a trailing carriage return which upsets mingw
14707 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14709 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
14712 # Accept absolute paths.
14714 re_direlt
='/[^/][^/]*/\.\./'
14715 # Canonicalize the pathname of ld
14716 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14717 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
14718 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14720 test -z "$LD" && LD
="$ac_prog"
14723 # If it fails, then pretend we aren't using GCC.
14727 # If it is relative, then search for the first ld in PATH.
14728 with_gnu_ld
=unknown
14731 elif test "$with_gnu_ld" = yes; then
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14733 $as_echo_n "checking for GNU ld... " >&6; }
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14736 $as_echo_n "checking for non-GNU ld... " >&6; }
14738 if test "${lt_cv_path_LD+set}" = set; then :
14739 $as_echo_n "(cached) " >&6
14741 if test -z "$LD"; then
14742 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14743 for ac_dir
in $PATH; do
14745 test -z "$ac_dir" && ac_dir
=.
14746 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14747 lt_cv_path_LD
="$ac_dir/$ac_prog"
14748 # Check to see if the program is GNU ld. I'd rather use --version,
14749 # but apparently some variants of GNU ld only accept -v.
14750 # Break only if it was the GNU/non-GNU ld that we prefer.
14751 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14752 *GNU
* |
*'with BFD'*)
14753 test "$with_gnu_ld" != no
&& break
14756 test "$with_gnu_ld" != yes && break
14763 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
14767 LD
="$lt_cv_path_LD"
14768 if test -n "$LD"; then
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14770 $as_echo "$LD" >&6; }
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14773 $as_echo "no" >&6; }
14775 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14777 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14778 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14779 $as_echo_n "(cached) " >&6
14781 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14782 case `$LD -v 2>&1 </dev/null` in
14783 *GNU
* |
*'with BFD'*)
14784 lt_cv_prog_gnu_ld
=yes
14787 lt_cv_prog_gnu_ld
=no
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14792 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14793 with_gnu_ld
=$lt_cv_prog_gnu_ld
14801 # If we're not using GNU ld, then there's no point in even trying these
14802 # tests. Check for that first. We should have already tested for gld
14803 # by now (in libtool), but require it now just to be safe...
14804 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
14805 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
14809 # The name set by libtool depends on the version of libtool. Shame on us
14810 # for depending on an impl detail, but c'est la vie. Older versions used
14811 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
14812 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
14813 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
14814 # set (hence we're using an older libtool), then set it.
14815 if test x
${with_gnu_ld+set} != xset
; then
14816 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
14817 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
14820 with_gnu_ld
=$ac_cv_prog_gnu_ld
14824 # Start by getting the version number. I think the libtool test already
14825 # does some of this, but throws away the result.
14826 libat_ld_is_gold
=no
14827 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
14828 libat_ld_is_gold
=yes
14831 ldver
=`$LD --version 2>/dev/null |
14832 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
14834 libat_gnu_ld_version
=`echo $ldver | \
14835 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
14837 # Set --gc-sections.
14838 if test "$with_gnu_ld" = "notbroken"; then
14839 # GNU ld it is! Joy and bunny rabbits!
14841 # All these tests are for C++; save the language and the compiler flags.
14842 # Need to do this so that g++ won't try to link in libstdc++
14843 ac_test_CFLAGS
="${CFLAGS+set}"
14844 ac_save_CFLAGS
="$CFLAGS"
14845 CFLAGS
='-x c++ -Wl,--gc-sections'
14847 # Check for -Wl,--gc-sections
14848 # XXX This test is broken at the moment, as symbols required for linking
14849 # are now in libsupc++ (not built yet). In addition, this test has
14850 # cored on solaris in the past. In addition, --gc-sections doesn't
14851 # really work at the moment (keeps on discarding used sections, first
14852 # .eh_frame and now some of the glibc sections for iconv).
14853 # Bzzzzt. Thanks for playing, maybe next time.
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
14855 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
14856 if test "$cross_compiling" = yes; then :
14857 ac_sectionLDflags
=yes
14859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14870 if ac_fn_c_try_run
"$LINENO"; then :
14871 ac_sectionLDflags
=yes
14873 ac_sectionLDflags
=no
14875 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14876 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14879 if test "$ac_test_CFLAGS" = set; then
14880 CFLAGS
="$ac_save_CFLAGS"
14882 # this is the suspicious part
14885 if test "$ac_sectionLDflags" = "yes"; then
14886 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
14889 $as_echo "$ac_sectionLDflags" >&6; }
14892 # Set linker optimization flags.
14893 if test x
"$with_gnu_ld" = x
"yes"; then
14894 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
14902 # Check whether --enable-symvers was given.
14903 if test "${enable_symvers+set}" = set; then :
14904 enableval
=$enable_symvers;
14905 case "$enableval" in
14906 yes|no|gnu
*|sun
) ;;
14907 *) as_fn_error
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
14916 # If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
14917 # don't know enough about $LD to do tricks...
14920 # Turn a 'yes' into a suitable default.
14921 if test x
$enable_symvers = xyes
; then
14922 # FIXME The following test is too strict, in theory.
14923 if test $enable_shared = no ||
test "x$LD" = x
; then
14926 if test $with_gnu_ld = yes ; then
14929 case ${target_os} in
14930 # Sun symbol versioning exists since Solaris 2.5.
14931 solaris2.
[5-9]* | solaris2.1
[0-9]*)
14932 enable_symvers
=sun
;;
14934 enable_symvers
=no
;;
14940 # Check if 'sun' was requested on non-Solaris 2 platforms.
14941 if test x
$enable_symvers = xsun
; then
14942 case ${target_os} in
14947 # Unlikely to work.
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
14949 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
14951 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
14953 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
14959 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
14960 if test $enable_symvers != no
; then
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
14962 $as_echo_n "checking for shared libgcc... " >&6; }
14963 ac_save_CFLAGS
="$CFLAGS"
14965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h. */
14976 if ac_fn_c_try_link
"$LINENO"; then :
14977 libat_shared_libgcc
=yes
14979 libat_shared_libgcc
=no
14981 rm -f core conftest.err conftest.
$ac_objext \
14982 conftest
$ac_exeext conftest.
$ac_ext
14983 CFLAGS
="$ac_save_CFLAGS"
14984 if test $libat_shared_libgcc = no
; then
14985 cat > conftest.c
<<EOF
14986 int main (void) { return 0; }
14988 libat_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
14989 -shared -shared-libgcc -o conftest.so \
14990 conftest.c -v 2>&1 >/dev/null \
14991 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
14992 rm -f conftest.c conftest.so
14993 if test x
${libat_libgcc_s_suffix+set} = xset
; then
14994 CFLAGS
=" -lgcc_s$libat_libgcc_s_suffix"
14995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14996 /* end confdefs.h. */
15006 if ac_fn_c_try_link
"$LINENO"; then :
15007 libat_shared_libgcc
=yes
15009 rm -f core conftest.err conftest.
$ac_objext \
15010 conftest
$ac_exeext conftest.
$ac_ext
15011 CFLAGS
="$ac_save_CFLAGS"
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
15015 $as_echo "$libat_shared_libgcc" >&6; }
15018 # For GNU ld, we need at least this version. The format is described in
15019 # LIBAT_CHECK_LINKER_FEATURES above.
15020 libat_min_gnu_ld_version
=21400
15021 # XXXXXXXXXXX libat_gnu_ld_version=21390
15023 # Check to see if unspecified "yes" value can win, given results above.
15024 # Change "yes" into either "no" or a style name.
15025 if test $enable_symvers != no
&& test $libat_shared_libgcc = yes; then
15026 if test $with_gnu_ld = yes; then
15027 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
15029 elif test $libat_ld_is_gold = yes ; then
15032 # The right tools, the right setup, but too old. Fallbacks?
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
15034 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15036 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15038 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
15040 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
15041 if test $libat_gnu_ld_version -ge 21200 ; then
15042 # Globbing fix is present, proper block support is not.
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15044 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15049 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15053 elif test $enable_symvers = sun
; then
15054 : All interesting versions of Sun ld support sun style symbol versioning.
15056 # just fail for now
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15058 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15060 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15062 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15064 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15068 if test $enable_symvers = gnu
; then
15070 $as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
15074 if test $enable_symvers != no
; then
15075 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
=
15076 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
='#'
15078 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
='#'
15079 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
=
15082 if test $enable_symvers = gnu
; then
15083 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
15084 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
15086 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
15087 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
15090 if test $enable_symvers = sun
; then
15091 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
15092 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
15094 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
15095 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15099 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15102 # Cleanup and exit.
15103 CFLAGS
="$save_CFLAGS"
15104 cat >confcache
<<\_ACEOF
15105 # This file is a shell script that caches the results of configure
15106 # tests run on this system so they can be shared between configure
15107 # scripts and configure runs, see configure's option --config-cache.
15108 # It is not useful on other systems. If it contains results you don't
15109 # want to keep, you may remove or edit it.
15111 # config.status only pays attention to the cache file if you give it
15112 # the --recheck option to rerun configure.
15114 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15115 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15116 # following values.
15120 # The following way of writing the cache mishandles newlines in values,
15121 # but we know of no workaround that is simple, portable, and efficient.
15122 # So, we kill variables containing newlines.
15123 # Ultrix sh set writes to stderr and can't be redirected directly,
15124 # and sets the high bit in the cache file unless we assign to the vars.
15126 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15127 eval ac_val
=\$
$ac_var
15131 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15132 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15135 _ | IFS | as_nl
) ;; #(
15136 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15137 *) { eval $ac_var=; unset $ac_var;} ;;
15143 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15144 *${as_nl}ac_space
=\
*)
15145 # `set' does not quote correctly, so add quotes: double-quote
15146 # substitution turns \\\\ into \\, and sed turns \\ into \.
15149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15152 # `set' quotes correctly as required by POSIX, so do not add quotes.
15153 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15162 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15164 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15166 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15167 if test -w "$cache_file"; then
15168 test "x$cache_file" != "x/dev/null" &&
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15170 $as_echo "$as_me: updating cache $cache_file" >&6;}
15171 cat confcache
>$cache_file
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15174 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15179 # Add -Wall -Werror if we are using GCC.
15180 if test "x$GCC" = "xyes"; then
15181 XCFLAGS
="$XCFLAGS -Wall -Werror"
15184 XCFLAGS
="$XCFLAGS $XPCFLAGS"
15192 if test x
$libat_cv_have_ifunc = xyes
; then
15194 HAVE_IFUNC_FALSE
='#'
15196 HAVE_IFUNC_TRUE
='#'
15200 if expr "$config_path" : ".* linux/arm .*" > /dev
/null
; then
15201 ARCH_ARM_LINUX_TRUE
=
15202 ARCH_ARM_LINUX_FALSE
='#'
15204 ARCH_ARM_LINUX_TRUE
='#'
15205 ARCH_ARM_LINUX_FALSE
=
15208 if test "$ARCH" = x86
&& test x
$libat_cv_wordsize = x4
; then
15210 ARCH_I386_FALSE
='#'
15216 if test "$ARCH" = x86
&& test x
$libat_cv_wordsize = x8
; then
15218 ARCH_X86_64_FALSE
='#'
15220 ARCH_X86_64_TRUE
='#'
15225 if test ${multilib} = yes; then
15226 multilib_arg
="--enable-multilib"
15231 ac_config_files
="$ac_config_files Makefile testsuite/Makefile"
15233 cat >confcache
<<\_ACEOF
15234 # This file is a shell script that caches the results of configure
15235 # tests run on this system so they can be shared between configure
15236 # scripts and configure runs, see configure's option --config-cache.
15237 # It is not useful on other systems. If it contains results you don't
15238 # want to keep, you may remove or edit it.
15240 # config.status only pays attention to the cache file if you give it
15241 # the --recheck option to rerun configure.
15243 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15244 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15245 # following values.
15249 # The following way of writing the cache mishandles newlines in values,
15250 # but we know of no workaround that is simple, portable, and efficient.
15251 # So, we kill variables containing newlines.
15252 # Ultrix sh set writes to stderr and can't be redirected directly,
15253 # and sets the high bit in the cache file unless we assign to the vars.
15255 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15256 eval ac_val
=\$
$ac_var
15260 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15261 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15264 _ | IFS | as_nl
) ;; #(
15265 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15266 *) { eval $ac_var=; unset $ac_var;} ;;
15272 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15273 *${as_nl}ac_space
=\
*)
15274 # `set' does not quote correctly, so add quotes: double-quote
15275 # substitution turns \\\\ into \\, and sed turns \\ into \.
15278 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15281 # `set' quotes correctly as required by POSIX, so do not add quotes.
15282 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15291 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15293 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15295 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15296 if test -w "$cache_file"; then
15297 test "x$cache_file" != "x/dev/null" &&
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15299 $as_echo "$as_me: updating cache $cache_file" >&6;}
15300 cat confcache
>$cache_file
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15303 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15308 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15309 # Let make expand exec_prefix.
15310 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15312 DEFS
=-DHAVE_CONFIG_H
15316 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15317 # 1. Remove the extension, and $U if already installed.
15318 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15319 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15320 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15321 # will be set to the directory where LIBOBJS objects are built.
15322 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15323 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15325 LIBOBJS
=$ac_libobjs
15327 LTLIBOBJS
=$ac_ltlibobjs
15330 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
15331 as_fn_error
"conditional \"GENINSRC\" was never defined.
15332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15334 if test -n "$EXEEXT"; then
15336 am__EXEEXT_FALSE
='#'
15338 am__EXEEXT_TRUE
='#'
15342 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15343 as_fn_error
"conditional \"AMDEP\" was never defined.
15344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15346 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15347 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
15348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15350 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15351 as_fn_error
"conditional \"am__fastdepCCAS\" was never defined.
15352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15354 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15355 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
15356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15359 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
15360 as_fn_error
"conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
15361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15363 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
15364 as_fn_error
"conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
15365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15367 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
15368 as_fn_error
"conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
15369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15371 if test -z "${HAVE_IFUNC_TRUE}" && test -z "${HAVE_IFUNC_FALSE}"; then
15372 as_fn_error
"conditional \"HAVE_IFUNC\" was never defined.
15373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15375 if test -z "${ARCH_ARM_LINUX_TRUE}" && test -z "${ARCH_ARM_LINUX_FALSE}"; then
15376 as_fn_error
"conditional \"ARCH_ARM_LINUX\" was never defined.
15377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15379 if test -z "${ARCH_I386_TRUE}" && test -z "${ARCH_I386_FALSE}"; then
15380 as_fn_error
"conditional \"ARCH_I386\" was never defined.
15381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15383 if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
15384 as_fn_error
"conditional \"ARCH_X86_64\" was never defined.
15385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15388 : ${CONFIG_STATUS=./config.status}
15390 ac_clean_files_save
=$ac_clean_files
15391 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15393 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15395 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15397 # Generated by $as_me.
15398 # Run this file to recreate the current configuration.
15399 # Compiler output produced by configure, useful for debugging
15400 # configure, is in config.log if it exists.
15403 ac_cs_recheck=false
15406 SHELL=\${CONFIG_SHELL-$SHELL}
15409 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15410 ## -------------------- ##
15411 ## M4sh Initialization. ##
15412 ## -------------------- ##
15414 # Be more Bourne compatible
15415 DUALCASE
=1; export DUALCASE
# for MKS sh
15416 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15419 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15420 # is contrary to our usage. Disable this feature.
15421 alias -g '${1+"$@"}'='"$@"'
15422 setopt NO_GLOB_SUBST
15424 case `(set -o) 2>/dev/null` in #(
15436 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15437 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15438 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15439 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15440 # Prefer a ksh shell builtin over an external printf program on Solaris,
15441 # but without wasting forks for bash or zsh.
15442 if test -z "$BASH_VERSION$ZSH_VERSION" \
15443 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15444 as_echo='print
-r --'
15445 as_echo_n='print
-rn --'
15446 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15447 as_echo='printf %s
\n'
15448 as_echo_n='printf %s
'
15450 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15451 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15452 as_echo_n='/usr
/ucb
/echo -n'
15454 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15455 as_echo_n_body='eval
15459 expr "X$arg" : "X\\(.*\\)$as_nl";
15460 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15462 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15464 export as_echo_n_body
15465 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15467 export as_echo_body
15468 as_echo='sh
-c $as_echo_body as_echo
'
15471 # The user is always right.
15472 if test "${PATH_SEPARATOR+set}" != set; then
15474 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15475 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15482 # We need space, tab and new line, in precisely that order. Quoting is
15483 # there to prevent editors from complaining about space-tab.
15484 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15485 # splitting by setting IFS to empty value.)
15488 # Find who we are. Look in the path if we contain no directory separator.
15490 *[\\/]* ) as_myself=$0 ;;
15491 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15492 for as_dir in $PATH
15495 test -z "$as_dir" && as_dir=.
15496 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15502 # We did not find ourselves, most probably we were run as `sh COMMAND'
15503 # in which case we are not to be found in the path.
15504 if test "x$as_myself" = x
; then
15507 if test ! -f "$as_myself"; then
15508 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15512 # Unset variables that we do not need and which cause bugs (e.g. in
15513 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15514 # suppresses any "Segmentation fault" message there. '((' could
15515 # trigger a bug in pdksh 5.2.14.
15516 for as_var
in BASH_ENV ENV MAIL MAILPATH
15517 do eval test x\
${$as_var+set} = xset \
15518 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15531 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15534 # as_fn_error ERROR [LINENO LOG_FD]
15535 # ---------------------------------
15536 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15537 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15538 # script with status $?, using 1 if that was 0.
15541 as_status
=$?
; test $as_status -eq 0 && as_status
=1
15543 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15544 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15546 $as_echo "$as_me: error: $1" >&2
15547 as_fn_exit
$as_status
15551 # as_fn_set_status STATUS
15552 # -----------------------
15553 # Set $? to STATUS, without forking.
15554 as_fn_set_status
()
15557 } # as_fn_set_status
15559 # as_fn_exit STATUS
15560 # -----------------
15561 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15565 as_fn_set_status
$1
15571 # Portably unset VAR.
15574 { eval $1=; unset $1;}
15576 as_unset
=as_fn_unset
15577 # as_fn_append VAR VALUE
15578 # ----------------------
15579 # Append the text in VALUE to the end of the definition contained in VAR. Take
15580 # advantage of any shell optimizations that allow amortized linear growth over
15581 # repeated appends, instead of the typical quadratic growth present in naive
15583 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15584 eval 'as_fn_append ()
15595 # as_fn_arith ARG...
15596 # ------------------
15597 # Perform arithmetic evaluation on the ARGs, and store the result in the
15598 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15599 # must be portable across $(()) and expr.
15600 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15601 eval 'as_fn_arith ()
15608 as_val
=`expr "$@" || test $? -eq 1`
15613 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15614 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15620 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15621 as_basename
=basename
15626 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15632 as_me
=`$as_basename -- "$0" ||
15633 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15634 X"$0" : 'X\(//\)$' \| \
15635 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15637 sed '/^.*\/\([^/][^/]*\)\/*$/{
15651 # Avoid depending upon Character Ranges.
15652 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15653 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15654 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15655 as_cr_digits
='0123456789'
15656 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15658 ECHO_C
= ECHO_N
= ECHO_T
=
15659 case `echo -n x` in #(((((
15661 case `echo 'xy\c'` in
15662 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15664 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15671 rm -f conf$$ conf$$.exe conf$$.
file
15672 if test -d conf$$.dir
; then
15673 rm -f conf$$.dir
/conf$$.
file
15676 mkdir conf$$.dir
2>/dev
/null
15678 if (echo >conf$$.
file) 2>/dev
/null
; then
15679 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15681 # ... but there are two gotchas:
15682 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15683 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15684 # In both cases, we have to default to `cp -p'.
15685 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15687 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15695 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15696 rmdir conf$$.dir
2>/dev
/null
15701 # Create "$as_dir" as a directory, including parents if necessary.
15706 -*) as_dir
=.
/$as_dir;;
15708 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15712 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15713 *) as_qdir
=$as_dir;;
15715 as_dirs
="'$as_qdir' $as_dirs"
15716 as_dir
=`$as_dirname -- "$as_dir" ||
15717 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15718 X"$as_dir" : 'X\(//\)[^/]' \| \
15719 X"$as_dir" : 'X\(//\)$' \| \
15720 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15721 $as_echo X"$as_dir" |
15722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15726 /^X\(\/\/\)[^/].*/{
15739 test -d "$as_dir" && break
15741 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15742 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
15746 if mkdir
-p .
2>/dev
/null
; then
15747 as_mkdir_p
='mkdir -p "$as_dir"'
15749 test -d .
/-p && rmdir .
/-p
15753 if test -x / >/dev
/null
2>&1; then
15754 as_test_x
='test -x'
15756 if ls -dL / >/dev
/null
2>&1; then
15763 if test -d "$1"; then
15769 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15770 ???[sx]*):;;*)false;;esac;fi
15774 as_executable_p
=$as_test_x
15776 # Sed expression to map a string onto a valid CPP name.
15777 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15779 # Sed expression to map a string onto a valid variable name.
15780 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15784 ## ----------------------------------- ##
15785 ## Main body of $CONFIG_STATUS script. ##
15786 ## ----------------------------------- ##
15788 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15791 # Save the log message, to keep $0 and so on meaningful, and to
15792 # report actual input values of CONFIG_FILES etc. instead of their
15793 # values after options handling.
15795 This file was extended by GNU Atomic Library $as_me 1.0, which was
15796 generated by GNU Autoconf 2.64. Invocation command line was
15798 CONFIG_FILES = $CONFIG_FILES
15799 CONFIG_HEADERS = $CONFIG_HEADERS
15800 CONFIG_LINKS = $CONFIG_LINKS
15801 CONFIG_COMMANDS = $CONFIG_COMMANDS
15804 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15809 case $ac_config_files in *"
15810 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15813 case $ac_config_headers in *"
15814 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15819 # Files that config.status was made for.
15820 config_files="$ac_config_files"
15821 config_headers="$ac_config_headers"
15822 config_commands="$ac_config_commands"
15826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15828 \`$as_me' instantiates files and other configuration actions
15829 from templates according to the current configuration. Unless the files
15830 and actions are specified as TAGs, all are instantiated by default.
15832 Usage: $0 [OPTION]... [TAG]...
15834 -h, --help print this help, then exit
15835 -V, --version print version number and configuration settings, then exit
15836 -q, --quiet, --silent
15837 do not print progress messages
15838 -d, --debug don't remove temporary files
15839 --recheck update $as_me by reconfiguring in the same conditions
15840 --file=FILE[:TEMPLATE]
15841 instantiate the configuration file FILE
15842 --header=FILE[:TEMPLATE]
15843 instantiate the configuration header FILE
15845 Configuration files:
15848 Configuration headers:
15851 Configuration commands:
15854 Report bugs to the package provider.
15855 GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
15856 General help using GNU software: <http://www.gnu.org/gethelp/>."
15859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15861 GNU Atomic Library config.status 1.0
15862 configured by $0, generated by GNU Autoconf 2.64,
15863 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15865 Copyright (C) 2009 Free Software Foundation, Inc.
15866 This config.status script is free software; the Free Software Foundation
15867 gives unlimited permission to copy, distribute and modify it."
15874 test -n "\$AWK" || AWK=awk
15877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15878 # The default lists apply if the user does not specify any file.
15884 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15885 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15896 # Handling of the options.
15897 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15899 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15900 $as_echo "$ac_cs_version"; exit ;;
15901 --debug |
--debu |
--deb |
--de |
--d |
-d )
15903 --file |
--fil |
--fi |
--f )
15906 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15908 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15909 ac_need_defaults
=false
;;
15910 --header |
--heade |
--head |
--hea )
15913 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15915 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15916 ac_need_defaults
=false
;;
15918 # Conflict between --help and --header
15919 as_fn_error
"ambiguous option: \`$1'
15920 Try \`$0 --help' for more information.";;
15921 --help |
--hel |
-h )
15922 $as_echo "$ac_cs_usage"; exit ;;
15923 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15924 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15927 # This is an error.
15928 -*) as_fn_error
"unrecognized option: \`$1'
15929 Try \`$0 --help' for more information." ;;
15931 *) as_fn_append ac_config_targets
" $1"
15932 ac_need_defaults
=false
;;
15938 ac_configure_extra_args
=
15940 if $ac_cs_silent; then
15942 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15947 if \$ac_cs_recheck; then
15948 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15950 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15951 CONFIG_SHELL='$SHELL'
15952 export CONFIG_SHELL
15957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15961 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15962 ## Running $as_me. ##
15968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15976 with_multisubdir="$with_multisubdir"
15977 with_multisrctop="$with_multisrctop"
15978 with_target_subdir="$with_target_subdir"
15979 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15980 multi_basedir="$multi_basedir"
15981 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15984 GFORTRAN="$GFORTRAN"
15986 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15989 # The HP-UX ksh and POSIX shell print the target directory to stdout
15990 # if CDPATH is set.
15991 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15993 sed_quote_subst='$sed_quote_subst'
15994 double_quote_subst='$double_quote_subst'
15995 delay_variable_subst='$delay_variable_subst'
15996 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15997 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15998 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15999 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16000 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16001 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16002 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16003 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16004 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16005 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16006 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16007 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16008 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16009 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16010 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16011 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16012 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16013 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16014 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16015 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16016 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16017 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16018 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16019 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16020 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16021 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16022 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16023 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16024 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16025 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16026 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16027 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16028 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16029 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16030 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16031 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16032 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16033 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16034 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16035 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16036 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16037 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16038 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16039 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16040 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16041 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16042 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16043 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16044 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16045 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16046 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16047 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16048 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16049 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16050 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16051 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16052 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16053 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16054 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16055 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16056 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16057 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16058 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16059 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16060 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16061 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16062 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16063 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16064 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16065 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16066 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16067 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16068 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16069 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16070 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16071 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16072 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16073 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16074 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16075 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16076 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16077 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16078 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16079 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16080 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16081 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16082 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16083 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16084 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16085 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16086 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16087 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16088 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16089 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16090 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16091 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16092 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16093 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16094 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16095 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16096 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16097 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16098 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16099 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16100 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16101 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16102 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16103 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16104 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16105 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16106 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16107 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16108 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16109 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16110 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16111 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16112 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16113 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16114 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16115 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16118 LTCFLAGS='$LTCFLAGS'
16119 compiler='$compiler_DEFAULT'
16121 # A function that is used when there is no print builtin or printf.
16122 func_fallback_echo ()
16124 eval 'cat <<_LTECHO_EOF
16129 # Quote evaled strings.
16143 deplibs_check_method \
16152 lt_cv_sys_global_symbol_pipe \
16153 lt_cv_sys_global_symbol_to_cdecl \
16154 lt_cv_sys_global_symbol_to_c_name_address \
16155 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16156 lt_prog_compiler_no_builtin_flag \
16157 lt_prog_compiler_wl \
16158 lt_prog_compiler_pic \
16159 lt_prog_compiler_static \
16160 lt_cv_prog_compiler_c_o \
16168 export_dynamic_flag_spec \
16169 whole_archive_flag_spec \
16170 compiler_needs_object \
16172 allow_undefined_flag \
16173 no_undefined_flag \
16174 hardcode_libdir_flag_spec \
16175 hardcode_libdir_flag_spec_ld \
16176 hardcode_libdir_separator \
16181 variables_saved_for_relink \
16183 library_names_spec \
16185 install_override_mode \
16189 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16190 *[\\\\\\\`\\"\\\$]*)
16191 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16194 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16199 # Double-quote double-evaled strings.
16200 for var in reload_cmds \
16201 old_postinstall_cmds \
16202 old_postuninstall_cmds \
16204 extract_expsyms_cmds \
16205 old_archive_from_new_cmds \
16206 old_archive_from_expsyms_cmds \
16208 archive_expsym_cmds \
16210 module_expsym_cmds \
16211 export_symbols_cmds \
16214 postuninstall_cmds \
16216 sys_lib_search_path_spec \
16217 sys_lib_dlsearch_path_spec; do
16218 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16219 *[\\\\\\\`\\"\\\$]*)
16220 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16223 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16228 ac_aux_dir='$ac_aux_dir'
16229 xsi_shell='$xsi_shell'
16230 lt_shell_append='$lt_shell_append'
16232 # See if we are running on zsh, and set the options which allow our
16233 # commands through without removal of \ escapes INIT.
16234 if test -n "\${ZSH_VERSION+set}" ; then
16235 setopt NO_GLOB_SUBST
16241 TIMESTAMP='$TIMESTAMP'
16250 acx_cv_header_stdint="$acx_cv_header_stdint"
16251 acx_cv_type_int8_t="$acx_cv_type_int8_t"
16252 acx_cv_type_int16_t="$acx_cv_type_int16_t"
16253 acx_cv_type_int32_t="$acx_cv_type_int32_t"
16254 acx_cv_type_int64_t="$acx_cv_type_int64_t"
16255 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
16256 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
16257 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
16258 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16259 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16260 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
16261 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16262 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16263 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
16268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16270 # Handling of arguments.
16271 for ac_config_target
in $ac_config_targets
16273 case $ac_config_target in
16274 "auto-config.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-config.h" ;;
16275 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
16276 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16277 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
16278 "gstdint.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS gstdint.h" ;;
16279 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16280 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
16282 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16287 # If the user did not use the arguments to specify the items to instantiate,
16288 # then the envvar interface is used. Set only those that are not.
16289 # We use the long form for the default assignment because of an extremely
16290 # bizarre bug on SunOS 4.1.3.
16291 if $ac_need_defaults; then
16292 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16293 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16294 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16297 # Have a temporary directory for convenience. Make it in the build tree
16298 # simply because there is no reason against having it here, and in addition,
16299 # creating and moving files from /tmp can sometimes cause problems.
16300 # Hook for its removal unless debugging.
16301 # Note that there is a small window in which the directory will not be cleaned:
16302 # after its creation but before its name has been assigned to `$tmp'.
16306 trap 'exit_status=$?
16307 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16309 trap 'as_fn_exit 1' 1 2 13 15
16311 # Create a (secure) tmp directory for tmp files.
16314 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16315 test -n "$tmp" && test -d "$tmp"
16318 tmp
=.
/conf$$
-$RANDOM
16319 (umask 077 && mkdir
"$tmp")
16320 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16322 # Set up the scripts for CONFIG_FILES section.
16323 # No need to generate them if there are no CONFIG_FILES.
16324 # This happens for instance with `./config.status config.h'.
16325 if test -n "$CONFIG_FILES"; then
16328 ac_cr
=`echo X | tr X '\015'`
16329 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16330 # But we know of no other shell where ac_cr would be empty at this
16331 # point, so we can use a bashism as a fallback.
16332 if test "x$ac_cr" = x
; then
16333 eval ac_cr
=\$
\'\\r
\'
16335 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16336 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16339 ac_cs_awk_cr
=$ac_cr
16342 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16347 echo "cat >conf$$subs.awk <<_ACEOF" &&
16348 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16350 } >conf$$subs.sh ||
16351 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16352 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16354 for ac_last_try in false false false false false :; do
16355 . ./conf$$subs.sh ||
16356 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16358 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16359 if test $ac_delim_n = $ac_delim_num; then
16361 elif $ac_last_try; then
16362 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16364 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16367 rm -f conf$$subs.sh
16369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16370 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16374 s/^/S["/; s
/!.
*/"]=/
16384 s/\(.\{148\}\).*/\1/
16386 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16391 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16398 s/\(.\{148\}\).*/\1/
16400 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16404 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16409 ' <conf$$subs.awk | sed '
16414 ' >>$CONFIG_STATUS || ac_write_fail=1
16415 rm -f conf$$subs.awk
16416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16418 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16419 for (key in S) S_is_set[key] = 1
16425 nfields = split(line, field, "@
")
16427 len = length(field[1])
16428 for (i = 2; i < nfields; i++) {
16430 keylen = length(key)
16431 if (S_is_set[key]) {
16433 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16434 len += length(value) + length(field[++i])
16445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16446 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16447 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16450 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
16451 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
16454 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16455 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
16456 # trailing colons and then remove the whole line if VPATH becomes empty
16457 # (actually we leave an empty line to preserve line numbers).
16458 if test "x
$srcdir" = x.; then
16459 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16460 s/:*\$(srcdir):*/:/
16461 s/:*\${srcdir}:*/:/
16463 s/^\([^=]*=[ ]*\):*/\1/
16469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16470 fi # test -n "$CONFIG_FILES"
16472 # Set up the scripts for CONFIG_HEADERS section.
16473 # No need to generate them if there are no CONFIG_HEADERS.
16474 # This happens for instance with `./config.status Makefile'.
16475 if test -n "$CONFIG_HEADERS"; then
16476 cat >"$tmp/defines.
awk" <<\_ACAWK ||
16480 # Transform confdefs.h into an awk script `defines.awk', embedded as
16481 # here-document in config.status, that substitutes the proper values into
16482 # config.h.in to produce config.h.
16484 # Create a delimiter string that does not exist in confdefs.h, to ease
16485 # handling of long lines.
16487 for ac_last_try in false false :; do
16488 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
16489 if test -z "$ac_t"; then
16491 elif $ac_last_try; then
16492 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
16494 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16498 # For the awk script, D is an array of macro values keyed by name,
16499 # likewise P contains macro parameters if any. Preserve backslash
16500 # newline sequences.
16502 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16504 s/.\{148\}/&'"$ac_delim"'/g
16507 s/^[ ]*#[ ]*define[ ][ ]*/ /
16514 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16516 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16520 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16521 D["\
1"]=" \
3\\\\\\n
"\\/p
16523 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16528 s/.\{148\}/&'"$ac_delim"'/g
16533 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16536 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16538 ' <confdefs.h | sed '
16539 s/'"$ac_delim"'/"\\\
16540 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16543 for (key in D) D_is_set[key] = 1
16546 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16548 split(line, arg, " ")
16549 if (arg[1] == "#") {
16553 defundef
= substr
(arg
[1], 2)
16556 split(mac1
, mac2
, "(") #)
16558 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16559 if (D_is_set
[macro
]) {
16560 # Preserve the white space surrounding the "#".
16561 print prefix
"define", macro P
[macro
] D
[macro
]
16564 # Replace #undef with comments. This is necessary, for example,
16565 # in the case of _POSIX_SOURCE, which is predefined and required
16566 # on some systems where configure will not decide to define it.
16567 if (defundef
== "undef") {
16568 print
"/*", prefix defundef
, macro
, "*/"
16576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16577 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
16578 fi # test -n "$CONFIG_HEADERS"
16581 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16586 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16588 case $ac_mode$ac_tag in
16590 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16591 :[FH
]-) ac_tag
=-:-;;
16592 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16609 -) ac_f
="$tmp/stdin";;
16610 *) # Look for the file first in the build tree, then in the source tree
16611 # (if the path is not absolute). The absolute path cannot be DOS-style,
16612 # because $ac_f cannot contain `:'.
16616 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16618 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
16620 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16621 as_fn_append ac_file_inputs
" '$ac_f'"
16624 # Let's still pretend it is `configure' which instantiates (i.e., don't
16625 # use $as_me), people would be surprised to read:
16626 # /* config.h. Generated by config.status. */
16627 configure_input
='Generated from '`
16628 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16630 if test x
"$ac_file" != x-
; then
16631 configure_input
="$ac_file. $configure_input"
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16633 $as_echo "$as_me: creating $ac_file" >&6;}
16635 # Neutralize special characters interpreted by sed in replacement strings.
16636 case $configure_input in #(
16637 *\
&* |
*\|
* |
*\\* )
16638 ac_sed_conf_input
=`$as_echo "$configure_input" |
16639 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16640 *) ac_sed_conf_input
=$configure_input;;
16644 *:-:* |
*:-) cat >"$tmp/stdin" \
16645 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
16650 ac_dir
=`$as_dirname -- "$ac_file" ||
16651 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16652 X"$ac_file" : 'X\(//\)[^/]' \| \
16653 X"$ac_file" : 'X\(//\)$' \| \
16654 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16655 $as_echo X"$ac_file" |
16656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16660 /^X\(\/\/\)[^/].*/{
16673 as_dir
="$ac_dir"; as_fn_mkdir_p
16677 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16679 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16680 # A ".." for each directory in $ac_dir_suffix.
16681 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16682 case $ac_top_builddir_sub in
16683 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16684 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16687 ac_abs_top_builddir
=$ac_pwd
16688 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16689 # for backward compatibility:
16690 ac_top_builddir
=$ac_top_build_prefix
16693 .
) # We are building in place.
16695 ac_top_srcdir
=$ac_top_builddir_sub
16696 ac_abs_top_srcdir
=$ac_pwd ;;
16697 [\\/]* | ?
:[\\/]* ) # Absolute name.
16698 ac_srcdir
=$srcdir$ac_dir_suffix;
16699 ac_top_srcdir
=$srcdir
16700 ac_abs_top_srcdir
=$srcdir ;;
16701 *) # Relative name.
16702 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16703 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16704 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16706 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16716 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16717 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16719 ac_MKDIR_P
=$MKDIR_P
16721 [\\/$
]* | ?
:[\\/]* ) ;;
16722 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
16726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16727 # If the template does not know about datarootdir, expand it.
16728 # FIXME: This hack should be removed a few years after 2.60.
16729 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16740 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16741 *datarootdir
*) ac_datarootdir_seen
=yes;;
16742 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16744 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16747 ac_datarootdir_hack='
16748 s&@datadir@&$datadir&g
16749 s&@docdir@&$docdir&g
16750 s&@infodir@&$infodir&g
16751 s&@localedir@&$localedir&g
16752 s&@mandir@&$mandir&g
16753 s&\\\${datarootdir}&$datarootdir&g' ;;
16757 # Neutralize VPATH when `$srcdir' = `.'.
16758 # Shell code in configure.ac might set extrasub.
16759 # FIXME: do we really want to maintain this feature?
16760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16761 ac_sed_extra="$ac_vpsub
16764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16766 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16767 s|@configure_input@|
$ac_sed_conf_input|
;t t
16768 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16769 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16770 s
&@srcdir@
&$ac_srcdir&;t t
16771 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16772 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16773 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16774 s
&@builddir@
&$ac_builddir&;t t
16775 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16776 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16777 s
&@INSTALL@
&$ac_INSTALL&;t t
16778 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
16779 $ac_datarootdir_hack
16781 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
16782 || as_fn_error "could not create
$ac_file" "$LINENO" 5
16784 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16785 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
16786 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16788 which seems to be undefined. Please make sure it is defined." >&5
16789 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16790 which seems to be undefined. Please make sure it is defined." >&2;}
16794 -) cat "$tmp/out" && rm -f "$tmp/out";;
16795 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16797 || as_fn_error "could not create $ac_file" "$LINENO" 5
16803 if test x"$ac_file" != x-; then
16805 $as_echo "/* $configure_input */" \
16806 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16807 } >"$tmp/config.h" \
16808 || as_fn_error "could not create $ac_file" "$LINENO" 5
16809 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16811 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16814 mv "$tmp/config.h" "$ac_file" \
16815 || as_fn_error "could not create $ac_file" "$LINENO" 5
16818 $as_echo "/* $configure_input */" \
16819 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16820 || as_fn_error "could not create -" "$LINENO" 5
16822 # Compute "$ac_file"'s index
in $config_headers.
16825 for _am_header
in $config_headers :; do
16826 case $_am_header in
16827 $_am_arg |
$_am_arg:* )
16830 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
16833 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16834 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16835 X"$_am_arg" : 'X\(//\)[^/]' \| \
16836 X"$_am_arg" : 'X\(//\)$' \| \
16837 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16838 $as_echo X"$_am_arg" |
16839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16843 /^X\(\/\/\)[^/].*/{
16855 s/.*/./; q'`/stamp-h
$_am_stamp_count
16858 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16859 $as_echo "$as_me: executing $ac_file commands" >&6;}
16864 case $ac_file$ac_mode in
16866 # Only add multilib support code if we just rebuilt the top-level
16868 case " $CONFIG_FILES " in
16870 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
16873 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
16874 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16875 # are listed without --file. Let's play safe and only enable the eval
16876 # if we detect the quoting.
16877 case $CONFIG_FILES in
16878 *\'*) eval set x
"$CONFIG_FILES" ;;
16879 *) set x
$CONFIG_FILES ;;
16884 # Strip MF so we end up with the name of the file.
16885 mf
=`echo "$mf" | sed -e 's/:.*$//'`
16886 # Check whether this is an Automake generated Makefile or not.
16887 # We used to match only the files named `Makefile.in', but
16888 # some people rename them; so instead we look at the file content.
16889 # Grep'ing the first line is not enough: some people post-process
16890 # each Makefile.in and add a new line on top of each file to say so.
16891 # Grep'ing the whole file is not good either: AIX grep has a line
16892 # limit of 2048, but all sed's we know have understand at least 4000.
16893 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
16894 dirpart
=`$as_dirname -- "$mf" ||
16895 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16896 X"$mf" : 'X\(//\)[^/]' \| \
16897 X"$mf" : 'X\(//\)$' \| \
16898 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16904 /^X\(\/\/\)[^/].*/{
16920 # Extract the definition of DEPDIR, am__include, and am__quote
16921 # from the Makefile without running `make'.
16922 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
16923 test -z "$DEPDIR" && continue
16924 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
16925 test -z "am__include" && continue
16926 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
16927 # When using ansi2knr, U may be empty or an underscore; expand it
16928 U
=`sed -n 's/^U = //p' < "$mf"`
16929 # Find all dependency output files, they are included files with
16930 # $(DEPDIR) in their names. We invoke sed twice because it is the
16931 # simplest approach to changing $(DEPDIR) to its actual value in the
16933 for file in `sed -n "
16934 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16935 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16936 # Make sure the directory exists.
16937 test -f "$dirpart/$file" && continue
16938 fdir
=`$as_dirname -- "$file" ||
16939 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16940 X"$file" : 'X\(//\)[^/]' \| \
16941 X"$file" : 'X\(//\)$' \| \
16942 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16943 $as_echo X"$file" |
16944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16948 /^X\(\/\/\)[^/].*/{
16961 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
16962 # echo "creating $dirpart/$file"
16963 echo '# dummy' > "$dirpart/$file"
16970 # See if we are running on zsh, and set the options which allow our
16971 # commands through without removal of \ escapes.
16972 if test -n "${ZSH_VERSION+set}" ; then
16973 setopt NO_GLOB_SUBST
16976 cfgfile
="${ofile}T"
16977 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16980 cat <<_LT_EOF >> "$cfgfile"
16983 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16984 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16985 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16986 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16988 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16989 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16990 # Written by Gordon Matzigkeit, 1996
16992 # This file is part of GNU Libtool.
16994 # GNU Libtool is free software; you can redistribute it and/or
16995 # modify it under the terms of the GNU General Public License as
16996 # published by the Free Software Foundation; either version 2 of
16997 # the License, or (at your option) any later version.
16999 # As a special exception to the GNU General Public License,
17000 # if you distribute this file as part of a program or library that
17001 # is built using GNU Libtool, you may include this file under the
17002 # same distribution terms that you use for the rest of that program.
17004 # GNU Libtool is distributed in the hope that it will be useful,
17005 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17006 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17007 # GNU General Public License for more details.
17009 # You should have received a copy of the GNU General Public License
17010 # along with GNU Libtool; see the file COPYING. If not, a copy
17011 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17012 # obtained by writing to the Free Software Foundation, Inc.,
17013 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17016 # The names of the tagged configurations supported by this script.
17019 # ### BEGIN LIBTOOL CONFIG
17021 # Which release of libtool.m4 was used?
17022 macro_version=$macro_version
17023 macro_revision=$macro_revision
17025 # Whether or not to build shared libraries.
17026 build_libtool_libs=$enable_shared
17028 # Whether or not to build static libraries.
17029 build_old_libs=$enable_static
17031 # What type of objects to build.
17034 # Whether or not to optimize for fast installation.
17035 fast_install=$enable_fast_install
17037 # Shell to use when invoking shell scripts.
17040 # An echo program that protects backslashes.
17044 host_alias=$host_alias
17048 # The build system.
17049 build_alias=$build_alias
17053 # A sed program that does not truncate output.
17056 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17057 Xsed="\$SED -e 1s/^X//"
17059 # A grep program that handles long lines.
17065 # A literal string matcher.
17068 # A BSD- or MS-compatible name lister.
17071 # Whether we need soft or hard links.
17074 # What is the maximum length of a command?
17075 max_cmd_len=$max_cmd_len
17077 # Object file suffix (normally "o").
17080 # Executable file suffix (normally "").
17083 # whether the shell understands "unset".
17086 # turn spaces into newlines.
17089 # turn newlines into spaces.
17092 # An object symbol dumper.
17093 OBJDUMP=$lt_OBJDUMP
17095 # Method to check whether dependent libraries are shared objects.
17096 deplibs_check_method=$lt_deplibs_check_method
17098 # Command to use when deplibs_check_method == "file_magic".
17099 file_magic_cmd=$lt_file_magic_cmd
17103 AR_FLAGS=$lt_AR_FLAGS
17105 # A symbol stripping program.
17108 # Commands used to install an old-style archive.
17110 old_postinstall_cmds=$lt_old_postinstall_cmds
17111 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17113 # Whether to use a lock for old archive extraction.
17114 lock_old_archive_extraction=$lock_old_archive_extraction
17119 # LTCC compiler flags.
17120 LTCFLAGS=$lt_CFLAGS
17122 # Take the output of nm and produce a listing of raw symbols and C names.
17123 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17125 # Transform the output of nm in a proper C declaration.
17126 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17128 # Transform the output of nm in a C name address pair.
17129 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17131 # Transform the output of nm in a C name address pair when lib prefix is needed.
17132 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17134 # The name of the directory that contains temporary libtool files.
17137 # Used to examine libraries when file_magic_cmd begins with "file".
17138 MAGIC_CMD=$MAGIC_CMD
17140 # Must we lock files when doing compilation?
17141 need_locks=$lt_need_locks
17143 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17144 DSYMUTIL=$lt_DSYMUTIL
17146 # Tool to change global to local symbols on Mac OS X.
17149 # Tool to manipulate fat objects and archives on Mac OS X.
17152 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17155 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17156 OTOOL64=$lt_OTOOL64
17158 # Old archive suffix (normally "a").
17161 # Shared library suffix (normally ".so").
17162 shrext_cmds=$lt_shrext_cmds
17164 # The commands to extract the exported symbol list from a shared archive.
17165 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17167 # Variables whose values should be saved in libtool wrapper scripts and
17168 # restored at link time.
17169 variables_saved_for_relink=$lt_variables_saved_for_relink
17171 # Do we need the "lib" prefix for modules?
17172 need_lib_prefix=$need_lib_prefix
17174 # Do we need a version for libraries?
17175 need_version=$need_version
17177 # Library versioning type.
17178 version_type=$version_type
17180 # Shared library runtime path variable.
17181 runpath_var=$runpath_var
17183 # Shared library path variable.
17184 shlibpath_var=$shlibpath_var
17186 # Is shlibpath searched before the hard-coded library search path?
17187 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17189 # Format of library name prefix.
17190 libname_spec=$lt_libname_spec
17192 # List of archive names. First name is the real one, the rest are links.
17193 # The last name is the one that the linker finds with -lNAME
17194 library_names_spec=$lt_library_names_spec
17196 # The coded name of the library, if different from the real name.
17197 soname_spec=$lt_soname_spec
17199 # Permission mode override for installation of shared libraries.
17200 install_override_mode=$lt_install_override_mode
17202 # Command to use after installation of a shared archive.
17203 postinstall_cmds=$lt_postinstall_cmds
17205 # Command to use after uninstallation of a shared archive.
17206 postuninstall_cmds=$lt_postuninstall_cmds
17208 # Commands used to finish a libtool library installation in a directory.
17209 finish_cmds=$lt_finish_cmds
17211 # As "finish_cmds", except a single script fragment to be evaled but
17213 finish_eval=$lt_finish_eval
17215 # Whether we should hardcode library paths into libraries.
17216 hardcode_into_libs=$hardcode_into_libs
17218 # Compile-time system search path for libraries.
17219 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17221 # Run-time system search path for libraries.
17222 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17224 # Whether dlopen is supported.
17225 dlopen_support=$enable_dlopen
17227 # Whether dlopen of programs is supported.
17228 dlopen_self=$enable_dlopen_self
17230 # Whether dlopen of statically linked programs is supported.
17231 dlopen_self_static=$enable_dlopen_self_static
17233 # Commands to strip libraries.
17234 old_striplib=$lt_old_striplib
17235 striplib=$lt_striplib
17238 # The linker used to build libraries.
17241 # How to create reloadable object files.
17242 reload_flag=$lt_reload_flag
17243 reload_cmds=$lt_reload_cmds
17245 # Commands used to build an old-style archive.
17246 old_archive_cmds=$lt_old_archive_cmds
17248 # A language specific compiler.
17251 # Is the compiler the GNU compiler?
17254 # Compiler flag to turn off builtin functions.
17255 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17257 # How to pass a linker flag through the compiler.
17258 wl=$lt_lt_prog_compiler_wl
17260 # Additional compiler flags for building library objects.
17261 pic_flag=$lt_lt_prog_compiler_pic
17263 # Compiler flag to prevent dynamic linking.
17264 link_static_flag=$lt_lt_prog_compiler_static
17266 # Does compiler simultaneously support -c and -o options?
17267 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17269 # Whether or not to add -lc for building shared libraries.
17270 build_libtool_need_lc=$archive_cmds_need_lc
17272 # Whether or not to disallow shared libs when runtime libs are static.
17273 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17275 # Compiler flag to allow reflexive dlopens.
17276 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17278 # Compiler flag to generate shared objects directly from archives.
17279 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17281 # Whether the compiler copes with passing no objects directly.
17282 compiler_needs_object=$lt_compiler_needs_object
17284 # Create an old-style archive from a shared archive.
17285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17287 # Create a temporary old-style archive to link instead of a shared archive.
17288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17290 # Commands used to build a shared archive.
17291 archive_cmds=$lt_archive_cmds
17292 archive_expsym_cmds=$lt_archive_expsym_cmds
17294 # Commands used to build a loadable module if different from building
17295 # a shared archive.
17296 module_cmds=$lt_module_cmds
17297 module_expsym_cmds=$lt_module_expsym_cmds
17299 # Whether we are building with GNU ld or not.
17300 with_gnu_ld=$lt_with_gnu_ld
17302 # Flag that allows shared libraries with undefined symbols to be built.
17303 allow_undefined_flag=$lt_allow_undefined_flag
17305 # Flag that enforces no undefined symbols.
17306 no_undefined_flag=$lt_no_undefined_flag
17308 # Flag to hardcode \$libdir into a binary during linking.
17309 # This must work even if \$libdir does not exist
17310 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17312 # If ld is used when linking, flag to hardcode \$libdir into a binary
17313 # during linking. This must work even if \$libdir does not exist.
17314 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17316 # Whether we need a single "-rpath" flag with a separated argument.
17317 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17319 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17320 # DIR into the resulting binary.
17321 hardcode_direct=$hardcode_direct
17323 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17324 # DIR into the resulting binary and the resulting library dependency is
17325 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17326 # library is relocated.
17327 hardcode_direct_absolute=$hardcode_direct_absolute
17329 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17330 # into the resulting binary.
17331 hardcode_minus_L=$hardcode_minus_L
17333 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17334 # into the resulting binary.
17335 hardcode_shlibpath_var=$hardcode_shlibpath_var
17337 # Set to "yes" if building a shared library automatically hardcodes DIR
17338 # into the library and all subsequent libraries and executables linked
17340 hardcode_automatic=$hardcode_automatic
17342 # Set to yes if linker adds runtime paths of dependent libraries
17343 # to runtime path list.
17344 inherit_rpath=$inherit_rpath
17346 # Whether libtool must link a program against all its dependency libraries.
17347 link_all_deplibs=$link_all_deplibs
17349 # Fix the shell variable \$srcfile for the compiler.
17350 fix_srcfile_path=$lt_fix_srcfile_path
17352 # Set to "yes" if exported symbols are required.
17353 always_export_symbols=$always_export_symbols
17355 # The commands to list exported symbols.
17356 export_symbols_cmds=$lt_export_symbols_cmds
17358 # Symbols that should not be listed in the preloaded symbols.
17359 exclude_expsyms=$lt_exclude_expsyms
17361 # Symbols that must always be exported.
17362 include_expsyms=$lt_include_expsyms
17364 # Commands necessary for linking programs (against libraries) with templates.
17365 prelink_cmds=$lt_prelink_cmds
17367 # Specify filename containing input files.
17368 file_list_spec=$lt_file_list_spec
17370 # How to hardcode a shared library path into an executable.
17371 hardcode_action=$hardcode_action
17373 # ### END LIBTOOL CONFIG
17379 cat <<\_LT_EOF
>> "$cfgfile"
17380 # AIX sometimes has problems with the GCC collect2 program. For some
17381 # reason, if we set the COLLECT_NAMES environment variable, the problems
17382 # vanish in a puff of smoke.
17383 if test "X${COLLECT_NAMES+set}" != Xset
; then
17385 export COLLECT_NAMES
17392 ltmain
="$ac_aux_dir/ltmain.sh"
17395 # We use sed instead of cat because bash on DJGPP gets confused if
17396 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17397 # text mode, it properly converts lines to CR/LF. This bash problem
17398 # is reportedly fixed, but why not run on old versions too?
17399 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17400 ||
(rm -f "$cfgfile"; exit 1)
17404 cat << \_LT_EOF
>> "$cfgfile"
17406 # func_dirname file append nondir_replacement
17407 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17408 # otherwise set result to NONDIR_REPLACEMENT.
17412 */*) func_dirname_result
="${1%/*}${2}" ;;
17413 * ) func_dirname_result
="${3}" ;;
17417 # func_basename file
17420 func_basename_result
="${1##*/}"
17423 # func_dirname_and_basename file append nondir_replacement
17424 # perform func_basename and func_dirname in a single function
17426 # dirname: Compute the dirname of FILE. If nonempty,
17427 # add APPEND to the result, otherwise set result
17428 # to NONDIR_REPLACEMENT.
17429 # value returned in "$func_dirname_result"
17430 # basename: Compute filename of FILE.
17431 # value retuned in "$func_basename_result"
17432 # Implementation must be kept synchronized with func_dirname
17433 # and func_basename. For efficiency, we do not delegate to
17434 # those functions but instead duplicate the functionality here.
17435 func_dirname_and_basename
()
17438 */*) func_dirname_result
="${1%/*}${2}" ;;
17439 * ) func_dirname_result
="${3}" ;;
17441 func_basename_result
="${1##*/}"
17444 # func_stripname prefix suffix name
17445 # strip PREFIX and SUFFIX off of NAME.
17446 # PREFIX and SUFFIX must not contain globbing or regex special
17447 # characters, hashes, percent signs, but SUFFIX may contain a leading
17448 # dot (in which case that matches only a dot).
17451 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17452 # positional parameters, so assign one to ordinary parameter first.
17453 func_stripname_result
=${3}
17454 func_stripname_result
=${func_stripname_result#"${1}"}
17455 func_stripname_result
=${func_stripname_result%"${2}"}
17461 func_opt_split_opt
=${1%%=*}
17462 func_opt_split_arg
=${1#*=}
17469 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
17470 *) func_lo2o_result
=${1} ;;
17474 # func_xform libobj-or-source
17477 func_xform_result
=${1%.*}.lo
17480 # func_arith arithmetic-term...
17483 func_arith_result
=$
(( $
* ))
17487 # STRING may not start with a hyphen.
17490 func_len_result
=${#1}
17495 *) # Bourne compatible functions.
17496 cat << \_LT_EOF
>> "$cfgfile"
17498 # func_dirname file append nondir_replacement
17499 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17500 # otherwise set result to NONDIR_REPLACEMENT.
17503 # Extract subdirectory from the argument.
17504 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
17505 if test "X$func_dirname_result" = "X${1}"; then
17506 func_dirname_result
="${3}"
17508 func_dirname_result
="$func_dirname_result${2}"
17512 # func_basename file
17515 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
17519 # func_stripname prefix suffix name
17520 # strip PREFIX and SUFFIX off of NAME.
17521 # PREFIX and SUFFIX must not contain globbing or regex special
17522 # characters, hashes, percent signs, but SUFFIX may contain a leading
17523 # dot (in which case that matches only a dot).
17524 # func_strip_suffix prefix name
17528 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17529 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17534 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
17535 my_sed_long_arg
='1s/^-[^=]*=//'
17540 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17541 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17547 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
17550 # func_xform libobj-or-source
17553 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17556 # func_arith arithmetic-term...
17559 func_arith_result
=`expr "$@"`
17563 # STRING may not start with a hyphen.
17566 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17572 case $lt_shell_append in
17574 cat << \_LT_EOF
>> "$cfgfile"
17576 # func_append var value
17577 # Append VALUE to the end of shell variable VAR.
17585 cat << \_LT_EOF
>> "$cfgfile"
17587 # func_append var value
17588 # Append VALUE to the end of shell variable VAR.
17599 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17600 ||
(rm -f "$cfgfile"; exit 1)
17602 mv -f "$cfgfile" "$ofile" ||
17603 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17608 if test "$GCC" = yes; then
17609 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
17611 echo "/* generated for $CC */" > tmp-stdint.h
17614 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17616 #ifndef GCC_GENERATED_STDINT_H
17617 #define GCC_GENERATED_STDINT_H 1
17619 #include <sys/types.h>
17622 if test "$acx_cv_header_stdint" != stdint.h
; then
17623 echo "#include <stddef.h>" >> tmp-stdint.h
17625 if test "$acx_cv_header_stdint" != stddef.h
; then
17626 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
17629 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17630 /* glibc uses these symbols as guards to prevent redefinitions. */
17631 #ifdef __int8_t_defined
17636 #ifdef __uint32_t_defined
17642 # ----------------- done header, emit basic int types -------------
17643 if test "$acx_cv_header_stdint" = stddef.h
; then
17644 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17648 #ifndef __uint8_t_defined
17649 #define __uint8_t_defined
17651 typedef unsigned $acx_cv_type_int8_t uint8_t;
17658 #ifndef __uint16_t_defined
17659 #define __uint16_t_defined
17661 typedef unsigned $acx_cv_type_int16_t uint16_t;
17668 #ifndef __uint32_t_defined
17669 #define __uint32_t_defined
17671 typedef unsigned $acx_cv_type_int32_t uint32_t;
17678 #ifndef __int8_t_defined
17679 #define __int8_t_defined
17681 typedef $acx_cv_type_int8_t int8_t;
17688 #ifndef __int16_t_defined
17689 #define __int16_t_defined
17691 typedef $acx_cv_type_int16_t int16_t;
17698 #ifndef __int32_t_defined
17699 #define __int32_t_defined
17701 typedef $acx_cv_type_int32_t int32_t;
17706 elif test "$ac_cv_type_u_int32_t" = yes; then
17707 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17709 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
17722 #ifndef __uint8_t_defined
17723 #define __uint8_t_defined
17725 typedef u_int8_t uint8_t;
17732 #ifndef __uint16_t_defined
17733 #define __uint16_t_defined
17735 typedef u_int16_t uint16_t;
17742 #ifndef __uint32_t_defined
17743 #define __uint32_t_defined
17745 typedef u_int32_t uint32_t;
17751 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17753 /* Some systems have guard macros to prevent redefinitions, define them. */
17775 # ------------- done basic int types, emit int64_t types ------------
17776 if test "$ac_cv_type_uint64_t" = yes; then
17777 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17779 /* system headers have good uint64_t and int64_t */
17787 elif test "$ac_cv_type_u_int64_t" = yes; then
17788 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17790 /* system headers have an u_int64_t (and int64_t) */
17796 #ifndef __uint64_t_defined
17797 #define __uint64_t_defined
17799 typedef u_int64_t uint64_t;
17804 elif test -n "$acx_cv_type_int64_t"; then
17805 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17807 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
17811 typedef $acx_cv_type_int64_t int64_t;
17816 #ifndef __uint64_t_defined
17817 #define __uint64_t_defined
17819 typedef unsigned $acx_cv_type_int64_t uint64_t;
17825 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17827 /* some common heuristics for int64_t, using compiler-specific tests */
17828 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
17831 #ifndef __int64_t_defined
17833 typedef long long int64_t;
17840 typedef unsigned long long uint64_t;
17844 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
17845 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
17846 does not implement __extension__. But that compiler doesn't define
17848 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
17849 # define __extension__
17855 __extension__ typedef long long int64_t;
17861 __extension__ typedef unsigned long long uint64_t;
17865 #elif !defined __STRICT_ANSI__
17866 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
17871 typedef __int64 int64_t;
17877 typedef unsigned __int64 uint64_t;
17880 # endif /* compiler */
17882 #endif /* ANSI version */
17886 # ------------- done int64_t types, emit intptr types ------------
17887 if test "$ac_cv_type_uintptr_t" != yes; then
17888 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17890 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
17891 #ifndef __uintptr_t_defined
17893 typedef u$acx_cv_type_intptr_t uintptr_t;
17896 #ifndef __intptr_t_defined
17898 typedef $acx_cv_type_intptr_t intptr_t;
17904 # ------------- done intptr types, emit int_least types ------------
17905 if test "$ac_cv_type_int_least32_t" != yes; then
17906 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17908 /* Define int_least types */
17909 typedef int8_t int_least8_t;
17910 typedef int16_t int_least16_t;
17911 typedef int32_t int_least32_t;
17913 typedef int64_t int_least64_t;
17916 typedef uint8_t uint_least8_t;
17917 typedef uint16_t uint_least16_t;
17918 typedef uint32_t uint_least32_t;
17920 typedef uint64_t uint_least64_t;
17925 # ------------- done intptr types, emit int_fast types ------------
17926 if test "$ac_cv_type_int_fast32_t" != yes; then
17927 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17929 /* Define int_fast types. short is often slow */
17930 typedef int8_t int_fast8_t;
17931 typedef int int_fast16_t;
17932 typedef int32_t int_fast32_t;
17934 typedef int64_t int_fast64_t;
17937 typedef uint8_t uint_fast8_t;
17938 typedef unsigned int uint_fast16_t;
17939 typedef uint32_t uint_fast32_t;
17941 typedef uint64_t uint_fast64_t;
17946 if test "$ac_cv_type_uintmax_t" != yes; then
17947 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17949 /* Define intmax based on what we found */
17952 typedef int64_t intmax_t;
17954 typedef long intmax_t;
17959 typedef uint64_t uintmax_t;
17961 typedef unsigned long uintmax_t;
17967 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17969 #endif /* GCC_GENERATED_STDINT_H */
17972 if test -r gstdint.h
&& cmp -s tmp-stdint.h gstdint.h
; then
17975 mv -f tmp-stdint.h gstdint.h
17986 ac_clean_files
=$ac_clean_files_save
17988 test $ac_write_fail = 0 ||
17989 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17992 # configure is writing to config.log, and then calls config.status.
17993 # config.status does its own redirection, appending to config.log.
17994 # Unfortunately, on DOS this fails, as config.log is still kept open
17995 # by configure, so config.status won't be able to write to it; its
17996 # output is simply discarded. So we exec the FD to /dev/null,
17997 # effectively closing config.log, so it can be properly (re)opened and
17998 # appended to by config.status. When coming back to configure, we
17999 # need to make the FD available again.
18000 if test "$no_create" != yes; then
18002 ac_config_status_args
=
18003 test "$silent" = yes &&
18004 ac_config_status_args
="$ac_config_status_args --quiet"
18006 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18009 # would make configure fail if this is the last instruction.
18010 $ac_cs_success || as_fn_exit $?
18012 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18014 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}