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
651 am__fastdepCCAS_FALSE
684 INSTALL_STRIP_PROGRAM
740 program_transform_name
753 enable_option_checking
754 enable_version_specific_runtime_libs
755 enable_generated_files_in_srcdir
757 enable_dependency_tracking
764 enable_maintainer_mode
767 ac_precious_vars
='build_alias
774 # Initialize some variables set by options.
776 ac_init_version
=false
777 ac_unrecognized_opts
=
779 # The variables have the same names as the options, with
780 # dashes changed to underlines.
788 program_transform_name
=s
,x
,x
,
796 # Installation directory options.
797 # These are left unexpanded so users can "make install exec_prefix=/foo"
798 # and all the variables that are supposed to be based on exec_prefix
799 # by default will actually change.
800 # Use braces instead of parens because sh, perl, etc. also accept them.
801 # (The list follows the same order as the GNU Coding Standards.)
802 bindir
='${exec_prefix}/bin'
803 sbindir
='${exec_prefix}/sbin'
804 libexecdir
='${exec_prefix}/libexec'
805 datarootdir
='${prefix}/share'
806 datadir
='${datarootdir}'
807 sysconfdir
='${prefix}/etc'
808 sharedstatedir
='${prefix}/com'
809 localstatedir
='${prefix}/var'
810 includedir
='${prefix}/include'
811 oldincludedir
='/usr/include'
812 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
813 infodir
='${datarootdir}/info'
818 libdir
='${exec_prefix}/lib'
819 localedir
='${datarootdir}/locale'
820 mandir
='${datarootdir}/man'
826 # If the previous option needs an argument, assign it.
827 if test -n "$ac_prev"; then
828 eval $ac_prev=\
$ac_option
834 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 # Accept the important Cygnus configure options, so we can diagnose typos.
840 case $ac_dashdash$ac_option in
844 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
846 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
849 -build |
--build |
--buil |
--bui |
--bu)
850 ac_prev
=build_alias
;;
851 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
852 build_alias
=$ac_optarg ;;
854 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
855 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
856 ac_prev
=cache_file
;;
857 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
858 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
859 cache_file
=$ac_optarg ;;
862 cache_file
=config.cache
;;
864 -datadir |
--datadir |
--datadi |
--datad)
866 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
867 datadir
=$ac_optarg ;;
869 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
870 |
--dataroo |
--dataro |
--datar)
871 ac_prev
=datarootdir
;;
872 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
873 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
874 datarootdir
=$ac_optarg ;;
876 -disable-* |
--disable-*)
877 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878 # Reject names that are not valid shell variable names.
879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
880 as_fn_error
"invalid feature name: $ac_useropt"
881 ac_useropt_orig
=$ac_useropt
882 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
887 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888 ac_unrecognized_sep
=', ';;
890 eval enable_
$ac_useropt=no
;;
892 -docdir |
--docdir |
--docdi |
--doc |
--do)
894 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
897 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
899 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
902 -enable-* |
--enable-*)
903 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
906 as_fn_error
"invalid feature name: $ac_useropt"
907 ac_useropt_orig
=$ac_useropt
908 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
913 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914 ac_unrecognized_sep
=', ';;
916 eval enable_
$ac_useropt=\
$ac_optarg ;;
918 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
919 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
920 |
--exec |
--exe |
--ex)
921 ac_prev
=exec_prefix
;;
922 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
923 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
924 |
--exec=* |
--exe=* |
--ex=*)
925 exec_prefix
=$ac_optarg ;;
927 -gas |
--gas |
--ga |
--g)
928 # Obsolete; use --with-gas.
931 -help |
--help |
--hel |
--he |
-h)
933 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
934 ac_init_help
=recursive
;;
935 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
936 ac_init_help
=short
;;
938 -host |
--host |
--hos |
--ho)
939 ac_prev
=host_alias
;;
940 -host=* |
--host=* |
--hos=* |
--ho=*)
941 host_alias
=$ac_optarg ;;
943 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
945 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
947 htmldir
=$ac_optarg ;;
949 -includedir |
--includedir |
--includedi |
--included |
--include \
950 |
--includ |
--inclu |
--incl |
--inc)
951 ac_prev
=includedir
;;
952 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
953 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
954 includedir
=$ac_optarg ;;
956 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
958 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
959 infodir
=$ac_optarg ;;
961 -libdir |
--libdir |
--libdi |
--libd)
963 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
966 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
967 |
--libexe |
--libex |
--libe)
968 ac_prev
=libexecdir
;;
969 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
970 |
--libexe=* |
--libex=* |
--libe=*)
971 libexecdir
=$ac_optarg ;;
973 -localedir |
--localedir |
--localedi |
--localed |
--locale)
975 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
976 localedir
=$ac_optarg ;;
978 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
979 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
980 ac_prev
=localstatedir
;;
981 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
982 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
983 localstatedir
=$ac_optarg ;;
985 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
987 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
991 # Obsolete; use --without-fp.
994 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
995 |
--no-cr |
--no-c |
-n)
998 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
999 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1002 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1003 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1004 |
--oldin |
--oldi |
--old |
--ol |
--o)
1005 ac_prev
=oldincludedir
;;
1006 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1007 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1008 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1009 oldincludedir
=$ac_optarg ;;
1011 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1013 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1014 prefix
=$ac_optarg ;;
1016 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1017 |
--program-pre |
--program-pr |
--program-p)
1018 ac_prev
=program_prefix
;;
1019 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1020 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1021 program_prefix
=$ac_optarg ;;
1023 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1024 |
--program-suf |
--program-su |
--program-s)
1025 ac_prev
=program_suffix
;;
1026 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1027 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1028 program_suffix
=$ac_optarg ;;
1030 -program-transform-name |
--program-transform-name \
1031 |
--program-transform-nam |
--program-transform-na \
1032 |
--program-transform-n |
--program-transform- \
1033 |
--program-transform |
--program-transfor \
1034 |
--program-transfo |
--program-transf \
1035 |
--program-trans |
--program-tran \
1036 |
--progr-tra |
--program-tr |
--program-t)
1037 ac_prev
=program_transform_name
;;
1038 -program-transform-name=* |
--program-transform-name=* \
1039 |
--program-transform-nam=* |
--program-transform-na=* \
1040 |
--program-transform-n=* |
--program-transform-=* \
1041 |
--program-transform=* |
--program-transfor=* \
1042 |
--program-transfo=* |
--program-transf=* \
1043 |
--program-trans=* |
--program-tran=* \
1044 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1045 program_transform_name
=$ac_optarg ;;
1047 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1049 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1050 pdfdir
=$ac_optarg ;;
1052 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1054 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1057 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1058 |
-silent |
--silent |
--silen |
--sile |
--sil)
1061 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1063 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1065 sbindir
=$ac_optarg ;;
1067 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1068 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1069 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1071 ac_prev
=sharedstatedir
;;
1072 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1073 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1074 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1076 sharedstatedir
=$ac_optarg ;;
1078 -site |
--site |
--sit)
1080 -site=* |
--site=* |
--sit=*)
1083 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1085 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1086 srcdir
=$ac_optarg ;;
1088 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1089 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1090 ac_prev
=sysconfdir
;;
1091 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1092 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1093 sysconfdir
=$ac_optarg ;;
1095 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1096 ac_prev
=target_alias
;;
1097 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1098 target_alias
=$ac_optarg ;;
1100 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1103 -version |
--version |
--versio |
--versi |
--vers |
-V)
1104 ac_init_version
=: ;;
1107 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1110 as_fn_error
"invalid package name: $ac_useropt"
1111 ac_useropt_orig
=$ac_useropt
1112 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1117 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118 ac_unrecognized_sep
=', ';;
1120 eval with_
$ac_useropt=\
$ac_optarg ;;
1122 -without-* |
--without-*)
1123 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1126 as_fn_error
"invalid package name: $ac_useropt"
1127 ac_useropt_orig
=$ac_useropt
1128 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1133 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1134 ac_unrecognized_sep
=', ';;
1136 eval with_
$ac_useropt=no
;;
1139 # Obsolete; use --with-x.
1142 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1143 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1144 ac_prev
=x_includes
;;
1145 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1146 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1147 x_includes
=$ac_optarg ;;
1149 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1150 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1151 ac_prev
=x_libraries
;;
1152 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1153 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1154 x_libraries
=$ac_optarg ;;
1156 -*) as_fn_error
"unrecognized option: \`$ac_option'
1157 Try \`$0 --help' for more information."
1161 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 case $ac_envvar in #(
1164 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1165 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1167 eval $ac_envvar=\
$ac_optarg
1168 export $ac_envvar ;;
1171 # FIXME: should be removed in autoconf 3.0.
1172 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1174 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1181 if test -n "$ac_prev"; then
1182 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1183 as_fn_error
"missing argument to $ac_option"
1186 if test -n "$ac_unrecognized_opts"; then
1187 case $enable_option_checking in
1189 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1190 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194 # Check all directory arguments for consistency.
1195 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196 datadir sysconfdir sharedstatedir localstatedir includedir \
1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198 libdir localedir mandir
1200 eval ac_val
=\$
$ac_var
1201 # Remove trailing slashes.
1204 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205 eval $ac_var=\
$ac_val;;
1207 # Be sure to have absolute directory names.
1209 [\\/$
]* | ?
:[\\/]* ) continue;;
1210 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1212 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1220 target
=$target_alias
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x
; then
1224 if test "x$build_alias" = x
; then
1225 cross_compiling
=maybe
1226 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used." >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1234 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1236 test "$silent" = yes && exec 6>/dev
/null
1239 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di
=`ls -di .` &&
1241 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1242 as_fn_error
"working directory cannot be determined"
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244 as_fn_error
"pwd does not report name of working directory"
1247 # Find the source files, if location was not specified.
1248 if test -z "$srcdir"; then
1249 ac_srcdir_defaulted
=yes
1250 # Try the directory containing this script, then the parent directory.
1251 ac_confdir
=`$as_dirname -- "$as_myself" ||
1252 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253 X"$as_myself" : 'X\(//\)[^/]' \| \
1254 X"$as_myself" : 'X\(//\)$' \| \
1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256 $as_echo X"$as_myself" |
1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1279 ac_srcdir_defaulted
=no
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1283 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1285 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1297 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299 for ac_var
in $ac_precious_vars; do
1300 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1301 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1302 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1303 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1307 # Report the --help message.
1309 if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1313 \`configure' configures GNU Atomic Library 1.0 to adapt to many kinds of systems.
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE. See below for descriptions of some of the useful variables.
1320 Defaults for the options are specified in brackets.
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
1327 -q, --quiet, --silent do not print \`checking...' messages
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for \`--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1333 Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
1335 [$ac_default_prefix]
1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1344 For better control, use the options below.
1346 Fine tuning of the installation directories:
1347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic]
1362 --htmldir=DIR html documentation [DOCDIR]
1363 --dvidir=DIR dvi documentation [DOCDIR]
1364 --pdfdir=DIR pdf documentation [DOCDIR]
1365 --psdir=DIR ps documentation [DOCDIR]
1371 --program-prefix=PREFIX prepend PREFIX to installed program names
1372 --program-suffix=SUFFIX append SUFFIX to installed program names
1373 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1376 --build=BUILD configure
for building on BUILD
[guessed
]
1377 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1378 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive
) echo "Configuration of GNU Atomic Library 1.0:";;
1389 --disable-option-checking ignore unrecognized
--enable/--with options
1390 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1391 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1392 --enable-version-specific-runtime-libs
1393 Specify that runtime libraries should be installed
1394 in a compiler-specific directory
[default
=no
]
1395 --enable-generated-files-in-srcdir
1396 put copies of generated files
in source dir intended
1397 for creating
source tarballs
for users without
1398 texinfo bison or flex.
[default
=no
]
1399 --enable-multilib build many library versions
(default
)
1400 --disable-dependency-tracking speeds up one-time build
1401 --enable-dependency-tracking do not reject slow dependency extractors
1402 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1403 --enable-static[=PKGS
] build static libraries
[default
=yes]
1404 --enable-fast-install[=PKGS
]
1405 optimize
for fast installation
[default
=yes]
1406 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1407 --enable-maintainer-mode enable make rules and dependencies not useful
1408 (and sometimes confusing
) to the casual installer
1409 --enable-symvers=STYLE enables symbol versioning of the shared library
1413 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1414 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1415 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1417 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1419 Some influential environment variables
:
1420 CC C compiler
command
1421 CFLAGS C compiler flags
1422 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1423 nonstandard directory
<lib dir
>
1424 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1425 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1426 you have headers
in a nonstandard directory
<include dir
>
1427 CCAS assembler compiler
command (defaults to CC
)
1428 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1431 Use these variables to override the choices made by
`configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1434 Report bugs to the package provider.
1435 GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
1436 General help using GNU software: <http://www.gnu.org/gethelp/>.
1441 if test "$ac_init_help" = "recursive"; then
1442 # If there are subdirs, report their specific --help.
1443 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1444 test -d "$ac_dir" ||
1445 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1453 # A ".." for each directory in $ac_dir_suffix.
1454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1455 case $ac_top_builddir_sub in
1456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460 ac_abs_top_builddir=$ac_pwd
1461 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1462 # for backward compatibility:
1463 ac_top_builddir=$ac_top_build_prefix
1466 .) # We are building in place.
1468 ac_top_srcdir=$ac_top_builddir_sub
1469 ac_abs_top_srcdir=$ac_pwd ;;
1470 [\\/]* | ?:[\\/]* ) # Absolute name.
1471 ac_srcdir=$srcdir$ac_dir_suffix;
1472 ac_top_srcdir=$srcdir
1473 ac_abs_top_srcdir=$srcdir ;;
1475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1476 ac_top_srcdir=$ac_top_build_prefix$srcdir
1477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481 cd "$ac_dir" || { ac_status=$?; continue; }
1482 # Check for guested configure.
1483 if test -f "$ac_srcdir/configure.gnu"; then
1485 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1486 elif test -f "$ac_srcdir/configure"; then
1488 $SHELL "$ac_srcdir/configure" --help=recursive
1490 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492 cd "$ac_pwd" || { ac_status=$?; break; }
1496 test -n "$ac_init_help" && exit $ac_status
1497 if $ac_init_version; then
1499 GNU Atomic Library configure 1.0
1500 generated by GNU Autoconf 2.64
1502 Copyright (C) 2009 Free Software Foundation, Inc.
1503 This configure script is free software; the Free Software Foundation
1504 gives unlimited permission to copy, distribute and modify it.
1509 ## ------------------------ ##
1510 ## Autoconf initialization. ##
1511 ## ------------------------ ##
1513 # ac_fn_c_try_compile LINENO
1514 # --------------------------
1515 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1516 ac_fn_c_try_compile ()
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 rm -f conftest.$ac_objext
1520 if { { ac_try="$ac_compile"
1522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1523 *) ac_try_echo
=$ac_try;;
1525 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526 $as_echo "$ac_try_echo"; } >&5
1527 (eval "$ac_compile") 2>conftest.err
1529 if test -s conftest.err
; then
1530 grep -v '^ *+' conftest.err
>conftest.er1
1531 cat conftest.er1
>&5
1532 mv -f conftest.er1 conftest.err
1534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535 test $ac_status = 0; } && {
1536 test -z "$ac_c_werror_flag" ||
1537 test ! -s conftest.err
1538 } && test -s conftest.
$ac_objext; then :
1541 $as_echo "$as_me: failed program was:" >&5
1542 sed 's/^/| /' conftest.
$ac_ext >&5
1546 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1549 } # ac_fn_c_try_compile
1551 # ac_fn_c_try_link LINENO
1552 # -----------------------
1553 # Try to link conftest.$ac_ext, and return whether this succeeded.
1556 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1557 rm -f conftest.
$ac_objext conftest
$ac_exeext
1558 if { { ac_try
="$ac_link"
1560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_link") 2>conftest.err
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest$ac_exeext && {
1577 test "$cross_compiling" = yes ||
1578 $as_test_x conftest$ac_exeext
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1587 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1588 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1589 # interfere with the next link command; also delete a directory that is
1590 # left behind by Apple's compiler. We do this before executing the actions.
1591 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1595 } # ac_fn_c_try_link
1597 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1598 # -------------------------------------------------------
1599 # Tests whether HEADER exists and can be compiled using the include files in
1600 # INCLUDES, setting the cache variable VAR accordingly.
1601 ac_fn_c_check_header_compile ()
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1605 $as_echo_n "checking for $2... " >&6; }
1606 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1607 $as_echo_n "(cached) " >&6
1609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1610 /* end confdefs.h. */
1614 if ac_fn_c_try_compile "$LINENO"; then :
1619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1623 $as_echo "$ac_res" >&6; }
1624 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1626 } # ac_fn_c_check_header_compile
1628 # ac_fn_c_try_cpp LINENO
1629 # ----------------------
1630 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_cpp conftest.$ac_ext"
1636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1637 *) ac_try_echo
=$ac_try;;
1639 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1643 if test -s conftest.err
; then
1644 grep -v '^ *+' conftest.err
>conftest.er1
1645 cat conftest.er1
>&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } >/dev
/null
&& {
1650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.
$ac_ext >&5
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1665 # ac_fn_c_try_run LINENO
1666 # ----------------------
1667 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1668 # that executables *can* be run.
1671 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1672 if { { ac_try
="$ac_link"
1674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_link") 2>&5
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1683 { { case "(($ac_try" in
1684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1685 *) ac_try_echo
=$ac_try;;
1687 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_try") 2>&5
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; }; }; then :
1695 $as_echo "$as_me: program exited with status $ac_status" >&5
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.
$ac_ext >&5
1699 ac_retval
=$ac_status
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1707 # ac_fn_c_check_func LINENO FUNC VAR
1708 # ----------------------------------
1709 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1710 ac_fn_c_check_func
()
1712 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1716 $as_echo_n "(cached) " >&6
1718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1720 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1722 #define $2 innocuous_$2
1724 /* System header to define __stub macros and hopefully few prototypes,
1725 which can conflict with char $2 (); below.
1726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1727 <limits.h> exists even on freestanding compilers. */
1730 # include <limits.h>
1732 # include <assert.h>
1737 /* Override any GCC internal prototype to avoid an error.
1738 Use char because int might match the return type of a GCC
1739 builtin and then its argument prototype would still apply. */
1744 /* The GNU C library defines this for functions which it implements
1745 to always fail with ENOSYS. Some functions are actually named
1746 something starting with __ and the normal name is an alias. */
1747 #if defined __stub_$2 || defined __stub___$2
1759 if ac_fn_c_try_link
"$LINENO"; then :
1764 rm -f core conftest.err conftest.
$ac_objext \
1765 conftest
$ac_exeext conftest.
$ac_ext
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1772 } # ac_fn_c_check_func
1774 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1775 # -------------------------------------------
1776 # Tests whether TYPE exists after having included INCLUDES, setting cache
1777 # variable VAR accordingly.
1778 ac_fn_c_check_type
()
1780 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1784 $as_echo_n "(cached) " >&6
1787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1799 if ac_fn_c_try_compile
"$LINENO"; then :
1800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1812 if ac_fn_c_try_compile
"$LINENO"; then :
1817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1826 } # ac_fn_c_check_type
1828 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1829 # --------------------------------------------
1830 # Tries to find the compile-time value of EXPR in a program that includes
1831 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1833 ac_fn_c_compute_int
()
1835 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1836 if test "$cross_compiling" = yes; then
1837 # Depending upon the size, compute the lo and hi bounds.
1838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1844 static int test_array [1 - 2 * !(($2) >= 0)];
1851 if ac_fn_c_try_compile
"$LINENO"; then :
1854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1860 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1867 if ac_fn_c_try_compile
"$LINENO"; then :
1868 ac_hi
=$ac_mid; break
1870 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1871 if test $ac_lo -le $ac_mid; then
1875 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1886 static int test_array [1 - 2 * !(($2) < 0)];
1893 if ac_fn_c_try_compile
"$LINENO"; then :
1896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1902 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1909 if ac_fn_c_try_compile
"$LINENO"; then :
1910 ac_lo
=$ac_mid; break
1912 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1913 if test $ac_mid -le $ac_hi; then
1917 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
1919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1927 # Binary search between lo and hi bounds.
1928 while test "x$ac_lo" != "x$ac_hi"; do
1929 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
1930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1936 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1943 if ac_fn_c_try_compile
"$LINENO"; then :
1946 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
1948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1951 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
1955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1958 static long int longval () { return $2; }
1959 static unsigned long int ulongval () { return $2; }
1966 FILE *f = fopen ("conftest.val", "w");
1971 long int i = longval ();
1974 fprintf (f, "%ld", i);
1978 unsigned long int i = ulongval ();
1981 fprintf (f, "%lu", i);
1983 /* Do not output a trailing newline, as this causes \r\n confusion
1984 on some platforms. */
1985 return ferror (f) || fclose (f) != 0;
1991 if ac_fn_c_try_run
"$LINENO"; then :
1992 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
1996 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
1997 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2004 } # ac_fn_c_compute_int
2006 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2007 # -------------------------------------------------------
2008 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2009 # the include files in INCLUDES and setting the cache variable VAR
2011 ac_fn_c_check_header_mongrel
()
2013 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2014 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018 $as_echo_n "(cached) " >&6
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2024 # Is the header compilable?
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2026 $as_echo_n "checking $2 usability... " >&6; }
2027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2032 if ac_fn_c_try_compile
"$LINENO"; then :
2033 ac_header_compiler
=yes
2035 ac_header_compiler
=no
2037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2039 $as_echo "$ac_header_compiler" >&6; }
2041 # Is the header present?
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2043 $as_echo_n "checking $2 presence... " >&6; }
2044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2048 if ac_fn_c_try_cpp
"$LINENO"; then :
2049 ac_header_preproc
=yes
2051 ac_header_preproc
=no
2053 rm -f conftest.err conftest.
$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2055 $as_echo "$ac_header_preproc" >&6; }
2057 # So? What about this header?
2058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2061 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2063 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2067 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2069 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2071 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2073 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2075 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2081 $as_echo_n "(cached) " >&6
2083 eval "$3=\$ac_header_compiler"
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2089 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2091 } # ac_fn_c_check_header_mongrel
2092 cat >config.log
<<_ACEOF
2093 This file contains any messages produced by compilers while
2094 running configure, to aid debugging if configure makes a mistake.
2096 It was created by GNU Atomic Library $as_me 1.0, which was
2097 generated by GNU Autoconf 2.64. Invocation command line was
2109 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2110 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2111 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2112 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2113 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2115 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2116 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2118 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2119 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2120 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2121 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2122 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2123 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2124 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2132 test -z "$as_dir" && as_dir
=.
2133 $as_echo "PATH: $as_dir"
2149 # Keep a trace of the command line.
2150 # Strip out --no-create and --no-recursion so they do not pile up.
2151 # Strip out --silent because we don't want to record it for future runs.
2152 # Also quote any args containing shell meta-characters.
2153 # Make two passes to allow for proper duplicate-argument suppression.
2157 ac_must_keep_next
=false
2163 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2164 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2165 |
-silent |
--silent |
--silen |
--sile |
--sil)
2168 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2171 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2173 as_fn_append ac_configure_args1
" '$ac_arg'"
2174 if test $ac_must_keep_next = true
; then
2175 ac_must_keep_next
=false
# Got value, back to normal.
2178 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2179 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2180 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2181 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2182 case "$ac_configure_args0 " in
2183 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2186 -* ) ac_must_keep_next
=true
;;
2189 as_fn_append ac_configure_args
" '$ac_arg'"
2194 { ac_configure_args0
=; unset ac_configure_args0
;}
2195 { ac_configure_args1
=; unset ac_configure_args1
;}
2197 # When interrupted or exit'd, cleanup temporary files, and complete
2198 # config.log. We remove comments because anyway the quotes in there
2199 # would cause problems or look ugly.
2200 # WARNING: Use '\'' to represent an apostrophe within the trap.
2201 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2202 trap 'exit_status=$?
2203 # Save into config.log some information that might help in debugging.
2208 ## ---------------- ##
2209 ## Cache variables. ##
2210 ## ---------------- ##
2213 # The following way of writing the cache mishandles newlines in values,
2215 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2216 eval ac_val=\$$ac_var
2220 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2221 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2224 _ | IFS | as_nl) ;; #(
2225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2226 *) { eval $ac_var=; unset $ac_var;} ;;
2231 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2232 *${as_nl}ac_space=\ *)
2234 "s/'\''/'\''\\\\'\'''\''/g;
2235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2246 ## ----------------- ##
2247 ## Output variables. ##
2248 ## ----------------- ##
2251 for ac_var in $ac_subst_vars
2253 eval ac_val=\$$ac_var
2255 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257 $as_echo "$ac_var='\''$ac_val'\''"
2261 if test -n "$ac_subst_files"; then
2263 ## ------------------- ##
2264 ## File substitutions. ##
2265 ## ------------------- ##
2268 for ac_var
in $ac_subst_files
2270 eval ac_val
=\$
$ac_var
2272 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2274 $as_echo "$ac_var='\''$ac_val'\''"
2279 if test -s confdefs.h; then
2289 test "$ac_signal" != 0 &&
2290 $as_echo "$as_me: caught signal $ac_signal"
2291 $as_echo "$as_me: exit $exit_status"
2293 rm -f core *.core core.conftest.* &&
2294 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2297 for ac_signal
in 1 2 13 15; do
2298 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2302 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2303 rm -f -r conftest
* confdefs.h
2305 $as_echo "/* confdefs.h */" > confdefs.h
2307 # Predefined preprocessor variables.
2309 cat >>confdefs.h
<<_ACEOF
2310 #define PACKAGE_NAME "$PACKAGE_NAME"
2313 cat >>confdefs.h
<<_ACEOF
2314 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2317 cat >>confdefs.h
<<_ACEOF
2318 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2321 cat >>confdefs.h
<<_ACEOF
2322 #define PACKAGE_STRING "$PACKAGE_STRING"
2325 cat >>confdefs.h
<<_ACEOF
2326 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2329 cat >>confdefs.h
<<_ACEOF
2330 #define PACKAGE_URL "$PACKAGE_URL"
2334 # Let the site file select an alternate cache file if it wants to.
2335 # Prefer an explicitly selected file to automatically selected ones.
2338 if test -n "$CONFIG_SITE"; then
2339 ac_site_file1
=$CONFIG_SITE
2340 elif test "x$prefix" != xNONE
; then
2341 ac_site_file1
=$prefix/share
/config.site
2342 ac_site_file2
=$prefix/etc
/config.site
2344 ac_site_file1
=$ac_default_prefix/share
/config.site
2345 ac_site_file2
=$ac_default_prefix/etc
/config.site
2347 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2349 test "x$ac_site_file" = xNONE
&& continue
2350 if test -r "$ac_site_file"; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2352 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2353 sed 's/^/| /' "$ac_site_file" >&5
2358 if test -r "$cache_file"; then
2359 # Some versions of bash will fail to source /dev/null (special
2360 # files actually), so we avoid doing that.
2361 if test -f "$cache_file"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2363 $as_echo "$as_me: loading cache $cache_file" >&6;}
2365 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2366 *) .
"./$cache_file";;
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2371 $as_echo "$as_me: creating cache $cache_file" >&6;}
2375 # Check that the precious variables saved in the cache have kept the same
2377 ac_cache_corrupted
=false
2378 for ac_var
in $ac_precious_vars; do
2379 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2380 eval ac_new_set
=\
$ac_env_${ac_var}_set
2381 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2382 eval ac_new_val
=\
$ac_env_${ac_var}_value
2383 case $ac_old_set,$ac_new_set in
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2386 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2387 ac_cache_corrupted
=: ;;
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2390 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2391 ac_cache_corrupted
=: ;;
2394 if test "x$ac_old_val" != "x$ac_new_val"; then
2395 # differences in whitespace do not lead to failure.
2396 ac_old_val_w
=`echo x $ac_old_val`
2397 ac_new_val_w
=`echo x $ac_new_val`
2398 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2400 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2401 ac_cache_corrupted
=:
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2404 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2405 eval $ac_var=\
$ac_old_val
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2408 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2410 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2413 # Pass precious variables to config.status.
2414 if test "$ac_new_set" = set; then
2416 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2417 *) ac_arg
=$ac_var=$ac_new_val ;;
2419 case " $ac_configure_args " in
2420 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2421 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2425 if $ac_cache_corrupted; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2429 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2430 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2432 ## -------------------- ##
2433 ## Main body of script. ##
2434 ## -------------------- ##
2437 ac_cpp
='$CPP $CPPFLAGS'
2438 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2446 ac_config_headers
="$ac_config_headers auto-config.h"
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2454 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2455 # Check whether --enable-version-specific-runtime-libs was given.
2456 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2457 enableval
=$enable_version_specific_runtime_libs;
2458 case "$enableval" in
2460 *) as_fn_error
"Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2464 enable_version_specific_runtime_libs
=no
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2469 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2471 # We would like our source tree to be readonly. However when releases or
2472 # pre-releases are generated, the flex/bison generated files as well as the
2473 # various formats of manuals need to be included along with the rest of the
2474 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2477 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2478 # Check whether --enable-generated-files-in-srcdir was given.
2479 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2480 enableval
=$enable_generated_files_in_srcdir;
2481 case "$enableval" in
2483 *) as_fn_error
"Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2487 enable_generated_files_in_srcdir
=no
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2492 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2493 if test "$enable_generated_files_in_srcdir" = yes; then
2505 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2507 # You will slowly go insane if you do not grok the following fact: when
2508 # building this library, the top-level /target/ becomes the library's /host/.
2510 # configure then causes --target to default to --host, exactly like any
2511 # other package using autoconf. Therefore, 'target' and 'host' will
2512 # always be the same. This makes sense both for native and cross compilers
2513 # just think about it for a little while. :-)
2515 # Also, if this library is being configured as part of a cross compiler, the
2516 # top-level configure script will pass the "real" host as $with_cross_host.
2518 # Do not delete or change the following two lines. For why, see
2519 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2521 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2522 for ac_t
in install-sh
install.sh shtool
; do
2523 if test -f "$ac_dir/$ac_t"; then
2525 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2530 if test -z "$ac_aux_dir"; then
2531 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2534 # These three variables are undocumented and unsupported,
2535 # and are intended to be withdrawn in a future Autoconf release.
2536 # They can cause serious problems if a builder's source tree is in a directory
2537 # whose full name contains unusual characters.
2538 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2539 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2540 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2543 # Make sure we can run config.sub.
2544 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2545 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2548 $as_echo_n "checking build system type... " >&6; }
2549 if test "${ac_cv_build+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2552 ac_build_alias
=$build_alias
2553 test "x$ac_build_alias" = x
&&
2554 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2555 test "x$ac_build_alias" = x
&&
2556 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
2557 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2558 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2562 $as_echo "$ac_cv_build" >&6; }
2563 case $ac_cv_build in
2565 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
2568 ac_save_IFS
=$IFS; IFS
='-'
2574 # Remember, the first character of IFS is used to create $*,
2575 # except with old shells:
2578 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2582 $as_echo_n "checking host system type... " >&6; }
2583 if test "${ac_cv_host+set}" = set; then :
2584 $as_echo_n "(cached) " >&6
2586 if test "x$host_alias" = x
; then
2587 ac_cv_host
=$ac_cv_build
2589 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2590 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2595 $as_echo "$ac_cv_host" >&6; }
2598 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
2601 ac_save_IFS
=$IFS; IFS
='-'
2607 # Remember, the first character of IFS is used to create $*,
2608 # except with old shells:
2611 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2615 $as_echo_n "checking target system type... " >&6; }
2616 if test "${ac_cv_target+set}" = set; then :
2617 $as_echo_n "(cached) " >&6
2619 if test "x$target_alias" = x
; then
2620 ac_cv_target
=$ac_cv_host
2622 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2623 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2628 $as_echo "$ac_cv_target" >&6; }
2629 case $ac_cv_target in
2631 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
2633 target
=$ac_cv_target
2634 ac_save_IFS
=$IFS; IFS
='-'
2640 # Remember, the first character of IFS is used to create $*,
2641 # except with old shells:
2644 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2647 # The aliases save the names the user supplied, while $host etc.
2648 # will get canonicalized.
2649 test -n "$target_alias" &&
2650 test "$program_prefix$program_suffix$program_transform_name" = \
2652 program_prefix
=${target_alias}-
2654 target_alias
=${target_alias-$host_alias}
2656 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2657 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2658 # 1.9.0: minimum required version
2659 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2660 # of other PACKAGE_* variables will, however, and there's nothing
2661 # we can do about that; they come from AC_INIT).
2662 # no-dist: we don't want 'dist' and related rules.
2663 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2664 # file in the top srcdir, etc, etc), so stop complaining.
2665 # -Wall: turns on all automake warnings...
2666 # -Wno-portability: ...except this one, since GNU make is required.
2667 # -Wno-override: ... and this one, since we do want this in testsuite.
2668 am__api_version
='1.11'
2670 # Find a good install program. We prefer a C program (faster),
2671 # so one script is as good as another. But avoid the broken or
2672 # incompatible versions:
2673 # SysV /etc/install, /usr/sbin/install
2674 # SunOS /usr/etc/install
2675 # IRIX /sbin/install
2677 # AmigaOS /C/install, which installs bootblocks on floppy discs
2678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2681 # OS/2's system install, which has a completely different semantic
2682 # ./install, which can be erroneously created by make from ./install.sh.
2683 # Reject install programs that cannot install multiple files.
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2685 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2686 if test -z "$INSTALL"; then
2687 if test "${ac_cv_path_install+set}" = set; then :
2688 $as_echo_n "(cached) " >&6
2690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir
=.
2695 # Account for people who put trailing slashes in PATH elements.
2696 case $as_dir/ in #((
2697 .
/ | .
// |
/[cC
]/* | \
2698 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2699 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2702 # OSF1 and SCO ODT 3.0 have their own names for install.
2703 # Don't use installbsd from OSF since it installs stuff as root
2705 for ac_prog
in ginstall scoinst
install; do
2706 for ac_exec_ext
in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2708 if test $ac_prog = install &&
2709 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2710 # AIX install. It has an incompatible calling convention.
2712 elif test $ac_prog = install &&
2713 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2714 # program-specific install script used by HP pwplus--don't use.
2717 rm -rf conftest.one conftest.two conftest.dir
2718 echo one
> conftest.one
2719 echo two
> conftest.two
2721 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2722 test -s conftest.one
&& test -s conftest.two
&&
2723 test -s conftest.dir
/conftest.one
&&
2724 test -s conftest.dir
/conftest.two
2726 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2739 rm -rf conftest.one conftest.two conftest.dir
2742 if test "${ac_cv_path_install+set}" = set; then
2743 INSTALL
=$ac_cv_path_install
2745 # As a last resort, use the slow shell script. Don't cache a
2746 # value for INSTALL within a source directory, because that will
2747 # break other packages using the cache if that directory is
2748 # removed, or if the value is a relative name.
2749 INSTALL
=$ac_install_sh
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2753 $as_echo "$INSTALL" >&6; }
2755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2756 # It thinks the first close brace ends the variable substitution.
2757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2761 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2764 $as_echo_n "checking whether build environment is sane... " >&6; }
2767 echo timestamp
> conftest.
file
2768 # Reject unsafe characters in $srcdir or the absolute working directory
2769 # name. Accept space and tab only in the latter.
2773 *[\\\"\
#\$\&\'\`$am_lf]*)
2774 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2777 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2778 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2781 # Do `set' in a subshell so we don't clobber the current shell's
2782 # arguments. Must try -L first in case configure is actually a
2783 # symlink; some systems play weird games with the mod time of symlinks
2784 # (eg FreeBSD returns the mod time of the symlink's containing
2787 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2788 if test "$*" = "X"; then
2790 set X
`ls -t "$srcdir/configure" conftest.file`
2793 if test "$*" != "X $srcdir/configure conftest.file" \
2794 && test "$*" != "X conftest.file $srcdir/configure"; then
2796 # If neither matched, then we have a broken ls. This can happen
2797 # if, for instance, CONFIG_SHELL is bash and it inherits a
2798 # broken ls alias from the environment. This has actually
2799 # happened. Such a system could not be considered "sane".
2800 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2801 alias in your environment" "$LINENO" 5
2804 test "$2" = conftest.
file
2810 as_fn_error
"newly created file is older than distributed files!
2811 Check your system clock" "$LINENO" 5
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2814 $as_echo "yes" >&6; }
2815 test "$program_prefix" != NONE
&&
2816 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2817 # Use a double $ so make ignores it.
2818 test "$program_suffix" != NONE
&&
2819 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2820 # Double any \ or $.
2821 # By default was `s,x,x', remove it if useless.
2822 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2823 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2825 # expand $ac_aux_dir to an absolute path
2826 am_aux_dir
=`cd $ac_aux_dir && pwd`
2828 if test x
"${MISSING+set}" != xset
; then
2831 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2833 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2836 # Use eval to expand $SHELL
2837 if eval "$MISSING --run true"; then
2838 am_missing_run
="$MISSING --run "
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2842 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2845 if test x
"${install_sh}" != xset
; then
2848 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2850 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2854 # Installed binaries are usually stripped using `strip' when the user
2855 # run `make install-strip'. However `strip' might not be the right
2856 # tool to use in cross-compilation environments, therefore Automake
2857 # will honor the `STRIP' environment variable to overrule this program.
2858 if test "$cross_compiling" != no
; then
2859 if test -n "$ac_tool_prefix"; then
2860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2861 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2863 $as_echo_n "checking for $ac_word... " >&6; }
2864 if test "${ac_cv_prog_STRIP+set}" = set; then :
2865 $as_echo_n "(cached) " >&6
2867 if test -n "$STRIP"; then
2868 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2874 test -z "$as_dir" && as_dir
=.
2875 for ac_exec_ext
in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 STRIP
=$ac_cv_prog_STRIP
2888 if test -n "$STRIP"; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2890 $as_echo "$STRIP" >&6; }
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2898 if test -z "$ac_cv_prog_STRIP"; then
2900 # Extract the first word of "strip", so it can be a program name with args.
2901 set dummy strip
; ac_word
=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2905 $as_echo_n "(cached) " >&6
2907 if test -n "$ac_ct_STRIP"; then
2908 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2914 test -z "$as_dir" && as_dir
=.
2915 for ac_exec_ext
in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_ac_ct_STRIP
="strip"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2928 if test -n "$ac_ct_STRIP"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2930 $as_echo "$ac_ct_STRIP" >&6; }
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2936 if test "x$ac_ct_STRIP" = x
; then
2939 case $cross_compiling:$ac_tool_warned in
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2943 ac_tool_warned
=yes ;;
2948 STRIP
="$ac_cv_prog_STRIP"
2952 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2955 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2956 if test -z "$MKDIR_P"; then
2957 if test "${ac_cv_path_mkdir+set}" = set; then :
2958 $as_echo_n "(cached) " >&6
2960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2961 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2964 test -z "$as_dir" && as_dir
=.
2965 for ac_prog
in mkdir gmkdir
; do
2966 for ac_exec_ext
in '' $ac_executable_extensions; do
2967 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2968 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2969 'mkdir (GNU coreutils) '* | \
2970 'mkdir (coreutils) '* | \
2971 'mkdir (fileutils) '4.1*)
2972 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2982 if test "${ac_cv_path_mkdir+set}" = set; then
2983 MKDIR_P
="$ac_cv_path_mkdir -p"
2985 # As a last resort, use the slow shell script. Don't cache a
2986 # value for MKDIR_P within a source directory, because that will
2987 # break other packages using the cache if that directory is
2988 # removed, or if the value is a relative name.
2989 test -d .
/--version && rmdir .
/--version
2990 MKDIR_P
="$ac_install_sh -d"
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2994 $as_echo "$MKDIR_P" >&6; }
2998 [\\/$
]* | ?
:[\\/]*) ;;
2999 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3002 for ac_prog
in gawk mawk nawk
awk
3004 # Extract the first word of "$ac_prog", so it can be a program name with args.
3005 set dummy
$ac_prog; ac_word
=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if test "${ac_cv_prog_AWK+set}" = set; then :
3009 $as_echo_n "(cached) " >&6
3011 if test -n "$AWK"; then
3012 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3018 test -z "$as_dir" && as_dir
=.
3019 for ac_exec_ext
in '' $ac_executable_extensions; do
3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021 ac_cv_prog_AWK
="$ac_prog"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 if test -n "$AWK"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3034 $as_echo "$AWK" >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3041 test -n "$AWK" && break
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3045 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3047 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3048 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3049 $as_echo_n "(cached) " >&6
3051 cat >conftest.
make <<\_ACEOF
3054 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3056 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3057 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3059 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3061 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3065 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3067 $as_echo "yes" >&6; }
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3072 SET_MAKE
="MAKE=${MAKE-make}"
3075 rm -rf .tst
2>/dev
/null
3076 mkdir .tst
2>/dev
/null
3077 if test -d .tst
; then
3082 rmdir .tst
2>/dev
/null
3084 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3085 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3086 # is not polluted with repeated "-I."
3087 am__isrc
=' -I$(srcdir)'
3088 # test to see if srcdir already configured
3089 if test -f $srcdir/config.status
; then
3090 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3094 # test whether we have cygpath
3095 if test -z "$CYGPATH_W"; then
3096 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3097 CYGPATH_W
='cygpath -w'
3104 # Define the identity of the package.
3109 cat >>confdefs.h
<<_ACEOF
3110 #define PACKAGE "$PACKAGE"
3114 cat >>confdefs.h
<<_ACEOF
3115 #define VERSION "$VERSION"
3118 # Some tools Automake needs.
3120 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3123 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3126 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3129 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3132 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3134 # We need awk for the "check" target. The system "awk" is bad on
3136 # Always define AMTAR for backward compatibility. Yes, it's still used
3137 # in the wild :-( We should find a proper way to deprecate it ...
3140 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3146 # Default to --enable-multilib
3147 # Check whether --enable-multilib was given.
3148 if test "${enable_multilib+set}" = set; then :
3149 enableval
=$enable_multilib; case "$enableval" in
3150 yes) multilib
=yes ;;
3152 *) as_fn_error
"bad value $enableval for multilib option" "$LINENO" 5 ;;
3159 # We may get other options which we leave undocumented:
3160 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3161 # See config-ml.in if you want the gory details.
3163 if test "$srcdir" = "."; then
3164 if test "$with_target_subdir" != "."; then
3165 multi_basedir
="$srcdir/$with_multisrctop../.."
3167 multi_basedir
="$srcdir/$with_multisrctop.."
3170 multi_basedir
="$srcdir/.."
3174 # Even if the default multilib is not a cross compilation,
3175 # it may be that some of the other multilibs are.
3176 if test $cross_compiling = no
&& test $multilib = yes \
3177 && test "x${with_multisubdir}" != x
; then
3178 cross_compiling
=maybe
3181 ac_config_commands
="$ac_config_commands default-1"
3184 # Calculate toolexeclibdir
3185 # Also toolexecdir, though it's only used in toolexeclibdir
3186 case ${enable_version_specific_runtime_libs} in
3188 # Need the gcc compiler version to know where to install libraries
3189 # and header files if --enable-version-specific-runtime-libs option
3191 toolexecdir
='$(libdir)/gcc/$(target_alias)'
3192 toolexeclibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3195 if test -n "$with_cross_host" &&
3196 test x
"$with_cross_host" != x
"no"; then
3197 # Install a library built with a cross compiler in tooldir, not libdir.
3198 toolexecdir
='$(exec_prefix)/$(target_alias)'
3199 toolexeclibdir
='$(toolexecdir)/lib'
3201 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3202 toolexeclibdir
='$(libdir)'
3204 multi_os_directory
=`$CC -print-multi-os-directory`
3205 case $multi_os_directory in
3206 .
) ;; # Avoid trailing /.
3207 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3214 # Check the compiler.
3215 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3216 # We must force CC to /not/ be precious variables; otherwise
3217 # the wrong, non-multilib-adjusted value will be used in multilibs.
3218 # As a side effect, we have to subst CFLAGS ourselves.
3223 ac_cpp
='$CPP $CPPFLAGS'
3224 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3227 if test -n "$ac_tool_prefix"; then
3228 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3229 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231 $as_echo_n "checking for $ac_word... " >&6; }
3232 if test "${ac_cv_prog_CC+set}" = set; then :
3233 $as_echo_n "(cached) " >&6
3235 if test -n "$CC"; then
3236 ac_cv_prog_CC
="$CC" # Let the user override the test.
3238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3242 test -z "$as_dir" && as_dir
=.
3243 for ac_exec_ext
in '' $ac_executable_extensions; do
3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 if test -n "$CC"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258 $as_echo "$CC" >&6; }
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3266 if test -z "$ac_cv_prog_CC"; then
3268 # Extract the first word of "gcc", so it can be a program name with args.
3269 set dummy gcc
; ac_word
=$2
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3273 $as_echo_n "(cached) " >&6
3275 if test -n "$ac_ct_CC"; then
3276 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3282 test -z "$as_dir" && as_dir
=.
3283 for ac_exec_ext
in '' $ac_executable_extensions; do
3284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285 ac_cv_prog_ac_ct_CC
="gcc"
3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3296 if test -n "$ac_ct_CC"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3298 $as_echo "$ac_ct_CC" >&6; }
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3304 if test "x$ac_ct_CC" = x
; then
3307 case $cross_compiling:$ac_tool_warned in
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3311 ac_tool_warned
=yes ;;
3319 if test -z "$CC"; then
3320 if test -n "$ac_tool_prefix"; then
3321 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3322 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324 $as_echo_n "checking for $ac_word... " >&6; }
3325 if test "${ac_cv_prog_CC+set}" = set; then :
3326 $as_echo_n "(cached) " >&6
3328 if test -n "$CC"; then
3329 ac_cv_prog_CC
="$CC" # Let the user override the test.
3331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3335 test -z "$as_dir" && as_dir
=.
3336 for ac_exec_ext
in '' $ac_executable_extensions; do
3337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 if test -n "$CC"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351 $as_echo "$CC" >&6; }
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3360 if test -z "$CC"; then
3361 # Extract the first word of "cc", so it can be a program name with args.
3362 set dummy cc
; ac_word
=$2
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364 $as_echo_n "checking for $ac_word... " >&6; }
3365 if test "${ac_cv_prog_CC+set}" = set; then :
3366 $as_echo_n "(cached) " >&6
3368 if test -n "$CC"; then
3369 ac_cv_prog_CC
="$CC" # Let the user override the test.
3372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3376 test -z "$as_dir" && as_dir
=.
3377 for ac_exec_ext
in '' $ac_executable_extensions; do
3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3380 ac_prog_rejected
=yes
3384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 if test $ac_prog_rejected = yes; then
3392 # We found a bogon in the path, so make sure we never use it.
3393 set dummy
$ac_cv_prog_CC
3395 if test $# != 0; then
3396 # We chose a different compiler from the bogus one.
3397 # However, it has the same basename, so the bogon will be chosen
3398 # first if we set CC to just the basename; use the full file name.
3400 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3406 if test -n "$CC"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3408 $as_echo "$CC" >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3416 if test -z "$CC"; then
3417 if test -n "$ac_tool_prefix"; then
3418 for ac_prog
in cl.exe
3420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3421 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if test "${ac_cv_prog_CC+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC
="$CC" # Let the user override the test.
3430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir
=.
3435 for ac_exec_ext
in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 if test -n "$CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 $as_echo "$CC" >&6; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3457 test -n "$CC" && break
3460 if test -z "$CC"; then
3462 for ac_prog
in cl.exe
3464 # Extract the first word of "$ac_prog", so it can be a program name with args.
3465 set dummy
$ac_prog; ac_word
=$2
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467 $as_echo_n "checking for $ac_word... " >&6; }
3468 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3469 $as_echo_n "(cached) " >&6
3471 if test -n "$ac_ct_CC"; then
3472 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3478 test -z "$as_dir" && as_dir
=.
3479 for ac_exec_ext
in '' $ac_executable_extensions; do
3480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3481 ac_cv_prog_ac_ct_CC
="$ac_prog"
3482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3492 if test -n "$ac_ct_CC"; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3494 $as_echo "$ac_ct_CC" >&6; }
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 $as_echo "no" >&6; }
3501 test -n "$ac_ct_CC" && break
3504 if test "x$ac_ct_CC" = x
; then
3507 case $cross_compiling:$ac_tool_warned in
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3511 ac_tool_warned
=yes ;;
3520 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522 as_fn_error
"no acceptable C compiler found in \$PATH
3523 See \`config.log' for more details." "$LINENO" 5; }
3525 # Provide some information about the compiler.
3526 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3529 for ac_option
in --version -v -V -qversion; do
3530 { { ac_try
="$ac_compiler $ac_option >&5"
3532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536 $as_echo "$ac_try_echo"; } >&5
3537 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3539 if test -s conftest.err; then
3541 ... rest of stderr output deleted ...
3542 10q' conftest.err >conftest.er1
3543 cat conftest.er1 >&5
3544 rm -f conftest.er1 conftest.err
3546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547 test $ac_status = 0; }
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3561 ac_clean_files_save=$ac_clean_files
3562 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3563 # Try to create an executable without -o first, disregard a.out.
3564 # It will help us diagnose broken compilers, and finding out an intuition
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3567 $as_echo_n "checking for C compiler default output file name... " >&6; }
3568 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3570 # The possible output files:
3571 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3574 for ac_file in $ac_files
3577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3578 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3583 if { { ac_try="$ac_link_default"
3585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3586 *) ac_try_echo
=$ac_try;;
3588 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589 $as_echo "$ac_try_echo"; } >&5
3590 (eval "$ac_link_default") 2>&5
3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593 test $ac_status = 0; }; then :
3594 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3595 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3596 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3597 # so that the user can short-circuit this test for compilers unknown to
3599 for ac_file
in $ac_files ''
3601 test -f "$ac_file" ||
continue
3603 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3606 # We found the default executable, but exeext='' is most
3610 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3612 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3614 # We set ac_cv_exeext here because the later test for it is not
3615 # safe: cross compilers may not add the suffix if given an `-o'
3616 # argument, so we may need to know it at that point already.
3617 # Even if this section looks crufty: it has the advantage of
3624 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3630 $as_echo "$ac_file" >&6; }
3631 if test -z "$ac_file"; then :
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.
$ac_ext >&5
3635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 { as_fn_set_status
77
3638 as_fn_error
"C compiler cannot create executables
3639 See \`config.log' for more details." "$LINENO" 5; }; }
3641 ac_exeext
=$ac_cv_exeext
3643 # Check that the compiler produces executables we can run. If not, either
3644 # the compiler is broken, or we cross compile.
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3646 $as_echo_n "checking whether the C compiler works... " >&6; }
3647 # If not cross compiling, check that we can run a simple program.
3648 if test "$cross_compiling" != yes; then
3649 if { ac_try
='./$ac_file'
3650 { { case "(($ac_try" in
3651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3655 $as_echo "$ac_try_echo"; } >&5
3656 (eval "$ac_try") 2>&5
3658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3659 test $ac_status = 0; }; }; then
3662 if test "$cross_compiling" = maybe; then
3665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3667 as_fn_error "cannot run C compiled programs.
3668 If you meant to cross compile
, use \
`--host'.
3669 See \`config.log
' for more details." "$LINENO" 5; }
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3674 $as_echo "yes" >&6; }
3676 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3677 ac_clean_files=$ac_clean_files_save
3678 # Check that the compiler produces executables we can run. If not, either
3679 # the compiler is broken, or we cross compile.
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3681 $as_echo_n "checking whether we are cross compiling... " >&6; }
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3683 $as_echo "$cross_compiling" >&6; }
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3686 $as_echo_n "checking for suffix of executables... " >&6; }
3687 if { { ac_try="$ac_link"
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 $as_echo "$ac_try_echo"; } >&5
3694 (eval "$ac_link") 2>&5
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }; then :
3698 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3699 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3700 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3702 for ac_file
in conftest.exe conftest conftest.
*; do
3703 test -f "$ac_file" ||
continue
3705 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3706 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3715 See \`config.log' for more details." "$LINENO" 5; }
3717 rm -f conftest
$ac_cv_exeext
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3719 $as_echo "$ac_cv_exeext" >&6; }
3721 rm -f conftest.
$ac_ext
3722 EXEEXT
=$ac_cv_exeext
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3725 $as_echo_n "checking for suffix of object files... " >&6; }
3726 if test "${ac_cv_objext+set}" = set; then :
3727 $as_echo_n "(cached) " >&6
3729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3740 rm -f conftest.o conftest.obj
3741 if { { ac_try
="$ac_compile"
3743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747 $as_echo "$ac_try_echo"; } >&5
3748 (eval "$ac_compile") 2>&5
3750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751 test $ac_status = 0; }; then :
3752 for ac_file in conftest.o conftest.obj conftest.*; do
3753 test -f "$ac_file" || continue;
3755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3756 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3761 $as_echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3766 as_fn_error "cannot compute suffix of object files
: cannot compile
3767 See \
`config.log' for more details." "$LINENO" 5; }
3769 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3772 $as_echo "$ac_cv_objext" >&6; }
3773 OBJEXT=$ac_cv_objext
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3776 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3777 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3778 $as_echo_n "(cached) " >&6
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3794 if ac_fn_c_try_compile "$LINENO"; then :
3799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3800 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3804 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3805 if test $ac_compiler_gnu = yes; then
3810 ac_test_CFLAGS=${CFLAGS+set}
3811 ac_save_CFLAGS=$CFLAGS
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3813 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3814 if test "${ac_cv_prog_cc_g+set}" = set; then :
3815 $as_echo_n "(cached) " >&6
3817 ac_save_c_werror_flag=$ac_c_werror_flag
3818 ac_c_werror_flag=yes
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3832 if ac_fn_c_try_compile "$LINENO"; then :
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3847 if ac_fn_c_try_compile "$LINENO"; then :
3850 ac_c_werror_flag=$ac_save_c_werror_flag
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3863 if ac_fn_c_try_compile "$LINENO"; then :
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 ac_c_werror_flag=$ac_save_c_werror_flag
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3874 $as_echo "$ac_cv_prog_cc_g" >&6; }
3875 if test "$ac_test_CFLAGS" = set; then
3876 CFLAGS=$ac_save_CFLAGS
3877 elif test $ac_cv_prog_cc_g = yes; then
3878 if test "$GCC" = yes; then
3884 if test "$GCC" = yes; then
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3891 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3892 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3893 $as_echo_n "(cached) " >&6
3895 ac_cv_prog_cc_c89=no
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3901 #include <sys/types.h>
3902 #include <sys/stat.h>
3903 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3904 struct buf { int x; };
3905 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3906 static char *e (p, i)
3912 static char *f (char * (*g) (char **, int), char **p, ...)
3917 s = g (p, va_arg (v,int));
3922 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3923 function prototypes and stuff, but not '\xHH' hex character constants.
3924 These don't provoke an error unfortunately, instead are silently treated
3925 as 'x'. The following induces an error, until -std is added to get
3926 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3927 array size at least. It's necessary to write '\x00'==0 to get something
3928 that's true only with -std. */
3929 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3931 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3932 inside strings and character constants. */
3934 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3936 int test (int i, double x);
3937 struct s1 {int (*f) (int a);};
3938 struct s2 {int (*f) (double a);};
3939 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3945 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3950 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3951 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3953 CC="$ac_save_CC $ac_arg"
3954 if ac_fn_c_try_compile "$LINENO"; then :
3955 ac_cv_prog_cc_c89=$ac_arg
3957 rm -f core conftest.err conftest.$ac_objext
3958 test "x$ac_cv_prog_cc_c89" != "xno" && break
3960 rm -f conftest.$ac_ext
3965 case "x$ac_cv_prog_cc_c89" in
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3968 $as_echo "none needed" >&6; } ;;
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3971 $as_echo "unsupported" >&6; } ;;
3973 CC="$CC $ac_cv_prog_cc_c89"
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3975 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3977 if test "x$ac_cv_prog_cc_c89" != xno; then :
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986 DEPDIR="${am__leading_dot}deps"
3988 ac_config_commands="$ac_config_commands depfiles"
3991 am_make=${MAKE-make}
3992 cat > confinc << 'END'
3994 @echo this is the am__doit target
3997 # If we don't find an include directive, just comment out the code.
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3999 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4003 # First try GNU make style include.
4004 echo "include confinc" > confmf
4005 # Ignore all kinds of additional output from `make'.
4006 case `$am_make -s -f confmf 2> /dev/null` in #(
4007 *the\ am__doit\ target*)
4013 # Now try BSD make style include.
4014 if test "$am__include" = "#"; then
4015 echo '.include
"confinc"' > confmf
4016 case `$am_make -s -f confmf 2> /dev/null` in #(
4017 *the\ am__doit\ target*)
4018 am__include=.include
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4027 $as_echo "$_am_result" >&6; }
4028 rm -f confinc confmf
4030 # Check whether --enable-dependency-tracking was given.
4031 if test "${enable_dependency_tracking+set}" = set; then :
4032 enableval=$enable_dependency_tracking;
4035 if test "x$enable_dependency_tracking" != xno; then
4036 am_depcomp="$ac_aux_dir/depcomp"
4040 if test "x$enable_dependency_tracking" != xno
; then
4050 depcc
="$CC" am_compiler_list
=
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4053 $as_echo_n "checking dependency style of $depcc... " >&6; }
4054 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4055 $as_echo_n "(cached) " >&6
4057 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4058 # We make a subdir and do the tests there. Otherwise we can end up
4059 # making bogus files that we don't know about and never remove. For
4060 # instance it was reported that on HP-UX the gcc test will end up
4061 # making a dummy file named `D' -- because `-MD' means `put the output
4065 # Copy depcomp to subdir because otherwise we won't find it if we're
4066 # using a relative directory.
4067 cp "$am_depcomp" conftest.dir
4069 # We will build objects and dependencies in a subdirectory because
4070 # it helps to detect inapplicable dependency modes. For instance
4071 # both Tru64's cc and ICC support -MD to output dependencies as a
4072 # side effect of compilation, but ICC will put the dependencies in
4073 # the current directory while Tru64 will put them in the object
4077 am_cv_CC_dependencies_compiler_type
=none
4078 if test "$am_compiler_list" = ""; then
4079 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4082 case " $depcc " in #(
4083 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4086 for depmode
in $am_compiler_list; do
4087 # Setup a source with many dependencies, because some compilers
4088 # like to wrap large dependency lists on column 80 (with \), and
4089 # we should not choose a depcomp mode which is confused by this.
4091 # We need to recreate these files for each test, as the compiler may
4092 # overwrite some of them when testing with obscure command lines.
4093 # This happens at least with the AIX C compiler.
4095 for i
in 1 2 3 4 5 6; do
4096 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4097 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4098 # Solaris 8's {/usr,}/bin/sh.
4099 touch sub
/conftst
$i.h
4101 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4103 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4104 # mode. It turns out that the SunPro C++ compiler does not properly
4105 # handle `-M -o', and we need to detect this. Also, some Intel
4106 # versions had trouble with output in subdirs
4107 am__obj
=sub
/conftest.
${OBJEXT-o}
4108 am__minus_obj
="-o $am__obj"
4111 # This depmode causes a compiler race in universal mode.
4112 test "$am__universal" = false ||
continue
4115 # after this tag, mechanisms are not by side-effect, so they'll
4116 # only be used when explicitly requested
4117 if test "x$enable_dependency_tracking" = xyes
; then
4123 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4124 # This compiler won't grok `-c -o', but also, the minuso test has
4125 # not run yet. These depmodes are late enough in the game, and
4126 # so weak that their functioning should not be impacted.
4127 am__obj
=conftest.
${OBJEXT-o}
4132 if depmode
=$depmode \
4133 source=sub
/conftest.c object
=$am__obj \
4134 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4135 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4136 >/dev
/null
2>conftest.err
&&
4137 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4138 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4139 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4140 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4141 # icc doesn't choke on unknown options, it will just issue warnings
4142 # or remarks (even with -Werror). So we grep stderr for any message
4143 # that says an option was ignored or not supported.
4144 # When given -MP, icc 7.0 and 7.1 complain thusly:
4145 # icc: Command line warning: ignoring option '-M'; no argument required
4146 # The diagnosis changed in icc 8.0:
4147 # icc: Command line remark: option '-MP' not supported
4148 if (grep 'ignoring option' conftest.err ||
4149 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4150 am_cv_CC_dependencies_compiler_type
=$depmode
4159 am_cv_CC_dependencies_compiler_type
=none
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4164 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4165 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4168 test "x$enable_dependency_tracking" != xno \
4169 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4171 am__fastdepCC_FALSE
='#'
4173 am__fastdepCC_TRUE
='#'
4174 am__fastdepCC_FALSE
=
4178 # By default we simply use the C compiler to build assembly code.
4180 test "${CCAS+set}" = set || CCAS
=$CC
4181 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
4185 depcc
="$CCAS" am_compiler_list
=
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4188 $as_echo_n "checking dependency style of $depcc... " >&6; }
4189 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4192 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4193 # We make a subdir and do the tests there. Otherwise we can end up
4194 # making bogus files that we don't know about and never remove. For
4195 # instance it was reported that on HP-UX the gcc test will end up
4196 # making a dummy file named `D' -- because `-MD' means `put the output
4200 # Copy depcomp to subdir because otherwise we won't find it if we're
4201 # using a relative directory.
4202 cp "$am_depcomp" conftest.dir
4204 # We will build objects and dependencies in a subdirectory because
4205 # it helps to detect inapplicable dependency modes. For instance
4206 # both Tru64's cc and ICC support -MD to output dependencies as a
4207 # side effect of compilation, but ICC will put the dependencies in
4208 # the current directory while Tru64 will put them in the object
4212 am_cv_CCAS_dependencies_compiler_type
=none
4213 if test "$am_compiler_list" = ""; then
4214 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4219 for depmode
in $am_compiler_list; do
4220 # Setup a source with many dependencies, because some compilers
4221 # like to wrap large dependency lists on column 80 (with \), and
4222 # we should not choose a depcomp mode which is confused by this.
4224 # We need to recreate these files for each test, as the compiler may
4225 # overwrite some of them when testing with obscure command lines.
4226 # This happens at least with the AIX C compiler.
4228 for i
in 1 2 3 4 5 6; do
4229 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4230 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4231 # Solaris 8's {/usr,}/bin/sh.
4232 touch sub
/conftst
$i.h
4234 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4236 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4237 # mode. It turns out that the SunPro C++ compiler does not properly
4238 # handle `-M -o', and we need to detect this. Also, some Intel
4239 # versions had trouble with output in subdirs
4240 am__obj
=sub
/conftest.
${OBJEXT-o}
4241 am__minus_obj
="-o $am__obj"
4244 # This depmode causes a compiler race in universal mode.
4245 test "$am__universal" = false ||
continue
4248 # after this tag, mechanisms are not by side-effect, so they'll
4249 # only be used when explicitly requested
4250 if test "x$enable_dependency_tracking" = xyes
; then
4256 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4257 # This compiler won't grok `-c -o', but also, the minuso test has
4258 # not run yet. These depmodes are late enough in the game, and
4259 # so weak that their functioning should not be impacted.
4260 am__obj
=conftest.
${OBJEXT-o}
4265 if depmode
=$depmode \
4266 source=sub
/conftest.c object
=$am__obj \
4267 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4268 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4269 >/dev
/null
2>conftest.err
&&
4270 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4271 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4272 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4273 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4274 # icc doesn't choke on unknown options, it will just issue warnings
4275 # or remarks (even with -Werror). So we grep stderr for any message
4276 # that says an option was ignored or not supported.
4277 # When given -MP, icc 7.0 and 7.1 complain thusly:
4278 # icc: Command line warning: ignoring option '-M'; no argument required
4279 # The diagnosis changed in icc 8.0:
4280 # icc: Command line remark: option '-MP' not supported
4281 if (grep 'ignoring option' conftest.err ||
4282 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4283 am_cv_CCAS_dependencies_compiler_type
=$depmode
4292 am_cv_CCAS_dependencies_compiler_type
=none
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4297 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4298 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
4301 test "x$enable_dependency_tracking" != xno \
4302 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
4303 am__fastdepCCAS_TRUE
=
4304 am__fastdepCCAS_FALSE
='#'
4306 am__fastdepCCAS_TRUE
='#'
4307 am__fastdepCCAS_FALSE
=
4315 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4316 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4317 # in both places for now and restore CFLAGS at the end of config.
4318 save_CFLAGS
="$CFLAGS"
4320 # Find other programs we need.
4321 if test -n "$ac_tool_prefix"; then
4322 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4323 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if test "${ac_cv_prog_AR+set}" = set; then :
4327 $as_echo_n "(cached) " >&6
4329 if test -n "$AR"; then
4330 ac_cv_prog_AR
="$AR" # Let the user override the test.
4332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4336 test -z "$as_dir" && as_dir
=.
4337 for ac_exec_ext
in '' $ac_executable_extensions; do
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 if test -n "$AR"; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4352 $as_echo "$AR" >&6; }
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4360 if test -z "$ac_cv_prog_AR"; then
4362 # Extract the first word of "ar", so it can be a program name with args.
4363 set dummy
ar; ac_word
=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4369 if test -n "$ac_ct_AR"; then
4370 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4376 test -z "$as_dir" && as_dir
=.
4377 for ac_exec_ext
in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_ac_ct_AR
="ar"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4390 if test -n "$ac_ct_AR"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4392 $as_echo "$ac_ct_AR" >&6; }
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4398 if test "x$ac_ct_AR" = x
; then
4401 case $cross_compiling:$ac_tool_warned in
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned
=yes ;;
4413 if test -n "$ac_tool_prefix"; then
4414 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4415 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if test "${ac_cv_prog_NM+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4421 if test -n "$NM"; then
4422 ac_cv_prog_NM
="$NM" # Let the user override the test.
4424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir
=.
4429 for ac_exec_ext
in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_NM
="${ac_tool_prefix}nm"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 if test -n "$NM"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4444 $as_echo "$NM" >&6; }
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4452 if test -z "$ac_cv_prog_NM"; then
4454 # Extract the first word of "nm", so it can be a program name with args.
4455 set dummy nm
; ac_word
=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
4459 $as_echo_n "(cached) " >&6
4461 if test -n "$ac_ct_NM"; then
4462 ac_cv_prog_ac_ct_NM
="$ac_ct_NM" # Let the user override the test.
4464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4468 test -z "$as_dir" && as_dir
=.
4469 for ac_exec_ext
in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 ac_cv_prog_ac_ct_NM
="nm"
4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 ac_ct_NM
=$ac_cv_prog_ac_ct_NM
4482 if test -n "$ac_ct_NM"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4484 $as_echo "$ac_ct_NM" >&6; }
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4490 if test "x$ac_ct_NM" = x
; then
4493 case $cross_compiling:$ac_tool_warned in
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4497 ac_tool_warned
=yes ;;
4505 if test -n "$ac_tool_prefix"; then
4506 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4507 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509 $as_echo_n "checking for $ac_word... " >&6; }
4510 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4511 $as_echo_n "(cached) " >&6
4513 if test -n "$RANLIB"; then
4514 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4520 test -z "$as_dir" && as_dir
=.
4521 for ac_exec_ext
in '' $ac_executable_extensions; do
4522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4523 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 RANLIB
=$ac_cv_prog_RANLIB
4534 if test -n "$RANLIB"; then
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4536 $as_echo "$RANLIB" >&6; }
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539 $as_echo "no" >&6; }
4544 if test -z "$ac_cv_prog_RANLIB"; then
4545 ac_ct_RANLIB
=$RANLIB
4546 # Extract the first word of "ranlib", so it can be a program name with args.
4547 set dummy ranlib
; ac_word
=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4551 $as_echo_n "(cached) " >&6
4553 if test -n "$ac_ct_RANLIB"; then
4554 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4560 test -z "$as_dir" && as_dir
=.
4561 for ac_exec_ext
in '' $ac_executable_extensions; do
4562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4563 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4574 if test -n "$ac_ct_RANLIB"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4576 $as_echo "$ac_ct_RANLIB" >&6; }
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4582 if test "x$ac_ct_RANLIB" = x
; then
4583 RANLIB
="ranlib-not-found-in-path-error"
4585 case $cross_compiling:$ac_tool_warned in
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4589 ac_tool_warned
=yes ;;
4591 RANLIB
=$ac_ct_RANLIB
4594 RANLIB
="$ac_cv_prog_RANLIB"
4597 # Extract the first word of "perl", so it can be a program name with args.
4598 set dummy perl
; ac_word
=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if test "${ac_cv_path_PERL+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4606 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
4609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4613 test -z "$as_dir" && as_dir
=.
4614 for ac_exec_ext
in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="perl-not-found-in-path-error"
4628 PERL
=$ac_cv_path_PERL
4629 if test -n "$PERL"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4631 $as_echo "$PERL" >&6; }
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4644 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4649 macro_version
='2.2.7a'
4650 macro_revision
='1.3134'
4664 ltmain
="$ac_aux_dir/ltmain.sh"
4666 # Backslashify metacharacters that are still active within
4667 # double-quoted strings.
4668 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
4670 # Same as above, but do not quote variable references.
4671 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
4673 # Sed substitution to delay expansion of an escaped shell variable in a
4674 # double_quote_subst'ed string.
4675 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
4677 # Sed substitution to delay expansion of an escaped single quote.
4678 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
4680 # Sed substitution to avoid accidental globbing in evaled expressions
4681 no_glob_subst
='s/\*/\\\*/g'
4683 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4684 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4685 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4688 $as_echo_n "checking how to print strings... " >&6; }
4689 # Test print first, because it will be a builtin if present.
4690 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4691 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4693 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4696 # Use this function as a fallback that always works.
4697 func_fallback_echo ()
4699 eval 'cat <<_LTECHO_EOF
4703 ECHO='func_fallback_echo
'
4706 # func_echo_all arg...
4707 # Invoke $ECHO with all args, space-separated.
4714 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4715 $as_echo "printf" >&6; } ;;
4716 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4717 $as_echo "print -r" >&6; } ;;
4718 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4719 $as_echo "cat" >&6; } ;;
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4736 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4737 if test "${ac_cv_path_SED+set}" = set; then :
4738 $as_echo_n "(cached) " >&6
4740 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4741 for ac_i in 1 2 3 4 5 6 7; do
4742 ac_script="$ac_script$as_nl$ac_script"
4744 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4745 { ac_script=; unset ac_script;}
4746 if test -z "$SED"; then
4747 ac_path_SED_found=false
4748 # Loop through the user's path and
test for each of PROGNAME-LIST
4749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir
=.
4754 for ac_prog
in sed gsed
; do
4755 for ac_exec_ext
in '' $ac_executable_extensions; do
4756 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4757 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4758 # Check for GNU ac_path_SED and select it if it is found.
4759 # Check for GNU $ac_path_SED
4760 case `"$ac_path_SED" --version 2>&1` in
4762 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4765 $as_echo_n 0123456789 >"conftest.in"
4768 cat "conftest.in" "conftest.in" >"conftest.tmp"
4769 mv "conftest.tmp" "conftest.in"
4770 cp "conftest.in" "conftest.nl"
4771 $as_echo '' >> "conftest.nl"
4772 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4773 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4774 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4775 if test $ac_count -gt ${ac_path_SED_max-0}; then
4776 # Best one so far, save it but keep looking for a better one
4777 ac_cv_path_SED
="$ac_path_SED"
4778 ac_path_SED_max
=$ac_count
4780 # 10*(2^10) chars as input seems more than enough
4781 test $ac_count -gt 10 && break
4783 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4786 $ac_path_SED_found && break 3
4791 if test -z "$ac_cv_path_SED"; then
4792 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4800 $as_echo "$ac_cv_path_SED" >&6; }
4801 SED
="$ac_cv_path_SED"
4804 test -z "$SED" && SED
=sed
4805 Xsed
="$SED -e 1s/^X//"
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4818 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4819 if test "${ac_cv_path_GREP+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4822 if test -z "$GREP"; then
4823 ac_path_GREP_found
=false
4824 # Loop through the user's path and test for each of PROGNAME-LIST
4825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4826 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4829 test -z "$as_dir" && as_dir
=.
4830 for ac_prog
in grep ggrep
; do
4831 for ac_exec_ext
in '' $ac_executable_extensions; do
4832 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4833 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4834 # Check for GNU ac_path_GREP and select it if it is found.
4835 # Check for GNU $ac_path_GREP
4836 case `"$ac_path_GREP" --version 2>&1` in
4838 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4841 $as_echo_n 0123456789 >"conftest.in"
4844 cat "conftest.in" "conftest.in" >"conftest.tmp"
4845 mv "conftest.tmp" "conftest.in"
4846 cp "conftest.in" "conftest.nl"
4847 $as_echo 'GREP' >> "conftest.nl"
4848 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4849 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4850 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4851 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4852 # Best one so far, save it but keep looking for a better one
4853 ac_cv_path_GREP
="$ac_path_GREP"
4854 ac_path_GREP_max
=$ac_count
4856 # 10*(2^10) chars as input seems more than enough
4857 test $ac_count -gt 10 && break
4859 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4862 $ac_path_GREP_found && break 3
4867 if test -z "$ac_cv_path_GREP"; then
4868 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4871 ac_cv_path_GREP
=$GREP
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4876 $as_echo "$ac_cv_path_GREP" >&6; }
4877 GREP
="$ac_cv_path_GREP"
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4881 $as_echo_n "checking for egrep... " >&6; }
4882 if test "${ac_cv_path_EGREP+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4885 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4886 then ac_cv_path_EGREP
="$GREP -E"
4888 if test -z "$EGREP"; then
4889 ac_path_EGREP_found
=false
4890 # Loop through the user's path and test for each of PROGNAME-LIST
4891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4892 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4895 test -z "$as_dir" && as_dir
=.
4896 for ac_prog
in egrep; do
4897 for ac_exec_ext
in '' $ac_executable_extensions; do
4898 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4899 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4900 # Check for GNU ac_path_EGREP and select it if it is found.
4901 # Check for GNU $ac_path_EGREP
4902 case `"$ac_path_EGREP" --version 2>&1` in
4904 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4907 $as_echo_n 0123456789 >"conftest.in"
4910 cat "conftest.in" "conftest.in" >"conftest.tmp"
4911 mv "conftest.tmp" "conftest.in"
4912 cp "conftest.in" "conftest.nl"
4913 $as_echo 'EGREP' >> "conftest.nl"
4914 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4915 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4916 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4917 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4918 # Best one so far, save it but keep looking for a better one
4919 ac_cv_path_EGREP
="$ac_path_EGREP"
4920 ac_path_EGREP_max
=$ac_count
4922 # 10*(2^10) chars as input seems more than enough
4923 test $ac_count -gt 10 && break
4925 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4928 $ac_path_EGREP_found && break 3
4933 if test -z "$ac_cv_path_EGREP"; then
4934 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4937 ac_cv_path_EGREP
=$EGREP
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4943 $as_echo "$ac_cv_path_EGREP" >&6; }
4944 EGREP
="$ac_cv_path_EGREP"
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4948 $as_echo_n "checking for fgrep... " >&6; }
4949 if test "${ac_cv_path_FGREP+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
4952 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4953 then ac_cv_path_FGREP
="$GREP -F"
4955 if test -z "$FGREP"; then
4956 ac_path_FGREP_found
=false
4957 # Loop through the user's path and test for each of PROGNAME-LIST
4958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4959 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4962 test -z "$as_dir" && as_dir
=.
4963 for ac_prog
in fgrep
; do
4964 for ac_exec_ext
in '' $ac_executable_extensions; do
4965 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4966 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4967 # Check for GNU ac_path_FGREP and select it if it is found.
4968 # Check for GNU $ac_path_FGREP
4969 case `"$ac_path_FGREP" --version 2>&1` in
4971 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4974 $as_echo_n 0123456789 >"conftest.in"
4977 cat "conftest.in" "conftest.in" >"conftest.tmp"
4978 mv "conftest.tmp" "conftest.in"
4979 cp "conftest.in" "conftest.nl"
4980 $as_echo 'FGREP' >> "conftest.nl"
4981 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4982 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4983 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4984 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4985 # Best one so far, save it but keep looking for a better one
4986 ac_cv_path_FGREP
="$ac_path_FGREP"
4987 ac_path_FGREP_max
=$ac_count
4989 # 10*(2^10) chars as input seems more than enough
4990 test $ac_count -gt 10 && break
4992 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4995 $ac_path_FGREP_found && break 3
5000 if test -z "$ac_cv_path_FGREP"; then
5001 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5004 ac_cv_path_FGREP
=$FGREP
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5010 $as_echo "$ac_cv_path_FGREP" >&6; }
5011 FGREP
="$ac_cv_path_FGREP"
5014 test -z "$GREP" && GREP
=grep
5034 # Check whether --with-gnu-ld was given.
5035 if test "${with_gnu_ld+set}" = set; then :
5036 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5042 if test "$GCC" = yes; then
5043 # Check if gcc -print-prog-name=ld gives a path.
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5045 $as_echo_n "checking for ld used by $CC... " >&6; }
5048 # gcc leaves a trailing carriage return which upsets mingw
5049 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5051 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5054 # Accept absolute paths.
5056 re_direlt
='/[^/][^/]*/\.\./'
5057 # Canonicalize the pathname of ld
5058 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5059 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5060 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5062 test -z "$LD" && LD
="$ac_prog"
5065 # If it fails, then pretend we aren't using GCC.
5069 # If it is relative, then search for the first ld in PATH.
5073 elif test "$with_gnu_ld" = yes; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5075 $as_echo_n "checking for GNU ld... " >&6; }
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5078 $as_echo_n "checking for non-GNU ld... " >&6; }
5080 if test "${lt_cv_path_LD+set}" = set; then :
5081 $as_echo_n "(cached) " >&6
5083 if test -z "$LD"; then
5084 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5085 for ac_dir
in $PATH; do
5087 test -z "$ac_dir" && ac_dir
=.
5088 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5089 lt_cv_path_LD
="$ac_dir/$ac_prog"
5090 # Check to see if the program is GNU ld. I'd rather use --version,
5091 # but apparently some variants of GNU ld only accept -v.
5092 # Break only if it was the GNU/non-GNU ld that we prefer.
5093 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5094 *GNU
* |
*'with BFD'*)
5095 test "$with_gnu_ld" != no
&& break
5098 test "$with_gnu_ld" != yes && break
5105 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5110 if test -n "$LD"; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5112 $as_echo "$LD" >&6; }
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 $as_echo "no" >&6; }
5117 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5119 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5120 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5121 $as_echo_n "(cached) " >&6
5123 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5124 case `$LD -v 2>&1 </dev/null` in
5125 *GNU
* |
*'with BFD'*)
5126 lt_cv_prog_gnu_ld
=yes
5129 lt_cv_prog_gnu_ld
=no
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5134 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5135 with_gnu_ld
=$lt_cv_prog_gnu_ld
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5146 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5147 if test "${lt_cv_path_NM+set}" = set; then :
5148 $as_echo_n "(cached) " >&6
5150 if test -n "$NM"; then
5151 # Let the user override the test.
5154 lt_nm_to_check
="${ac_tool_prefix}nm"
5155 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5156 lt_nm_to_check
="$lt_nm_to_check nm"
5158 for lt_tmp_nm
in $lt_nm_to_check; do
5159 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5160 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5162 test -z "$ac_dir" && ac_dir
=.
5163 tmp_nm
="$ac_dir/$lt_tmp_nm"
5164 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5165 # Check to see if the nm accepts a BSD-compat flag.
5166 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5167 # nm: unknown option "B" ignored
5168 # Tru64's nm complains that /dev/null is an invalid object file
5169 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5170 */dev
/null
* |
*'Invalid file or object type'*)
5171 lt_cv_path_NM
="$tmp_nm -B"
5175 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5177 lt_cv_path_NM
="$tmp_nm -p"
5181 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5182 continue # so that we can try to find one that supports BSD flags
5191 : ${lt_cv_path_NM=no}
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5195 $as_echo "$lt_cv_path_NM" >&6; }
5196 if test "$lt_cv_path_NM" != "no"; then
5199 # Didn't find any BSD compatible name lister, look for dumpbin.
5200 if test -n "$DUMPBIN"; then :
5201 # Let the user override the test.
5203 if test -n "$ac_tool_prefix"; then
5204 for ac_prog
in dumpbin
"link -dump"
5206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5207 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5213 if test -n "$DUMPBIN"; then
5214 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5220 test -z "$as_dir" && as_dir
=.
5221 for ac_exec_ext
in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 DUMPBIN
=$ac_cv_prog_DUMPBIN
5234 if test -n "$DUMPBIN"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5236 $as_echo "$DUMPBIN" >&6; }
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5243 test -n "$DUMPBIN" && break
5246 if test -z "$DUMPBIN"; then
5247 ac_ct_DUMPBIN
=$DUMPBIN
5248 for ac_prog
in dumpbin
"link -dump"
5250 # Extract the first word of "$ac_prog", so it can be a program name with args.
5251 set dummy
$ac_prog; ac_word
=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
5257 if test -n "$ac_ct_DUMPBIN"; then
5258 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5264 test -z "$as_dir" && as_dir
=.
5265 for ac_exec_ext
in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5278 if test -n "$ac_ct_DUMPBIN"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5280 $as_echo "$ac_ct_DUMPBIN" >&6; }
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5287 test -n "$ac_ct_DUMPBIN" && break
5290 if test "x$ac_ct_DUMPBIN" = x
; then
5293 case $cross_compiling:$ac_tool_warned in
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297 ac_tool_warned
=yes ;;
5299 DUMPBIN
=$ac_ct_DUMPBIN
5303 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5305 DUMPBIN
="$DUMPBIN -symbols"
5313 if test "$DUMPBIN" != ":"; then
5317 test -z "$NM" && NM
=nm
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5325 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5326 if test "${lt_cv_nm_interface+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5329 lt_cv_nm_interface
="BSD nm"
5330 echo "int some_variable = 0;" > conftest.
$ac_ext
5331 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5332 (eval "$ac_compile" 2>conftest.err
)
5333 cat conftest.err
>&5
5334 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5335 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5336 cat conftest.err
>&5
5337 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5338 cat conftest.out
>&5
5339 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5340 lt_cv_nm_interface
="MS dumpbin"
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5345 $as_echo "$lt_cv_nm_interface" >&6; }
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5348 $as_echo_n "checking whether ln -s works... " >&6; }
5350 if test "$LN_S" = "ln -s"; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5352 $as_echo "yes" >&6; }
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5355 $as_echo "no, using $LN_S" >&6; }
5358 # find the maximum length of command line arguments
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5360 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5361 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5362 $as_echo_n "(cached) " >&6
5369 # On DJGPP, this test can blow up pretty badly due to problems in libc
5370 # (any single argument exceeding 2000 bytes causes a buffer overrun
5371 # during glob expansion). Even if it were fixed, the result of this
5372 # check would be larger than it should be.
5373 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5377 # Under GNU Hurd, this test is not required because there is
5378 # no limit to the length of command line arguments.
5379 # Libtool will interpret -1 as no limit whatsoever
5380 lt_cv_sys_max_cmd_len
=-1;
5383 cygwin
* | mingw
* | cegcc
*)
5384 # On Win9x/ME, this test blows up -- it succeeds, but takes
5385 # about 5 minutes as the teststring grows exponentially.
5386 # Worse, since 9x/ME are not pre-emptively multitasking,
5387 # you end up with a "frozen" computer, even though with patience
5388 # the test eventually succeeds (with a max line length of 256k).
5389 # Instead, let's just punt: use the minimum linelength reported by
5390 # all of the supported platforms: 8192 (on NT/2K/XP).
5391 lt_cv_sys_max_cmd_len
=8192;
5395 # On MiNT this can take a long time and run out of memory.
5396 lt_cv_sys_max_cmd_len
=8192;
5400 # On AmigaOS with pdksh, this test takes hours, literally.
5401 # So we just punt and use a minimum line length of 8192.
5402 lt_cv_sys_max_cmd_len
=8192;
5405 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5406 # This has been around since 386BSD, at least. Likely further.
5407 if test -x /sbin
/sysctl
; then
5408 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5409 elif test -x /usr
/sbin
/sysctl
; then
5410 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5412 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5414 # And add a safety zone
5415 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5416 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5420 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5421 lt_cv_sys_max_cmd_len
=196608
5425 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5426 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5427 # nice to cause kernel panics so lets avoid the loop below.
5428 # First set a reasonable default.
5429 lt_cv_sys_max_cmd_len
=16384
5431 if test -x /sbin
/sysconfig
; then
5432 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5433 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5438 lt_cv_sys_max_cmd_len
=102400
5440 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5441 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5442 if test -n "$kargmax"; then
5443 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5445 lt_cv_sys_max_cmd_len
=32768
5449 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5450 if test -n "$lt_cv_sys_max_cmd_len"; then
5451 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5452 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5454 # Make teststring a little bigger before we do anything with it.
5455 # a 1K string should be a reasonable start.
5456 for i
in 1 2 3 4 5 6 7 8 ; do
5457 teststring
=$teststring$teststring
5459 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5460 # If test is not a shell built-in, we'll probably end up computing a
5461 # maximum length that is only half of the actual maximum length, but
5463 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5464 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
5465 test $i != 17 # 1/2 MB should be enough
5468 teststring
=$teststring$teststring
5470 # Only check the string length outside the loop.
5471 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5473 # Add a significant safety factor because C++ compilers can tack on
5474 # massive amounts of additional arguments before passing them to the
5475 # linker. It appears as though 1/2 is a usable value.
5476 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5483 if test -n $lt_cv_sys_max_cmd_len ; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5485 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5488 $as_echo "none" >&6; }
5490 max_cmd_len
=$lt_cv_sys_max_cmd_len
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5502 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5503 # Try some XSI features
5506 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5508 && eval 'test $(( 1 + 1 )) -eq 2 \
5509 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5512 $as_echo "$xsi_shell" >&6; }
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5516 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5518 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5520 && lt_shell_append=yes
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5522 $as_echo "$lt_shell_append" >&6; }
5525 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5535 # test EBCDIC or ASCII
5536 case `echo X|tr X '\101'` in
5537 A) # ASCII based system
5538 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5539 lt_SP2NL='tr \040 \012'
5540 lt_NL2SP='tr \015\012 \040\040'
5542 *) # EBCDIC based system
5543 lt_SP2NL='tr \100 \n'
5544 lt_NL2SP='tr \r\n \100\100'
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5557 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5558 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5559 $as_echo_n "(cached
) " >&6
5561 lt_cv_ld_reload_flag='-r'
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5564 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5565 reload_flag=$lt_cv_ld_reload_flag
5566 case $reload_flag in
5568 *) reload_flag=" $reload_flag" ;;
5570 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5573 if test "$GCC" = yes; then
5574 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5576 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5589 if test -n "$ac_tool_prefix"; then
5590 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5591 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5593 $as_echo_n "checking
for $ac_word...
" >&6; }
5594 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5595 $as_echo_n "(cached
) " >&6
5597 if test -n "$OBJDUMP"; then
5598 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5607 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5608 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5617 OBJDUMP=$ac_cv_prog_OBJDUMP
5618 if test -n "$OBJDUMP"; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5620 $as_echo "$OBJDUMP" >&6; }
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5623 $as_echo "no
" >&6; }
5628 if test -z "$ac_cv_prog_OBJDUMP"; then
5629 ac_ct_OBJDUMP=$OBJDUMP
5630 # Extract the first word of "objdump
", so it can be a program name with args.
5631 set dummy objdump; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5633 $as_echo_n "checking
for $ac_word...
" >&6; }
5634 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5635 $as_echo_n "(cached
) " >&6
5637 if test -n "$ac_ct_OBJDUMP"; then
5638 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5657 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5658 if test -n "$ac_ct_OBJDUMP"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5660 $as_echo "$ac_ct_OBJDUMP" >&6; }
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5663 $as_echo "no
" >&6; }
5666 if test "x
$ac_ct_OBJDUMP" = x; then
5669 case $cross_compiling:$ac_tool_warned in
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5672 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5673 ac_tool_warned=yes ;;
5675 OBJDUMP=$ac_ct_OBJDUMP
5678 OBJDUMP="$ac_cv_prog_OBJDUMP"
5681 test -z "$OBJDUMP" && OBJDUMP=objdump
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5692 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5693 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5694 $as_echo_n "(cached
) " >&6
5696 lt_cv_file_magic_cmd='$MAGIC_CMD'
5697 lt_cv_file_magic_test_file=
5698 lt_cv_deplibs_check_method='unknown'
5699 # Need to set the preceding variable on all platforms that support
5700 # interlibrary dependencies.
5701 # 'none' -- dependencies not supported.
5702 # `unknown' -- same as none, but documents that we really don't know.
5703 # 'pass_all' -- all dependencies passed with no checks.
5704 # 'test_compile' -- check by making test program.
5705 # 'file_magic [[regex]]' -- check by looking for files in library path
5706 # which responds to the $file_magic_cmd with a given extended regex.
5707 # If you have `file' or equivalent on your system and you're not sure
5708 # whether `pass_all' will *always* work, you probably want this one.
5712 lt_cv_deplibs_check_method=pass_all
5716 lt_cv_deplibs_check_method=pass_all
5720 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5721 lt_cv_file_magic_cmd='/usr/bin/file -L'
5722 lt_cv_file_magic_test_file=/shlib/libc.so
5726 # func_win32_libid is a shell function defined in ltmain.sh
5727 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5728 lt_cv_file_magic_cmd='func_win32_libid'
5732 # Base MSYS/MinGW do not provide the 'file' command needed by
5733 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5734 # unless we find 'file', for example because we are cross-compiling.
5735 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5736 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
5737 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5738 lt_cv_file_magic_cmd='func_win32_libid'
5740 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5741 lt_cv_file_magic_cmd='$OBJDUMP -f'
5746 # use the weaker test based on 'objdump'. See mingw*.
5747 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5748 lt_cv_file_magic_cmd='$OBJDUMP -f'
5751 darwin* | rhapsody*)
5752 lt_cv_deplibs_check_method=pass_all
5755 freebsd* | dragonfly*)
5756 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5759 # Not sure whether the presence of OpenBSD here was a mistake.
5760 # Let's accept both of them until this is cleared up.
5761 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5762 lt_cv_file_magic_cmd=/usr/bin/file
5763 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5767 lt_cv_deplibs_check_method=pass_all
5772 lt_cv_deplibs_check_method=pass_all
5776 lt_cv_deplibs_check_method=pass_all
5779 hpux10.20* | hpux11*)
5780 lt_cv_file_magic_cmd=/usr/bin/file
5783 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5784 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5787 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]'
5788 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5791 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5792 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5798 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5802 irix5* | irix6* | nonstopux*)
5804 *-32|*"-32 ") libmagic=32-bit;;
5805 *-n32|*"-n32 ") libmagic=N32;;
5806 *-64|*"-64 ") libmagic=64-bit;;
5807 *) libmagic=never-match;;
5809 lt_cv_deplibs_check_method=pass_all
5812 # This must be Linux ELF.
5813 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5814 lt_cv_deplibs_check_method=pass_all
5818 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5819 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5827 lt_cv_file_magic_cmd=/usr/bin/file
5828 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5832 lt_cv_deplibs_check_method=pass_all
5836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5843 osf3* | osf4* | osf5*)
5844 lt_cv_deplibs_check_method=pass_all
5848 lt_cv_deplibs_check_method=pass_all
5852 lt_cv_deplibs_check_method=pass_all
5855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5856 lt_cv_deplibs_check_method=pass_all
5860 case $host_vendor in
5862 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]'
5863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5866 lt_cv_deplibs_check_method=pass_all
5869 lt_cv_file_magic_cmd='/bin/file'
5870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5873 lt_cv_file_magic_cmd='/bin/file'
5874 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5875 lt_cv_file_magic_test_file=/lib/libc.so
5878 lt_cv_deplibs_check_method=pass_all
5881 lt_cv_deplibs_check_method=pass_all
5887 lt_cv_deplibs_check_method=pass_all
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5893 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5894 file_magic_cmd=$lt_cv_file_magic_cmd
5895 deplibs_check_method=$lt_cv_deplibs_check_method
5896 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5909 if test -n "$ac_tool_prefix"; then
5910 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5911 set dummy ${ac_tool_prefix}ar; ac_word=$2
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5913 $as_echo_n "checking
for $ac_word...
" >&6; }
5914 if test "${ac_cv_prog_AR+set}" = set; then :
5915 $as_echo_n "(cached
) " >&6
5917 if test -n "$AR"; then
5918 ac_cv_prog_AR="$AR" # Let the user override the test.
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927 ac_cv_prog_AR="${ac_tool_prefix}ar"
5928 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5938 if test -n "$AR"; then
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5940 $as_echo "$AR" >&6; }
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5943 $as_echo "no
" >&6; }
5948 if test -z "$ac_cv_prog_AR"; then
5950 # Extract the first word of "ar", so it can be a program name with args.
5951 set dummy ar; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5953 $as_echo_n "checking
for $ac_word...
" >&6; }
5954 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5955 $as_echo_n "(cached
) " >&6
5957 if test -n "$ac_ct_AR"; then
5958 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967 ac_cv_prog_ac_ct_AR="ar"
5968 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5977 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5978 if test -n "$ac_ct_AR"; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5980 $as_echo "$ac_ct_AR" >&6; }
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5983 $as_echo "no
" >&6; }
5986 if test "x
$ac_ct_AR" = x; then
5989 case $cross_compiling:$ac_tool_warned in
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5992 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5993 ac_tool_warned=yes ;;
6001 test -z "$AR" && AR=ar
6002 test -z "$AR_FLAGS" && AR_FLAGS=cru
6014 if test -n "$ac_tool_prefix"; then
6015 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6016 set dummy ${ac_tool_prefix}strip; ac_word=$2
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6018 $as_echo_n "checking
for $ac_word...
" >&6; }
6019 if test "${ac_cv_prog_STRIP+set}" = set; then :
6020 $as_echo_n "(cached
) " >&6
6022 if test -n "$STRIP"; then
6023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6033 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6042 STRIP=$ac_cv_prog_STRIP
6043 if test -n "$STRIP"; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6045 $as_echo "$STRIP" >&6; }
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6048 $as_echo "no
" >&6; }
6053 if test -z "$ac_cv_prog_STRIP"; then
6055 # Extract the first word of "strip
", so it can be a program name with args.
6056 set dummy strip; ac_word=$2
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6058 $as_echo_n "checking
for $ac_word...
" >&6; }
6059 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6060 $as_echo_n "(cached
) " >&6
6062 if test -n "$ac_ct_STRIP"; then
6063 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_prog_ac_ct_STRIP="strip
"
6073 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6082 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6083 if test -n "$ac_ct_STRIP"; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6085 $as_echo "$ac_ct_STRIP" >&6; }
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6088 $as_echo "no
" >&6; }
6091 if test "x
$ac_ct_STRIP" = x; then
6094 case $cross_compiling:$ac_tool_warned in
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6097 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6098 ac_tool_warned=yes ;;
6103 STRIP="$ac_cv_prog_STRIP"
6106 test -z "$STRIP" && STRIP=:
6113 if test -n "$ac_tool_prefix"; then
6114 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6115 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6117 $as_echo_n "checking
for $ac_word...
" >&6; }
6118 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6119 $as_echo_n "(cached
) " >&6
6121 if test -n "$RANLIB"; then
6122 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6132 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6141 RANLIB=$ac_cv_prog_RANLIB
6142 if test -n "$RANLIB"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6144 $as_echo "$RANLIB" >&6; }
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6147 $as_echo "no
" >&6; }
6152 if test -z "$ac_cv_prog_RANLIB"; then
6153 ac_ct_RANLIB=$RANLIB
6154 # Extract the first word of "ranlib
", so it can be a program name with args.
6155 set dummy ranlib; ac_word=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6157 $as_echo_n "checking
for $ac_word...
" >&6; }
6158 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6159 $as_echo_n "(cached
) " >&6
6161 if test -n "$ac_ct_RANLIB"; then
6162 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6172 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6181 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6182 if test -n "$ac_ct_RANLIB"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6184 $as_echo "$ac_ct_RANLIB" >&6; }
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6187 $as_echo "no
" >&6; }
6190 if test "x
$ac_ct_RANLIB" = x; then
6193 case $cross_compiling:$ac_tool_warned in
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6196 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6197 ac_tool_warned=yes ;;
6199 RANLIB=$ac_ct_RANLIB
6202 RANLIB="$ac_cv_prog_RANLIB"
6205 test -z "$RANLIB" && RANLIB=:
6212 # Determine commands to create old-style static archives.
6213 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6214 old_postinstall_cmds='chmod 644 $oldlib'
6215 old_postuninstall_cmds=
6217 if test -n "$RANLIB"; then
6220 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6223 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6226 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6231 lock_old_archive_extraction=yes ;;
6233 lock_old_archive_extraction=no ;;
6274 # If no C compiler was specified, use CC.
6277 # If no C compiler flags were specified, use CFLAGS.
6278 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6280 # Allow CC to be a program name with arguments.
6284 # Check for command to grab the raw symbol name followed by C symbol from nm.
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6286 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6287 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6288 $as_echo_n "(cached
) " >&6
6291 # These are sane defaults that work on at least a few old systems.
6292 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6294 # Character class describing NM global symbol codes.
6295 symcode='[BCDEGRST]'
6297 # Regexp to match symbols that can be accessed directly from C.
6298 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6300 # Define system-specific variables.
6305 cygwin* | mingw* | pw32* | cegcc*)
6306 symcode='[ABCDGISTW]'
6309 if test "$host_cpu" = ia64; then
6310 symcode='[ABCDEGRST]'
6314 symcode='[BCDEGRST]'
6317 symcode='[BCDEGQRST]'
6328 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6336 # If we're using GNU nm, then use its standard symbol codes.
6337 case `$NM -V 2>&1` in
6338 *GNU* | *'with BFD'*)
6339 symcode='[ABCDGIRSTW]' ;;
6342 # Transform an extracted symbol line into a proper C declaration.
6343 # Some systems (esp. on ia64) link data and code symbols differently,
6344 # so use this general approach.
6345 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6347 # Transform an extracted symbol line into symbol name and symbol address
6348 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6349 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'"
6351 # Handle CRLF in mingw tool chain
6355 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6359 # Try without a prefix underscore, then with it.
6360 for ac_symprfx in "" "_
"; do
6362 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6363 symxfrm="\\1 $ac_symprfx\\2 \\2"
6365 # Write the raw and C identifiers.
6366 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6367 # Fake it for dumpbin and say T for any non-static function
6368 # and D for any global variable.
6369 # Also find C++ and __fastcall symbols from MSVC++,
6370 # which start with @ or ?.
6371 lt_cv_sys_global_symbol_pipe="$AWK '"\
6372 " {last_section=section; section=\$ 3};"\
6373 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6374 " \$ 0!~/External *\|/{next};"\
6375 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6376 " {if(hide[section]) next};"\
6377 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6378 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6379 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6380 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6381 " ' prfx
=^
$ac_symprfx"
6383 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6386 # Check to see that the pipe works correctly.
6390 cat > conftest.$ac_ext <<_LT_EOF
6395 void nm_test_func(void);
6396 void nm_test_func(void){}
6400 int main(){nm_test_var='a';nm_test_func();return(0);}
6403 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6404 (eval $ac_compile) 2>&5
6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6407 test $ac_status = 0; }; then
6408 # Now try to grab the symbols.
6410 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6411 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6414 test $ac_status = 0; } && test -s "$nlist"; then
6415 # Try sorting and uniquifying the output.
6416 if sort "$nlist" | uniq > "$nlist"T; then
6417 mv -f "$nlist"T "$nlist"
6422 # Make sure that we snagged all the symbols we need.
6423 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6424 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6425 cat <<_LT_EOF > conftest.$ac_ext
6431 # Now generate the symbol file.
6432 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6434 cat <<_LT_EOF >> conftest.$ac_ext
6436 /* The mapping between symbol names and symbols. */
6441 lt__PROGRAM__LTX_preloaded_symbols[] =
6443 { "@PROGRAM@
", (void *) 0 },
6445 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6446 cat <<\_LT_EOF >> conftest.$ac_ext
6450 /* This works around a problem in FreeBSD linker */
6451 #ifdef FREEBSD_WORKAROUND
6452 static const void *lt_preloaded_setup() {
6453 return lt__PROGRAM__LTX_preloaded_symbols;
6461 # Now try linking the two files.
6462 mv conftest.$ac_objext conftstm.$ac_objext
6463 lt_save_LIBS="$LIBS"
6464 lt_save_CFLAGS="$CFLAGS"
6465 LIBS="conftstm.
$ac_objext"
6466 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6467 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6468 (eval $ac_link) 2>&5
6470 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6471 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6474 LIBS="$lt_save_LIBS"
6475 CFLAGS="$lt_save_CFLAGS"
6477 echo "cannot
find nm_test_func
in $nlist" >&5
6480 echo "cannot
find nm_test_var
in $nlist" >&5
6483 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6486 echo "$progname: failed program was
:" >&5
6487 cat conftest.$ac_ext >&5
6489 rm -rf conftest* conftst*
6491 # Do not use the global_symbol_pipe unless it works.
6492 if test "$pipe_works" = yes; then
6495 lt_cv_sys_global_symbol_pipe=
6501 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6502 lt_cv_sys_global_symbol_to_cdecl=
6504 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6506 $as_echo "failed
" >&6; }
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6509 $as_echo "ok
" >&6; }
6534 # Check whether --enable-libtool-lock was given.
6535 if test "${enable_libtool_lock+set}" = set; then :
6536 enableval=$enable_libtool_lock;
6539 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6541 # Some flags need to be propagated to the compiler or linker for good
6545 # Find out which ABI we are using.
6546 echo 'int i;' > conftest.$ac_ext
6547 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6548 (eval $ac_compile) 2>&5
6550 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6551 test $ac_status = 0; }; then
6552 case `/usr/bin/file conftest.$ac_objext` in
6564 # Find out which ABI we are using.
6565 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6566 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6567 (eval $ac_compile) 2>&5
6569 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6570 test $ac_status = 0; }; then
6571 if test "$lt_cv_prog_gnu_ld" = yes; then
6572 case `/usr/bin/file conftest.$ac_objext` in
6574 LD="${LD-ld} -melf32bsmip"
6577 LD="${LD-ld} -melf32bmipn32"
6580 LD="${LD-ld} -melf64bmip"
6584 case `/usr/bin/file conftest.$ac_objext` in
6600 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6601 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6602 # Find out which ABI we are using.
6603 echo 'int i;' > conftest.$ac_ext
6604 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6605 (eval $ac_compile) 2>&5
6607 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6608 test $ac_status = 0; }; then
6609 case `/usr/bin/file conftest.o` in
6612 x86_64-*kfreebsd*-gnu)
6613 LD="${LD-ld} -m elf_i386_fbsd
"
6616 case `/usr/bin/file conftest.o` in
6618 LD="${LD-ld} -m elf32_x86_64
"
6621 LD="${LD-ld} -m elf_i386
"
6625 powerpc64le-*linux*)
6626 LD="${LD-ld} -m elf32lppclinux
"
6629 LD="${LD-ld} -m elf32ppclinux
"
6632 LD="${LD-ld} -m elf_s390
"
6635 LD="${LD-ld} -m elf32_sparc
"
6641 x86_64-*kfreebsd*-gnu)
6642 LD="${LD-ld} -m elf_x86_64_fbsd
"
6645 LD="${LD-ld} -m elf_x86_64
"
6648 LD="${LD-ld} -m elf64lppc
"
6651 LD="${LD-ld} -m elf64ppc
"
6653 s390*-*linux*|s390*-*tpf*)
6654 LD="${LD-ld} -m elf64_s390
"
6657 LD="${LD-ld} -m elf64_sparc
"
6667 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6668 SAVE_CFLAGS="$CFLAGS"
6669 CFLAGS="$CFLAGS -belf"
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6671 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6672 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6673 $as_echo_n "(cached
) " >&6
6676 ac_cpp='$CPP $CPPFLAGS'
6677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6692 if ac_fn_c_try_link "$LINENO"; then :
6693 lt_cv_cc_needs_belf=yes
6695 lt_cv_cc_needs_belf=no
6697 rm -f core conftest.err conftest.$ac_objext \
6698 conftest$ac_exeext conftest.$ac_ext
6700 ac_cpp='$CPP $CPPFLAGS'
6701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6707 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6708 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6709 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6710 CFLAGS="$SAVE_CFLAGS"
6714 # Find out which ABI we are using.
6715 echo 'int i;' > conftest.$ac_ext
6716 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6717 (eval $ac_compile) 2>&5
6719 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6720 test $ac_status = 0; }; then
6721 case `/usr/bin/file conftest.o` in
6723 case $lt_cv_prog_gnu_ld in
6724 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6726 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6738 need_locks="$enable_libtool_lock"
6742 rhapsody* | darwin*)
6743 if test -n "$ac_tool_prefix"; then
6744 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6745 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6747 $as_echo_n "checking
for $ac_word...
" >&6; }
6748 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6749 $as_echo_n "(cached
) " >&6
6751 if test -n "$DSYMUTIL"; then
6752 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6761 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6762 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6771 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6772 if test -n "$DSYMUTIL"; then
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
6774 $as_echo "$DSYMUTIL" >&6; }
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6777 $as_echo "no
" >&6; }
6782 if test -z "$ac_cv_prog_DSYMUTIL"; then
6783 ac_ct_DSYMUTIL=$DSYMUTIL
6784 # Extract the first word of "dsymutil
", so it can be a program name with args.
6785 set dummy dsymutil; ac_word=$2
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6787 $as_echo_n "checking
for $ac_word...
" >&6; }
6788 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6789 $as_echo_n "(cached
) " >&6
6791 if test -n "$ac_ct_DSYMUTIL"; then
6792 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6802 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6811 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6812 if test -n "$ac_ct_DSYMUTIL"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
6814 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6817 $as_echo "no
" >&6; }
6820 if test "x
$ac_ct_DSYMUTIL" = x; then
6823 case $cross_compiling:$ac_tool_warned in
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6826 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6827 ac_tool_warned=yes ;;
6829 DSYMUTIL=$ac_ct_DSYMUTIL
6832 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6835 if test -n "$ac_tool_prefix"; then
6836 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6837 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6839 $as_echo_n "checking
for $ac_word...
" >&6; }
6840 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6841 $as_echo_n "(cached
) " >&6
6843 if test -n "$NMEDIT"; then
6844 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6854 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6863 NMEDIT=$ac_cv_prog_NMEDIT
6864 if test -n "$NMEDIT"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
6866 $as_echo "$NMEDIT" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6869 $as_echo "no
" >&6; }
6874 if test -z "$ac_cv_prog_NMEDIT"; then
6875 ac_ct_NMEDIT=$NMEDIT
6876 # Extract the first word of "nmedit
", so it can be a program name with args.
6877 set dummy nmedit; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6879 $as_echo_n "checking
for $ac_word...
" >&6; }
6880 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6881 $as_echo_n "(cached
) " >&6
6883 if test -n "$ac_ct_NMEDIT"; then
6884 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6903 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6904 if test -n "$ac_ct_NMEDIT"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
6906 $as_echo "$ac_ct_NMEDIT" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6909 $as_echo "no
" >&6; }
6912 if test "x
$ac_ct_NMEDIT" = x; then
6915 case $cross_compiling:$ac_tool_warned in
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6918 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6919 ac_tool_warned=yes ;;
6921 NMEDIT=$ac_ct_NMEDIT
6924 NMEDIT="$ac_cv_prog_NMEDIT"
6927 if test -n "$ac_tool_prefix"; then
6928 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6929 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6931 $as_echo_n "checking
for $ac_word...
" >&6; }
6932 if test "${ac_cv_prog_LIPO+set}" = set; then :
6933 $as_echo_n "(cached
) " >&6
6935 if test -n "$LIPO"; then
6936 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6945 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6946 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6955 LIPO=$ac_cv_prog_LIPO
6956 if test -n "$LIPO"; then
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
6958 $as_echo "$LIPO" >&6; }
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6961 $as_echo "no
" >&6; }
6966 if test -z "$ac_cv_prog_LIPO"; then
6968 # Extract the first word of "lipo
", so it can be a program name with args.
6969 set dummy lipo; ac_word=$2
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6971 $as_echo_n "checking
for $ac_word...
" >&6; }
6972 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6973 $as_echo_n "(cached
) " >&6
6975 if test -n "$ac_ct_LIPO"; then
6976 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985 ac_cv_prog_ac_ct_LIPO="lipo
"
6986 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6995 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6996 if test -n "$ac_ct_LIPO"; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
6998 $as_echo "$ac_ct_LIPO" >&6; }
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7001 $as_echo "no
" >&6; }
7004 if test "x
$ac_ct_LIPO" = x; then
7007 case $cross_compiling:$ac_tool_warned in
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7010 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7011 ac_tool_warned=yes ;;
7016 LIPO="$ac_cv_prog_LIPO"
7019 if test -n "$ac_tool_prefix"; then
7020 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7021 set dummy ${ac_tool_prefix}otool; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7023 $as_echo_n "checking
for $ac_word...
" >&6; }
7024 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7025 $as_echo_n "(cached
) " >&6
7027 if test -n "$OTOOL"; then
7028 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7038 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7047 OTOOL=$ac_cv_prog_OTOOL
7048 if test -n "$OTOOL"; then
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7050 $as_echo "$OTOOL" >&6; }
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7053 $as_echo "no
" >&6; }
7058 if test -z "$ac_cv_prog_OTOOL"; then
7060 # Extract the first word of "otool
", so it can be a program name with args.
7061 set dummy otool; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7063 $as_echo_n "checking
for $ac_word...
" >&6; }
7064 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7065 $as_echo_n "(cached
) " >&6
7067 if test -n "$ac_ct_OTOOL"; then
7068 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_prog_ac_ct_OTOOL="otool
"
7078 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7087 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7088 if test -n "$ac_ct_OTOOL"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7090 $as_echo "$ac_ct_OTOOL" >&6; }
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7093 $as_echo "no
" >&6; }
7096 if test "x
$ac_ct_OTOOL" = x; then
7099 case $cross_compiling:$ac_tool_warned in
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7102 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7103 ac_tool_warned=yes ;;
7108 OTOOL="$ac_cv_prog_OTOOL"
7111 if test -n "$ac_tool_prefix"; then
7112 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7113 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7115 $as_echo_n "checking
for $ac_word...
" >&6; }
7116 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7117 $as_echo_n "(cached
) " >&6
7119 if test -n "$OTOOL64"; then
7120 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7130 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7139 OTOOL64=$ac_cv_prog_OTOOL64
7140 if test -n "$OTOOL64"; then
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7142 $as_echo "$OTOOL64" >&6; }
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7145 $as_echo "no
" >&6; }
7150 if test -z "$ac_cv_prog_OTOOL64"; then
7151 ac_ct_OTOOL64=$OTOOL64
7152 # Extract the first word of "otool64
", so it can be a program name with args.
7153 set dummy otool64; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7155 $as_echo_n "checking
for $ac_word...
" >&6; }
7156 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7157 $as_echo_n "(cached
) " >&6
7159 if test -n "$ac_ct_OTOOL64"; then
7160 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 test -z "$as_dir" && as_dir=.
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7170 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7179 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7180 if test -n "$ac_ct_OTOOL64"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7182 $as_echo "$ac_ct_OTOOL64" >&6; }
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7185 $as_echo "no
" >&6; }
7188 if test "x
$ac_ct_OTOOL64" = x; then
7191 case $cross_compiling:$ac_tool_warned in
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7194 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7195 ac_tool_warned=yes ;;
7197 OTOOL64=$ac_ct_OTOOL64
7200 OTOOL64="$ac_cv_prog_OTOOL64"
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7230 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7231 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7232 $as_echo_n "(cached
) " >&6
7234 lt_cv_apple_cc_single_mod=no
7235 if test -z "${LT_MULTI_MODULE}"; then
7236 # By default we will add the -single_module flag. You can override
7237 # by either setting the environment variable LT_MULTI_MODULE
7238 # non-empty at configure time, or by adding -multi_module to the
7240 rm -rf libconftest.dylib*
7241 echo "int foo
(void
){return 1;}" > conftest.c
7242 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7243 -dynamiclib -Wl,-single_module conftest.c
" >&5
7244 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7245 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7247 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7248 lt_cv_apple_cc_single_mod=yes
7250 cat conftest.err >&5
7252 rm -rf libconftest.dylib*
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7257 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7259 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7260 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7261 $as_echo_n "(cached
) " >&6
7263 lt_cv_ld_exported_symbols_list=no
7264 save_LDFLAGS=$LDFLAGS
7265 echo "_main
" > conftest.sym
7266 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7278 if ac_fn_c_try_link "$LINENO"; then :
7279 lt_cv_ld_exported_symbols_list=yes
7281 lt_cv_ld_exported_symbols_list=no
7283 rm -f core conftest.err conftest.$ac_objext \
7284 conftest$ac_exeext conftest.$ac_ext
7285 LDFLAGS="$save_LDFLAGS"
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7289 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7291 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7292 if test "${lt_cv_ld_force_load+set}" = set; then :
7293 $as_echo_n "(cached
) " >&6
7295 lt_cv_ld_force_load=no
7296 cat > conftest.c << _LT_EOF
7297 int forced_loaded() { return 2;}
7299 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7300 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7301 echo "$AR cru libconftest.a conftest.o
" >&5
7302 $AR cru libconftest.a conftest.o 2>&5
7303 cat > conftest.c << _LT_EOF
7304 int main() { return 0;}
7306 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7307 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7309 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7310 lt_cv_ld_force_load=yes
7312 cat conftest.err >&5
7314 rm -f conftest.err libconftest.a conftest conftest.c
7315 rm -rf conftest.dSYM
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7319 $as_echo "$lt_cv_ld_force_load" >&6; }
7321 rhapsody* | darwin1.[012])
7322 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7324 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7325 darwin*) # darwin 5.x on
7326 # if running on 10.5 or later, the deployment target defaults
7327 # to the OS version, if on x86, and 10.4, the deployment
7328 # target defaults to 10.4. Don't you love it?
7329 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7330 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7331 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7333 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7335 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7339 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7340 _lt_dar_single_mod='$single_module'
7342 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7343 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7345 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7347 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7348 _lt_dsymutil='~$DSYMUTIL $lib || :'
7356 ac_cpp='$CPP $CPPFLAGS'
7357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7361 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7362 # On Suns, sometimes $CPP names a directory.
7363 if test -n "$CPP" && test -d "$CPP"; then
7366 if test -z "$CPP"; then
7367 if test "${ac_cv_prog_CPP+set}" = set; then :
7368 $as_echo_n "(cached
) " >&6
7370 # Double quotes because CPP needs to be expanded
7371 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7374 for ac_c_preproc_warn_flag in '' yes
7376 # Use a header file that comes with gcc, so configuring glibc
7377 # with a fresh cross-compiler works.
7378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7379 # <limits.h> exists even on freestanding compilers.
7380 # On the NeXT, cc -E runs the code through the compiler's parser,
7381 # not just through cpp. "Syntax error
" is here to catch this case.
7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7385 # include <limits.h>
7387 # include <assert.h>
7391 if ac_fn_c_try_cpp "$LINENO"; then :
7394 # Broken: fails on valid input.
7397 rm -f conftest.err conftest.$ac_ext
7399 # OK, works on sane cases. Now check whether nonexistent headers
7400 # can be detected and how.
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7403 #include <ac_nonexistent.h>
7405 if ac_fn_c_try_cpp "$LINENO"; then :
7406 # Broken: success on invalid input.
7409 # Passes both tests.
7413 rm -f conftest.err conftest.$ac_ext
7416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7417 rm -f conftest.err conftest.$ac_ext
7418 if $ac_preproc_ok; then :
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7431 $as_echo "$CPP" >&6; }
7433 for ac_c_preproc_warn_flag in '' yes
7435 # Use a header file that comes with gcc, so configuring glibc
7436 # with a fresh cross-compiler works.
7437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7438 # <limits.h> exists even on freestanding compilers.
7439 # On the NeXT, cc -E runs the code through the compiler's parser,
7440 # not just through cpp. "Syntax error
" is here to catch this case.
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7444 # include <limits.h>
7446 # include <assert.h>
7450 if ac_fn_c_try_cpp "$LINENO"; then :
7453 # Broken: fails on valid input.
7456 rm -f conftest.err conftest.$ac_ext
7458 # OK, works on sane cases. Now check whether nonexistent headers
7459 # can be detected and how.
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7462 #include <ac_nonexistent.h>
7464 if ac_fn_c_try_cpp "$LINENO"; then :
7465 # Broken: success on invalid input.
7468 # Passes both tests.
7472 rm -f conftest.err conftest.$ac_ext
7475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7476 rm -f conftest.err conftest.$ac_ext
7477 if $ac_preproc_ok; then :
7480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7482 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7483 See \`config.log' for more details.
" "$LINENO" 5; }
7487 ac_cpp='$CPP $CPPFLAGS'
7488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7494 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7495 if test "${ac_cv_header_stdc+set}" = set; then :
7496 $as_echo_n "(cached
) " >&6
7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h. */
7513 if ac_fn_c_try_compile "$LINENO"; then :
7514 ac_cv_header_stdc=yes
7516 ac_cv_header_stdc=no
7518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7520 if test $ac_cv_header_stdc = yes; then
7521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7527 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7528 $EGREP "memchr
" >/dev/null 2>&1; then :
7531 ac_cv_header_stdc=no
7537 if test $ac_cv_header_stdc = yes; then
7538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h. */
7544 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7545 $EGREP "free
" >/dev/null 2>&1; then :
7548 ac_cv_header_stdc=no
7554 if test $ac_cv_header_stdc = yes; then
7555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7556 if test "$cross_compiling" = yes; then :
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7563 #if ((' ' & 0x0FF) == 0x020)
7564 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7565 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7567 # define ISLOWER(c) \
7568 (('a' <= (c) && (c) <= 'i') \
7569 || ('j' <= (c) && (c) <= 'r') \
7570 || ('s' <= (c) && (c) <= 'z'))
7571 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7574 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7579 for (i = 0; i < 256; i++)
7580 if (XOR (islower (i), ISLOWER (i))
7581 || toupper (i) != TOUPPER (i))
7586 if ac_fn_c_try_run "$LINENO"; then :
7589 ac_cv_header_stdc=no
7591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7592 conftest.$ac_objext conftest.beam conftest.$ac_ext
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7598 $as_echo "$ac_cv_header_stdc" >&6; }
7599 if test $ac_cv_header_stdc = yes; then
7601 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7605 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7606 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7607 inttypes.h stdint.h unistd.h
7609 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7610 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7612 eval as_val
=\$
$as_ac_Header
7613 if test "x$as_val" = x
""yes; then :
7614 cat >>confdefs.h
<<_ACEOF
7615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7623 for ac_header
in dlfcn.h
7625 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7627 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
7628 cat >>confdefs.h
<<_ACEOF
7629 #define HAVE_DLFCN_H 1
7650 # Check whether --enable-shared was given.
7651 if test "${enable_shared+set}" = set; then :
7652 enableval
=$enable_shared; p
=${PACKAGE-default}
7654 yes) enable_shared
=yes ;;
7655 no
) enable_shared
=no
;;
7658 # Look at the argument we got. We use all the common list separators.
7659 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7660 for pkg
in $enableval; do
7662 if test "X$pkg" = "X$p"; then
7681 # Check whether --enable-static was given.
7682 if test "${enable_static+set}" = set; then :
7683 enableval
=$enable_static; p
=${PACKAGE-default}
7685 yes) enable_static
=yes ;;
7686 no
) enable_static
=no
;;
7689 # Look at the argument we got. We use all the common list separators.
7690 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7691 for pkg
in $enableval; do
7693 if test "X$pkg" = "X$p"; then
7713 # Check whether --with-pic was given.
7714 if test "${with_pic+set}" = set; then :
7715 withval
=$with_pic; pic_mode
="$withval"
7721 test -z "$pic_mode" && pic_mode
=default
7729 # Check whether --enable-fast-install was given.
7730 if test "${enable_fast_install+set}" = set; then :
7731 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7733 yes) enable_fast_install
=yes ;;
7734 no
) enable_fast_install
=no
;;
7736 enable_fast_install
=no
7737 # Look at the argument we got. We use all the common list separators.
7738 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7739 for pkg
in $enableval; do
7741 if test "X$pkg" = "X$p"; then
7742 enable_fast_install
=yes
7749 enable_fast_install
=yes
7762 # This can be used to rebuild libtool when needed
7763 LIBTOOL_DEPS
="$ltmain"
7765 # Always use our own libtool.
7766 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7793 test -z "$LN_S" && LN_S
="ln -s"
7808 if test -n "${ZSH_VERSION+set}" ; then
7809 setopt NO_GLOB_SUBST
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7813 $as_echo_n "checking for objdir... " >&6; }
7814 if test "${lt_cv_objdir+set}" = set; then :
7815 $as_echo_n "(cached) " >&6
7817 rm -f .libs
2>/dev
/null
7818 mkdir .libs
2>/dev
/null
7819 if test -d .libs
; then
7822 # MS-DOS does not allow filenames that begin with a dot.
7825 rmdir .libs
2>/dev
/null
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7828 $as_echo "$lt_cv_objdir" >&6; }
7829 objdir
=$lt_cv_objdir
7835 cat >>confdefs.h
<<_ACEOF
7836 #define LT_OBJDIR "$lt_cv_objdir/"
7844 # AIX sometimes has problems with the GCC collect2 program. For some
7845 # reason, if we set the COLLECT_NAMES environment variable, the problems
7846 # vanish in a puff of smoke.
7847 if test "X${COLLECT_NAMES+set}" != Xset
; then
7849 export COLLECT_NAMES
7856 can_build_shared
=yes
7858 # All known linkers require a `.a' archive for static linking (except MSVC,
7859 # which needs '.lib').
7862 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7865 old_CFLAGS
="$CFLAGS"
7867 # Set sane defaults for various variables
7868 test -z "$CC" && CC
=cc
7869 test -z "$LTCC" && LTCC
=$CC
7870 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7871 test -z "$LD" && LD
=ld
7872 test -z "$ac_objext" && ac_objext
=o
7874 for cc_temp
in $compiler""; do
7876 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7877 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7882 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7885 # Only perform the check for file, if the check method requires it
7886 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7887 case $deplibs_check_method in
7889 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7891 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7892 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7893 $as_echo_n "(cached) " >&6
7897 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7900 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7901 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7902 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7903 for ac_dir
in $ac_dummy; do
7905 test -z "$ac_dir" && ac_dir
=.
7906 if test -f $ac_dir/${ac_tool_prefix}file; then
7907 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7908 if test -n "$file_magic_test_file"; then
7909 case $deplibs_check_method in
7911 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7912 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7913 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7914 $EGREP "$file_magic_regex" > /dev
/null
; then
7919 *** Warning: the command libtool uses to detect shared libraries,
7920 *** $file_magic_cmd, produces output that libtool cannot recognize.
7921 *** The result is that libtool may fail to recognize shared libraries
7922 *** as such. This will affect the creation of libtool libraries that
7923 *** depend on shared libraries, but programs linked with such libtool
7924 *** libraries will work regardless of this problem. Nevertheless, you
7925 *** may want to report the problem to your system manager and/or to
7926 *** bug-libtool@gnu.org
7936 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7941 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7942 if test -n "$MAGIC_CMD"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7944 $as_echo "$MAGIC_CMD" >&6; }
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7954 if test -z "$lt_cv_path_MAGIC_CMD"; then
7955 if test -n "$ac_tool_prefix"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7957 $as_echo_n "checking for file... " >&6; }
7958 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7963 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7966 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7967 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7968 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7969 for ac_dir
in $ac_dummy; do
7971 test -z "$ac_dir" && ac_dir
=.
7972 if test -f $ac_dir/file; then
7973 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7974 if test -n "$file_magic_test_file"; then
7975 case $deplibs_check_method in
7977 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7978 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7979 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7980 $EGREP "$file_magic_regex" > /dev
/null
; then
7985 *** Warning: the command libtool uses to detect shared libraries,
7986 *** $file_magic_cmd, produces output that libtool cannot recognize.
7987 *** The result is that libtool may fail to recognize shared libraries
7988 *** as such. This will affect the creation of libtool libraries that
7989 *** depend on shared libraries, but programs linked with such libtool
7990 *** libraries will work regardless of this problem. Nevertheless, you
7991 *** may want to report the problem to your system manager and/or to
7992 *** bug-libtool@gnu.org
8002 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8007 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8008 if test -n "$MAGIC_CMD"; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8010 $as_echo "$MAGIC_CMD" >&6; }
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8026 # Use C for the default configuration in the libtool script
8030 ac_cpp
='$CPP $CPPFLAGS'
8031 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8032 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8033 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8036 # Source file extension for C test sources.
8039 # Object file extension for compiled C test sources.
8043 # Code to be used in simple compile tests
8044 lt_simple_compile_test_code
="int some_variable = 0;"
8046 # Code to be used in simple link tests
8047 lt_simple_link_test_code
='int main(){return(0);}'
8055 # If no C compiler was specified, use CC.
8058 # If no C compiler flags were specified, use CFLAGS.
8059 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8061 # Allow CC to be a program name with arguments.
8064 # Save the default compiler, since it gets overwritten when the other
8065 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8066 compiler_DEFAULT
=$CC
8068 # save warnings/boilerplate of simple test code
8069 ac_outfile
=conftest.
$ac_objext
8070 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8071 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8072 _lt_compiler_boilerplate
=`cat conftest.err`
8075 ac_outfile
=conftest.
$ac_objext
8076 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8077 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8078 _lt_linker_boilerplate
=`cat conftest.err`
8083 ## There is no encapsulation within the following macros, do not change
8084 ## the running order or otherwise move them around unless you know exactly
8085 ## what you are doing...
8086 if test -n "$compiler"; then
8088 lt_prog_compiler_no_builtin_flag
=
8090 if test "$GCC" = yes; then
8091 case $cc_basename in
8093 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8095 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8099 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8100 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8101 $as_echo_n "(cached) " >&6
8103 lt_cv_prog_compiler_rtti_exceptions
=no
8104 ac_outfile
=conftest.
$ac_objext
8105 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8106 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8107 # Insert the option either (1) after the last *FLAGS variable, or
8108 # (2) before a word containing "conftest.", or (3) at the end.
8109 # Note that $ac_compile itself does not contain backslashes and begins
8110 # with a dollar sign (not a hyphen), so the echo should work correctly.
8111 # The option is referenced via a variable to avoid confusing sed.
8112 lt_compile
=`echo "$ac_compile" | $SED \
8113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8115 -e 's:$: $lt_compiler_flag:'`
8116 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8117 (eval "$lt_compile" 2>conftest.err
)
8119 cat conftest.err
>&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 if (exit $ac_status) && test -s "$ac_outfile"; then
8122 # The compiler can only warn and ignore the option if not recognized
8123 # So say no if there are warnings other than the usual output.
8124 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8125 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8126 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8127 lt_cv_prog_compiler_rtti_exceptions
=yes
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8134 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8136 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8137 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8149 lt_prog_compiler_wl
=
8150 lt_prog_compiler_pic
=
8151 lt_prog_compiler_static
=
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8154 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8156 if test "$GCC" = yes; then
8157 lt_prog_compiler_wl
='-Wl,'
8158 lt_prog_compiler_static
='-static'
8162 # All AIX code is PIC.
8163 if test "$host_cpu" = ia64
; then
8164 # AIX 5 now supports IA64 processor
8165 lt_prog_compiler_static
='-Bstatic'
8167 lt_prog_compiler_pic
='-fPIC'
8173 # see comment about AmigaOS4 .so support
8174 lt_prog_compiler_pic
='-fPIC'
8177 # FIXME: we need at least 68020 code to build shared libraries, but
8178 # adding the `-m68020' flag to GCC prevents building anything better,
8180 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8185 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8186 # PIC is the default for these OSes.
8189 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8190 # This hack is so that the source file can tell whether it is being
8191 # built for inclusion in a dll (and should export symbols for example).
8192 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8193 # (--disable-auto-import) libraries
8194 lt_prog_compiler_pic
='-DDLL_EXPORT'
8197 darwin
* | rhapsody
*)
8198 # PIC is the default on this platform
8199 # Common symbols not allowed in MH_DYLIB files
8200 lt_prog_compiler_pic
='-fno-common'
8204 # PIC is the default for Haiku.
8205 # The "-static" flag exists, but is broken.
8206 lt_prog_compiler_static
=
8210 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8211 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8212 # sets the default TLS model and affects inlining.
8218 lt_prog_compiler_pic
='-fPIC'
8224 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8225 # Instead, we relocate shared libraries at runtime.
8229 # Just because we use GCC doesn't mean we suddenly get shared libraries
8230 # on systems that don't support them.
8231 lt_prog_compiler_can_build_shared
=no
8236 # QNX uses GNU C++, but need to define -shared option too, otherwise
8238 lt_prog_compiler_pic
='-fPIC -shared'
8242 if test -d /usr
/nec
; then
8243 lt_prog_compiler_pic
=-Kconform_pic
8248 lt_prog_compiler_pic
='-fPIC'
8252 case $cc_basename in
8253 nvcc
*) # Cuda Compiler Driver 2.2
8254 lt_prog_compiler_wl
='-Xlinker '
8255 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8259 # PORTME Check for flag to pass linker flags through the system compiler.
8262 lt_prog_compiler_wl
='-Wl,'
8263 if test "$host_cpu" = ia64
; then
8264 # AIX 5 now supports IA64 processor
8265 lt_prog_compiler_static
='-Bstatic'
8267 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8271 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8272 # This hack is so that the source file can tell whether it is being
8273 # built for inclusion in a dll (and should export symbols for example).
8274 lt_prog_compiler_pic
='-DDLL_EXPORT'
8277 hpux9
* | hpux10
* | hpux11
*)
8278 lt_prog_compiler_wl
='-Wl,'
8279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8286 lt_prog_compiler_pic
='+Z'
8289 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8290 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8293 irix5
* | irix6
* | nonstopux
*)
8294 lt_prog_compiler_wl
='-Wl,'
8295 # PIC (with -KPIC) is the default.
8296 lt_prog_compiler_static
='-non_shared'
8299 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8300 case $cc_basename in
8301 # old Intel for x86_64 which still supported -KPIC.
8303 lt_prog_compiler_wl
='-Wl,'
8304 lt_prog_compiler_pic
='-KPIC'
8305 lt_prog_compiler_static
='-static'
8307 # icc used to be incompatible with GCC.
8308 # ICC 10 doesn't accept -KPIC any more.
8310 lt_prog_compiler_wl
='-Wl,'
8311 lt_prog_compiler_pic
='-fPIC'
8312 lt_prog_compiler_static
='-static'
8314 # Lahey Fortran 8.1.
8316 lt_prog_compiler_wl
='-Wl,'
8317 lt_prog_compiler_pic
='--shared'
8318 lt_prog_compiler_static
='--static'
8320 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8321 # Portland Group compilers (*not* the Pentium gcc compiler,
8322 # which looks to be a dead project)
8323 lt_prog_compiler_wl
='-Wl,'
8324 lt_prog_compiler_pic
='-fpic'
8325 lt_prog_compiler_static
='-Bstatic'
8328 lt_prog_compiler_wl
='-Wl,'
8329 # All Alpha code is PIC.
8330 lt_prog_compiler_static
='-non_shared'
8332 xl
* | bgxl
* | bgf
* | mpixl
*)
8333 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8334 lt_prog_compiler_wl
='-Wl,'
8335 lt_prog_compiler_pic
='-qpic'
8336 lt_prog_compiler_static
='-qstaticlink'
8339 case `$CC -V 2>&1 | sed 5q` in
8340 *Sun\ F
* |
*Sun
*Fortran
*)
8341 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8342 lt_prog_compiler_pic
='-KPIC'
8343 lt_prog_compiler_static
='-Bstatic'
8344 lt_prog_compiler_wl
=''
8348 lt_prog_compiler_pic
='-KPIC'
8349 lt_prog_compiler_static
='-Bstatic'
8350 lt_prog_compiler_wl
='-Wl,'
8358 lt_prog_compiler_pic
='-KPIC'
8359 lt_prog_compiler_static
='-Bstatic'
8363 # QNX uses GNU C++, but need to define -shared option too, otherwise
8365 lt_prog_compiler_pic
='-fPIC -shared'
8368 osf3
* | osf4
* | osf5
*)
8369 lt_prog_compiler_wl
='-Wl,'
8370 # All OSF/1 code is PIC.
8371 lt_prog_compiler_static
='-non_shared'
8375 lt_prog_compiler_static
='-non_shared'
8379 lt_prog_compiler_pic
='-KPIC'
8380 lt_prog_compiler_static
='-Bstatic'
8381 case $cc_basename in
8383 lt_prog_compiler_wl
='-Qoption ld ';;
8385 lt_prog_compiler_wl
='-Wl,';;
8390 lt_prog_compiler_wl
='-Qoption ld '
8391 lt_prog_compiler_pic
='-PIC'
8392 lt_prog_compiler_static
='-Bstatic'
8395 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8396 lt_prog_compiler_wl
='-Wl,'
8397 lt_prog_compiler_pic
='-KPIC'
8398 lt_prog_compiler_static
='-Bstatic'
8402 if test -d /usr
/nec
;then
8403 lt_prog_compiler_pic
='-Kconform_pic'
8404 lt_prog_compiler_static
='-Bstatic'
8408 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8409 lt_prog_compiler_wl
='-Wl,'
8410 lt_prog_compiler_pic
='-KPIC'
8411 lt_prog_compiler_static
='-Bstatic'
8415 lt_prog_compiler_wl
='-Wl,'
8416 lt_prog_compiler_can_build_shared
=no
8420 lt_prog_compiler_pic
='-pic'
8421 lt_prog_compiler_static
='-Bstatic'
8425 lt_prog_compiler_can_build_shared
=no
8431 # For platforms which do not support PIC, -DPIC is meaningless:
8433 lt_prog_compiler_pic
=
8436 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8440 $as_echo "$lt_prog_compiler_pic" >&6; }
8448 # Check to make sure the PIC flag actually works.
8450 if test -n "$lt_prog_compiler_pic"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8452 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8453 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8454 $as_echo_n "(cached) " >&6
8456 lt_cv_prog_compiler_pic_works
=no
8457 ac_outfile
=conftest.
$ac_objext
8458 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8459 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8460 # Insert the option either (1) after the last *FLAGS variable, or
8461 # (2) before a word containing "conftest.", or (3) at the end.
8462 # Note that $ac_compile itself does not contain backslashes and begins
8463 # with a dollar sign (not a hyphen), so the echo should work correctly.
8464 # The option is referenced via a variable to avoid confusing sed.
8465 lt_compile
=`echo "$ac_compile" | $SED \
8466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8468 -e 's:$: $lt_compiler_flag:'`
8469 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8470 (eval "$lt_compile" 2>conftest.err
)
8472 cat conftest.err
>&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 if (exit $ac_status) && test -s "$ac_outfile"; then
8475 # The compiler can only warn and ignore the option if not recognized
8476 # So say no if there are warnings other than the usual output.
8477 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8478 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8479 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8480 lt_cv_prog_compiler_pic_works
=yes
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8487 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8489 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8490 case $lt_prog_compiler_pic in
8492 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8495 lt_prog_compiler_pic
=
8496 lt_prog_compiler_can_build_shared
=no
8507 # Check to make sure the static flag actually works.
8509 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8511 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8512 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
8515 lt_cv_prog_compiler_static_works
=no
8516 save_LDFLAGS
="$LDFLAGS"
8517 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8518 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8519 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8520 # The linker can only warn and ignore the option if not recognized
8521 # So say no if there are warnings
8522 if test -s conftest.err
; then
8523 # Append any errors to the config.log.
8524 cat conftest.err
1>&5
8525 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8526 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8527 if diff conftest.exp conftest.er2
>/dev
/null
; then
8528 lt_cv_prog_compiler_static_works
=yes
8531 lt_cv_prog_compiler_static_works
=yes
8535 LDFLAGS
="$save_LDFLAGS"
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8539 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8541 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8544 lt_prog_compiler_static
=
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8554 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8555 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
8558 lt_cv_prog_compiler_c_o
=no
8559 $RM -r conftest
2>/dev
/null
8563 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8565 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8566 # Insert the option either (1) after the last *FLAGS variable, or
8567 # (2) before a word containing "conftest.", or (3) at the end.
8568 # Note that $ac_compile itself does not contain backslashes and begins
8569 # with a dollar sign (not a hyphen), so the echo should work correctly.
8570 lt_compile
=`echo "$ac_compile" | $SED \
8571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8573 -e 's:$: $lt_compiler_flag:'`
8574 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8575 (eval "$lt_compile" 2>out
/conftest.err
)
8577 cat out
/conftest.err
>&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8581 # The compiler can only warn and ignore the option if not recognized
8582 # So say no if there are warnings
8583 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8584 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8585 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8586 lt_cv_prog_compiler_c_o
=yes
8591 # SGI C++ compiler will create directory out/ii_files/ for
8592 # template instantiation
8593 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8594 $RM out
/* && rmdir out
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8601 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8609 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8610 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8611 $as_echo_n "(cached) " >&6
8613 lt_cv_prog_compiler_c_o
=no
8614 $RM -r conftest
2>/dev
/null
8618 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8620 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8621 # Insert the option either (1) after the last *FLAGS variable, or
8622 # (2) before a word containing "conftest.", or (3) at the end.
8623 # Note that $ac_compile itself does not contain backslashes and begins
8624 # with a dollar sign (not a hyphen), so the echo should work correctly.
8625 lt_compile
=`echo "$ac_compile" | $SED \
8626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8628 -e 's:$: $lt_compiler_flag:'`
8629 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8630 (eval "$lt_compile" 2>out
/conftest.err
)
8632 cat out
/conftest.err
>&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8636 # The compiler can only warn and ignore the option if not recognized
8637 # So say no if there are warnings
8638 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8639 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8640 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8641 lt_cv_prog_compiler_c_o
=yes
8646 # SGI C++ compiler will create directory out/ii_files/ for
8647 # template instantiation
8648 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8649 $RM out
/* && rmdir out
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8656 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8661 hard_links
="nottested"
8662 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8663 # do not overwrite the value of need_locks provided by the user
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8665 $as_echo_n "checking if we can lock with hard links... " >&6; }
8668 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8670 ln conftest.a conftest.b
2>&5 || hard_links
=no
8671 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8673 $as_echo "$hard_links" >&6; }
8674 if test "$hard_links" = no
; then
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8676 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8689 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8692 allow_undefined_flag
=
8693 always_export_symbols
=no
8695 archive_expsym_cmds
=
8696 compiler_needs_object
=no
8697 enable_shared_with_static_runtimes
=no
8698 export_dynamic_flag_spec
=
8699 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8700 hardcode_automatic
=no
8702 hardcode_direct_absolute
=no
8703 hardcode_libdir_flag_spec
=
8704 hardcode_libdir_flag_spec_ld
=
8705 hardcode_libdir_separator
=
8707 hardcode_shlibpath_var
=unsupported
8709 link_all_deplibs
=unknown
8712 old_archive_from_new_cmds
=
8713 old_archive_from_expsyms_cmds
=
8714 thread_safe_flag_spec
=
8715 whole_archive_flag_spec
=
8716 # include_expsyms should be a list of space-separated symbols to be *always*
8717 # included in the symbol list
8719 # exclude_expsyms can be an extended regexp of symbols to exclude
8720 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8721 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8722 # as well as any symbol that contains `d'.
8723 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8724 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8725 # platforms (ab)use it in PIC code, but their linkers get confused if
8726 # the symbol is explicitly referenced. Since portable code cannot
8727 # rely on this symbol name, it's probably fine to never include it in
8728 # preloaded symbol tables.
8729 # Exclude shared library initialization/finalization symbols.
8730 extract_expsyms_cmds
=
8733 cygwin
* | mingw
* | pw32
* | cegcc
*)
8734 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8735 # When not using gcc, we currently assume that we are using
8736 # Microsoft Visual C++.
8737 if test "$GCC" != yes; then
8742 # we just hope/assume this is gcc and not c89 (= MSVC++)
8752 # On some targets, GNU ld is compatible enough with the native linker
8753 # that we're better off using the native interface for both.
8754 lt_use_gnu_ld_interface
=no
8755 if test "$with_gnu_ld" = yes; then
8758 # The AIX port of GNU ld has always aspired to compatibility
8759 # with the native linker. However, as the warning in the GNU ld
8760 # block says, versions before 2.19.5* couldn't really create working
8761 # shared libraries, regardless of the interface used.
8762 case `$LD -v 2>&1` in
8763 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
8764 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
8765 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
8767 lt_use_gnu_ld_interface
=yes
8772 lt_use_gnu_ld_interface
=yes
8777 if test "$lt_use_gnu_ld_interface" = yes; then
8778 # If archive_cmds runs LD, not CC, wlarc should be empty
8781 # Set some defaults for GNU ld with shared library support. These
8782 # are reset later if shared libraries are not supported. Putting them
8783 # here allows them to be overridden if necessary.
8784 runpath_var
=LD_RUN_PATH
8785 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8786 export_dynamic_flag_spec
='${wl}--export-dynamic'
8787 # ancient GNU ld didn't support --whole-archive et. al.
8788 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8789 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8791 whole_archive_flag_spec
=
8793 supports_anon_versioning
=no
8794 case `$LD -v 2>&1` in
8795 *GNU\ gold
*) supports_anon_versioning
=yes ;;
8796 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8797 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8798 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8799 *\
2.11.
*) ;; # other 2.11 versions
8800 *) supports_anon_versioning
=yes ;;
8803 # See if GNU ld supports shared libraries.
8806 # On AIX/PPC, the GNU linker is very broken
8807 if test "$host_cpu" != ia64
; then
8811 *** Warning: the GNU linker, at least up to release 2.19, is reported
8812 *** to be unable to reliably create shared libraries on AIX.
8813 *** Therefore, libtool is disabling shared libraries support. If you
8814 *** really care for shared libraries, you may want to install binutils
8815 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8816 *** You will then need to restart the configuration process.
8825 # see comment about AmigaOS4 .so support
8826 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8827 archive_expsym_cmds
=''
8830 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)'
8831 hardcode_libdir_flag_spec
='-L$libdir'
8832 hardcode_minus_L
=yes
8838 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8839 allow_undefined_flag
=unsupported
8840 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8841 # support --undefined. This deserves some investigation. FIXME
8842 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8848 cygwin
* | mingw
* | pw32
* | cegcc
*)
8849 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8850 # as there is no search path for DLLs.
8851 hardcode_libdir_flag_spec
='-L$libdir'
8852 export_dynamic_flag_spec
='${wl}--export-all-symbols'
8853 allow_undefined_flag
=unsupported
8854 always_export_symbols
=no
8855 enable_shared_with_static_runtimes
=yes
8856 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8858 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8859 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8860 # If the export-symbols file already is a .def file (1st line
8861 # is EXPORTS), use it as is; otherwise, prepend...
8862 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8863 cp $export_symbols $output_objdir/$soname.def;
8865 echo EXPORTS > $output_objdir/$soname.def;
8866 cat $export_symbols >> $output_objdir/$soname.def;
8868 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8875 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8876 link_all_deplibs
=yes
8881 hardcode_shlibpath_var
=no
8882 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8883 export_dynamic_flag_spec
='${wl}-E'
8884 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8885 # Instead, shared libraries are loaded at an image base (0x10000000 by
8886 # default) and relocated if they conflict, which is a slow very memory
8887 # consuming and fragmenting process. To avoid this, we pick a random,
8888 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8889 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8890 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8891 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'
8894 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8896 if test "$host_os" = linux-dietlibc
; then
8897 case $cc_basename in
8898 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8901 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8902 && test "$tmp_diet" = no
8904 tmp_addflag
=' $pic_flag'
8905 tmp_sharedflag
='-shared'
8906 case $cc_basename,$host_cpu in
8907 pgcc
*) # Portland Group C compiler
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'
8911 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8912 # Portland Group f77 and f90 compilers
8913 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'
8914 tmp_addflag
=' $pic_flag -Mnomain' ;;
8915 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8916 tmp_addflag
=' -i_dynamic' ;;
8917 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8918 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8919 ifc
* | ifort
*) # Intel Fortran compiler
8920 tmp_addflag
=' -nofor_main' ;;
8921 lf95
*) # Lahey Fortran 8.1
8922 whole_archive_flag_spec
=
8923 tmp_sharedflag
='--shared' ;;
8924 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8925 tmp_sharedflag
='-qmkshrobj'
8927 nvcc
*) # Cuda Compiler Driver 2.2
8928 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'
8929 compiler_needs_object
=yes
8932 case `$CC -V 2>&1 | sed 5q` in
8933 *Sun\ C
*) # Sun C 5.9
8934 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'
8935 compiler_needs_object
=yes
8936 tmp_sharedflag
='-G' ;;
8937 *Sun\ F
*) # Sun Fortran 8.3
8938 tmp_sharedflag
='-G' ;;
8940 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8942 if test "x$supports_anon_versioning" = xyes
; then
8943 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8944 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8945 echo "local: *; };" >> $output_objdir/$libname.ver~
8946 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8949 case $cc_basename in
8950 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
8951 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8952 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8953 hardcode_libdir_flag_spec
=
8954 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8955 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8956 if test "x$supports_anon_versioning" = xyes
; then
8957 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8958 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8959 echo "local: *; };" >> $output_objdir/$libname.ver~
8960 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8970 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8971 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8974 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8975 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8980 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8984 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8985 *** create shared libraries on Solaris systems. Therefore, libtool
8986 *** is disabling shared libraries support. We urge you to upgrade GNU
8987 *** binutils to release 2.9.1 or newer. Another option is to modify
8988 *** your PATH or compiler configuration so that the native linker is
8989 *** used, and then restart.
8992 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8993 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8994 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9000 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9001 case `$LD -v 2>&1` in
9002 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9006 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9007 *** reliably create shared libraries on SCO systems. Therefore, libtool
9008 *** is disabling shared libraries support. We urge you to upgrade GNU
9009 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9010 *** your PATH or compiler configuration so that the native linker is
9011 *** used, and then restart.
9016 # For security reasons, it is highly recommended that you always
9017 # use absolute paths for naming shared libraries, and exclude the
9018 # DT_RUNPATH tag from executables and libraries. But doing so
9019 # requires that you compile everything twice, which is a pain.
9020 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9021 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9022 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9023 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9032 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9035 hardcode_shlibpath_var
=no
9039 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9040 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9041 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9048 if test "$ld_shlibs" = no
; then
9050 hardcode_libdir_flag_spec
=
9051 export_dynamic_flag_spec
=
9052 whole_archive_flag_spec
=
9055 # PORTME fill in a description of your system's linker (not GNU ld)
9058 allow_undefined_flag
=unsupported
9059 always_export_symbols
=yes
9060 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'
9061 # Note: this linker hardcodes the directories in LIBPATH if there
9062 # are no directories specified by -L.
9063 hardcode_minus_L
=yes
9064 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9065 # Neither direct hardcoding nor static linking is supported with a
9067 hardcode_direct
=unsupported
9072 if test "$host_cpu" = ia64
; then
9073 # On IA64, the linker does run time linking by default, so we don't
9074 # have to do anything special.
9075 aix_use_runtimelinking
=no
9076 exp_sym_flag
='-Bexport'
9079 # If we're using GNU nm, then we don't want the "-C" option.
9080 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9081 # Also, AIX nm treats weak defined symbols like other global
9082 # defined symbols, whereas GNU nm marks them as "W".
9083 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9084 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'
9086 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'
9088 aix_use_runtimelinking
=no
9090 # Test if we are trying to use run time linking or normal
9091 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9092 # need to do runtime linking.
9093 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9094 for ld_flag
in $LDFLAGS; do
9095 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9096 aix_use_runtimelinking
=yes
9103 exp_sym_flag
='-bexport'
9104 no_entry_flag
='-bnoentry'
9107 # When large executables or shared objects are built, AIX ld can
9108 # have problems creating the table of contents. If linking a library
9109 # or program results in "error TOC overflow" add -mminimal-toc to
9110 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9111 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9115 hardcode_direct_absolute
=yes
9116 hardcode_libdir_separator
=':'
9117 link_all_deplibs
=yes
9118 file_list_spec
='${wl}-f,'
9120 if test "$GCC" = yes; then
9121 case $host_os in aix4.
[012]|aix4.
[012].
*)
9122 # We only want to do this on AIX 4.2 and lower, the check
9123 # below for broken collect2 doesn't work under 4.3+
9124 collect2name
=`${CC} -print-prog-name=collect2`
9125 if test -f "$collect2name" &&
9126 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9128 # We have reworked collect2
9131 # We have old collect2
9132 hardcode_direct
=unsupported
9133 # It fails to find uninstalled libraries when the uninstalled
9134 # path is not listed in the libpath. Setting hardcode_minus_L
9135 # to unsupported forces relinking
9136 hardcode_minus_L
=yes
9137 hardcode_libdir_flag_spec
='-L$libdir'
9138 hardcode_libdir_separator
=
9142 shared_flag
='-shared'
9143 if test "$aix_use_runtimelinking" = yes; then
9144 shared_flag
="$shared_flag "'${wl}-G'
9148 if test "$host_cpu" = ia64
; then
9149 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9150 # chokes on -Wl,-G. The following line is correct:
9153 if test "$aix_use_runtimelinking" = yes; then
9154 shared_flag
='${wl}-G'
9156 shared_flag
='${wl}-bM:SRE'
9161 export_dynamic_flag_spec
='${wl}-bexpall'
9162 # It seems that -bexpall does not export symbols beginning with
9163 # underscore (_), so it is better to generate a list of symbols to export.
9164 always_export_symbols
=yes
9165 if test "$aix_use_runtimelinking" = yes; then
9166 # Warning - without using the other runtime loading flags (-brtl),
9167 # -berok will link without error, but may produce a broken library.
9168 allow_undefined_flag
='-berok'
9169 # Determine the default libpath from the value encoded in an
9171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9172 /* end confdefs.h. */
9182 if ac_fn_c_try_link
"$LINENO"; then :
9184 lt_aix_libpath_sed
='
9185 /Import File Strings/,/^$/ {
9191 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9192 # Check for a 64-bit object if we didn't find anything.
9193 if test -z "$aix_libpath"; then
9194 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9197 rm -f core conftest.err conftest.
$ac_objext \
9198 conftest
$ac_exeext conftest.
$ac_ext
9199 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9201 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9202 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"
9204 if test "$host_cpu" = ia64
; then
9205 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9206 allow_undefined_flag
="-z nodefs"
9207 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"
9209 # Determine the default libpath from the value encoded in an
9211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9222 if ac_fn_c_try_link
"$LINENO"; then :
9224 lt_aix_libpath_sed
='
9225 /Import File Strings/,/^$/ {
9231 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9232 # Check for a 64-bit object if we didn't find anything.
9233 if test -z "$aix_libpath"; then
9234 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9237 rm -f core conftest.err conftest.
$ac_objext \
9238 conftest
$ac_exeext conftest.
$ac_ext
9239 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9241 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9242 # Warning - without using the other run time loading flags,
9243 # -berok will link without error, but may produce a broken library.
9244 no_undefined_flag
=' ${wl}-bernotok'
9245 allow_undefined_flag
=' ${wl}-berok'
9246 if test "$with_gnu_ld" = yes; then
9247 # We only use this code for GNU lds that support --whole-archive.
9248 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9250 # Exported symbols can be pulled into shared objects from archives
9251 whole_archive_flag_spec
='$convenience'
9253 archive_cmds_need_lc
=yes
9254 # This is similar to how AIX traditionally builds its shared libraries.
9255 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'
9263 # see comment about AmigaOS4 .so support
9264 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9265 archive_expsym_cmds
=''
9268 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)'
9269 hardcode_libdir_flag_spec
='-L$libdir'
9270 hardcode_minus_L
=yes
9276 export_dynamic_flag_spec
=-rdynamic
9279 cygwin
* | mingw
* | pw32
* | cegcc
*)
9280 # When not using gcc, we currently assume that we are using
9281 # Microsoft Visual C++.
9282 # hardcode_libdir_flag_spec is actually meaningless, as there is
9283 # no search path for DLLs.
9284 hardcode_libdir_flag_spec
=' '
9285 allow_undefined_flag
=unsupported
9286 # Tell ltmain to make .lib files, not .a files.
9288 # Tell ltmain to make .dll files, not .so files.
9290 # FIXME: Setting linknames here is a bad hack.
9291 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9292 # The linker will automatically build a .lib file if we build a DLL.
9293 old_archive_from_new_cmds
='true'
9294 # FIXME: Should let the user specify the lib program.
9295 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9296 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9297 enable_shared_with_static_runtimes
=yes
9300 darwin
* | rhapsody
*)
9303 archive_cmds_need_lc
=no
9305 hardcode_automatic
=yes
9306 hardcode_shlibpath_var
=unsupported
9307 if test "$lt_cv_ld_force_load" = "yes"; then
9308 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\"`'
9310 whole_archive_flag_spec
=''
9312 link_all_deplibs
=yes
9313 allow_undefined_flag
="$_lt_dar_allow_undefined"
9314 case $cc_basename in
9315 ifort
*) _lt_dar_can_shared
=yes ;;
9316 *) _lt_dar_can_shared
=$GCC ;;
9318 if test "$_lt_dar_can_shared" = "yes"; then
9319 output_verbose_link_cmd
=func_echo_all
9320 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9321 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9322 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}"
9323 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}"
9332 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333 hardcode_libdir_flag_spec
='-L$libdir'
9334 hardcode_shlibpath_var
=no
9337 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9338 # support. Future versions do this automatically, but an explicit c++rt0.o
9339 # does not break anything, and helps significantly (at the cost of a little
9342 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9343 hardcode_libdir_flag_spec
='-R$libdir'
9345 hardcode_shlibpath_var
=no
9348 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9350 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9352 hardcode_minus_L
=yes
9353 hardcode_shlibpath_var
=no
9356 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9357 freebsd
* | dragonfly
*)
9358 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9359 hardcode_libdir_flag_spec
='-R$libdir'
9361 hardcode_shlibpath_var
=no
9365 if test "$GCC" = yes; then
9366 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'
9368 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'
9370 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9371 hardcode_libdir_separator
=:
9374 # hardcode_minus_L: Not really in the search PATH,
9375 # but as the default location of the library.
9376 hardcode_minus_L
=yes
9377 export_dynamic_flag_spec
='${wl}-E'
9381 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9382 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9384 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9386 if test "$with_gnu_ld" = no
; then
9387 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9388 hardcode_libdir_flag_spec_ld
='+b $libdir'
9389 hardcode_libdir_separator
=:
9391 hardcode_direct_absolute
=yes
9392 export_dynamic_flag_spec
='${wl}-E'
9393 # hardcode_minus_L: Not really in the search PATH,
9394 # but as the default location of the library.
9395 hardcode_minus_L
=yes
9400 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9403 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9406 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9409 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9415 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9418 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9422 # Older versions of the 11.00 compiler do not understand -b yet
9423 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9425 $as_echo_n "checking if $CC understands -b... " >&6; }
9426 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9427 $as_echo_n "(cached) " >&6
9429 lt_cv_prog_compiler__b
=no
9430 save_LDFLAGS
="$LDFLAGS"
9431 LDFLAGS
="$LDFLAGS -b"
9432 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9433 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9434 # The linker can only warn and ignore the option if not recognized
9435 # So say no if there are warnings
9436 if test -s conftest.err
; then
9437 # Append any errors to the config.log.
9438 cat conftest.err
1>&5
9439 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9440 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9441 if diff conftest.exp conftest.er2
>/dev
/null
; then
9442 lt_cv_prog_compiler__b
=yes
9445 lt_cv_prog_compiler__b
=yes
9449 LDFLAGS
="$save_LDFLAGS"
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9453 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9455 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9456 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9458 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9464 if test "$with_gnu_ld" = no
; then
9465 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9466 hardcode_libdir_separator
=:
9471 hardcode_shlibpath_var
=no
9475 hardcode_direct_absolute
=yes
9476 export_dynamic_flag_spec
='${wl}-E'
9478 # hardcode_minus_L: Not really in the search PATH,
9479 # but as the default location of the library.
9480 hardcode_minus_L
=yes
9486 irix5
* | irix6
* | nonstopux
*)
9487 if test "$GCC" = yes; then
9488 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'
9489 # Try to use the -exported_symbol ld option, if it does not
9490 # work, assume that -exports_file does not work either and
9491 # implicitly export all symbols.
9492 save_LDFLAGS
="$LDFLAGS"
9493 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9498 if ac_fn_c_try_link
"$LINENO"; then :
9499 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'
9502 rm -f core conftest.err conftest.
$ac_objext \
9503 conftest
$ac_exeext conftest.
$ac_ext
9504 LDFLAGS
="$save_LDFLAGS"
9506 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'
9507 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'
9509 archive_cmds_need_lc
='no'
9510 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9511 hardcode_libdir_separator
=:
9513 link_all_deplibs
=yes
9517 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9518 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9520 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9522 hardcode_libdir_flag_spec
='-R$libdir'
9524 hardcode_shlibpath_var
=no
9528 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9530 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9531 hardcode_libdir_separator
=:
9532 hardcode_shlibpath_var
=no
9539 if test -f /usr
/libexec
/ld.so
; then
9541 hardcode_shlibpath_var
=no
9542 hardcode_direct_absolute
=yes
9543 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9544 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9545 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9546 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9547 export_dynamic_flag_spec
='${wl}-E'
9550 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9551 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9552 hardcode_libdir_flag_spec
='-R$libdir'
9555 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9556 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9566 hardcode_libdir_flag_spec
='-L$libdir'
9567 hardcode_minus_L
=yes
9568 allow_undefined_flag
=unsupported
9569 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'
9570 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9574 if test "$GCC" = yes; then
9575 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9576 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'
9578 allow_undefined_flag
=' -expect_unresolved \*'
9579 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'
9581 archive_cmds_need_lc
='no'
9582 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9583 hardcode_libdir_separator
=:
9586 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9587 if test "$GCC" = yes; then
9588 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9589 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'
9590 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9592 allow_undefined_flag
=' -expect_unresolved \*'
9593 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'
9594 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~
9595 $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'
9597 # Both c and cxx compiler support -rpath directly
9598 hardcode_libdir_flag_spec
='-rpath $libdir'
9600 archive_cmds_need_lc
='no'
9601 hardcode_libdir_separator
=:
9605 no_undefined_flag
=' -z defs'
9606 if test "$GCC" = yes; then
9608 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9609 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9610 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9612 case `$CC -V 2>&1` in
9615 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9616 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9617 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9621 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9622 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9623 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9627 hardcode_libdir_flag_spec
='-R$libdir'
9628 hardcode_shlibpath_var
=no
9630 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9632 # The compiler driver will combine and reorder linker options,
9633 # but understands `-z linker_flag'. GCC discards it without `$wl',
9634 # but is careful enough not to reorder.
9635 # Supported since Solaris 2.6 (maybe 2.5.1?)
9636 if test "$GCC" = yes; then
9637 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9639 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9643 link_all_deplibs
=yes
9647 if test "x$host_vendor" = xsequent
; then
9648 # Use $CC to link under sequent, because it throws in some extra .o
9649 # files that make .init and .fini sections work.
9650 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9652 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9654 hardcode_libdir_flag_spec
='-L$libdir'
9656 hardcode_minus_L
=yes
9657 hardcode_shlibpath_var
=no
9661 case $host_vendor in
9663 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664 hardcode_direct
=yes # is this really true???
9667 ## LD is ld it makes a PLAMLIB
9668 ## CC just makes a GrossModule.
9669 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9670 reload_cmds
='$CC -r -o $output$reload_objs'
9674 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9678 runpath_var
='LD_RUN_PATH'
9679 hardcode_shlibpath_var
=no
9683 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9684 hardcode_shlibpath_var
=no
9685 export_dynamic_flag_spec
='-Bexport'
9689 if test -d /usr
/nec
; then
9690 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691 hardcode_shlibpath_var
=no
9692 runpath_var
=LD_RUN_PATH
9693 hardcode_runpath_var
=yes
9698 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9699 no_undefined_flag
='${wl}-z,text'
9700 archive_cmds_need_lc
=no
9701 hardcode_shlibpath_var
=no
9702 runpath_var
='LD_RUN_PATH'
9704 if test "$GCC" = yes; then
9705 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9708 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9709 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9713 sysv5
* | sco3.2v5
* | sco5v6
*)
9714 # Note: We can NOT use -z defs as we might desire, because we do not
9715 # link with -lc, and that would cause any symbols used from libc to
9716 # always be unresolved, which means just about no library would
9717 # ever link correctly. If we're not using GNU ld we use -z text
9718 # though, which does catch some bad symbols but isn't as heavy-handed
9720 no_undefined_flag
='${wl}-z,text'
9721 allow_undefined_flag
='${wl}-z,nodefs'
9722 archive_cmds_need_lc
=no
9723 hardcode_shlibpath_var
=no
9724 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9725 hardcode_libdir_separator
=':'
9726 link_all_deplibs
=yes
9727 export_dynamic_flag_spec
='${wl}-Bexport'
9728 runpath_var
='LD_RUN_PATH'
9730 if test "$GCC" = yes; then
9731 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9732 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9734 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9740 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741 hardcode_libdir_flag_spec
='-L$libdir'
9742 hardcode_shlibpath_var
=no
9750 if test x
$host_vendor = xsni
; then
9752 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9753 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9760 $as_echo "$ld_shlibs" >&6; }
9761 test "$ld_shlibs" = no
&& can_build_shared
=no
9763 with_gnu_ld
=$with_gnu_ld
9780 # Do we need to explicitly link libc?
9782 case "x$archive_cmds_need_lc" in
9784 # Assume -lc should be added
9785 archive_cmds_need_lc
=yes
9787 if test "$enable_shared" = yes && test "$GCC" = yes; then
9788 case $archive_cmds in
9790 # FIXME: we may have to deal with multi-command sequences.
9793 # Test whether the compiler implicitly links with -lc since on some
9794 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9795 # to ld, don't add -lc before -lgcc.
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9797 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9798 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9802 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9805 (eval $ac_compile) 2>&5
9807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9808 test $ac_status = 0; } 2>conftest.err
; then
9811 libobjs
=conftest.
$ac_objext
9813 wl
=$lt_prog_compiler_wl
9814 pic_flag
=$lt_prog_compiler_pic
9820 lt_save_allow_undefined_flag
=$allow_undefined_flag
9821 allow_undefined_flag
=
9822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9823 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9826 test $ac_status = 0; }
9828 lt_cv_archive_cmds_need_lc
=no
9830 lt_cv_archive_cmds_need_lc
=yes
9832 allow_undefined_flag
=$lt_save_allow_undefined_flag
9834 cat conftest.err
1>&5
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9840 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9841 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10005 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10007 if test "$GCC" = yes; then
10009 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10010 *) lt_awk_arg
="/^libraries:/" ;;
10013 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10014 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10016 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10017 case $lt_search_path_spec in
10019 # if the path contains ";" then we assume it to be the separator
10020 # otherwise default to the standard path separator (i.e. ":") - it is
10021 # assumed that no part of a normal pathname contains ";" but that should
10022 # okay in the real world where ";" in dirpaths is itself problematic.
10023 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10026 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10029 # Ok, now we have the path, separated by spaces, we can step through it
10030 # and add multilib dir if necessary.
10031 lt_tmp_lt_search_path_spec
=
10032 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10033 for lt_sys_path
in $lt_search_path_spec; do
10034 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10035 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10037 test -d "$lt_sys_path" && \
10038 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10041 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10042 BEGIN {RS=" "; FS="/|\n";} {
10045 for (lt_i = NF; lt_i > 0; lt_i--) {
10046 if ($lt_i != "" && $lt_i != ".") {
10047 if ($lt_i == "..") {
10050 if (lt_count == 0) {
10051 lt_foo="/" $lt_i lt_foo;
10058 if (lt_foo != "") { lt_freq[lt_foo]++; }
10059 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10061 # AWK program above erroneously prepends '/' to C:/dos/paths
10064 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10065 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10067 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10069 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10071 library_names_spec
=
10072 libname_spec
='lib$name'
10076 postuninstall_cmds
=
10080 shlibpath_overrides_runpath
=unknown
10082 dynamic_linker
="$host_os ld.so"
10083 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10084 need_lib_prefix
=unknown
10085 hardcode_into_libs
=no
10087 # when you set need_version to no, make sure it does not cause -set_version
10088 # flags to be left without arguments
10089 need_version
=unknown
10094 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10095 shlibpath_var
=LIBPATH
10097 # AIX 3 has no versioning support, so we append a major version to the name.
10098 soname_spec
='${libname}${release}${shared_ext}$major'
10105 hardcode_into_libs
=yes
10106 if test "$host_cpu" = ia64
; then
10107 # AIX 5 supports IA64
10108 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10109 shlibpath_var
=LD_LIBRARY_PATH
10111 # With GCC up to 2.95.x, collect2 would create an import file
10112 # for dependence libraries. The import file would start with
10113 # the line `#! .'. This would cause the generated library to
10114 # depend on `.', always an invalid library. This was fixed in
10115 # development snapshots of GCC prior to 3.0.
10117 aix4 | aix4.
[01] | aix4.
[01].
*)
10118 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10120 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10123 can_build_shared
=no
10127 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10128 # soname into executable. Probably we can add versioning support to
10129 # collect2, so additional links can be useful in future.
10130 if test "$aix_use_runtimelinking" = yes; then
10131 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10132 # instead of lib<name>.a to let people know that these are not
10133 # typical AIX shared libraries.
10134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10136 # We preserve .a as extension for shared libraries through AIX4.2
10137 # and later when we are not doing run time linking.
10138 library_names_spec
='${libname}${release}.a $libname.a'
10139 soname_spec
='${libname}${release}${shared_ext}$major'
10141 shlibpath_var
=LIBPATH
10148 # Since July 2007 AmigaOS4 officially supports .so libraries.
10149 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10150 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10153 library_names_spec
='$libname.ixlibrary $libname.a'
10154 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10155 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'
10161 library_names_spec
='${libname}${shared_ext}'
10162 dynamic_linker
="$host_os ld.so"
10163 shlibpath_var
=LIBRARY_PATH
10169 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10170 soname_spec
='${libname}${release}${shared_ext}$major'
10171 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10172 shlibpath_var
=LD_LIBRARY_PATH
10173 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10174 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10175 # the default ld.so.conf also contains /usr/contrib/lib and
10176 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10177 # libtool to hard-code these into programs
10180 cygwin
* | mingw
* | pw32
* | cegcc
*)
10181 version_type
=windows
10186 case $GCC,$host_os in
10187 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10188 library_names_spec
='$libname.dll.a'
10189 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10190 postinstall_cmds
='base_file=`basename \${file}`~
10191 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10192 dldir=$destdir/`dirname \$dlpath`~
10193 test -d \$dldir || mkdir -p \$dldir~
10194 $install_prog $dir/$dlname \$dldir/$dlname~
10195 chmod a+x \$dldir/$dlname~
10196 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10197 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10199 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10200 dlpath=$dir/\$dldll~
10202 shlibpath_overrides_runpath
=yes
10206 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10207 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10209 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10212 # MinGW DLLs use traditional 'lib' prefix
10213 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10216 # pw32 DLLs use 'pw' prefix rather than 'lib'
10217 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10223 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10226 dynamic_linker
='Win32 ld.exe'
10227 # FIXME: first we should search . and the directory the executable is in
10231 darwin
* | rhapsody
*)
10232 dynamic_linker
="$host_os dyld"
10233 version_type
=darwin
10236 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10237 soname_spec
='${libname}${release}${major}$shared_ext'
10238 shlibpath_overrides_runpath
=yes
10239 shlibpath_var
=DYLD_LIBRARY_PATH
10240 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10242 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10243 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10250 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10251 soname_spec
='${libname}${release}${shared_ext}$major'
10252 shlibpath_var
=LD_LIBRARY_PATH
10255 freebsd
* | dragonfly
*)
10256 # DragonFly does not have aout. When/if they implement a new
10257 # versioning mechanism, adjust this.
10258 if test -x /usr
/bin
/objformat
; then
10259 objformat
=`/usr/bin/objformat`
10262 freebsd
[23].
*) objformat
=aout
;;
10263 *) objformat
=elf
;;
10266 version_type
=freebsd-
$objformat
10267 case $version_type in
10269 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10274 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10278 shlibpath_var
=LD_LIBRARY_PATH
10281 shlibpath_overrides_runpath
=yes
10283 freebsd3.
[01]* | freebsdelf3.
[01]*)
10284 shlibpath_overrides_runpath
=yes
10285 hardcode_into_libs
=yes
10287 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10288 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10289 shlibpath_overrides_runpath
=no
10290 hardcode_into_libs
=yes
10292 *) # from 4.6 on, and DragonFly
10293 shlibpath_overrides_runpath
=yes
10294 hardcode_into_libs
=yes
10303 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10304 soname_spec
='${libname}${release}${shared_ext}$major'
10305 shlibpath_var
=LD_LIBRARY_PATH
10306 hardcode_into_libs
=yes
10313 dynamic_linker
="$host_os runtime_loader"
10314 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10315 soname_spec
='${libname}${release}${shared_ext}$major'
10316 shlibpath_var
=LIBRARY_PATH
10317 shlibpath_overrides_runpath
=yes
10318 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10319 hardcode_into_libs
=yes
10322 hpux9
* | hpux10
* | hpux11
*)
10323 # Give a soname corresponding to the major version so that dld.sl refuses to
10324 # link against other versions.
10331 hardcode_into_libs
=yes
10332 dynamic_linker
="$host_os dld.so"
10333 shlibpath_var
=LD_LIBRARY_PATH
10334 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10335 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336 soname_spec
='${libname}${release}${shared_ext}$major'
10337 if test "X$HPUX_IA64_MODE" = X32
; then
10338 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10340 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10342 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10346 hardcode_into_libs
=yes
10347 dynamic_linker
="$host_os dld.sl"
10348 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10349 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10350 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351 soname_spec
='${libname}${release}${shared_ext}$major'
10352 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10353 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10357 dynamic_linker
="$host_os dld.sl"
10358 shlibpath_var
=SHLIB_PATH
10359 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10360 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361 soname_spec
='${libname}${release}${shared_ext}$major'
10364 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10365 postinstall_cmds
='chmod 555 $lib'
10366 # or fails outright, so override atomically:
10367 install_override_mode
=555
10374 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10375 soname_spec
='${libname}${release}${shared_ext}$major'
10376 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10377 shlibpath_var
=LD_LIBRARY_PATH
10378 shlibpath_overrides_runpath
=no
10379 hardcode_into_libs
=yes
10382 irix5
* | irix6
* | nonstopux
*)
10384 nonstopux
*) version_type
=nonstopux
;;
10386 if test "$lt_cv_prog_gnu_ld" = yes; then
10394 soname_spec
='${libname}${release}${shared_ext}$major'
10395 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10397 irix5
* | nonstopux
*)
10398 libsuff
= shlibsuff
=
10401 case $LD in # libtool.m4 will add one of these switches to LD
10402 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10403 libsuff
= shlibsuff
= libmagic
=32-bit;;
10404 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10405 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10406 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10407 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10408 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10412 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10413 shlibpath_overrides_runpath
=no
10414 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10415 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10416 hardcode_into_libs
=yes
10419 # No shared lib support for Linux oldld, aout, or coff.
10420 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10424 # This must be Linux ELF.
10425 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10429 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430 soname_spec
='${libname}${release}${shared_ext}$major'
10431 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10432 shlibpath_var
=LD_LIBRARY_PATH
10433 shlibpath_overrides_runpath
=no
10435 # Some binutils ld are patched to set DT_RUNPATH
10436 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10437 $as_echo_n "(cached) " >&6
10439 lt_cv_shlibpath_overrides_runpath
=no
10440 save_LDFLAGS
=$LDFLAGS
10441 save_libdir
=$libdir
10442 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10443 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10445 /* end confdefs.h. */
10455 if ac_fn_c_try_link
"$LINENO"; then :
10456 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10457 lt_cv_shlibpath_overrides_runpath
=yes
10460 rm -f core conftest.err conftest.
$ac_objext \
10461 conftest
$ac_exeext conftest.
$ac_ext
10462 LDFLAGS
=$save_LDFLAGS
10463 libdir
=$save_libdir
10467 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10469 # This implies no fast_install, which is unacceptable.
10470 # Some rework will be needed to allow for fast_install
10471 # before this can be enabled.
10472 hardcode_into_libs
=yes
10474 # Append ld.so.conf contents to the search path
10475 if test -f /etc
/ld.so.conf
; then
10476 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' ' '`
10477 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10480 # We used to test for /lib/ld.so.1 and disable shared libraries on
10481 # powerpc, because MkLinux only supported shared libraries with the
10482 # GNU dynamic linker. Since this was broken with cross compilers,
10483 # most powerpc-linux boxes support dynamic linking these days and
10484 # people can always --disable-shared, the test was removed, and we
10485 # assume the GNU/Linux dynamic linker is in use.
10486 dynamic_linker
='GNU/Linux ld.so'
10493 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10494 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10495 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10496 dynamic_linker
='NetBSD (a.out) ld.so'
10498 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10499 soname_spec
='${libname}${release}${shared_ext}$major'
10500 dynamic_linker
='NetBSD ld.elf_so'
10502 shlibpath_var
=LD_LIBRARY_PATH
10503 shlibpath_overrides_runpath
=yes
10504 hardcode_into_libs
=yes
10509 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10510 shlibpath_var
=LD_LIBRARY_PATH
10511 shlibpath_overrides_runpath
=yes
10518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 soname_spec
='${libname}${release}${shared_ext}$major'
10520 shlibpath_var
=LD_LIBRARY_PATH
10521 shlibpath_overrides_runpath
=no
10522 hardcode_into_libs
=yes
10523 dynamic_linker
='ldqnx.so'
10528 sys_lib_dlsearch_path_spec
="/usr/lib"
10530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10532 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10533 *) need_version
=no
;;
10535 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10536 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10537 shlibpath_var
=LD_LIBRARY_PATH
10538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10540 openbsd2.
[89] | openbsd2.
[89].
*)
10541 shlibpath_overrides_runpath
=no
10544 shlibpath_overrides_runpath
=yes
10548 shlibpath_overrides_runpath
=yes
10553 libname_spec
='$name'
10556 library_names_spec
='$libname${shared_ext} $libname.a'
10557 dynamic_linker
='OS/2 ld.exe'
10558 shlibpath_var
=LIBPATH
10561 osf3
* | osf4
* | osf5
*)
10565 soname_spec
='${libname}${release}${shared_ext}$major'
10566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567 shlibpath_var
=LD_LIBRARY_PATH
10568 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10569 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10580 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581 soname_spec
='${libname}${release}${shared_ext}$major'
10582 shlibpath_var
=LD_LIBRARY_PATH
10583 shlibpath_overrides_runpath
=yes
10584 hardcode_into_libs
=yes
10585 # ldd complains unless libraries are executable
10586 postinstall_cmds
='chmod +x $lib'
10591 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10592 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10593 shlibpath_var
=LD_LIBRARY_PATH
10594 shlibpath_overrides_runpath
=yes
10595 if test "$with_gnu_ld" = yes; then
10603 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604 soname_spec
='${libname}${release}${shared_ext}$major'
10605 shlibpath_var
=LD_LIBRARY_PATH
10606 case $host_vendor in
10608 shlibpath_overrides_runpath
=no
10610 runpath_var
=LD_RUN_PATH
10618 shlibpath_overrides_runpath
=no
10619 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10625 if test -d /usr
/nec
;then
10627 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10628 soname_spec
='$libname${shared_ext}.$major'
10629 shlibpath_var
=LD_LIBRARY_PATH
10633 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10634 version_type
=freebsd-elf
10637 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10638 soname_spec
='${libname}${release}${shared_ext}$major'
10639 shlibpath_var
=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath
=yes
10641 hardcode_into_libs
=yes
10642 if test "$with_gnu_ld" = yes; then
10643 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10645 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10648 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10652 sys_lib_dlsearch_path_spec
='/usr/lib'
10656 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10660 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 shlibpath_var
=LD_LIBRARY_PATH
10662 shlibpath_overrides_runpath
=no
10663 hardcode_into_libs
=yes
10668 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669 soname_spec
='${libname}${release}${shared_ext}$major'
10670 shlibpath_var
=LD_LIBRARY_PATH
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10678 $as_echo "$dynamic_linker" >&6; }
10679 test "$dynamic_linker" = no
&& can_build_shared
=no
10681 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10682 if test "$GCC" = yes; then
10683 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10686 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10687 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10689 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10690 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10785 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10787 if test -n "$hardcode_libdir_flag_spec" ||
10788 test -n "$runpath_var" ||
10789 test "X$hardcode_automatic" = "Xyes" ; then
10791 # We can hardcode non-existent directories.
10792 if test "$hardcode_direct" != no
&&
10793 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10794 # have to relink, otherwise we might link with an installed library
10795 # when we should be linking with a yet-to-be-installed one
10796 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10797 test "$hardcode_minus_L" != no
; then
10798 # Linking always hardcodes the temporary library directory.
10799 hardcode_action
=relink
10801 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10802 hardcode_action
=immediate
10805 # We cannot hardcode anything, or else we can only hardcode existing
10807 hardcode_action
=unsupported
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10810 $as_echo "$hardcode_action" >&6; }
10812 if test "$hardcode_action" = relink ||
10813 test "$inherit_rpath" = yes; then
10814 # Fast installation is not supported
10815 enable_fast_install
=no
10816 elif test "$shlibpath_overrides_runpath" = yes ||
10817 test "$enable_shared" = no
; then
10818 # Fast installation is not necessary
10819 enable_fast_install
=needless
10827 if test "x$enable_dlopen" != xyes
; then
10828 enable_dlopen
=unknown
10829 enable_dlopen_self
=unknown
10830 enable_dlopen_self_static
=unknown
10837 lt_cv_dlopen
="load_add_on"
10839 lt_cv_dlopen_self
=yes
10842 mingw
* | pw32
* | cegcc
*)
10843 lt_cv_dlopen
="LoadLibrary"
10848 lt_cv_dlopen
="dlopen"
10853 # if libdl is installed we need to link against it
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10855 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10856 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10857 $as_echo_n "(cached) " >&6
10859 ac_check_lib_save_LIBS
=$LIBS
10861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10862 /* end confdefs.h. */
10864 /* Override any GCC internal prototype to avoid an error.
10865 Use char because int might match the return type of a GCC
10866 builtin and then its argument prototype would still apply. */
10879 if ac_fn_c_try_link
"$LINENO"; then :
10880 ac_cv_lib_dl_dlopen
=yes
10882 ac_cv_lib_dl_dlopen
=no
10884 rm -f core conftest.err conftest.
$ac_objext \
10885 conftest
$ac_exeext conftest.
$ac_ext
10886 LIBS
=$ac_check_lib_save_LIBS
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10889 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10890 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10891 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10894 lt_cv_dlopen
="dyld"
10896 lt_cv_dlopen_self
=yes
10903 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
10904 if test "x$ac_cv_func_shl_load" = x
""yes; then :
10905 lt_cv_dlopen
="shl_load"
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10908 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10909 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10910 $as_echo_n "(cached) " >&6
10912 ac_check_lib_save_LIBS
=$LIBS
10914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10917 /* Override any GCC internal prototype to avoid an error.
10918 Use char because int might match the return type of a GCC
10919 builtin and then its argument prototype would still apply. */
10927 return shl_load ();
10932 if ac_fn_c_try_link
"$LINENO"; then :
10933 ac_cv_lib_dld_shl_load
=yes
10935 ac_cv_lib_dld_shl_load
=no
10937 rm -f core conftest.err conftest.
$ac_objext \
10938 conftest
$ac_exeext conftest.
$ac_ext
10939 LIBS
=$ac_check_lib_save_LIBS
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10942 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10943 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
10944 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10946 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10947 if test "x$ac_cv_func_dlopen" = x
""yes; then :
10948 lt_cv_dlopen
="dlopen"
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10951 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10952 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10953 $as_echo_n "(cached) " >&6
10955 ac_check_lib_save_LIBS
=$LIBS
10957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10958 /* end confdefs.h. */
10960 /* Override any GCC internal prototype to avoid an error.
10961 Use char because int might match the return type of a GCC
10962 builtin and then its argument prototype would still apply. */
10975 if ac_fn_c_try_link
"$LINENO"; then :
10976 ac_cv_lib_dl_dlopen
=yes
10978 ac_cv_lib_dl_dlopen
=no
10980 rm -f core conftest.err conftest.
$ac_objext \
10981 conftest
$ac_exeext conftest.
$ac_ext
10982 LIBS
=$ac_check_lib_save_LIBS
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10985 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10986 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10987 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10990 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10991 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
10994 ac_check_lib_save_LIBS
=$LIBS
10995 LIBS
="-lsvld $LIBS"
10996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10999 /* Override any GCC internal prototype to avoid an error.
11000 Use char because int might match the return type of a GCC
11001 builtin and then its argument prototype would still apply. */
11014 if ac_fn_c_try_link
"$LINENO"; then :
11015 ac_cv_lib_svld_dlopen
=yes
11017 ac_cv_lib_svld_dlopen
=no
11019 rm -f core conftest.err conftest.
$ac_objext \
11020 conftest
$ac_exeext conftest.
$ac_ext
11021 LIBS
=$ac_check_lib_save_LIBS
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11024 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11025 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
11026 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11029 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11030 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
11033 ac_check_lib_save_LIBS
=$LIBS
11035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11048 return dld_link ();
11053 if ac_fn_c_try_link
"$LINENO"; then :
11054 ac_cv_lib_dld_dld_link
=yes
11056 ac_cv_lib_dld_dld_link
=no
11058 rm -f core conftest.err conftest.
$ac_objext \
11059 conftest
$ac_exeext conftest.
$ac_ext
11060 LIBS
=$ac_check_lib_save_LIBS
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11063 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11064 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
11065 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11086 if test "x$lt_cv_dlopen" != xno
; then
11092 case $lt_cv_dlopen in
11094 save_CPPFLAGS
="$CPPFLAGS"
11095 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11097 save_LDFLAGS
="$LDFLAGS"
11098 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11101 LIBS
="$lt_cv_dlopen_libs $LIBS"
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11104 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11105 if test "${lt_cv_dlopen_self+set}" = set; then :
11106 $as_echo_n "(cached) " >&6
11108 if test "$cross_compiling" = yes; then :
11109 lt_cv_dlopen_self
=cross
11111 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11112 lt_status
=$lt_dlunknown
11113 cat > conftest.
$ac_ext <<_LT_EOF
11114 #line 11114 "configure"
11115 #include "confdefs.h"
11124 # define LT_DLGLOBAL RTLD_GLOBAL
11127 # define LT_DLGLOBAL DL_GLOBAL
11129 # define LT_DLGLOBAL 0
11133 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11134 find out it does not work in some platform. */
11135 #ifndef LT_DLLAZY_OR_NOW
11137 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11140 # define LT_DLLAZY_OR_NOW DL_LAZY
11143 # define LT_DLLAZY_OR_NOW RTLD_NOW
11146 # define LT_DLLAZY_OR_NOW DL_NOW
11148 # define LT_DLLAZY_OR_NOW 0
11155 /* When -fvisbility=hidden is used, assume the code has been annotated
11156 correspondingly for the symbols needed. */
11157 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11158 void fnord () __attribute__((visibility("default")));
11161 void fnord () { int i=42; }
11164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11165 int status = $lt_dlunknown;
11169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11173 else puts (dlerror ());
11175 /* dlclose (self); */
11183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11184 (eval $ac_link) 2>&5
11186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11187 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11188 (.
/conftest
; exit; ) >&5 2>/dev
/null
11190 case x
$lt_status in
11191 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11192 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11193 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11196 # compilation failed
11197 lt_cv_dlopen_self
=no
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11205 $as_echo "$lt_cv_dlopen_self" >&6; }
11207 if test "x$lt_cv_dlopen_self" = xyes
; then
11208 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11210 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11211 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
11214 if test "$cross_compiling" = yes; then :
11215 lt_cv_dlopen_self_static
=cross
11217 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11218 lt_status
=$lt_dlunknown
11219 cat > conftest.
$ac_ext <<_LT_EOF
11220 #line 11220 "configure"
11221 #include "confdefs.h"
11230 # define LT_DLGLOBAL RTLD_GLOBAL
11233 # define LT_DLGLOBAL DL_GLOBAL
11235 # define LT_DLGLOBAL 0
11239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11240 find out it does not work in some platform. */
11241 #ifndef LT_DLLAZY_OR_NOW
11243 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11246 # define LT_DLLAZY_OR_NOW DL_LAZY
11249 # define LT_DLLAZY_OR_NOW RTLD_NOW
11252 # define LT_DLLAZY_OR_NOW DL_NOW
11254 # define LT_DLLAZY_OR_NOW 0
11261 /* When -fvisbility=hidden is used, assume the code has been annotated
11262 correspondingly for the symbols needed. */
11263 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11264 void fnord () __attribute__((visibility("default")));
11267 void fnord () { int i=42; }
11270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11271 int status = $lt_dlunknown;
11275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11278 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11279 else puts (dlerror ());
11281 /* dlclose (self); */
11289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11290 (eval $ac_link) 2>&5
11292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11293 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11294 (.
/conftest
; exit; ) >&5 2>/dev
/null
11296 case x
$lt_status in
11297 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11298 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11299 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11302 # compilation failed
11303 lt_cv_dlopen_self_static
=no
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11311 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11314 CPPFLAGS
="$save_CPPFLAGS"
11315 LDFLAGS
="$save_LDFLAGS"
11320 case $lt_cv_dlopen_self in
11321 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11322 *) enable_dlopen_self
=unknown
;;
11325 case $lt_cv_dlopen_self_static in
11326 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11327 *) enable_dlopen_self_static
=unknown
;;
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11350 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11351 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11352 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11353 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11355 $as_echo "yes" >&6; }
11357 # FIXME - insert some real tests, host_os isn't really good enough
11360 if test -n "$STRIP" ; then
11361 striplib
="$STRIP -x"
11362 old_striplib
="$STRIP -S"
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11364 $as_echo "yes" >&6; }
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11388 # Report which library types will actually be built
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11390 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11392 $as_echo "$can_build_shared" >&6; }
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11395 $as_echo_n "checking whether to build shared libraries... " >&6; }
11396 test "$can_build_shared" = "no" && enable_shared
=no
11398 # On AIX, shared libraries and static libraries use the same namespace, and
11399 # are all built from PIC.
11402 test "$enable_shared" = yes && enable_static
=no
11403 if test -n "$RANLIB"; then
11404 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11405 postinstall_cmds
='$RANLIB $lib'
11410 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11411 test "$enable_shared" = yes && enable_static
=no
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11416 $as_echo "$enable_shared" >&6; }
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11419 $as_echo_n "checking whether to build static libraries... " >&6; }
11420 # Make sure either enable_shared or enable_static is yes.
11421 test "$enable_shared" = yes || enable_static
=yes
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11423 $as_echo "$enable_static" >&6; }
11430 ac_cpp
='$CPP $CPPFLAGS'
11431 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11432 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11433 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11449 ac_config_commands
="$ac_config_commands libtool"
11454 # Only expand once:
11461 *-cygwin* |
*-mingw*)
11462 # 'host' will be top-level target in the case of a target lib,
11463 # we must compare to with_cross_host to decide if this is a native
11464 # or cross-compiler and select where to install dlls appropriately.
11465 if test -n "$with_cross_host" &&
11466 test x
"$with_cross_host" != x
"no"; then
11467 lt_host_flags
='-no-undefined -bindir "$(toolexeclibdir)"';
11469 lt_host_flags
='-no-undefined -bindir "$(bindir)"';
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11483 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11484 # Check whether --enable-maintainer-mode was given.
11485 if test "${enable_maintainer_mode+set}" = set; then :
11486 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
11488 USE_MAINTAINER_MODE
=no
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11492 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11493 if test $USE_MAINTAINER_MODE = yes; then
11494 MAINTAINER_MODE_TRUE
=
11495 MAINTAINER_MODE_FALSE
='#'
11497 MAINTAINER_MODE_TRUE
='#'
11498 MAINTAINER_MODE_FALSE
=
11501 MAINT
=$MAINTAINER_MODE_TRUE
11505 # For libtool versioning info, format is CURRENT:REVISION:AGE
11506 libtool_VERSION
=3:0:2
11509 # Check for used threading-model
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
11511 $as_echo_n "checking for thread model used by GCC... " >&6; }
11512 target_thread_file
=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
11514 $as_echo "$target_thread_file" >&6; }
11516 # Get target configury.
11517 .
${srcdir}/configure.tgt
11518 if test -n "$UNSUPPORTED"; then
11519 as_fn_error
"Configuration ${target} is unsupported." "$LINENO" 5
11522 # Disable fallbacks to __sync routines from libgcc. Otherwise we'll
11523 # make silly decisions about what the cpu can do.
11524 CFLAGS
="$save_CFLAGS -fno-sync-libcalls $XCFLAGS"
11526 # Check header files.
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11528 $as_echo_n "checking for ANSI C header files... " >&6; }
11529 if test "${ac_cv_header_stdc+set}" = set; then :
11530 $as_echo_n "(cached) " >&6
11532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h. */
11534 #include <stdlib.h>
11535 #include <stdarg.h>
11536 #include <string.h>
11547 if ac_fn_c_try_compile
"$LINENO"; then :
11548 ac_cv_header_stdc
=yes
11550 ac_cv_header_stdc
=no
11552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11554 if test $ac_cv_header_stdc = yes; then
11555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11557 /* end confdefs.h. */
11558 #include <string.h>
11561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11562 $EGREP "memchr" >/dev
/null
2>&1; then :
11565 ac_cv_header_stdc
=no
11571 if test $ac_cv_header_stdc = yes; then
11572 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h. */
11575 #include <stdlib.h>
11578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11579 $EGREP "free" >/dev
/null
2>&1; then :
11582 ac_cv_header_stdc
=no
11588 if test $ac_cv_header_stdc = yes; then
11589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11590 if test "$cross_compiling" = yes; then :
11593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11594 /* end confdefs.h. */
11596 #include <stdlib.h>
11597 #if ((' ' & 0x0FF) == 0x020)
11598 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11599 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11601 # define ISLOWER(c) \
11602 (('a' <= (c) && (c) <= 'i') \
11603 || ('j' <= (c) && (c) <= 'r') \
11604 || ('s' <= (c) && (c) <= 'z'))
11605 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11608 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11613 for (i = 0; i < 256; i++)
11614 if (XOR (islower (i), ISLOWER (i))
11615 || toupper (i) != TOUPPER (i))
11620 if ac_fn_c_try_run
"$LINENO"; then :
11623 ac_cv_header_stdc
=no
11625 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11626 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11632 $as_echo "$ac_cv_header_stdc" >&6; }
11633 if test $ac_cv_header_stdc = yes; then
11635 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
11640 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
11641 if test "${gcc_cv_header_string+set}" = set; then :
11642 $as_echo_n "(cached) " >&6
11644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11646 #include <string.h>
11647 #include <strings.h>
11656 if ac_fn_c_try_compile
"$LINENO"; then :
11657 gcc_cv_header_string
=yes
11659 gcc_cv_header_string
=no
11661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
11664 $as_echo "$gcc_cv_header_string" >&6; }
11665 if test $gcc_cv_header_string = yes; then
11667 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
11673 inttype_headers
=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11675 acx_cv_header_stdint
=stddef.h
11676 acx_cv_header_stdint_kind
="(already complete)"
11677 for i
in stdint.h
$inttype_headers; do
11678 unset ac_cv_type_uintptr_t
11679 unset ac_cv_type_uintmax_t
11680 unset ac_cv_type_int_least32_t
11681 unset ac_cv_type_int_fast32_t
11682 unset ac_cv_type_uint64_t
11683 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
11684 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
11687 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
11688 acx_cv_header_stdint
=$i
11693 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11696 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
11699 acx_cv_header_stdint_kind
="(mostly complete)"
11702 ac_fn_c_check_type
"$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
11705 if test "x$ac_cv_type_int_least32_t" = x
""yes; then :
11708 acx_cv_header_stdint_kind
="(mostly complete)"
11711 ac_fn_c_check_type
"$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
11714 if test "x$ac_cv_type_int_fast32_t" = x
""yes; then :
11717 acx_cv_header_stdint_kind
="(mostly complete)"
11720 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11723 if test "x$ac_cv_type_uint64_t" = x
""yes; then :
11726 acx_cv_header_stdint_kind
="(lacks uint64_t)"
11731 if test "$acx_cv_header_stdint" = stddef.h
; then
11732 acx_cv_header_stdint_kind
="(lacks uintmax_t)"
11733 for i
in stdint.h
$inttype_headers; do
11734 unset ac_cv_type_uintptr_t
11735 unset ac_cv_type_uint32_t
11736 unset ac_cv_type_uint64_t
11737 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
11738 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
11741 if test "x$ac_cv_type_uint32_t" = x
""yes; then :
11742 acx_cv_header_stdint
=$i
11747 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11750 if test "x$ac_cv_type_uint64_t" = x
""yes; then :
11754 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11757 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
11764 if test "$acx_cv_header_stdint" = stddef.h
; then
11765 acx_cv_header_stdint_kind
="(u_intXX_t style)"
11766 for i
in sys
/types.h
$inttype_headers; do
11767 unset ac_cv_type_u_int32_t
11768 unset ac_cv_type_u_int64_t
11769 $as_echo_n "looking for u_intXX_t types in $i, " >&6
11770 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
11773 if test "x$ac_cv_type_u_int32_t" = x
""yes; then :
11774 acx_cv_header_stdint
=$i
11779 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
11782 if test "x$ac_cv_type_u_int64_t" = x
""yes; then :
11789 if test "$acx_cv_header_stdint" = stddef.h
; then
11790 acx_cv_header_stdint_kind
="(using manual detection)"
11793 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t
=no
11794 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t
=no
11795 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t
=no
11796 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t
=no
11797 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t
=no
11799 # ----------------- Summarize what we found so far
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
11802 $as_echo_n "checking what to include in gstdint.h... " >&6; }
11804 case `$as_basename -- gstdint.h ||
11805 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
11806 Xgstdint.h : 'X\(//\)$' \| \
11807 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
11808 $as_echo X/gstdint.h |
11809 sed '/^.*\/\([^/][^/]*\)\/*$/{
11822 stdint.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
11823 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11824 inttypes.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
11825 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
11830 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
11832 # ----------------- done included file, check C basic types --------
11834 # Lacking an uintptr_t? Test size of void *
11835 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
11836 stddef.h
:* |
*:no
) # The cast to long int works around a bug in the HP C Compiler
11837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11839 # This bug is HP SR number 8606223364.
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
11841 $as_echo_n "checking size of void *... " >&6; }
11842 if test "${ac_cv_sizeof_void_p+set}" = set; then :
11843 $as_echo_n "(cached) " >&6
11845 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
11848 if test "$ac_cv_type_void_p" = yes; then
11849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11851 { as_fn_set_status
77
11852 as_fn_error
"cannot compute sizeof (void *)
11853 See \`config.log' for more details." "$LINENO" 5; }; }
11855 ac_cv_sizeof_void_p
=0
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
11861 $as_echo "$ac_cv_sizeof_void_p" >&6; }
11865 cat >>confdefs.h
<<_ACEOF
11866 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
11872 # Lacking an uint64_t? Test size of long
11873 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
11874 stddef.h
:*:* |
*:no
:no
) # The cast to long int works around a bug in the HP C Compiler
11875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11877 # This bug is HP SR number 8606223364.
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11879 $as_echo_n "checking size of long... " >&6; }
11880 if test "${ac_cv_sizeof_long+set}" = set; then :
11881 $as_echo_n "(cached) " >&6
11883 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
11886 if test "$ac_cv_type_long" = yes; then
11887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11889 { as_fn_set_status
77
11890 as_fn_error
"cannot compute sizeof (long)
11891 See \`config.log' for more details." "$LINENO" 5; }; }
11893 ac_cv_sizeof_long
=0
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11899 $as_echo "$ac_cv_sizeof_long" >&6; }
11903 cat >>confdefs.h
<<_ACEOF
11904 #define SIZEOF_LONG $ac_cv_sizeof_long
11910 if test $acx_cv_header_stdint = stddef.h
; then
11911 # Lacking a good header? Test size of everything and deduce all types.
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 int" >&5
11917 $as_echo_n "checking size of int... " >&6; }
11918 if test "${ac_cv_sizeof_int+set}" = set; then :
11919 $as_echo_n "(cached) " >&6
11921 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
11924 if test "$ac_cv_type_int" = 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 (int)
11929 See \`config.log' for more details." "$LINENO" 5; }; }
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11937 $as_echo "$ac_cv_sizeof_int" >&6; }
11941 cat >>confdefs.h
<<_ACEOF
11942 #define SIZEOF_INT $ac_cv_sizeof_int
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 short" >&5
11951 $as_echo_n "checking size of short... " >&6; }
11952 if test "${ac_cv_sizeof_short+set}" = set; then :
11953 $as_echo_n "(cached) " >&6
11955 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
11958 if test "$ac_cv_type_short" = 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 (short)
11963 See \`config.log' for more details." "$LINENO" 5; }; }
11965 ac_cv_sizeof_short
=0
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
11971 $as_echo "$ac_cv_sizeof_short" >&6; }
11975 cat >>confdefs.h
<<_ACEOF
11976 #define SIZEOF_SHORT $ac_cv_sizeof_short
11980 # The cast to long int works around a bug in the HP C Compiler
11981 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11982 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11983 # This bug is HP SR number 8606223364.
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
11985 $as_echo_n "checking size of char... " >&6; }
11986 if test "${ac_cv_sizeof_char+set}" = set; then :
11987 $as_echo_n "(cached) " >&6
11989 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
11992 if test "$ac_cv_type_char" = yes; then
11993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11995 { as_fn_set_status
77
11996 as_fn_error
"cannot compute sizeof (char)
11997 See \`config.log' for more details." "$LINENO" 5; }; }
11999 ac_cv_sizeof_char
=0
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12005 $as_echo "$ac_cv_sizeof_char" >&6; }
12009 cat >>confdefs.h
<<_ACEOF
12010 #define SIZEOF_CHAR $ac_cv_sizeof_char
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12016 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
12017 case "$ac_cv_sizeof_char" in
12018 1) acx_cv_type_int8_t
=char
;;
12019 *) as_fn_error
"no 8-bit type, please report a bug" "$LINENO" 5
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12022 $as_echo "$acx_cv_type_int8_t" >&6; }
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12025 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
12026 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12027 2:*) acx_cv_type_int16_t
=int
;;
12028 *:2) acx_cv_type_int16_t
=short
;;
12029 *) as_fn_error
"no 16-bit type, please report a bug" "$LINENO" 5
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12032 $as_echo "$acx_cv_type_int16_t" >&6; }
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12035 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
12036 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12037 4:*) acx_cv_type_int32_t
=int
;;
12038 *:4) acx_cv_type_int32_t
=long
;;
12039 *) as_fn_error
"no 32-bit type, please report a bug" "$LINENO" 5
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12042 $as_echo "$acx_cv_type_int32_t" >&6; }
12045 # These tests are here to make the output prettier
12047 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12048 case "$ac_cv_sizeof_long" in
12049 8) acx_cv_type_int64_t
=long
;;
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12052 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12054 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12057 # Now we can use the above types
12059 if test "$ac_cv_type_uintptr_t" != yes; then
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12061 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12062 case $ac_cv_sizeof_void_p in
12063 2) acx_cv_type_intptr_t
=int16_t
;;
12064 4) acx_cv_type_intptr_t
=int32_t
;;
12065 8) acx_cv_type_intptr_t
=int64_t
;;
12066 *) as_fn_error
"no equivalent for intptr_t, please report a bug" "$LINENO" 5
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12069 $as_echo "$acx_cv_type_intptr_t" >&6; }
12072 # ----------------- done all checks, emit header -------------
12073 ac_config_commands
="$ac_config_commands gstdint.h"
12077 for ac_header
in fenv.h
12079 ac_fn_c_check_header_mongrel
"$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
12080 if test "x$ac_cv_header_fenv_h" = x
""yes; then :
12081 cat >>confdefs.h
<<_ACEOF
12082 #define HAVE_FENV_H 1
12090 # Check for common type sizes
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 1 byte integer" >&5
12093 $as_echo_n "checking for 1 byte integer... " >&6; }
12094 if test "${libat_cv_have_mode_QI+set}" = set; then :
12095 $as_echo_n "(cached) " >&6
12097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12099 int x __attribute__((mode(QI)));
12101 if ac_fn_c_try_compile
"$LINENO"; then :
12102 libat_cv_have_mode_QI
=yes
12104 libat_cv_have_mode_QI
=no
12106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_QI" >&5
12109 $as_echo "$libat_cv_have_mode_QI" >&6; }
12111 yesno
=`echo $libat_cv_have_mode_QI | tr 'yesno' '1 0 '`
12113 cat >>confdefs.h
<<_ACEOF
12114 #define HAVE_INT1 $yesno
12118 if test x
$libat_cv_have_mode_QI = xyes
; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2 byte integer" >&5
12124 $as_echo_n "checking for 2 byte integer... " >&6; }
12125 if test "${libat_cv_have_mode_HI+set}" = set; then :
12126 $as_echo_n "(cached) " >&6
12128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h. */
12130 int x __attribute__((mode(HI)));
12132 if ac_fn_c_try_compile
"$LINENO"; then :
12133 libat_cv_have_mode_HI
=yes
12135 libat_cv_have_mode_HI
=no
12137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_HI" >&5
12140 $as_echo "$libat_cv_have_mode_HI" >&6; }
12142 yesno
=`echo $libat_cv_have_mode_HI | tr 'yesno' '1 0 '`
12144 cat >>confdefs.h
<<_ACEOF
12145 #define HAVE_INT2 $yesno
12149 if test x
$libat_cv_have_mode_HI = xyes
; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4 byte integer" >&5
12155 $as_echo_n "checking for 4 byte integer... " >&6; }
12156 if test "${libat_cv_have_mode_SI+set}" = set; then :
12157 $as_echo_n "(cached) " >&6
12159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12160 /* end confdefs.h. */
12161 int x __attribute__((mode(SI)));
12163 if ac_fn_c_try_compile
"$LINENO"; then :
12164 libat_cv_have_mode_SI
=yes
12166 libat_cv_have_mode_SI
=no
12168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_SI" >&5
12171 $as_echo "$libat_cv_have_mode_SI" >&6; }
12173 yesno
=`echo $libat_cv_have_mode_SI | tr 'yesno' '1 0 '`
12175 cat >>confdefs.h
<<_ACEOF
12176 #define HAVE_INT4 $yesno
12180 if test x
$libat_cv_have_mode_SI = xyes
; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 8 byte integer" >&5
12186 $as_echo_n "checking for 8 byte integer... " >&6; }
12187 if test "${libat_cv_have_mode_DI+set}" = set; then :
12188 $as_echo_n "(cached) " >&6
12190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12192 int x __attribute__((mode(DI)));
12194 if ac_fn_c_try_compile
"$LINENO"; then :
12195 libat_cv_have_mode_DI
=yes
12197 libat_cv_have_mode_DI
=no
12199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_DI" >&5
12202 $as_echo "$libat_cv_have_mode_DI" >&6; }
12204 yesno
=`echo $libat_cv_have_mode_DI | tr 'yesno' '1 0 '`
12206 cat >>confdefs.h
<<_ACEOF
12207 #define HAVE_INT8 $yesno
12211 if test x
$libat_cv_have_mode_DI = xyes
; then
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16 byte integer" >&5
12217 $as_echo_n "checking for 16 byte integer... " >&6; }
12218 if test "${libat_cv_have_mode_TI+set}" = set; then :
12219 $as_echo_n "(cached) " >&6
12221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12222 /* end confdefs.h. */
12223 int x __attribute__((mode(TI)));
12225 if ac_fn_c_try_compile
"$LINENO"; then :
12226 libat_cv_have_mode_TI
=yes
12228 libat_cv_have_mode_TI
=no
12230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_TI" >&5
12233 $as_echo "$libat_cv_have_mode_TI" >&6; }
12235 yesno
=`echo $libat_cv_have_mode_TI | tr 'yesno' '1 0 '`
12237 cat >>confdefs.h
<<_ACEOF
12238 #define HAVE_INT16 $yesno
12242 if test x
$libat_cv_have_mode_TI = xyes
; then
12248 # Check for compiler builtins of atomic operations.
12250 # Do link tests if possible, instead asm tests, limited to some platforms
12251 # see discussion in PR target/40134, PR libstdc++/40133 and the thread
12252 # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html
12253 atomic_builtins_link_tests
=no
12254 if test x
$gcc_no_link != xyes
; then
12255 # Can do link tests. Limit to some tested platforms
12257 *-*-linux* |
*-*-uclinux* |
*-*-kfreebsd*-gnu |
*-*-gnu*)
12258 atomic_builtins_link_tests
=yes
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 1" >&5
12266 $as_echo_n "checking for __atomic_load/store for size 1... " >&6; }
12267 if test "${libat_cv_have_at_ldst_1+set}" = set; then :
12268 $as_echo_n "(cached) " >&6
12271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h. */
12277 typedef int T __attribute__((mode(QI)));
12278 T *x; volatile T sink; asm("" : "=g"(x));
12279 sink = __atomic_load_n(x, 0);
12280 __atomic_store_n(x, sink, 0);
12285 if test x
$atomic_builtins_link_tests = xyes
; then
12286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12287 (eval $ac_link) 2>&5
12289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12290 test $ac_status = 0; }; then
12291 eval libat_cv_have_at_ldst_1
=yes
12293 eval libat_cv_have_at_ldst_1
=no
12296 old_CFLAGS
="$CFLAGS"
12297 # Compile unoptimized.
12298 CFLAGS
="$CFLAGS -O0 -S"
12299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12300 (eval $ac_compile) 2>&5
12302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12303 test $ac_status = 0; }; then
12304 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12305 eval libat_cv_have_at_ldst_1
=no
12307 eval libat_cv_have_at_ldst_1
=yes
12310 eval libat_cv_have_at_ldst_1
=no
12312 CFLAGS
="$old_CFLAGS"
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_1" >&5
12318 $as_echo "$libat_cv_have_at_ldst_1" >&6; }
12321 yesno
=`echo $libat_cv_have_at_ldst_1 | tr 'yesno' '1 0 '`
12323 cat >>confdefs.h
<<_ACEOF
12324 #define HAVE_ATOMIC_LDST_1 $yesno
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 2" >&5
12333 $as_echo_n "checking for __atomic_load/store for size 2... " >&6; }
12334 if test "${libat_cv_have_at_ldst_2+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
12338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12344 typedef int T __attribute__((mode(HI)));
12345 T *x; volatile T sink; asm("" : "=g"(x));
12346 sink = __atomic_load_n(x, 0);
12347 __atomic_store_n(x, sink, 0);
12352 if test x
$atomic_builtins_link_tests = xyes
; then
12353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12354 (eval $ac_link) 2>&5
12356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12357 test $ac_status = 0; }; then
12358 eval libat_cv_have_at_ldst_2
=yes
12360 eval libat_cv_have_at_ldst_2
=no
12363 old_CFLAGS
="$CFLAGS"
12364 # Compile unoptimized.
12365 CFLAGS
="$CFLAGS -O0 -S"
12366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12367 (eval $ac_compile) 2>&5
12369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12370 test $ac_status = 0; }; then
12371 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12372 eval libat_cv_have_at_ldst_2
=no
12374 eval libat_cv_have_at_ldst_2
=yes
12377 eval libat_cv_have_at_ldst_2
=no
12379 CFLAGS
="$old_CFLAGS"
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_2" >&5
12385 $as_echo "$libat_cv_have_at_ldst_2" >&6; }
12388 yesno
=`echo $libat_cv_have_at_ldst_2 | tr 'yesno' '1 0 '`
12390 cat >>confdefs.h
<<_ACEOF
12391 #define HAVE_ATOMIC_LDST_2 $yesno
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 4" >&5
12400 $as_echo_n "checking for __atomic_load/store for size 4... " >&6; }
12401 if test "${libat_cv_have_at_ldst_4+set}" = set; then :
12402 $as_echo_n "(cached) " >&6
12405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12411 typedef int T __attribute__((mode(SI)));
12412 T *x; volatile T sink; asm("" : "=g"(x));
12413 sink = __atomic_load_n(x, 0);
12414 __atomic_store_n(x, sink, 0);
12419 if test x
$atomic_builtins_link_tests = xyes
; then
12420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12421 (eval $ac_link) 2>&5
12423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12424 test $ac_status = 0; }; then
12425 eval libat_cv_have_at_ldst_4
=yes
12427 eval libat_cv_have_at_ldst_4
=no
12430 old_CFLAGS
="$CFLAGS"
12431 # Compile unoptimized.
12432 CFLAGS
="$CFLAGS -O0 -S"
12433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12434 (eval $ac_compile) 2>&5
12436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12437 test $ac_status = 0; }; then
12438 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12439 eval libat_cv_have_at_ldst_4
=no
12441 eval libat_cv_have_at_ldst_4
=yes
12444 eval libat_cv_have_at_ldst_4
=no
12446 CFLAGS
="$old_CFLAGS"
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_4" >&5
12452 $as_echo "$libat_cv_have_at_ldst_4" >&6; }
12455 yesno
=`echo $libat_cv_have_at_ldst_4 | tr 'yesno' '1 0 '`
12457 cat >>confdefs.h
<<_ACEOF
12458 #define HAVE_ATOMIC_LDST_4 $yesno
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 8" >&5
12467 $as_echo_n "checking for __atomic_load/store for size 8... " >&6; }
12468 if test "${libat_cv_have_at_ldst_8+set}" = set; then :
12469 $as_echo_n "(cached) " >&6
12472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12478 typedef int T __attribute__((mode(DI)));
12479 T *x; volatile T sink; asm("" : "=g"(x));
12480 sink = __atomic_load_n(x, 0);
12481 __atomic_store_n(x, sink, 0);
12486 if test x
$atomic_builtins_link_tests = xyes
; then
12487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12488 (eval $ac_link) 2>&5
12490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12491 test $ac_status = 0; }; then
12492 eval libat_cv_have_at_ldst_8
=yes
12494 eval libat_cv_have_at_ldst_8
=no
12497 old_CFLAGS
="$CFLAGS"
12498 # Compile unoptimized.
12499 CFLAGS
="$CFLAGS -O0 -S"
12500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12501 (eval $ac_compile) 2>&5
12503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12504 test $ac_status = 0; }; then
12505 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12506 eval libat_cv_have_at_ldst_8
=no
12508 eval libat_cv_have_at_ldst_8
=yes
12511 eval libat_cv_have_at_ldst_8
=no
12513 CFLAGS
="$old_CFLAGS"
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_8" >&5
12519 $as_echo "$libat_cv_have_at_ldst_8" >&6; }
12522 yesno
=`echo $libat_cv_have_at_ldst_8 | tr 'yesno' '1 0 '`
12524 cat >>confdefs.h
<<_ACEOF
12525 #define HAVE_ATOMIC_LDST_8 $yesno
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 16" >&5
12534 $as_echo_n "checking for __atomic_load/store for size 16... " >&6; }
12535 if test "${libat_cv_have_at_ldst_16+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
12539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12545 typedef int T __attribute__((mode(TI)));
12546 T *x; volatile T sink; asm("" : "=g"(x));
12547 sink = __atomic_load_n(x, 0);
12548 __atomic_store_n(x, sink, 0);
12553 if test x
$atomic_builtins_link_tests = xyes
; then
12554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12555 (eval $ac_link) 2>&5
12557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12558 test $ac_status = 0; }; then
12559 eval libat_cv_have_at_ldst_16
=yes
12561 eval libat_cv_have_at_ldst_16
=no
12564 old_CFLAGS
="$CFLAGS"
12565 # Compile unoptimized.
12566 CFLAGS
="$CFLAGS -O0 -S"
12567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12568 (eval $ac_compile) 2>&5
12570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12571 test $ac_status = 0; }; then
12572 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12573 eval libat_cv_have_at_ldst_16
=no
12575 eval libat_cv_have_at_ldst_16
=yes
12578 eval libat_cv_have_at_ldst_16
=no
12580 CFLAGS
="$old_CFLAGS"
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_16" >&5
12586 $as_echo "$libat_cv_have_at_ldst_16" >&6; }
12589 yesno
=`echo $libat_cv_have_at_ldst_16 | tr 'yesno' '1 0 '`
12591 cat >>confdefs.h
<<_ACEOF
12592 #define HAVE_ATOMIC_LDST_16 $yesno
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 1" >&5
12602 $as_echo_n "checking for __atomic_test_and_set for size 1... " >&6; }
12603 if test "${libat_cv_have_at_tas_1+set}" = set; then :
12604 $as_echo_n "(cached) " >&6
12607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12613 typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
12614 __atomic_test_and_set(x, 0);
12619 if test x
$atomic_builtins_link_tests = xyes
; then
12620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12621 (eval $ac_link) 2>&5
12623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12624 test $ac_status = 0; }; then
12625 eval libat_cv_have_at_tas_1
=yes
12627 eval libat_cv_have_at_tas_1
=no
12630 old_CFLAGS
="$CFLAGS"
12631 # Compile unoptimized.
12632 CFLAGS
="$CFLAGS -O0 -S"
12633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12634 (eval $ac_compile) 2>&5
12636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12637 test $ac_status = 0; }; then
12638 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12639 eval libat_cv_have_at_tas_1
=no
12641 eval libat_cv_have_at_tas_1
=yes
12644 eval libat_cv_have_at_tas_1
=no
12646 CFLAGS
="$old_CFLAGS"
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_1" >&5
12652 $as_echo "$libat_cv_have_at_tas_1" >&6; }
12655 yesno
=`echo $libat_cv_have_at_tas_1 | tr 'yesno' '1 0 '`
12657 cat >>confdefs.h
<<_ACEOF
12658 #define HAVE_ATOMIC_TAS_1 $yesno
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 2" >&5
12667 $as_echo_n "checking for __atomic_test_and_set for size 2... " >&6; }
12668 if test "${libat_cv_have_at_tas_2+set}" = set; then :
12669 $as_echo_n "(cached) " >&6
12672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12678 typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
12679 __atomic_test_and_set(x, 0);
12684 if test x
$atomic_builtins_link_tests = xyes
; then
12685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12686 (eval $ac_link) 2>&5
12688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12689 test $ac_status = 0; }; then
12690 eval libat_cv_have_at_tas_2
=yes
12692 eval libat_cv_have_at_tas_2
=no
12695 old_CFLAGS
="$CFLAGS"
12696 # Compile unoptimized.
12697 CFLAGS
="$CFLAGS -O0 -S"
12698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12699 (eval $ac_compile) 2>&5
12701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12702 test $ac_status = 0; }; then
12703 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12704 eval libat_cv_have_at_tas_2
=no
12706 eval libat_cv_have_at_tas_2
=yes
12709 eval libat_cv_have_at_tas_2
=no
12711 CFLAGS
="$old_CFLAGS"
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_2" >&5
12717 $as_echo "$libat_cv_have_at_tas_2" >&6; }
12720 yesno
=`echo $libat_cv_have_at_tas_2 | tr 'yesno' '1 0 '`
12722 cat >>confdefs.h
<<_ACEOF
12723 #define HAVE_ATOMIC_TAS_2 $yesno
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 4" >&5
12732 $as_echo_n "checking for __atomic_test_and_set for size 4... " >&6; }
12733 if test "${libat_cv_have_at_tas_4+set}" = set; then :
12734 $as_echo_n "(cached) " >&6
12737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12743 typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
12744 __atomic_test_and_set(x, 0);
12749 if test x
$atomic_builtins_link_tests = xyes
; then
12750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12751 (eval $ac_link) 2>&5
12753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12754 test $ac_status = 0; }; then
12755 eval libat_cv_have_at_tas_4
=yes
12757 eval libat_cv_have_at_tas_4
=no
12760 old_CFLAGS
="$CFLAGS"
12761 # Compile unoptimized.
12762 CFLAGS
="$CFLAGS -O0 -S"
12763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12764 (eval $ac_compile) 2>&5
12766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12767 test $ac_status = 0; }; then
12768 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12769 eval libat_cv_have_at_tas_4
=no
12771 eval libat_cv_have_at_tas_4
=yes
12774 eval libat_cv_have_at_tas_4
=no
12776 CFLAGS
="$old_CFLAGS"
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_4" >&5
12782 $as_echo "$libat_cv_have_at_tas_4" >&6; }
12785 yesno
=`echo $libat_cv_have_at_tas_4 | tr 'yesno' '1 0 '`
12787 cat >>confdefs.h
<<_ACEOF
12788 #define HAVE_ATOMIC_TAS_4 $yesno
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 8" >&5
12797 $as_echo_n "checking for __atomic_test_and_set for size 8... " >&6; }
12798 if test "${libat_cv_have_at_tas_8+set}" = set; then :
12799 $as_echo_n "(cached) " >&6
12802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12808 typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
12809 __atomic_test_and_set(x, 0);
12814 if test x
$atomic_builtins_link_tests = xyes
; then
12815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12816 (eval $ac_link) 2>&5
12818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12819 test $ac_status = 0; }; then
12820 eval libat_cv_have_at_tas_8
=yes
12822 eval libat_cv_have_at_tas_8
=no
12825 old_CFLAGS
="$CFLAGS"
12826 # Compile unoptimized.
12827 CFLAGS
="$CFLAGS -O0 -S"
12828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12829 (eval $ac_compile) 2>&5
12831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12832 test $ac_status = 0; }; then
12833 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12834 eval libat_cv_have_at_tas_8
=no
12836 eval libat_cv_have_at_tas_8
=yes
12839 eval libat_cv_have_at_tas_8
=no
12841 CFLAGS
="$old_CFLAGS"
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_8" >&5
12847 $as_echo "$libat_cv_have_at_tas_8" >&6; }
12850 yesno
=`echo $libat_cv_have_at_tas_8 | tr 'yesno' '1 0 '`
12852 cat >>confdefs.h
<<_ACEOF
12853 #define HAVE_ATOMIC_TAS_8 $yesno
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 16" >&5
12862 $as_echo_n "checking for __atomic_test_and_set for size 16... " >&6; }
12863 if test "${libat_cv_have_at_tas_16+set}" = set; then :
12864 $as_echo_n "(cached) " >&6
12867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12873 typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
12874 __atomic_test_and_set(x, 0);
12879 if test x
$atomic_builtins_link_tests = xyes
; then
12880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12881 (eval $ac_link) 2>&5
12883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12884 test $ac_status = 0; }; then
12885 eval libat_cv_have_at_tas_16
=yes
12887 eval libat_cv_have_at_tas_16
=no
12890 old_CFLAGS
="$CFLAGS"
12891 # Compile unoptimized.
12892 CFLAGS
="$CFLAGS -O0 -S"
12893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12894 (eval $ac_compile) 2>&5
12896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12897 test $ac_status = 0; }; then
12898 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12899 eval libat_cv_have_at_tas_16
=no
12901 eval libat_cv_have_at_tas_16
=yes
12904 eval libat_cv_have_at_tas_16
=no
12906 CFLAGS
="$old_CFLAGS"
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_16" >&5
12912 $as_echo "$libat_cv_have_at_tas_16" >&6; }
12915 yesno
=`echo $libat_cv_have_at_tas_16 | tr 'yesno' '1 0 '`
12917 cat >>confdefs.h
<<_ACEOF
12918 #define HAVE_ATOMIC_TAS_16 $yesno
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 1" >&5
12928 $as_echo_n "checking for __atomic_exchange for size 1... " >&6; }
12929 if test "${libat_cv_have_at_exch_1+set}" = set; then :
12930 $as_echo_n "(cached) " >&6
12933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h. */
12939 typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
12940 __atomic_exchange_n(x, 0, 0);
12945 if test x
$atomic_builtins_link_tests = xyes
; then
12946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12947 (eval $ac_link) 2>&5
12949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12950 test $ac_status = 0; }; then
12951 eval libat_cv_have_at_exch_1
=yes
12953 eval libat_cv_have_at_exch_1
=no
12956 old_CFLAGS
="$CFLAGS"
12957 # Compile unoptimized.
12958 CFLAGS
="$CFLAGS -O0 -S"
12959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12960 (eval $ac_compile) 2>&5
12962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12963 test $ac_status = 0; }; then
12964 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
12965 eval libat_cv_have_at_exch_1
=no
12967 eval libat_cv_have_at_exch_1
=yes
12970 eval libat_cv_have_at_exch_1
=no
12972 CFLAGS
="$old_CFLAGS"
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_1" >&5
12978 $as_echo "$libat_cv_have_at_exch_1" >&6; }
12981 yesno
=`echo $libat_cv_have_at_exch_1 | tr 'yesno' '1 0 '`
12983 cat >>confdefs.h
<<_ACEOF
12984 #define HAVE_ATOMIC_EXCHANGE_1 $yesno
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 2" >&5
12993 $as_echo_n "checking for __atomic_exchange for size 2... " >&6; }
12994 if test "${libat_cv_have_at_exch_2+set}" = set; then :
12995 $as_echo_n "(cached) " >&6
12998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13004 typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
13005 __atomic_exchange_n(x, 0, 0);
13010 if test x
$atomic_builtins_link_tests = xyes
; then
13011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13012 (eval $ac_link) 2>&5
13014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13015 test $ac_status = 0; }; then
13016 eval libat_cv_have_at_exch_2
=yes
13018 eval libat_cv_have_at_exch_2
=no
13021 old_CFLAGS
="$CFLAGS"
13022 # Compile unoptimized.
13023 CFLAGS
="$CFLAGS -O0 -S"
13024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13025 (eval $ac_compile) 2>&5
13027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13028 test $ac_status = 0; }; then
13029 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13030 eval libat_cv_have_at_exch_2
=no
13032 eval libat_cv_have_at_exch_2
=yes
13035 eval libat_cv_have_at_exch_2
=no
13037 CFLAGS
="$old_CFLAGS"
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_2" >&5
13043 $as_echo "$libat_cv_have_at_exch_2" >&6; }
13046 yesno
=`echo $libat_cv_have_at_exch_2 | tr 'yesno' '1 0 '`
13048 cat >>confdefs.h
<<_ACEOF
13049 #define HAVE_ATOMIC_EXCHANGE_2 $yesno
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 4" >&5
13058 $as_echo_n "checking for __atomic_exchange for size 4... " >&6; }
13059 if test "${libat_cv_have_at_exch_4+set}" = set; then :
13060 $as_echo_n "(cached) " >&6
13063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13069 typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
13070 __atomic_exchange_n(x, 0, 0);
13075 if test x
$atomic_builtins_link_tests = xyes
; then
13076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13077 (eval $ac_link) 2>&5
13079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13080 test $ac_status = 0; }; then
13081 eval libat_cv_have_at_exch_4
=yes
13083 eval libat_cv_have_at_exch_4
=no
13086 old_CFLAGS
="$CFLAGS"
13087 # Compile unoptimized.
13088 CFLAGS
="$CFLAGS -O0 -S"
13089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13090 (eval $ac_compile) 2>&5
13092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13093 test $ac_status = 0; }; then
13094 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13095 eval libat_cv_have_at_exch_4
=no
13097 eval libat_cv_have_at_exch_4
=yes
13100 eval libat_cv_have_at_exch_4
=no
13102 CFLAGS
="$old_CFLAGS"
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_4" >&5
13108 $as_echo "$libat_cv_have_at_exch_4" >&6; }
13111 yesno
=`echo $libat_cv_have_at_exch_4 | tr 'yesno' '1 0 '`
13113 cat >>confdefs.h
<<_ACEOF
13114 #define HAVE_ATOMIC_EXCHANGE_4 $yesno
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 8" >&5
13123 $as_echo_n "checking for __atomic_exchange for size 8... " >&6; }
13124 if test "${libat_cv_have_at_exch_8+set}" = set; then :
13125 $as_echo_n "(cached) " >&6
13128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13134 typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
13135 __atomic_exchange_n(x, 0, 0);
13140 if test x
$atomic_builtins_link_tests = xyes
; then
13141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13142 (eval $ac_link) 2>&5
13144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13145 test $ac_status = 0; }; then
13146 eval libat_cv_have_at_exch_8
=yes
13148 eval libat_cv_have_at_exch_8
=no
13151 old_CFLAGS
="$CFLAGS"
13152 # Compile unoptimized.
13153 CFLAGS
="$CFLAGS -O0 -S"
13154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13155 (eval $ac_compile) 2>&5
13157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13158 test $ac_status = 0; }; then
13159 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13160 eval libat_cv_have_at_exch_8
=no
13162 eval libat_cv_have_at_exch_8
=yes
13165 eval libat_cv_have_at_exch_8
=no
13167 CFLAGS
="$old_CFLAGS"
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_8" >&5
13173 $as_echo "$libat_cv_have_at_exch_8" >&6; }
13176 yesno
=`echo $libat_cv_have_at_exch_8 | tr 'yesno' '1 0 '`
13178 cat >>confdefs.h
<<_ACEOF
13179 #define HAVE_ATOMIC_EXCHANGE_8 $yesno
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 16" >&5
13188 $as_echo_n "checking for __atomic_exchange for size 16... " >&6; }
13189 if test "${libat_cv_have_at_exch_16+set}" = set; then :
13190 $as_echo_n "(cached) " >&6
13193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13199 typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
13200 __atomic_exchange_n(x, 0, 0);
13205 if test x
$atomic_builtins_link_tests = xyes
; then
13206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13207 (eval $ac_link) 2>&5
13209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13210 test $ac_status = 0; }; then
13211 eval libat_cv_have_at_exch_16
=yes
13213 eval libat_cv_have_at_exch_16
=no
13216 old_CFLAGS
="$CFLAGS"
13217 # Compile unoptimized.
13218 CFLAGS
="$CFLAGS -O0 -S"
13219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13220 (eval $ac_compile) 2>&5
13222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13223 test $ac_status = 0; }; then
13224 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13225 eval libat_cv_have_at_exch_16
=no
13227 eval libat_cv_have_at_exch_16
=yes
13230 eval libat_cv_have_at_exch_16
=no
13232 CFLAGS
="$old_CFLAGS"
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_16" >&5
13238 $as_echo "$libat_cv_have_at_exch_16" >&6; }
13241 yesno
=`echo $libat_cv_have_at_exch_16 | tr 'yesno' '1 0 '`
13243 cat >>confdefs.h
<<_ACEOF
13244 #define HAVE_ATOMIC_EXCHANGE_16 $yesno
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 1" >&5
13254 $as_echo_n "checking for __atomic_compare_exchange for size 1... " >&6; }
13255 if test "${libat_cv_have_at_cas_1+set}" = set; then :
13256 $as_echo_n "(cached) " >&6
13259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13265 typedef int T __attribute__((mode(QI))); T *x, *y;
13266 asm("" : "=g"(x), "=g"(y));
13267 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13272 if test x
$atomic_builtins_link_tests = xyes
; then
13273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13274 (eval $ac_link) 2>&5
13276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13277 test $ac_status = 0; }; then
13278 eval libat_cv_have_at_cas_1
=yes
13280 eval libat_cv_have_at_cas_1
=no
13283 old_CFLAGS
="$CFLAGS"
13284 # Compile unoptimized.
13285 CFLAGS
="$CFLAGS -O0 -S"
13286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13287 (eval $ac_compile) 2>&5
13289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13290 test $ac_status = 0; }; then
13291 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13292 eval libat_cv_have_at_cas_1
=no
13294 eval libat_cv_have_at_cas_1
=yes
13297 eval libat_cv_have_at_cas_1
=no
13299 CFLAGS
="$old_CFLAGS"
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_1" >&5
13305 $as_echo "$libat_cv_have_at_cas_1" >&6; }
13308 yesno
=`echo $libat_cv_have_at_cas_1 | tr 'yesno' '1 0 '`
13310 cat >>confdefs.h
<<_ACEOF
13311 #define HAVE_ATOMIC_CAS_1 $yesno
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 2" >&5
13320 $as_echo_n "checking for __atomic_compare_exchange for size 2... " >&6; }
13321 if test "${libat_cv_have_at_cas_2+set}" = set; then :
13322 $as_echo_n "(cached) " >&6
13325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13331 typedef int T __attribute__((mode(HI))); T *x, *y;
13332 asm("" : "=g"(x), "=g"(y));
13333 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13338 if test x
$atomic_builtins_link_tests = xyes
; then
13339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13340 (eval $ac_link) 2>&5
13342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13343 test $ac_status = 0; }; then
13344 eval libat_cv_have_at_cas_2
=yes
13346 eval libat_cv_have_at_cas_2
=no
13349 old_CFLAGS
="$CFLAGS"
13350 # Compile unoptimized.
13351 CFLAGS
="$CFLAGS -O0 -S"
13352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13353 (eval $ac_compile) 2>&5
13355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13356 test $ac_status = 0; }; then
13357 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13358 eval libat_cv_have_at_cas_2
=no
13360 eval libat_cv_have_at_cas_2
=yes
13363 eval libat_cv_have_at_cas_2
=no
13365 CFLAGS
="$old_CFLAGS"
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_2" >&5
13371 $as_echo "$libat_cv_have_at_cas_2" >&6; }
13374 yesno
=`echo $libat_cv_have_at_cas_2 | tr 'yesno' '1 0 '`
13376 cat >>confdefs.h
<<_ACEOF
13377 #define HAVE_ATOMIC_CAS_2 $yesno
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 4" >&5
13386 $as_echo_n "checking for __atomic_compare_exchange for size 4... " >&6; }
13387 if test "${libat_cv_have_at_cas_4+set}" = set; then :
13388 $as_echo_n "(cached) " >&6
13391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13392 /* end confdefs.h. */
13397 typedef int T __attribute__((mode(SI))); T *x, *y;
13398 asm("" : "=g"(x), "=g"(y));
13399 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13404 if test x
$atomic_builtins_link_tests = xyes
; then
13405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13406 (eval $ac_link) 2>&5
13408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13409 test $ac_status = 0; }; then
13410 eval libat_cv_have_at_cas_4
=yes
13412 eval libat_cv_have_at_cas_4
=no
13415 old_CFLAGS
="$CFLAGS"
13416 # Compile unoptimized.
13417 CFLAGS
="$CFLAGS -O0 -S"
13418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13419 (eval $ac_compile) 2>&5
13421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13422 test $ac_status = 0; }; then
13423 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13424 eval libat_cv_have_at_cas_4
=no
13426 eval libat_cv_have_at_cas_4
=yes
13429 eval libat_cv_have_at_cas_4
=no
13431 CFLAGS
="$old_CFLAGS"
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_4" >&5
13437 $as_echo "$libat_cv_have_at_cas_4" >&6; }
13440 yesno
=`echo $libat_cv_have_at_cas_4 | tr 'yesno' '1 0 '`
13442 cat >>confdefs.h
<<_ACEOF
13443 #define HAVE_ATOMIC_CAS_4 $yesno
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 8" >&5
13452 $as_echo_n "checking for __atomic_compare_exchange for size 8... " >&6; }
13453 if test "${libat_cv_have_at_cas_8+set}" = set; then :
13454 $as_echo_n "(cached) " >&6
13457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13463 typedef int T __attribute__((mode(DI))); T *x, *y;
13464 asm("" : "=g"(x), "=g"(y));
13465 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13470 if test x
$atomic_builtins_link_tests = xyes
; then
13471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13472 (eval $ac_link) 2>&5
13474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13475 test $ac_status = 0; }; then
13476 eval libat_cv_have_at_cas_8
=yes
13478 eval libat_cv_have_at_cas_8
=no
13481 old_CFLAGS
="$CFLAGS"
13482 # Compile unoptimized.
13483 CFLAGS
="$CFLAGS -O0 -S"
13484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13485 (eval $ac_compile) 2>&5
13487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13488 test $ac_status = 0; }; then
13489 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13490 eval libat_cv_have_at_cas_8
=no
13492 eval libat_cv_have_at_cas_8
=yes
13495 eval libat_cv_have_at_cas_8
=no
13497 CFLAGS
="$old_CFLAGS"
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_8" >&5
13503 $as_echo "$libat_cv_have_at_cas_8" >&6; }
13506 yesno
=`echo $libat_cv_have_at_cas_8 | tr 'yesno' '1 0 '`
13508 cat >>confdefs.h
<<_ACEOF
13509 #define HAVE_ATOMIC_CAS_8 $yesno
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 16" >&5
13518 $as_echo_n "checking for __atomic_compare_exchange for size 16... " >&6; }
13519 if test "${libat_cv_have_at_cas_16+set}" = set; then :
13520 $as_echo_n "(cached) " >&6
13523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13529 typedef int T __attribute__((mode(TI))); T *x, *y;
13530 asm("" : "=g"(x), "=g"(y));
13531 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13536 if test x
$atomic_builtins_link_tests = xyes
; then
13537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13538 (eval $ac_link) 2>&5
13540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13541 test $ac_status = 0; }; then
13542 eval libat_cv_have_at_cas_16
=yes
13544 eval libat_cv_have_at_cas_16
=no
13547 old_CFLAGS
="$CFLAGS"
13548 # Compile unoptimized.
13549 CFLAGS
="$CFLAGS -O0 -S"
13550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13551 (eval $ac_compile) 2>&5
13553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13554 test $ac_status = 0; }; then
13555 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13556 eval libat_cv_have_at_cas_16
=no
13558 eval libat_cv_have_at_cas_16
=yes
13561 eval libat_cv_have_at_cas_16
=no
13563 CFLAGS
="$old_CFLAGS"
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_16" >&5
13569 $as_echo "$libat_cv_have_at_cas_16" >&6; }
13572 yesno
=`echo $libat_cv_have_at_cas_16 | tr 'yesno' '1 0 '`
13574 cat >>confdefs.h
<<_ACEOF
13575 #define HAVE_ATOMIC_CAS_16 $yesno
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 1" >&5
13585 $as_echo_n "checking for __atomic_fetch_add for size 1... " >&6; }
13586 if test "${libat_cv_have_at_fadd_1+set}" = set; then :
13587 $as_echo_n "(cached) " >&6
13590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13591 /* end confdefs.h. */
13596 typedef int T __attribute__((mode(QI))); T *x, y;
13597 asm("" : "=g"(x), "=g"(y));
13598 __atomic_fetch_add (x, y, 0);
13599 __atomic_add_fetch (x, y, 0);
13604 if test x
$atomic_builtins_link_tests = xyes
; then
13605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13606 (eval $ac_link) 2>&5
13608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13609 test $ac_status = 0; }; then
13610 eval libat_cv_have_at_fadd_1
=yes
13612 eval libat_cv_have_at_fadd_1
=no
13615 old_CFLAGS
="$CFLAGS"
13616 # Compile unoptimized.
13617 CFLAGS
="$CFLAGS -O0 -S"
13618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13619 (eval $ac_compile) 2>&5
13621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13622 test $ac_status = 0; }; then
13623 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13624 eval libat_cv_have_at_fadd_1
=no
13626 eval libat_cv_have_at_fadd_1
=yes
13629 eval libat_cv_have_at_fadd_1
=no
13631 CFLAGS
="$old_CFLAGS"
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_1" >&5
13637 $as_echo "$libat_cv_have_at_fadd_1" >&6; }
13640 yesno
=`echo $libat_cv_have_at_fadd_1 | tr 'yesno' '1 0 '`
13642 cat >>confdefs.h
<<_ACEOF
13643 #define HAVE_ATOMIC_FETCH_ADD_1 $yesno
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 2" >&5
13652 $as_echo_n "checking for __atomic_fetch_add for size 2... " >&6; }
13653 if test "${libat_cv_have_at_fadd_2+set}" = set; then :
13654 $as_echo_n "(cached) " >&6
13657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13663 typedef int T __attribute__((mode(HI))); T *x, y;
13664 asm("" : "=g"(x), "=g"(y));
13665 __atomic_fetch_add (x, y, 0);
13666 __atomic_add_fetch (x, y, 0);
13671 if test x
$atomic_builtins_link_tests = xyes
; then
13672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13673 (eval $ac_link) 2>&5
13675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13676 test $ac_status = 0; }; then
13677 eval libat_cv_have_at_fadd_2
=yes
13679 eval libat_cv_have_at_fadd_2
=no
13682 old_CFLAGS
="$CFLAGS"
13683 # Compile unoptimized.
13684 CFLAGS
="$CFLAGS -O0 -S"
13685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13686 (eval $ac_compile) 2>&5
13688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13689 test $ac_status = 0; }; then
13690 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13691 eval libat_cv_have_at_fadd_2
=no
13693 eval libat_cv_have_at_fadd_2
=yes
13696 eval libat_cv_have_at_fadd_2
=no
13698 CFLAGS
="$old_CFLAGS"
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_2" >&5
13704 $as_echo "$libat_cv_have_at_fadd_2" >&6; }
13707 yesno
=`echo $libat_cv_have_at_fadd_2 | tr 'yesno' '1 0 '`
13709 cat >>confdefs.h
<<_ACEOF
13710 #define HAVE_ATOMIC_FETCH_ADD_2 $yesno
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 4" >&5
13719 $as_echo_n "checking for __atomic_fetch_add for size 4... " >&6; }
13720 if test "${libat_cv_have_at_fadd_4+set}" = set; then :
13721 $as_echo_n "(cached) " >&6
13724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13730 typedef int T __attribute__((mode(SI))); T *x, y;
13731 asm("" : "=g"(x), "=g"(y));
13732 __atomic_fetch_add (x, y, 0);
13733 __atomic_add_fetch (x, y, 0);
13738 if test x
$atomic_builtins_link_tests = xyes
; then
13739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13740 (eval $ac_link) 2>&5
13742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13743 test $ac_status = 0; }; then
13744 eval libat_cv_have_at_fadd_4
=yes
13746 eval libat_cv_have_at_fadd_4
=no
13749 old_CFLAGS
="$CFLAGS"
13750 # Compile unoptimized.
13751 CFLAGS
="$CFLAGS -O0 -S"
13752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13753 (eval $ac_compile) 2>&5
13755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13756 test $ac_status = 0; }; then
13757 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13758 eval libat_cv_have_at_fadd_4
=no
13760 eval libat_cv_have_at_fadd_4
=yes
13763 eval libat_cv_have_at_fadd_4
=no
13765 CFLAGS
="$old_CFLAGS"
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_4" >&5
13771 $as_echo "$libat_cv_have_at_fadd_4" >&6; }
13774 yesno
=`echo $libat_cv_have_at_fadd_4 | tr 'yesno' '1 0 '`
13776 cat >>confdefs.h
<<_ACEOF
13777 #define HAVE_ATOMIC_FETCH_ADD_4 $yesno
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 8" >&5
13786 $as_echo_n "checking for __atomic_fetch_add for size 8... " >&6; }
13787 if test "${libat_cv_have_at_fadd_8+set}" = set; then :
13788 $as_echo_n "(cached) " >&6
13791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h. */
13797 typedef int T __attribute__((mode(DI))); T *x, y;
13798 asm("" : "=g"(x), "=g"(y));
13799 __atomic_fetch_add (x, y, 0);
13800 __atomic_add_fetch (x, y, 0);
13805 if test x
$atomic_builtins_link_tests = xyes
; then
13806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13807 (eval $ac_link) 2>&5
13809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13810 test $ac_status = 0; }; then
13811 eval libat_cv_have_at_fadd_8
=yes
13813 eval libat_cv_have_at_fadd_8
=no
13816 old_CFLAGS
="$CFLAGS"
13817 # Compile unoptimized.
13818 CFLAGS
="$CFLAGS -O0 -S"
13819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13820 (eval $ac_compile) 2>&5
13822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13823 test $ac_status = 0; }; then
13824 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13825 eval libat_cv_have_at_fadd_8
=no
13827 eval libat_cv_have_at_fadd_8
=yes
13830 eval libat_cv_have_at_fadd_8
=no
13832 CFLAGS
="$old_CFLAGS"
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_8" >&5
13838 $as_echo "$libat_cv_have_at_fadd_8" >&6; }
13841 yesno
=`echo $libat_cv_have_at_fadd_8 | tr 'yesno' '1 0 '`
13843 cat >>confdefs.h
<<_ACEOF
13844 #define HAVE_ATOMIC_FETCH_ADD_8 $yesno
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 16" >&5
13853 $as_echo_n "checking for __atomic_fetch_add for size 16... " >&6; }
13854 if test "${libat_cv_have_at_fadd_16+set}" = set; then :
13855 $as_echo_n "(cached) " >&6
13858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13864 typedef int T __attribute__((mode(TI))); T *x, y;
13865 asm("" : "=g"(x), "=g"(y));
13866 __atomic_fetch_add (x, y, 0);
13867 __atomic_add_fetch (x, y, 0);
13872 if test x
$atomic_builtins_link_tests = xyes
; then
13873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13874 (eval $ac_link) 2>&5
13876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13877 test $ac_status = 0; }; then
13878 eval libat_cv_have_at_fadd_16
=yes
13880 eval libat_cv_have_at_fadd_16
=no
13883 old_CFLAGS
="$CFLAGS"
13884 # Compile unoptimized.
13885 CFLAGS
="$CFLAGS -O0 -S"
13886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13887 (eval $ac_compile) 2>&5
13889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13890 test $ac_status = 0; }; then
13891 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13892 eval libat_cv_have_at_fadd_16
=no
13894 eval libat_cv_have_at_fadd_16
=yes
13897 eval libat_cv_have_at_fadd_16
=no
13899 CFLAGS
="$old_CFLAGS"
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_16" >&5
13905 $as_echo "$libat_cv_have_at_fadd_16" >&6; }
13908 yesno
=`echo $libat_cv_have_at_fadd_16 | tr 'yesno' '1 0 '`
13910 cat >>confdefs.h
<<_ACEOF
13911 #define HAVE_ATOMIC_FETCH_ADD_16 $yesno
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 1" >&5
13921 $as_echo_n "checking for __atomic_fetch_op for size 1... " >&6; }
13922 if test "${libat_cv_have_at_fop_1+set}" = set; then :
13923 $as_echo_n "(cached) " >&6
13926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13927 /* end confdefs.h. */
13932 typedef int T __attribute__((mode(QI))); T *x, y;
13933 asm("" : "=g"(x), "=g"(y));
13934 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
13935 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
13936 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
13937 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
13938 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
13939 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
13944 if test x
$atomic_builtins_link_tests = xyes
; then
13945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13946 (eval $ac_link) 2>&5
13948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13949 test $ac_status = 0; }; then
13950 eval libat_cv_have_at_fop_1
=yes
13952 eval libat_cv_have_at_fop_1
=no
13955 old_CFLAGS
="$CFLAGS"
13956 # Compile unoptimized.
13957 CFLAGS
="$CFLAGS -O0 -S"
13958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13959 (eval $ac_compile) 2>&5
13961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13962 test $ac_status = 0; }; then
13963 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
13964 eval libat_cv_have_at_fop_1
=no
13966 eval libat_cv_have_at_fop_1
=yes
13969 eval libat_cv_have_at_fop_1
=no
13971 CFLAGS
="$old_CFLAGS"
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_1" >&5
13977 $as_echo "$libat_cv_have_at_fop_1" >&6; }
13980 yesno
=`echo $libat_cv_have_at_fop_1 | tr 'yesno' '1 0 '`
13982 cat >>confdefs.h
<<_ACEOF
13983 #define HAVE_ATOMIC_FETCH_OP_1 $yesno
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 2" >&5
13992 $as_echo_n "checking for __atomic_fetch_op for size 2... " >&6; }
13993 if test "${libat_cv_have_at_fop_2+set}" = set; then :
13994 $as_echo_n "(cached) " >&6
13997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
14003 typedef int T __attribute__((mode(HI))); T *x, y;
14004 asm("" : "=g"(x), "=g"(y));
14005 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14006 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14007 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14008 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14009 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14010 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14015 if test x
$atomic_builtins_link_tests = xyes
; then
14016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14017 (eval $ac_link) 2>&5
14019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14020 test $ac_status = 0; }; then
14021 eval libat_cv_have_at_fop_2
=yes
14023 eval libat_cv_have_at_fop_2
=no
14026 old_CFLAGS
="$CFLAGS"
14027 # Compile unoptimized.
14028 CFLAGS
="$CFLAGS -O0 -S"
14029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14030 (eval $ac_compile) 2>&5
14032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14033 test $ac_status = 0; }; then
14034 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
14035 eval libat_cv_have_at_fop_2
=no
14037 eval libat_cv_have_at_fop_2
=yes
14040 eval libat_cv_have_at_fop_2
=no
14042 CFLAGS
="$old_CFLAGS"
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_2" >&5
14048 $as_echo "$libat_cv_have_at_fop_2" >&6; }
14051 yesno
=`echo $libat_cv_have_at_fop_2 | tr 'yesno' '1 0 '`
14053 cat >>confdefs.h
<<_ACEOF
14054 #define HAVE_ATOMIC_FETCH_OP_2 $yesno
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 4" >&5
14063 $as_echo_n "checking for __atomic_fetch_op for size 4... " >&6; }
14064 if test "${libat_cv_have_at_fop_4+set}" = set; then :
14065 $as_echo_n "(cached) " >&6
14068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14074 typedef int T __attribute__((mode(SI))); T *x, y;
14075 asm("" : "=g"(x), "=g"(y));
14076 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14077 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14078 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14079 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14080 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14081 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14086 if test x
$atomic_builtins_link_tests = xyes
; then
14087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14088 (eval $ac_link) 2>&5
14090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14091 test $ac_status = 0; }; then
14092 eval libat_cv_have_at_fop_4
=yes
14094 eval libat_cv_have_at_fop_4
=no
14097 old_CFLAGS
="$CFLAGS"
14098 # Compile unoptimized.
14099 CFLAGS
="$CFLAGS -O0 -S"
14100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14101 (eval $ac_compile) 2>&5
14103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14104 test $ac_status = 0; }; then
14105 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
14106 eval libat_cv_have_at_fop_4
=no
14108 eval libat_cv_have_at_fop_4
=yes
14111 eval libat_cv_have_at_fop_4
=no
14113 CFLAGS
="$old_CFLAGS"
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_4" >&5
14119 $as_echo "$libat_cv_have_at_fop_4" >&6; }
14122 yesno
=`echo $libat_cv_have_at_fop_4 | tr 'yesno' '1 0 '`
14124 cat >>confdefs.h
<<_ACEOF
14125 #define HAVE_ATOMIC_FETCH_OP_4 $yesno
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 8" >&5
14134 $as_echo_n "checking for __atomic_fetch_op for size 8... " >&6; }
14135 if test "${libat_cv_have_at_fop_8+set}" = set; then :
14136 $as_echo_n "(cached) " >&6
14139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14140 /* end confdefs.h. */
14145 typedef int T __attribute__((mode(DI))); T *x, y;
14146 asm("" : "=g"(x), "=g"(y));
14147 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14148 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14149 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14150 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14151 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14152 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14157 if test x
$atomic_builtins_link_tests = xyes
; then
14158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14159 (eval $ac_link) 2>&5
14161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14162 test $ac_status = 0; }; then
14163 eval libat_cv_have_at_fop_8
=yes
14165 eval libat_cv_have_at_fop_8
=no
14168 old_CFLAGS
="$CFLAGS"
14169 # Compile unoptimized.
14170 CFLAGS
="$CFLAGS -O0 -S"
14171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14172 (eval $ac_compile) 2>&5
14174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14175 test $ac_status = 0; }; then
14176 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
14177 eval libat_cv_have_at_fop_8
=no
14179 eval libat_cv_have_at_fop_8
=yes
14182 eval libat_cv_have_at_fop_8
=no
14184 CFLAGS
="$old_CFLAGS"
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_8" >&5
14190 $as_echo "$libat_cv_have_at_fop_8" >&6; }
14193 yesno
=`echo $libat_cv_have_at_fop_8 | tr 'yesno' '1 0 '`
14195 cat >>confdefs.h
<<_ACEOF
14196 #define HAVE_ATOMIC_FETCH_OP_8 $yesno
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 16" >&5
14205 $as_echo_n "checking for __atomic_fetch_op for size 16... " >&6; }
14206 if test "${libat_cv_have_at_fop_16+set}" = set; then :
14207 $as_echo_n "(cached) " >&6
14210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14216 typedef int T __attribute__((mode(TI))); T *x, y;
14217 asm("" : "=g"(x), "=g"(y));
14218 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14219 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14220 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14221 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14222 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14223 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14228 if test x
$atomic_builtins_link_tests = xyes
; then
14229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14230 (eval $ac_link) 2>&5
14232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14233 test $ac_status = 0; }; then
14234 eval libat_cv_have_at_fop_16
=yes
14236 eval libat_cv_have_at_fop_16
=no
14239 old_CFLAGS
="$CFLAGS"
14240 # Compile unoptimized.
14241 CFLAGS
="$CFLAGS -O0 -S"
14242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14243 (eval $ac_compile) 2>&5
14245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14246 test $ac_status = 0; }; then
14247 if grep __atomic_ conftest.s
>/dev
/null
2>&1 ; then
14248 eval libat_cv_have_at_fop_16
=no
14250 eval libat_cv_have_at_fop_16
=yes
14253 eval libat_cv_have_at_fop_16
=no
14255 CFLAGS
="$old_CFLAGS"
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_16" >&5
14261 $as_echo "$libat_cv_have_at_fop_16" >&6; }
14264 yesno
=`echo $libat_cv_have_at_fop_16 | tr 'yesno' '1 0 '`
14266 cat >>confdefs.h
<<_ACEOF
14267 #define HAVE_ATOMIC_FETCH_OP_16 $yesno
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14276 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14277 if test "${ac_cv_c_bigendian+set}" = set; then :
14278 $as_echo_n "(cached) " >&6
14280 ac_cv_c_bigendian
=unknown
14281 # See if we're dealing with a universal compiler.
14282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14284 #ifndef __APPLE_CC__
14285 not a universal capable compiler
14290 if ac_fn_c_try_compile
"$LINENO"; then :
14292 # Check for potential -arch flags. It is not universal unless
14293 # there are at least two -arch flags with different values.
14296 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14297 if test -n "$ac_prev"; then
14299 i?
86 | x86_64 | ppc | ppc64
)
14300 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
14303 ac_cv_c_bigendian
=universal
14309 elif test "x$ac_word" = "x-arch"; then
14314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14315 if test $ac_cv_c_bigendian = unknown
; then
14316 # See if sys/param.h defines the BYTE_ORDER macro.
14317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14318 /* end confdefs.h. */
14319 #include <sys/types.h>
14320 #include <sys/param.h>
14325 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14326 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14328 bogus endian macros
14335 if ac_fn_c_try_compile
"$LINENO"; then :
14336 # It does; now see whether it defined to BIG_ENDIAN or not.
14337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h. */
14339 #include <sys/types.h>
14340 #include <sys/param.h>
14345 #if BYTE_ORDER != BIG_ENDIAN
14353 if ac_fn_c_try_compile
"$LINENO"; then :
14354 ac_cv_c_bigendian
=yes
14356 ac_cv_c_bigendian
=no
14358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14362 if test $ac_cv_c_bigendian = unknown
; then
14363 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h. */
14366 #include <limits.h>
14371 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14372 bogus endian macros
14379 if ac_fn_c_try_compile
"$LINENO"; then :
14380 # It does; now see whether it defined to _BIG_ENDIAN or not.
14381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14382 /* end confdefs.h. */
14383 #include <limits.h>
14388 #ifndef _BIG_ENDIAN
14396 if ac_fn_c_try_compile
"$LINENO"; then :
14397 ac_cv_c_bigendian
=yes
14399 ac_cv_c_bigendian
=no
14401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14405 if test $ac_cv_c_bigendian = unknown
; then
14406 # Compile a test program.
14407 if test "$cross_compiling" = yes; then :
14408 # Try to guess by grepping values from an object file.
14409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h. */
14411 short int ascii_mm[] =
14412 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14413 short int ascii_ii[] =
14414 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14415 int use_ascii (int i) {
14416 return ascii_mm[i] + ascii_ii[i];
14418 short int ebcdic_ii[] =
14419 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14420 short int ebcdic_mm[] =
14421 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14422 int use_ebcdic (int i) {
14423 return ebcdic_mm[i] + ebcdic_ii[i];
14430 return use_ascii (foo) == use_ebcdic (foo);
14435 if ac_fn_c_try_compile
"$LINENO"; then :
14436 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
14437 ac_cv_c_bigendian
=yes
14439 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
14440 if test "$ac_cv_c_bigendian" = unknown
; then
14441 ac_cv_c_bigendian
=no
14443 # finding both strings is unlikely to happen, but who knows?
14444 ac_cv_c_bigendian
=unknown
14448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h. */
14452 $ac_includes_default
14457 /* Are we little or big endian? From Harbison&Steele. */
14461 char c[sizeof (long int)];
14464 return u.c[sizeof (long int) - 1] == 1;
14470 if ac_fn_c_try_run
"$LINENO"; then :
14471 ac_cv_c_bigendian
=no
14473 ac_cv_c_bigendian
=yes
14475 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14476 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14482 $as_echo "$ac_cv_c_bigendian" >&6; }
14483 case $ac_cv_c_bigendian in #(
14485 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14491 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14495 as_fn_error
"unknown endianness
14496 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14499 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the word size" >&5
14504 $as_echo_n "checking for the word size... " >&6; }
14505 if test "${libat_cv_wordsize+set}" = set; then :
14506 $as_echo_n "(cached) " >&6
14508 if ac_fn_c_compute_int
"$LINENO" "sizeof(word)" "libat_cv_wordsize" "typedef int word __attribute__((mode(word)));"; then :
14511 as_fn_error
"Could not determine word size." "$LINENO" 5
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_wordsize" >&5
14516 $as_echo "$libat_cv_wordsize" >&6; }
14518 cat >>confdefs.h
<<_ACEOF
14519 #define WORDSIZE $libat_cv_wordsize
14524 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14525 # In case the pthread.h system header is not found, this test will fail.
14526 case " $config_path " in
14529 CFLAGS
="$CFLAGS -pthread"
14530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h. */
14532 #include <pthread.h>
14533 void *g(void *d) { return NULL; }
14537 pthread_t t; pthread_create(&t,NULL,g,NULL);
14542 if ac_fn_c_try_link
"$LINENO"; then :
14543 XPCFLAGS
=" -pthread"
14545 CFLAGS
="$save_CFLAGS $XCFLAGS" LIBS
="-lpthread $LIBS"
14546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14547 /* end confdefs.h. */
14548 #include <pthread.h>
14549 void *g(void *d) { return NULL; }
14553 pthread_t t; pthread_create(&t,NULL,g,NULL);
14558 if ac_fn_c_try_link
"$LINENO"; then :
14561 as_fn_error
"Pthreads are required to build libatomic" "$LINENO" 5
14563 rm -f core conftest.err conftest.
$ac_objext \
14564 conftest
$ac_exeext conftest.
$ac_ext
14566 rm -f core conftest.err conftest.
$ac_objext \
14567 conftest
$ac_exeext conftest.
$ac_ext
14568 CFLAGS
="$save_CFLAGS $XPCFLAGS"
14572 # See what sort of export controls are available.
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
14575 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
14576 if test "${libat_cv_have_attribute_visibility+set}" = set; then :
14577 $as_echo_n "(cached) " >&6
14580 save_CFLAGS
="$CFLAGS"
14581 CFLAGS
="$CFLAGS -Werror"
14582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 void __attribute__((visibility("hidden"))) foo(void) { }
14593 if ac_fn_c_try_compile
"$LINENO"; then :
14594 libat_cv_have_attribute_visibility
=yes
14596 libat_cv_have_attribute_visibility
=no
14598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14599 CFLAGS
="$save_CFLAGS"
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_visibility" >&5
14602 $as_echo "$libat_cv_have_attribute_visibility" >&6; }
14603 if test $libat_cv_have_attribute_visibility = yes; then
14605 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
14610 $as_echo_n "checking whether the target supports dllexport... " >&6; }
14611 if test "${libat_cv_have_attribute_dllexport+set}" = set; then :
14612 $as_echo_n "(cached) " >&6
14615 save_CFLAGS
="$CFLAGS"
14616 CFLAGS
="$CFLAGS -Werror"
14617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14619 void __attribute__((dllexport)) foo(void) { }
14628 if ac_fn_c_try_compile
"$LINENO"; then :
14629 libat_cv_have_attribute_dllexport
=yes
14631 libat_cv_have_attribute_dllexport
=no
14633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14634 CFLAGS
="$save_CFLAGS"
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_dllexport" >&5
14637 $as_echo "$libat_cv_have_attribute_dllexport" >&6; }
14638 if test $libat_cv_have_attribute_dllexport = yes; then
14640 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
14645 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
14646 if test "${libat_cv_have_attribute_alias+set}" = set; then :
14647 $as_echo_n "(cached) " >&6
14650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14654 extern void bar(void) __attribute__((alias("foo")));
14663 if ac_fn_c_try_link
"$LINENO"; then :
14664 libat_cv_have_attribute_alias
=yes
14666 libat_cv_have_attribute_alias
=no
14668 rm -f core conftest.err conftest.
$ac_objext \
14669 conftest
$ac_exeext conftest.
$ac_ext
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_alias" >&5
14672 $as_echo "$libat_cv_have_attribute_alias" >&6; }
14673 if test $libat_cv_have_attribute_alias = yes; then
14675 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
14678 if test x
$try_ifunc = xyes
; then
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports the ifunc attribute" >&5
14681 $as_echo_n "checking whether the target supports the ifunc attribute... " >&6; }
14682 if test "${libat_cv_have_ifunc+set}" = set; then :
14683 $as_echo_n "(cached) " >&6
14686 save_CFLAGS
="$CFLAGS"
14687 CFLAGS
="$CFLAGS -Werror"
14688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h. */
14691 int foo_alt(void) { return 0; }
14692 void *foo_sel(void) { return foo_alt; }
14693 int foo(void) __attribute__((ifunc("foo_sel")));
14702 if ac_fn_c_try_link
"$LINENO"; then :
14703 libat_cv_have_ifunc
=yes
14705 libat_cv_have_ifunc
=no
14707 rm -f core conftest.err conftest.
$ac_objext \
14708 conftest
$ac_exeext conftest.
$ac_ext
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_ifunc" >&5
14711 $as_echo "$libat_cv_have_ifunc" >&6; }
14713 yesno
=`echo $libat_cv_have_ifunc | tr 'yesno' '1 0 '`
14715 cat >>confdefs.h
<<_ACEOF
14716 #define HAVE_IFUNC $yesno
14723 # Check linker support.
14726 # Check whether --with-gnu-ld was given.
14727 if test "${with_gnu_ld+set}" = set; then :
14728 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
14734 if test "$GCC" = yes; then
14735 # Check if gcc -print-prog-name=ld gives a path.
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14737 $as_echo_n "checking for ld used by $CC... " >&6; }
14740 # gcc leaves a trailing carriage return which upsets mingw
14741 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14743 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
14746 # Accept absolute paths.
14748 re_direlt
='/[^/][^/]*/\.\./'
14749 # Canonicalize the pathname of ld
14750 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14751 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
14752 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14754 test -z "$LD" && LD
="$ac_prog"
14757 # If it fails, then pretend we aren't using GCC.
14761 # If it is relative, then search for the first ld in PATH.
14762 with_gnu_ld
=unknown
14765 elif test "$with_gnu_ld" = yes; then
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14767 $as_echo_n "checking for GNU ld... " >&6; }
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14770 $as_echo_n "checking for non-GNU ld... " >&6; }
14772 if test "${lt_cv_path_LD+set}" = set; then :
14773 $as_echo_n "(cached) " >&6
14775 if test -z "$LD"; then
14776 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14777 for ac_dir
in $PATH; do
14779 test -z "$ac_dir" && ac_dir
=.
14780 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14781 lt_cv_path_LD
="$ac_dir/$ac_prog"
14782 # Check to see if the program is GNU ld. I'd rather use --version,
14783 # but apparently some variants of GNU ld only accept -v.
14784 # Break only if it was the GNU/non-GNU ld that we prefer.
14785 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14786 *GNU
* |
*'with BFD'*)
14787 test "$with_gnu_ld" != no
&& break
14790 test "$with_gnu_ld" != yes && break
14797 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
14801 LD
="$lt_cv_path_LD"
14802 if test -n "$LD"; then
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14804 $as_echo "$LD" >&6; }
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14807 $as_echo "no" >&6; }
14809 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14811 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14812 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14813 $as_echo_n "(cached) " >&6
14815 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14816 case `$LD -v 2>&1 </dev/null` in
14817 *GNU
* |
*'with BFD'*)
14818 lt_cv_prog_gnu_ld
=yes
14821 lt_cv_prog_gnu_ld
=no
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14826 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14827 with_gnu_ld
=$lt_cv_prog_gnu_ld
14835 # If we're not using GNU ld, then there's no point in even trying these
14836 # tests. Check for that first. We should have already tested for gld
14837 # by now (in libtool), but require it now just to be safe...
14838 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
14839 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
14843 # The name set by libtool depends on the version of libtool. Shame on us
14844 # for depending on an impl detail, but c'est la vie. Older versions used
14845 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
14846 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
14847 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
14848 # set (hence we're using an older libtool), then set it.
14849 if test x
${with_gnu_ld+set} != xset
; then
14850 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
14851 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
14854 with_gnu_ld
=$ac_cv_prog_gnu_ld
14858 # Start by getting the version number. I think the libtool test already
14859 # does some of this, but throws away the result.
14860 libat_ld_is_gold
=no
14861 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
14862 libat_ld_is_gold
=yes
14865 ldver
=`$LD --version 2>/dev/null |
14866 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'`
14868 libat_gnu_ld_version
=`echo $ldver | \
14869 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
14871 # Set --gc-sections.
14872 if test "$with_gnu_ld" = "notbroken"; then
14873 # GNU ld it is! Joy and bunny rabbits!
14875 # All these tests are for C++; save the language and the compiler flags.
14876 # Need to do this so that g++ won't try to link in libstdc++
14877 ac_test_CFLAGS
="${CFLAGS+set}"
14878 ac_save_CFLAGS
="$CFLAGS"
14879 CFLAGS
='-x c++ -Wl,--gc-sections'
14881 # Check for -Wl,--gc-sections
14882 # XXX This test is broken at the moment, as symbols required for linking
14883 # are now in libsupc++ (not built yet). In addition, this test has
14884 # cored on solaris in the past. In addition, --gc-sections doesn't
14885 # really work at the moment (keeps on discarding used sections, first
14886 # .eh_frame and now some of the glibc sections for iconv).
14887 # Bzzzzt. Thanks for playing, maybe next time.
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
14889 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
14890 if test "$cross_compiling" = yes; then :
14891 ac_sectionLDflags
=yes
14893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14894 /* end confdefs.h. */
14904 if ac_fn_c_try_run
"$LINENO"; then :
14905 ac_sectionLDflags
=yes
14907 ac_sectionLDflags
=no
14909 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14910 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14913 if test "$ac_test_CFLAGS" = set; then
14914 CFLAGS
="$ac_save_CFLAGS"
14916 # this is the suspicious part
14919 if test "$ac_sectionLDflags" = "yes"; then
14920 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
14923 $as_echo "$ac_sectionLDflags" >&6; }
14926 # Set linker optimization flags.
14927 if test x
"$with_gnu_ld" = x
"yes"; then
14928 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
14936 # Check whether --enable-symvers was given.
14937 if test "${enable_symvers+set}" = set; then :
14938 enableval
=$enable_symvers;
14939 case "$enableval" in
14940 yes|no|gnu
*|sun
) ;;
14941 *) as_fn_error
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
14950 # If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
14951 # don't know enough about $LD to do tricks...
14954 # Turn a 'yes' into a suitable default.
14955 if test x
$enable_symvers = xyes
; then
14956 # FIXME The following test is too strict, in theory.
14957 if test $enable_shared = no ||
test "x$LD" = x
; then
14960 if test $with_gnu_ld = yes ; then
14963 case ${target_os} in
14964 # Sun symbol versioning exists since Solaris 2.5.
14965 solaris2.
[5-9]* | solaris2.1
[0-9]*)
14966 enable_symvers
=sun
;;
14968 enable_symvers
=no
;;
14974 # Check if 'sun' was requested on non-Solaris 2 platforms.
14975 if test x
$enable_symvers = xsun
; then
14976 case ${target_os} in
14981 # Unlikely to work.
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
14983 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
14985 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
14987 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
14993 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
14994 if test $enable_symvers != no
; then
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
14996 $as_echo_n "checking for shared libgcc... " >&6; }
14997 ac_save_CFLAGS
="$CFLAGS"
14999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h. */
15010 if ac_fn_c_try_link
"$LINENO"; then :
15011 libat_shared_libgcc
=yes
15013 libat_shared_libgcc
=no
15015 rm -f core conftest.err conftest.
$ac_objext \
15016 conftest
$ac_exeext conftest.
$ac_ext
15017 CFLAGS
="$ac_save_CFLAGS"
15018 if test $libat_shared_libgcc = no
; then
15019 cat > conftest.c
<<EOF
15020 int main (void) { return 0; }
15022 libat_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15023 -shared -shared-libgcc -o conftest.so \
15024 conftest.c -v 2>&1 >/dev/null \
15025 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15026 rm -f conftest.c conftest.so
15027 if test x
${libat_libgcc_s_suffix+set} = xset
; then
15028 CFLAGS
=" -lgcc_s$libat_libgcc_s_suffix"
15029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15040 if ac_fn_c_try_link
"$LINENO"; then :
15041 libat_shared_libgcc
=yes
15043 rm -f core conftest.err conftest.
$ac_objext \
15044 conftest
$ac_exeext conftest.
$ac_ext
15045 CFLAGS
="$ac_save_CFLAGS"
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
15049 $as_echo "$libat_shared_libgcc" >&6; }
15052 # For GNU ld, we need at least this version. The format is described in
15053 # LIBAT_CHECK_LINKER_FEATURES above.
15054 libat_min_gnu_ld_version
=21400
15055 # XXXXXXXXXXX libat_gnu_ld_version=21390
15057 # Check to see if unspecified "yes" value can win, given results above.
15058 # Change "yes" into either "no" or a style name.
15059 if test $enable_symvers != no
&& test $libat_shared_libgcc = yes; then
15060 if test $with_gnu_ld = yes; then
15061 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
15063 elif test $libat_ld_is_gold = yes ; then
15066 # The right tools, the right setup, but too old. Fallbacks?
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
15068 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15070 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15072 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
15074 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
15075 if test $libat_gnu_ld_version -ge 21200 ; then
15076 # Globbing fix is present, proper block support is not.
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15078 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15083 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15087 elif test $enable_symvers = sun
; then
15088 : All interesting versions of Sun ld support sun style symbol versioning.
15090 # just fail for now
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15092 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15094 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15096 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15098 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15102 if test $enable_symvers = gnu
; then
15104 $as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
15108 if test $enable_symvers != no
; then
15109 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
=
15110 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
='#'
15112 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
='#'
15113 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
=
15116 if test $enable_symvers = gnu
; then
15117 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
15118 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
15120 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
15121 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
15124 if test $enable_symvers = sun
; then
15125 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
15126 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
15128 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
15129 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15133 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15136 # Cleanup and exit.
15137 CFLAGS
="$save_CFLAGS"
15138 cat >confcache
<<\_ACEOF
15139 # This file is a shell script that caches the results of configure
15140 # tests run on this system so they can be shared between configure
15141 # scripts and configure runs, see configure's option --config-cache.
15142 # It is not useful on other systems. If it contains results you don't
15143 # want to keep, you may remove or edit it.
15145 # config.status only pays attention to the cache file if you give it
15146 # the --recheck option to rerun configure.
15148 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15149 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15150 # following values.
15154 # The following way of writing the cache mishandles newlines in values,
15155 # but we know of no workaround that is simple, portable, and efficient.
15156 # So, we kill variables containing newlines.
15157 # Ultrix sh set writes to stderr and can't be redirected directly,
15158 # and sets the high bit in the cache file unless we assign to the vars.
15160 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15161 eval ac_val
=\$
$ac_var
15165 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15166 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15169 _ | IFS | as_nl
) ;; #(
15170 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15171 *) { eval $ac_var=; unset $ac_var;} ;;
15177 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15178 *${as_nl}ac_space
=\
*)
15179 # `set' does not quote correctly, so add quotes: double-quote
15180 # substitution turns \\\\ into \\, and sed turns \\ into \.
15183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15186 # `set' quotes correctly as required by POSIX, so do not add quotes.
15187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15196 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15198 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15200 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15201 if test -w "$cache_file"; then
15202 test "x$cache_file" != "x/dev/null" &&
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15204 $as_echo "$as_me: updating cache $cache_file" >&6;}
15205 cat confcache
>$cache_file
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15208 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15213 # Add -Wall -Werror if we are using GCC.
15214 if test "x$GCC" = "xyes"; then
15215 XCFLAGS
="$XCFLAGS -Wall -Werror"
15218 XCFLAGS
="$XCFLAGS $XPCFLAGS"
15226 if test x
$libat_cv_have_ifunc = xyes
; then
15228 HAVE_IFUNC_FALSE
='#'
15230 HAVE_IFUNC_TRUE
='#'
15234 if expr "$config_path" : ".* linux/arm .*" > /dev
/null
; then
15235 ARCH_ARM_LINUX_TRUE
=
15236 ARCH_ARM_LINUX_FALSE
='#'
15238 ARCH_ARM_LINUX_TRUE
='#'
15239 ARCH_ARM_LINUX_FALSE
=
15242 if test "$ARCH" = x86
&& test x
$libat_cv_wordsize = x4
; then
15244 ARCH_I386_FALSE
='#'
15250 if test "$ARCH" = x86
&& test x
$libat_cv_wordsize = x8
; then
15252 ARCH_X86_64_FALSE
='#'
15254 ARCH_X86_64_TRUE
='#'
15259 if test ${multilib} = yes; then
15260 multilib_arg
="--enable-multilib"
15265 ac_config_files
="$ac_config_files Makefile testsuite/Makefile"
15267 cat >confcache
<<\_ACEOF
15268 # This file is a shell script that caches the results of configure
15269 # tests run on this system so they can be shared between configure
15270 # scripts and configure runs, see configure's option --config-cache.
15271 # It is not useful on other systems. If it contains results you don't
15272 # want to keep, you may remove or edit it.
15274 # config.status only pays attention to the cache file if you give it
15275 # the --recheck option to rerun configure.
15277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15279 # following values.
15283 # The following way of writing the cache mishandles newlines in values,
15284 # but we know of no workaround that is simple, portable, and efficient.
15285 # So, we kill variables containing newlines.
15286 # Ultrix sh set writes to stderr and can't be redirected directly,
15287 # and sets the high bit in the cache file unless we assign to the vars.
15289 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15290 eval ac_val
=\$
$ac_var
15294 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15295 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15298 _ | IFS | as_nl
) ;; #(
15299 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15300 *) { eval $ac_var=; unset $ac_var;} ;;
15306 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15307 *${as_nl}ac_space
=\
*)
15308 # `set' does not quote correctly, so add quotes: double-quote
15309 # substitution turns \\\\ into \\, and sed turns \\ into \.
15312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15315 # `set' quotes correctly as required by POSIX, so do not add quotes.
15316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15329 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15330 if test -w "$cache_file"; then
15331 test "x$cache_file" != "x/dev/null" &&
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15333 $as_echo "$as_me: updating cache $cache_file" >&6;}
15334 cat confcache
>$cache_file
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15337 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15342 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15343 # Let make expand exec_prefix.
15344 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15346 DEFS
=-DHAVE_CONFIG_H
15350 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15351 # 1. Remove the extension, and $U if already installed.
15352 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15353 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15354 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15355 # will be set to the directory where LIBOBJS objects are built.
15356 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15357 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15359 LIBOBJS
=$ac_libobjs
15361 LTLIBOBJS
=$ac_ltlibobjs
15364 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
15365 as_fn_error
"conditional \"GENINSRC\" was never defined.
15366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15368 if test -n "$EXEEXT"; then
15370 am__EXEEXT_FALSE
='#'
15372 am__EXEEXT_TRUE
='#'
15376 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15377 as_fn_error
"conditional \"AMDEP\" was never defined.
15378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15380 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15381 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
15382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15384 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15385 as_fn_error
"conditional \"am__fastdepCCAS\" was never defined.
15386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15388 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15389 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
15390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15393 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
15394 as_fn_error
"conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
15395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15397 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
15398 as_fn_error
"conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
15399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15401 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
15402 as_fn_error
"conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
15403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15405 if test -z "${HAVE_IFUNC_TRUE}" && test -z "${HAVE_IFUNC_FALSE}"; then
15406 as_fn_error
"conditional \"HAVE_IFUNC\" was never defined.
15407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15409 if test -z "${ARCH_ARM_LINUX_TRUE}" && test -z "${ARCH_ARM_LINUX_FALSE}"; then
15410 as_fn_error
"conditional \"ARCH_ARM_LINUX\" was never defined.
15411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15413 if test -z "${ARCH_I386_TRUE}" && test -z "${ARCH_I386_FALSE}"; then
15414 as_fn_error
"conditional \"ARCH_I386\" was never defined.
15415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15417 if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
15418 as_fn_error
"conditional \"ARCH_X86_64\" was never defined.
15419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15422 : ${CONFIG_STATUS=./config.status}
15424 ac_clean_files_save
=$ac_clean_files
15425 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15427 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15429 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15431 # Generated by $as_me.
15432 # Run this file to recreate the current configuration.
15433 # Compiler output produced by configure, useful for debugging
15434 # configure, is in config.log if it exists.
15437 ac_cs_recheck=false
15440 SHELL=\${CONFIG_SHELL-$SHELL}
15443 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15444 ## -------------------- ##
15445 ## M4sh Initialization. ##
15446 ## -------------------- ##
15448 # Be more Bourne compatible
15449 DUALCASE
=1; export DUALCASE
# for MKS sh
15450 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15453 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15454 # is contrary to our usage. Disable this feature.
15455 alias -g '${1+"$@"}'='"$@"'
15456 setopt NO_GLOB_SUBST
15458 case `(set -o) 2>/dev/null` in #(
15470 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15471 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15472 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15473 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15474 # Prefer a ksh shell builtin over an external printf program on Solaris,
15475 # but without wasting forks for bash or zsh.
15476 if test -z "$BASH_VERSION$ZSH_VERSION" \
15477 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15478 as_echo='print
-r --'
15479 as_echo_n='print
-rn --'
15480 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15481 as_echo='printf %s
\n'
15482 as_echo_n='printf %s
'
15484 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15485 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15486 as_echo_n='/usr
/ucb
/echo -n'
15488 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15489 as_echo_n_body='eval
15493 expr "X$arg" : "X\\(.*\\)$as_nl";
15494 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15496 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15498 export as_echo_n_body
15499 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15501 export as_echo_body
15502 as_echo='sh
-c $as_echo_body as_echo
'
15505 # The user is always right.
15506 if test "${PATH_SEPARATOR+set}" != set; then
15508 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15509 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15516 # We need space, tab and new line, in precisely that order. Quoting is
15517 # there to prevent editors from complaining about space-tab.
15518 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15519 # splitting by setting IFS to empty value.)
15522 # Find who we are. Look in the path if we contain no directory separator.
15524 *[\\/]* ) as_myself=$0 ;;
15525 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15526 for as_dir in $PATH
15529 test -z "$as_dir" && as_dir=.
15530 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15536 # We did not find ourselves, most probably we were run as `sh COMMAND'
15537 # in which case we are not to be found in the path.
15538 if test "x$as_myself" = x
; then
15541 if test ! -f "$as_myself"; then
15542 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15546 # Unset variables that we do not need and which cause bugs (e.g. in
15547 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15548 # suppresses any "Segmentation fault" message there. '((' could
15549 # trigger a bug in pdksh 5.2.14.
15550 for as_var
in BASH_ENV ENV MAIL MAILPATH
15551 do eval test x\
${$as_var+set} = xset \
15552 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15565 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15568 # as_fn_error ERROR [LINENO LOG_FD]
15569 # ---------------------------------
15570 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15571 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15572 # script with status $?, using 1 if that was 0.
15575 as_status
=$?
; test $as_status -eq 0 && as_status
=1
15577 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15578 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15580 $as_echo "$as_me: error: $1" >&2
15581 as_fn_exit
$as_status
15585 # as_fn_set_status STATUS
15586 # -----------------------
15587 # Set $? to STATUS, without forking.
15588 as_fn_set_status
()
15591 } # as_fn_set_status
15593 # as_fn_exit STATUS
15594 # -----------------
15595 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15599 as_fn_set_status
$1
15605 # Portably unset VAR.
15608 { eval $1=; unset $1;}
15610 as_unset
=as_fn_unset
15611 # as_fn_append VAR VALUE
15612 # ----------------------
15613 # Append the text in VALUE to the end of the definition contained in VAR. Take
15614 # advantage of any shell optimizations that allow amortized linear growth over
15615 # repeated appends, instead of the typical quadratic growth present in naive
15617 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15618 eval 'as_fn_append ()
15629 # as_fn_arith ARG...
15630 # ------------------
15631 # Perform arithmetic evaluation on the ARGs, and store the result in the
15632 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15633 # must be portable across $(()) and expr.
15634 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15635 eval 'as_fn_arith ()
15642 as_val
=`expr "$@" || test $? -eq 1`
15647 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15648 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15654 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15655 as_basename
=basename
15660 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15666 as_me
=`$as_basename -- "$0" ||
15667 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15668 X"$0" : 'X\(//\)$' \| \
15669 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15671 sed '/^.*\/\([^/][^/]*\)\/*$/{
15685 # Avoid depending upon Character Ranges.
15686 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15687 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15688 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15689 as_cr_digits
='0123456789'
15690 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15692 ECHO_C
= ECHO_N
= ECHO_T
=
15693 case `echo -n x` in #(((((
15695 case `echo 'xy\c'` in
15696 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15698 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15705 rm -f conf$$ conf$$.exe conf$$.
file
15706 if test -d conf$$.dir
; then
15707 rm -f conf$$.dir
/conf$$.
file
15710 mkdir conf$$.dir
2>/dev
/null
15712 if (echo >conf$$.
file) 2>/dev
/null
; then
15713 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15715 # ... but there are two gotchas:
15716 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15717 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15718 # In both cases, we have to default to `cp -p'.
15719 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15721 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15729 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15730 rmdir conf$$.dir
2>/dev
/null
15735 # Create "$as_dir" as a directory, including parents if necessary.
15740 -*) as_dir
=.
/$as_dir;;
15742 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15746 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15747 *) as_qdir
=$as_dir;;
15749 as_dirs
="'$as_qdir' $as_dirs"
15750 as_dir
=`$as_dirname -- "$as_dir" ||
15751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15752 X"$as_dir" : 'X\(//\)[^/]' \| \
15753 X"$as_dir" : 'X\(//\)$' \| \
15754 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15755 $as_echo X"$as_dir" |
15756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15760 /^X\(\/\/\)[^/].*/{
15773 test -d "$as_dir" && break
15775 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15776 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
15780 if mkdir
-p .
2>/dev
/null
; then
15781 as_mkdir_p
='mkdir -p "$as_dir"'
15783 test -d .
/-p && rmdir .
/-p
15787 if test -x / >/dev
/null
2>&1; then
15788 as_test_x
='test -x'
15790 if ls -dL / >/dev
/null
2>&1; then
15797 if test -d "$1"; then
15803 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15804 ???[sx]*):;;*)false;;esac;fi
15808 as_executable_p
=$as_test_x
15810 # Sed expression to map a string onto a valid CPP name.
15811 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15813 # Sed expression to map a string onto a valid variable name.
15814 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15818 ## ----------------------------------- ##
15819 ## Main body of $CONFIG_STATUS script. ##
15820 ## ----------------------------------- ##
15822 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15825 # Save the log message, to keep $0 and so on meaningful, and to
15826 # report actual input values of CONFIG_FILES etc. instead of their
15827 # values after options handling.
15829 This file was extended by GNU Atomic Library $as_me 1.0, which was
15830 generated by GNU Autoconf 2.64. Invocation command line was
15832 CONFIG_FILES = $CONFIG_FILES
15833 CONFIG_HEADERS = $CONFIG_HEADERS
15834 CONFIG_LINKS = $CONFIG_LINKS
15835 CONFIG_COMMANDS = $CONFIG_COMMANDS
15838 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15843 case $ac_config_files in *"
15844 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15847 case $ac_config_headers in *"
15848 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15853 # Files that config.status was made for.
15854 config_files="$ac_config_files"
15855 config_headers="$ac_config_headers"
15856 config_commands="$ac_config_commands"
15860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15862 \`$as_me' instantiates files and other configuration actions
15863 from templates according to the current configuration. Unless the files
15864 and actions are specified as TAGs, all are instantiated by default.
15866 Usage: $0 [OPTION]... [TAG]...
15868 -h, --help print this help, then exit
15869 -V, --version print version number and configuration settings, then exit
15870 -q, --quiet, --silent
15871 do not print progress messages
15872 -d, --debug don't remove temporary files
15873 --recheck update $as_me by reconfiguring in the same conditions
15874 --file=FILE[:TEMPLATE]
15875 instantiate the configuration file FILE
15876 --header=FILE[:TEMPLATE]
15877 instantiate the configuration header FILE
15879 Configuration files:
15882 Configuration headers:
15885 Configuration commands:
15888 Report bugs to the package provider.
15889 GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
15890 General help using GNU software: <http://www.gnu.org/gethelp/>."
15893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15895 GNU Atomic Library config.status 1.0
15896 configured by $0, generated by GNU Autoconf 2.64,
15897 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15899 Copyright (C) 2009 Free Software Foundation, Inc.
15900 This config.status script is free software; the Free Software Foundation
15901 gives unlimited permission to copy, distribute and modify it."
15908 test -n "\$AWK" || AWK=awk
15911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15912 # The default lists apply if the user does not specify any file.
15918 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15919 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15930 # Handling of the options.
15931 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15933 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15934 $as_echo "$ac_cs_version"; exit ;;
15935 --debug |
--debu |
--deb |
--de |
--d |
-d )
15937 --file |
--fil |
--fi |
--f )
15940 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15942 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15943 ac_need_defaults
=false
;;
15944 --header |
--heade |
--head |
--hea )
15947 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15949 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15950 ac_need_defaults
=false
;;
15952 # Conflict between --help and --header
15953 as_fn_error
"ambiguous option: \`$1'
15954 Try \`$0 --help' for more information.";;
15955 --help |
--hel |
-h )
15956 $as_echo "$ac_cs_usage"; exit ;;
15957 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15958 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15961 # This is an error.
15962 -*) as_fn_error
"unrecognized option: \`$1'
15963 Try \`$0 --help' for more information." ;;
15965 *) as_fn_append ac_config_targets
" $1"
15966 ac_need_defaults
=false
;;
15972 ac_configure_extra_args
=
15974 if $ac_cs_silent; then
15976 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15981 if \$ac_cs_recheck; then
15982 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15984 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15985 CONFIG_SHELL='$SHELL'
15986 export CONFIG_SHELL
15991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15996 ## Running $as_me. ##
16002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16010 with_multisubdir="$with_multisubdir"
16011 with_multisrctop="$with_multisrctop"
16012 with_target_subdir="$with_target_subdir"
16013 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16014 multi_basedir="$multi_basedir"
16015 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16018 GFORTRAN="$GFORTRAN"
16020 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16023 # The HP-UX ksh and POSIX shell print the target directory to stdout
16024 # if CDPATH is set.
16025 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16027 sed_quote_subst='$sed_quote_subst'
16028 double_quote_subst='$double_quote_subst'
16029 delay_variable_subst='$delay_variable_subst'
16030 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16031 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16032 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16033 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16034 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16035 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16036 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16037 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16038 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16039 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16040 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16041 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16042 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16043 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16044 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16045 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16046 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16047 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16048 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16049 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16050 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16051 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16052 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16053 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16054 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16055 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16056 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16057 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16058 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16059 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16060 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16061 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16062 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16063 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16064 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16065 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16066 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16067 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16068 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16069 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16070 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16071 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16072 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16073 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16074 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16075 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16076 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16077 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16078 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"`'
16079 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16080 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16081 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16082 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16083 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16084 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16085 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16086 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16087 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16088 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16089 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16090 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16091 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16092 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16093 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16094 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16095 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16096 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16097 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16098 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16099 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16100 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16101 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16102 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16103 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16104 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16105 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16106 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16107 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16108 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16109 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16110 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16111 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16112 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16113 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16114 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16115 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16116 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16117 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16118 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16119 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16120 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16121 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16122 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16123 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16124 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16125 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16126 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16127 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16128 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16129 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16130 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16131 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16132 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16133 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16134 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16135 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16136 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16137 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16138 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16139 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16140 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16141 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16142 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16143 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16144 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16145 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16146 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16147 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16148 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16149 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16152 LTCFLAGS='$LTCFLAGS'
16153 compiler='$compiler_DEFAULT'
16155 # A function that is used when there is no print builtin or printf.
16156 func_fallback_echo ()
16158 eval 'cat <<_LTECHO_EOF
16163 # Quote evaled strings.
16177 deplibs_check_method \
16186 lt_cv_sys_global_symbol_pipe \
16187 lt_cv_sys_global_symbol_to_cdecl \
16188 lt_cv_sys_global_symbol_to_c_name_address \
16189 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16190 lt_prog_compiler_no_builtin_flag \
16191 lt_prog_compiler_wl \
16192 lt_prog_compiler_pic \
16193 lt_prog_compiler_static \
16194 lt_cv_prog_compiler_c_o \
16202 export_dynamic_flag_spec \
16203 whole_archive_flag_spec \
16204 compiler_needs_object \
16206 allow_undefined_flag \
16207 no_undefined_flag \
16208 hardcode_libdir_flag_spec \
16209 hardcode_libdir_flag_spec_ld \
16210 hardcode_libdir_separator \
16215 variables_saved_for_relink \
16217 library_names_spec \
16219 install_override_mode \
16223 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16224 *[\\\\\\\`\\"\\\$]*)
16225 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16228 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16233 # Double-quote double-evaled strings.
16234 for var in reload_cmds \
16235 old_postinstall_cmds \
16236 old_postuninstall_cmds \
16238 extract_expsyms_cmds \
16239 old_archive_from_new_cmds \
16240 old_archive_from_expsyms_cmds \
16242 archive_expsym_cmds \
16244 module_expsym_cmds \
16245 export_symbols_cmds \
16248 postuninstall_cmds \
16250 sys_lib_search_path_spec \
16251 sys_lib_dlsearch_path_spec; do
16252 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16253 *[\\\\\\\`\\"\\\$]*)
16254 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16257 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16262 ac_aux_dir='$ac_aux_dir'
16263 xsi_shell='$xsi_shell'
16264 lt_shell_append='$lt_shell_append'
16266 # See if we are running on zsh, and set the options which allow our
16267 # commands through without removal of \ escapes INIT.
16268 if test -n "\${ZSH_VERSION+set}" ; then
16269 setopt NO_GLOB_SUBST
16275 TIMESTAMP='$TIMESTAMP'
16284 acx_cv_header_stdint="$acx_cv_header_stdint"
16285 acx_cv_type_int8_t="$acx_cv_type_int8_t"
16286 acx_cv_type_int16_t="$acx_cv_type_int16_t"
16287 acx_cv_type_int32_t="$acx_cv_type_int32_t"
16288 acx_cv_type_int64_t="$acx_cv_type_int64_t"
16289 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
16290 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
16291 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
16292 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16293 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16294 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
16295 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16296 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16297 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
16302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16304 # Handling of arguments.
16305 for ac_config_target
in $ac_config_targets
16307 case $ac_config_target in
16308 "auto-config.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-config.h" ;;
16309 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
16310 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16311 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
16312 "gstdint.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS gstdint.h" ;;
16313 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16314 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
16316 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16321 # If the user did not use the arguments to specify the items to instantiate,
16322 # then the envvar interface is used. Set only those that are not.
16323 # We use the long form for the default assignment because of an extremely
16324 # bizarre bug on SunOS 4.1.3.
16325 if $ac_need_defaults; then
16326 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16327 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16328 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16331 # Have a temporary directory for convenience. Make it in the build tree
16332 # simply because there is no reason against having it here, and in addition,
16333 # creating and moving files from /tmp can sometimes cause problems.
16334 # Hook for its removal unless debugging.
16335 # Note that there is a small window in which the directory will not be cleaned:
16336 # after its creation but before its name has been assigned to `$tmp'.
16340 trap 'exit_status=$?
16341 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16343 trap 'as_fn_exit 1' 1 2 13 15
16345 # Create a (secure) tmp directory for tmp files.
16348 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16349 test -n "$tmp" && test -d "$tmp"
16352 tmp
=.
/conf$$
-$RANDOM
16353 (umask 077 && mkdir
"$tmp")
16354 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16356 # Set up the scripts for CONFIG_FILES section.
16357 # No need to generate them if there are no CONFIG_FILES.
16358 # This happens for instance with `./config.status config.h'.
16359 if test -n "$CONFIG_FILES"; then
16362 ac_cr
=`echo X | tr X '\015'`
16363 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16364 # But we know of no other shell where ac_cr would be empty at this
16365 # point, so we can use a bashism as a fallback.
16366 if test "x$ac_cr" = x
; then
16367 eval ac_cr
=\$
\'\\r
\'
16369 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16370 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16373 ac_cs_awk_cr
=$ac_cr
16376 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16381 echo "cat >conf$$subs.awk <<_ACEOF" &&
16382 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16384 } >conf$$subs.sh ||
16385 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16386 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16388 for ac_last_try in false false false false false :; do
16389 . ./conf$$subs.sh ||
16390 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16392 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16393 if test $ac_delim_n = $ac_delim_num; then
16395 elif $ac_last_try; then
16396 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16398 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16401 rm -f conf$$subs.sh
16403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16404 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16408 s/^/S["/; s
/!.
*/"]=/
16418 s/\(.\{148\}\).*/\1/
16420 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16425 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16432 s/\(.\{148\}\).*/\1/
16434 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16438 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16443 ' <conf$$subs.awk | sed '
16448 ' >>$CONFIG_STATUS || ac_write_fail=1
16449 rm -f conf$$subs.awk
16450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16452 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16453 for (key in S) S_is_set[key] = 1
16459 nfields = split(line, field, "@
")
16461 len = length(field[1])
16462 for (i = 2; i < nfields; i++) {
16464 keylen = length(key)
16465 if (S_is_set[key]) {
16467 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16468 len += length(value) + length(field[++i])
16479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16480 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16481 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16484 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
16485 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
16488 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16489 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
16490 # trailing colons and then remove the whole line if VPATH becomes empty
16491 # (actually we leave an empty line to preserve line numbers).
16492 if test "x
$srcdir" = x.; then
16493 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16494 s/:*\$(srcdir):*/:/
16495 s/:*\${srcdir}:*/:/
16497 s/^\([^=]*=[ ]*\):*/\1/
16503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16504 fi # test -n "$CONFIG_FILES"
16506 # Set up the scripts for CONFIG_HEADERS section.
16507 # No need to generate them if there are no CONFIG_HEADERS.
16508 # This happens for instance with `./config.status Makefile'.
16509 if test -n "$CONFIG_HEADERS"; then
16510 cat >"$tmp/defines.
awk" <<\_ACAWK ||
16514 # Transform confdefs.h into an awk script `defines.awk', embedded as
16515 # here-document in config.status, that substitutes the proper values into
16516 # config.h.in to produce config.h.
16518 # Create a delimiter string that does not exist in confdefs.h, to ease
16519 # handling of long lines.
16521 for ac_last_try in false false :; do
16522 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
16523 if test -z "$ac_t"; then
16525 elif $ac_last_try; then
16526 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
16528 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16532 # For the awk script, D is an array of macro values keyed by name,
16533 # likewise P contains macro parameters if any. Preserve backslash
16534 # newline sequences.
16536 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16538 s/.\{148\}/&'"$ac_delim"'/g
16541 s/^[ ]*#[ ]*define[ ][ ]*/ /
16548 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16550 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16554 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16555 D["\
1"]=" \
3\\\\\\n
"\\/p
16557 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16562 s/.\{148\}/&'"$ac_delim"'/g
16567 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16570 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16572 ' <confdefs.h | sed '
16573 s/'"$ac_delim"'/"\\\
16574 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16577 for (key in D) D_is_set[key] = 1
16580 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16582 split(line, arg, " ")
16583 if (arg[1] == "#") {
16587 defundef
= substr
(arg
[1], 2)
16590 split(mac1
, mac2
, "(") #)
16592 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16593 if (D_is_set
[macro
]) {
16594 # Preserve the white space surrounding the "#".
16595 print prefix
"define", macro P
[macro
] D
[macro
]
16598 # Replace #undef with comments. This is necessary, for example,
16599 # in the case of _POSIX_SOURCE, which is predefined and required
16600 # on some systems where configure will not decide to define it.
16601 if (defundef
== "undef") {
16602 print
"/*", prefix defundef
, macro
, "*/"
16610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16611 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
16612 fi # test -n "$CONFIG_HEADERS"
16615 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16620 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16622 case $ac_mode$ac_tag in
16624 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16625 :[FH
]-) ac_tag
=-:-;;
16626 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16643 -) ac_f
="$tmp/stdin";;
16644 *) # Look for the file first in the build tree, then in the source tree
16645 # (if the path is not absolute). The absolute path cannot be DOS-style,
16646 # because $ac_f cannot contain `:'.
16650 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16652 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
16654 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16655 as_fn_append ac_file_inputs
" '$ac_f'"
16658 # Let's still pretend it is `configure' which instantiates (i.e., don't
16659 # use $as_me), people would be surprised to read:
16660 # /* config.h. Generated by config.status. */
16661 configure_input
='Generated from '`
16662 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16664 if test x
"$ac_file" != x-
; then
16665 configure_input
="$ac_file. $configure_input"
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16667 $as_echo "$as_me: creating $ac_file" >&6;}
16669 # Neutralize special characters interpreted by sed in replacement strings.
16670 case $configure_input in #(
16671 *\
&* |
*\|
* |
*\\* )
16672 ac_sed_conf_input
=`$as_echo "$configure_input" |
16673 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16674 *) ac_sed_conf_input
=$configure_input;;
16678 *:-:* |
*:-) cat >"$tmp/stdin" \
16679 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
16684 ac_dir
=`$as_dirname -- "$ac_file" ||
16685 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16686 X"$ac_file" : 'X\(//\)[^/]' \| \
16687 X"$ac_file" : 'X\(//\)$' \| \
16688 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16689 $as_echo X"$ac_file" |
16690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16694 /^X\(\/\/\)[^/].*/{
16707 as_dir
="$ac_dir"; as_fn_mkdir_p
16711 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16713 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16714 # A ".." for each directory in $ac_dir_suffix.
16715 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16716 case $ac_top_builddir_sub in
16717 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16718 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16721 ac_abs_top_builddir
=$ac_pwd
16722 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16723 # for backward compatibility:
16724 ac_top_builddir
=$ac_top_build_prefix
16727 .
) # We are building in place.
16729 ac_top_srcdir
=$ac_top_builddir_sub
16730 ac_abs_top_srcdir
=$ac_pwd ;;
16731 [\\/]* | ?
:[\\/]* ) # Absolute name.
16732 ac_srcdir
=$srcdir$ac_dir_suffix;
16733 ac_top_srcdir
=$srcdir
16734 ac_abs_top_srcdir
=$srcdir ;;
16735 *) # Relative name.
16736 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16737 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16738 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16740 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16750 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16751 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16753 ac_MKDIR_P
=$MKDIR_P
16755 [\\/$
]* | ?
:[\\/]* ) ;;
16756 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
16760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16761 # If the template does not know about datarootdir, expand it.
16762 # FIXME: This hack should be removed a few years after 2.60.
16763 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16774 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16775 *datarootdir
*) ac_datarootdir_seen
=yes;;
16776 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16778 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16781 ac_datarootdir_hack='
16782 s&@datadir@&$datadir&g
16783 s&@docdir@&$docdir&g
16784 s&@infodir@&$infodir&g
16785 s&@localedir@&$localedir&g
16786 s&@mandir@&$mandir&g
16787 s&\\\${datarootdir}&$datarootdir&g' ;;
16791 # Neutralize VPATH when `$srcdir' = `.'.
16792 # Shell code in configure.ac might set extrasub.
16793 # FIXME: do we really want to maintain this feature?
16794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16795 ac_sed_extra="$ac_vpsub
16798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16800 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16801 s|@configure_input@|
$ac_sed_conf_input|
;t t
16802 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16803 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16804 s
&@srcdir@
&$ac_srcdir&;t t
16805 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16806 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16807 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16808 s
&@builddir@
&$ac_builddir&;t t
16809 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16810 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16811 s
&@INSTALL@
&$ac_INSTALL&;t t
16812 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
16813 $ac_datarootdir_hack
16815 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
16816 || as_fn_error "could not create
$ac_file" "$LINENO" 5
16818 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16819 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
16820 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16822 which seems to be undefined. Please make sure it is defined." >&5
16823 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16824 which seems to be undefined. Please make sure it is defined." >&2;}
16828 -) cat "$tmp/out" && rm -f "$tmp/out";;
16829 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16831 || as_fn_error "could not create $ac_file" "$LINENO" 5
16837 if test x"$ac_file" != x-; then
16839 $as_echo "/* $configure_input */" \
16840 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16841 } >"$tmp/config.h" \
16842 || as_fn_error "could not create $ac_file" "$LINENO" 5
16843 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16845 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16848 mv "$tmp/config.h" "$ac_file" \
16849 || as_fn_error "could not create $ac_file" "$LINENO" 5
16852 $as_echo "/* $configure_input */" \
16853 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16854 || as_fn_error "could not create -" "$LINENO" 5
16856 # Compute "$ac_file"'s index
in $config_headers.
16859 for _am_header
in $config_headers :; do
16860 case $_am_header in
16861 $_am_arg |
$_am_arg:* )
16864 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
16867 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16868 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16869 X"$_am_arg" : 'X\(//\)[^/]' \| \
16870 X"$_am_arg" : 'X\(//\)$' \| \
16871 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16872 $as_echo X"$_am_arg" |
16873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16877 /^X\(\/\/\)[^/].*/{
16889 s/.*/./; q'`/stamp-h
$_am_stamp_count
16892 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16893 $as_echo "$as_me: executing $ac_file commands" >&6;}
16898 case $ac_file$ac_mode in
16900 # Only add multilib support code if we just rebuilt the top-level
16902 case " $CONFIG_FILES " in
16904 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
16907 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
16908 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16909 # are listed without --file. Let's play safe and only enable the eval
16910 # if we detect the quoting.
16911 case $CONFIG_FILES in
16912 *\'*) eval set x
"$CONFIG_FILES" ;;
16913 *) set x
$CONFIG_FILES ;;
16918 # Strip MF so we end up with the name of the file.
16919 mf
=`echo "$mf" | sed -e 's/:.*$//'`
16920 # Check whether this is an Automake generated Makefile or not.
16921 # We used to match only the files named `Makefile.in', but
16922 # some people rename them; so instead we look at the file content.
16923 # Grep'ing the first line is not enough: some people post-process
16924 # each Makefile.in and add a new line on top of each file to say so.
16925 # Grep'ing the whole file is not good either: AIX grep has a line
16926 # limit of 2048, but all sed's we know have understand at least 4000.
16927 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
16928 dirpart
=`$as_dirname -- "$mf" ||
16929 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16930 X"$mf" : 'X\(//\)[^/]' \| \
16931 X"$mf" : 'X\(//\)$' \| \
16932 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16938 /^X\(\/\/\)[^/].*/{
16954 # Extract the definition of DEPDIR, am__include, and am__quote
16955 # from the Makefile without running `make'.
16956 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
16957 test -z "$DEPDIR" && continue
16958 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
16959 test -z "am__include" && continue
16960 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
16961 # When using ansi2knr, U may be empty or an underscore; expand it
16962 U
=`sed -n 's/^U = //p' < "$mf"`
16963 # Find all dependency output files, they are included files with
16964 # $(DEPDIR) in their names. We invoke sed twice because it is the
16965 # simplest approach to changing $(DEPDIR) to its actual value in the
16967 for file in `sed -n "
16968 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16969 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16970 # Make sure the directory exists.
16971 test -f "$dirpart/$file" && continue
16972 fdir
=`$as_dirname -- "$file" ||
16973 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16974 X"$file" : 'X\(//\)[^/]' \| \
16975 X"$file" : 'X\(//\)$' \| \
16976 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16977 $as_echo X"$file" |
16978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16982 /^X\(\/\/\)[^/].*/{
16995 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
16996 # echo "creating $dirpart/$file"
16997 echo '# dummy' > "$dirpart/$file"
17004 # See if we are running on zsh, and set the options which allow our
17005 # commands through without removal of \ escapes.
17006 if test -n "${ZSH_VERSION+set}" ; then
17007 setopt NO_GLOB_SUBST
17010 cfgfile
="${ofile}T"
17011 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17014 cat <<_LT_EOF >> "$cfgfile"
17017 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17018 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17019 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17020 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17022 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17023 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17024 # Written by Gordon Matzigkeit, 1996
17026 # This file is part of GNU Libtool.
17028 # GNU Libtool is free software; you can redistribute it and/or
17029 # modify it under the terms of the GNU General Public License as
17030 # published by the Free Software Foundation; either version 2 of
17031 # the License, or (at your option) any later version.
17033 # As a special exception to the GNU General Public License,
17034 # if you distribute this file as part of a program or library that
17035 # is built using GNU Libtool, you may include this file under the
17036 # same distribution terms that you use for the rest of that program.
17038 # GNU Libtool is distributed in the hope that it will be useful,
17039 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17040 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17041 # GNU General Public License for more details.
17043 # You should have received a copy of the GNU General Public License
17044 # along with GNU Libtool; see the file COPYING. If not, a copy
17045 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17046 # obtained by writing to the Free Software Foundation, Inc.,
17047 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17050 # The names of the tagged configurations supported by this script.
17053 # ### BEGIN LIBTOOL CONFIG
17055 # Which release of libtool.m4 was used?
17056 macro_version=$macro_version
17057 macro_revision=$macro_revision
17059 # Whether or not to build shared libraries.
17060 build_libtool_libs=$enable_shared
17062 # Whether or not to build static libraries.
17063 build_old_libs=$enable_static
17065 # What type of objects to build.
17068 # Whether or not to optimize for fast installation.
17069 fast_install=$enable_fast_install
17071 # Shell to use when invoking shell scripts.
17074 # An echo program that protects backslashes.
17078 host_alias=$host_alias
17082 # The build system.
17083 build_alias=$build_alias
17087 # A sed program that does not truncate output.
17090 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17091 Xsed="\$SED -e 1s/^X//"
17093 # A grep program that handles long lines.
17099 # A literal string matcher.
17102 # A BSD- or MS-compatible name lister.
17105 # Whether we need soft or hard links.
17108 # What is the maximum length of a command?
17109 max_cmd_len=$max_cmd_len
17111 # Object file suffix (normally "o").
17114 # Executable file suffix (normally "").
17117 # whether the shell understands "unset".
17120 # turn spaces into newlines.
17123 # turn newlines into spaces.
17126 # An object symbol dumper.
17127 OBJDUMP=$lt_OBJDUMP
17129 # Method to check whether dependent libraries are shared objects.
17130 deplibs_check_method=$lt_deplibs_check_method
17132 # Command to use when deplibs_check_method == "file_magic".
17133 file_magic_cmd=$lt_file_magic_cmd
17137 AR_FLAGS=$lt_AR_FLAGS
17139 # A symbol stripping program.
17142 # Commands used to install an old-style archive.
17144 old_postinstall_cmds=$lt_old_postinstall_cmds
17145 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17147 # Whether to use a lock for old archive extraction.
17148 lock_old_archive_extraction=$lock_old_archive_extraction
17153 # LTCC compiler flags.
17154 LTCFLAGS=$lt_CFLAGS
17156 # Take the output of nm and produce a listing of raw symbols and C names.
17157 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17159 # Transform the output of nm in a proper C declaration.
17160 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17162 # Transform the output of nm in a C name address pair.
17163 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17165 # Transform the output of nm in a C name address pair when lib prefix is needed.
17166 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17168 # The name of the directory that contains temporary libtool files.
17171 # Used to examine libraries when file_magic_cmd begins with "file".
17172 MAGIC_CMD=$MAGIC_CMD
17174 # Must we lock files when doing compilation?
17175 need_locks=$lt_need_locks
17177 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17178 DSYMUTIL=$lt_DSYMUTIL
17180 # Tool to change global to local symbols on Mac OS X.
17183 # Tool to manipulate fat objects and archives on Mac OS X.
17186 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17189 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17190 OTOOL64=$lt_OTOOL64
17192 # Old archive suffix (normally "a").
17195 # Shared library suffix (normally ".so").
17196 shrext_cmds=$lt_shrext_cmds
17198 # The commands to extract the exported symbol list from a shared archive.
17199 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17201 # Variables whose values should be saved in libtool wrapper scripts and
17202 # restored at link time.
17203 variables_saved_for_relink=$lt_variables_saved_for_relink
17205 # Do we need the "lib" prefix for modules?
17206 need_lib_prefix=$need_lib_prefix
17208 # Do we need a version for libraries?
17209 need_version=$need_version
17211 # Library versioning type.
17212 version_type=$version_type
17214 # Shared library runtime path variable.
17215 runpath_var=$runpath_var
17217 # Shared library path variable.
17218 shlibpath_var=$shlibpath_var
17220 # Is shlibpath searched before the hard-coded library search path?
17221 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17223 # Format of library name prefix.
17224 libname_spec=$lt_libname_spec
17226 # List of archive names. First name is the real one, the rest are links.
17227 # The last name is the one that the linker finds with -lNAME
17228 library_names_spec=$lt_library_names_spec
17230 # The coded name of the library, if different from the real name.
17231 soname_spec=$lt_soname_spec
17233 # Permission mode override for installation of shared libraries.
17234 install_override_mode=$lt_install_override_mode
17236 # Command to use after installation of a shared archive.
17237 postinstall_cmds=$lt_postinstall_cmds
17239 # Command to use after uninstallation of a shared archive.
17240 postuninstall_cmds=$lt_postuninstall_cmds
17242 # Commands used to finish a libtool library installation in a directory.
17243 finish_cmds=$lt_finish_cmds
17245 # As "finish_cmds", except a single script fragment to be evaled but
17247 finish_eval=$lt_finish_eval
17249 # Whether we should hardcode library paths into libraries.
17250 hardcode_into_libs=$hardcode_into_libs
17252 # Compile-time system search path for libraries.
17253 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17255 # Run-time system search path for libraries.
17256 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17258 # Whether dlopen is supported.
17259 dlopen_support=$enable_dlopen
17261 # Whether dlopen of programs is supported.
17262 dlopen_self=$enable_dlopen_self
17264 # Whether dlopen of statically linked programs is supported.
17265 dlopen_self_static=$enable_dlopen_self_static
17267 # Commands to strip libraries.
17268 old_striplib=$lt_old_striplib
17269 striplib=$lt_striplib
17272 # The linker used to build libraries.
17275 # How to create reloadable object files.
17276 reload_flag=$lt_reload_flag
17277 reload_cmds=$lt_reload_cmds
17279 # Commands used to build an old-style archive.
17280 old_archive_cmds=$lt_old_archive_cmds
17282 # A language specific compiler.
17285 # Is the compiler the GNU compiler?
17288 # Compiler flag to turn off builtin functions.
17289 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17291 # How to pass a linker flag through the compiler.
17292 wl=$lt_lt_prog_compiler_wl
17294 # Additional compiler flags for building library objects.
17295 pic_flag=$lt_lt_prog_compiler_pic
17297 # Compiler flag to prevent dynamic linking.
17298 link_static_flag=$lt_lt_prog_compiler_static
17300 # Does compiler simultaneously support -c and -o options?
17301 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17303 # Whether or not to add -lc for building shared libraries.
17304 build_libtool_need_lc=$archive_cmds_need_lc
17306 # Whether or not to disallow shared libs when runtime libs are static.
17307 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17309 # Compiler flag to allow reflexive dlopens.
17310 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17312 # Compiler flag to generate shared objects directly from archives.
17313 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17315 # Whether the compiler copes with passing no objects directly.
17316 compiler_needs_object=$lt_compiler_needs_object
17318 # Create an old-style archive from a shared archive.
17319 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17321 # Create a temporary old-style archive to link instead of a shared archive.
17322 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17324 # Commands used to build a shared archive.
17325 archive_cmds=$lt_archive_cmds
17326 archive_expsym_cmds=$lt_archive_expsym_cmds
17328 # Commands used to build a loadable module if different from building
17329 # a shared archive.
17330 module_cmds=$lt_module_cmds
17331 module_expsym_cmds=$lt_module_expsym_cmds
17333 # Whether we are building with GNU ld or not.
17334 with_gnu_ld=$lt_with_gnu_ld
17336 # Flag that allows shared libraries with undefined symbols to be built.
17337 allow_undefined_flag=$lt_allow_undefined_flag
17339 # Flag that enforces no undefined symbols.
17340 no_undefined_flag=$lt_no_undefined_flag
17342 # Flag to hardcode \$libdir into a binary during linking.
17343 # This must work even if \$libdir does not exist
17344 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17346 # If ld is used when linking, flag to hardcode \$libdir into a binary
17347 # during linking. This must work even if \$libdir does not exist.
17348 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17350 # Whether we need a single "-rpath" flag with a separated argument.
17351 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17353 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17354 # DIR into the resulting binary.
17355 hardcode_direct=$hardcode_direct
17357 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17358 # DIR into the resulting binary and the resulting library dependency is
17359 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17360 # library is relocated.
17361 hardcode_direct_absolute=$hardcode_direct_absolute
17363 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17364 # into the resulting binary.
17365 hardcode_minus_L=$hardcode_minus_L
17367 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17368 # into the resulting binary.
17369 hardcode_shlibpath_var=$hardcode_shlibpath_var
17371 # Set to "yes" if building a shared library automatically hardcodes DIR
17372 # into the library and all subsequent libraries and executables linked
17374 hardcode_automatic=$hardcode_automatic
17376 # Set to yes if linker adds runtime paths of dependent libraries
17377 # to runtime path list.
17378 inherit_rpath=$inherit_rpath
17380 # Whether libtool must link a program against all its dependency libraries.
17381 link_all_deplibs=$link_all_deplibs
17383 # Fix the shell variable \$srcfile for the compiler.
17384 fix_srcfile_path=$lt_fix_srcfile_path
17386 # Set to "yes" if exported symbols are required.
17387 always_export_symbols=$always_export_symbols
17389 # The commands to list exported symbols.
17390 export_symbols_cmds=$lt_export_symbols_cmds
17392 # Symbols that should not be listed in the preloaded symbols.
17393 exclude_expsyms=$lt_exclude_expsyms
17395 # Symbols that must always be exported.
17396 include_expsyms=$lt_include_expsyms
17398 # Commands necessary for linking programs (against libraries) with templates.
17399 prelink_cmds=$lt_prelink_cmds
17401 # Specify filename containing input files.
17402 file_list_spec=$lt_file_list_spec
17404 # How to hardcode a shared library path into an executable.
17405 hardcode_action=$hardcode_action
17407 # ### END LIBTOOL CONFIG
17413 cat <<\_LT_EOF
>> "$cfgfile"
17414 # AIX sometimes has problems with the GCC collect2 program. For some
17415 # reason, if we set the COLLECT_NAMES environment variable, the problems
17416 # vanish in a puff of smoke.
17417 if test "X${COLLECT_NAMES+set}" != Xset
; then
17419 export COLLECT_NAMES
17426 ltmain
="$ac_aux_dir/ltmain.sh"
17429 # We use sed instead of cat because bash on DJGPP gets confused if
17430 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17431 # text mode, it properly converts lines to CR/LF. This bash problem
17432 # is reportedly fixed, but why not run on old versions too?
17433 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17434 ||
(rm -f "$cfgfile"; exit 1)
17438 cat << \_LT_EOF
>> "$cfgfile"
17440 # func_dirname file append nondir_replacement
17441 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17442 # otherwise set result to NONDIR_REPLACEMENT.
17446 */*) func_dirname_result
="${1%/*}${2}" ;;
17447 * ) func_dirname_result
="${3}" ;;
17451 # func_basename file
17454 func_basename_result
="${1##*/}"
17457 # func_dirname_and_basename file append nondir_replacement
17458 # perform func_basename and func_dirname in a single function
17460 # dirname: Compute the dirname of FILE. If nonempty,
17461 # add APPEND to the result, otherwise set result
17462 # to NONDIR_REPLACEMENT.
17463 # value returned in "$func_dirname_result"
17464 # basename: Compute filename of FILE.
17465 # value retuned in "$func_basename_result"
17466 # Implementation must be kept synchronized with func_dirname
17467 # and func_basename. For efficiency, we do not delegate to
17468 # those functions but instead duplicate the functionality here.
17469 func_dirname_and_basename
()
17472 */*) func_dirname_result
="${1%/*}${2}" ;;
17473 * ) func_dirname_result
="${3}" ;;
17475 func_basename_result
="${1##*/}"
17478 # func_stripname prefix suffix name
17479 # strip PREFIX and SUFFIX off of NAME.
17480 # PREFIX and SUFFIX must not contain globbing or regex special
17481 # characters, hashes, percent signs, but SUFFIX may contain a leading
17482 # dot (in which case that matches only a dot).
17485 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17486 # positional parameters, so assign one to ordinary parameter first.
17487 func_stripname_result
=${3}
17488 func_stripname_result
=${func_stripname_result#"${1}"}
17489 func_stripname_result
=${func_stripname_result%"${2}"}
17495 func_opt_split_opt
=${1%%=*}
17496 func_opt_split_arg
=${1#*=}
17503 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
17504 *) func_lo2o_result
=${1} ;;
17508 # func_xform libobj-or-source
17511 func_xform_result
=${1%.*}.lo
17514 # func_arith arithmetic-term...
17517 func_arith_result
=$
(( $
* ))
17521 # STRING may not start with a hyphen.
17524 func_len_result
=${#1}
17529 *) # Bourne compatible functions.
17530 cat << \_LT_EOF
>> "$cfgfile"
17532 # func_dirname file append nondir_replacement
17533 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17534 # otherwise set result to NONDIR_REPLACEMENT.
17537 # Extract subdirectory from the argument.
17538 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
17539 if test "X$func_dirname_result" = "X${1}"; then
17540 func_dirname_result
="${3}"
17542 func_dirname_result
="$func_dirname_result${2}"
17546 # func_basename file
17549 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
17553 # func_stripname prefix suffix name
17554 # strip PREFIX and SUFFIX off of NAME.
17555 # PREFIX and SUFFIX must not contain globbing or regex special
17556 # characters, hashes, percent signs, but SUFFIX may contain a leading
17557 # dot (in which case that matches only a dot).
17558 # func_strip_suffix prefix name
17562 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17563 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17568 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
17569 my_sed_long_arg
='1s/^-[^=]*=//'
17574 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17575 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17581 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
17584 # func_xform libobj-or-source
17587 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17590 # func_arith arithmetic-term...
17593 func_arith_result
=`expr "$@"`
17597 # STRING may not start with a hyphen.
17600 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17606 case $lt_shell_append in
17608 cat << \_LT_EOF
>> "$cfgfile"
17610 # func_append var value
17611 # Append VALUE to the end of shell variable VAR.
17619 cat << \_LT_EOF
>> "$cfgfile"
17621 # func_append var value
17622 # Append VALUE to the end of shell variable VAR.
17633 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17634 ||
(rm -f "$cfgfile"; exit 1)
17636 mv -f "$cfgfile" "$ofile" ||
17637 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17642 if test "$GCC" = yes; then
17643 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
17645 echo "/* generated for $CC */" > tmp-stdint.h
17648 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17650 #ifndef GCC_GENERATED_STDINT_H
17651 #define GCC_GENERATED_STDINT_H 1
17653 #include <sys/types.h>
17656 if test "$acx_cv_header_stdint" != stdint.h
; then
17657 echo "#include <stddef.h>" >> tmp-stdint.h
17659 if test "$acx_cv_header_stdint" != stddef.h
; then
17660 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
17663 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17664 /* glibc uses these symbols as guards to prevent redefinitions. */
17665 #ifdef __int8_t_defined
17670 #ifdef __uint32_t_defined
17676 # ----------------- done header, emit basic int types -------------
17677 if test "$acx_cv_header_stdint" = stddef.h
; then
17678 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17682 #ifndef __uint8_t_defined
17683 #define __uint8_t_defined
17685 typedef unsigned $acx_cv_type_int8_t uint8_t;
17692 #ifndef __uint16_t_defined
17693 #define __uint16_t_defined
17695 typedef unsigned $acx_cv_type_int16_t uint16_t;
17702 #ifndef __uint32_t_defined
17703 #define __uint32_t_defined
17705 typedef unsigned $acx_cv_type_int32_t uint32_t;
17712 #ifndef __int8_t_defined
17713 #define __int8_t_defined
17715 typedef $acx_cv_type_int8_t int8_t;
17722 #ifndef __int16_t_defined
17723 #define __int16_t_defined
17725 typedef $acx_cv_type_int16_t int16_t;
17732 #ifndef __int32_t_defined
17733 #define __int32_t_defined
17735 typedef $acx_cv_type_int32_t int32_t;
17740 elif test "$ac_cv_type_u_int32_t" = yes; then
17741 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17743 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
17756 #ifndef __uint8_t_defined
17757 #define __uint8_t_defined
17759 typedef u_int8_t uint8_t;
17766 #ifndef __uint16_t_defined
17767 #define __uint16_t_defined
17769 typedef u_int16_t uint16_t;
17776 #ifndef __uint32_t_defined
17777 #define __uint32_t_defined
17779 typedef u_int32_t uint32_t;
17785 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17787 /* Some systems have guard macros to prevent redefinitions, define them. */
17809 # ------------- done basic int types, emit int64_t types ------------
17810 if test "$ac_cv_type_uint64_t" = yes; then
17811 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17813 /* system headers have good uint64_t and int64_t */
17821 elif test "$ac_cv_type_u_int64_t" = yes; then
17822 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17824 /* system headers have an u_int64_t (and int64_t) */
17830 #ifndef __uint64_t_defined
17831 #define __uint64_t_defined
17833 typedef u_int64_t uint64_t;
17838 elif test -n "$acx_cv_type_int64_t"; then
17839 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17841 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
17845 typedef $acx_cv_type_int64_t int64_t;
17850 #ifndef __uint64_t_defined
17851 #define __uint64_t_defined
17853 typedef unsigned $acx_cv_type_int64_t uint64_t;
17859 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17861 /* some common heuristics for int64_t, using compiler-specific tests */
17862 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
17865 #ifndef __int64_t_defined
17867 typedef long long int64_t;
17874 typedef unsigned long long uint64_t;
17878 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
17879 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
17880 does not implement __extension__. But that compiler doesn't define
17882 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
17883 # define __extension__
17889 __extension__ typedef long long int64_t;
17895 __extension__ typedef unsigned long long uint64_t;
17899 #elif !defined __STRICT_ANSI__
17900 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
17905 typedef __int64 int64_t;
17911 typedef unsigned __int64 uint64_t;
17914 # endif /* compiler */
17916 #endif /* ANSI version */
17920 # ------------- done int64_t types, emit intptr types ------------
17921 if test "$ac_cv_type_uintptr_t" != yes; then
17922 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17924 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
17925 #ifndef __uintptr_t_defined
17927 typedef u$acx_cv_type_intptr_t uintptr_t;
17930 #ifndef __intptr_t_defined
17932 typedef $acx_cv_type_intptr_t intptr_t;
17938 # ------------- done intptr types, emit int_least types ------------
17939 if test "$ac_cv_type_int_least32_t" != yes; then
17940 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17942 /* Define int_least types */
17943 typedef int8_t int_least8_t;
17944 typedef int16_t int_least16_t;
17945 typedef int32_t int_least32_t;
17947 typedef int64_t int_least64_t;
17950 typedef uint8_t uint_least8_t;
17951 typedef uint16_t uint_least16_t;
17952 typedef uint32_t uint_least32_t;
17954 typedef uint64_t uint_least64_t;
17959 # ------------- done intptr types, emit int_fast types ------------
17960 if test "$ac_cv_type_int_fast32_t" != yes; then
17961 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17963 /* Define int_fast types. short is often slow */
17964 typedef int8_t int_fast8_t;
17965 typedef int int_fast16_t;
17966 typedef int32_t int_fast32_t;
17968 typedef int64_t int_fast64_t;
17971 typedef uint8_t uint_fast8_t;
17972 typedef unsigned int uint_fast16_t;
17973 typedef uint32_t uint_fast32_t;
17975 typedef uint64_t uint_fast64_t;
17980 if test "$ac_cv_type_uintmax_t" != yes; then
17981 sed 's/^ *//' >> tmp-stdint.h
<<EOF
17983 /* Define intmax based on what we found */
17986 typedef int64_t intmax_t;
17988 typedef long intmax_t;
17993 typedef uint64_t uintmax_t;
17995 typedef unsigned long uintmax_t;
18001 sed 's/^ *//' >> tmp-stdint.h
<<EOF
18003 #endif /* GCC_GENERATED_STDINT_H */
18006 if test -r gstdint.h
&& cmp -s tmp-stdint.h gstdint.h
; then
18009 mv -f tmp-stdint.h gstdint.h
18020 ac_clean_files
=$ac_clean_files_save
18022 test $ac_write_fail = 0 ||
18023 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18026 # configure is writing to config.log, and then calls config.status.
18027 # config.status does its own redirection, appending to config.log.
18028 # Unfortunately, on DOS this fails, as config.log is still kept open
18029 # by configure, so config.status won't be able to write to it; its
18030 # output is simply discarded. So we exec the FD to /dev/null,
18031 # effectively closing config.log, so it can be properly (re)opened and
18032 # appended to by config.status. When coming back to configure, we
18033 # need to make the FD available again.
18034 if test "$no_create" != yes; then
18036 ac_config_status_args
=
18037 test "$silent" = yes &&
18038 ac_config_status_args
="$ac_config_status_args --quiet"
18040 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18042 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18043 # would make configure fail if this is the last instruction.
18044 $ac_cs_success || as_fn_exit $?
18046 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18048 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}