2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Offloading and Multi Processing Runtime 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 Offloading and Multi Processing Runtime Library'
558 PACKAGE_TARNAME
='libgomp'
559 PACKAGE_VERSION
='1.0'
560 PACKAGE_STRING
='GNU Offloading and Multi Processing Runtime Library 1.0'
562 PACKAGE_URL
='http://www.gnu.org/software/libgomp/'
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
604 OMP_NEST_LOCK_25_KIND
606 OMP_NEST_LOCK_25_ALIGN
607 OMP_NEST_LOCK_25_SIZE
622 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
623 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
624 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
625 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
626 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
627 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
634 offload_additional_lib_paths
635 offload_additional_options
644 PLUGIN_NVPTX_CPPFLAGS
654 MAINTAINER_MODE_FALSE
709 INSTALL_STRIP_PROGRAM
765 program_transform_name
778 enable_option_checking
779 enable_version_specific_runtime_libs
780 enable_generated_files_in_srcdir
782 enable_dependency_tracking
789 enable_maintainer_mode
791 with_cuda_driver_include
794 with_hsa_runtime_include
801 ac_precious_vars
='build_alias
812 # Initialize some variables set by options.
814 ac_init_version
=false
815 ac_unrecognized_opts
=
817 # The variables have the same names as the options, with
818 # dashes changed to underlines.
826 program_transform_name
=s
,x
,x
,
834 # Installation directory options.
835 # These are left unexpanded so users can "make install exec_prefix=/foo"
836 # and all the variables that are supposed to be based on exec_prefix
837 # by default will actually change.
838 # Use braces instead of parens because sh, perl, etc. also accept them.
839 # (The list follows the same order as the GNU Coding Standards.)
840 bindir
='${exec_prefix}/bin'
841 sbindir
='${exec_prefix}/sbin'
842 libexecdir
='${exec_prefix}/libexec'
843 datarootdir
='${prefix}/share'
844 datadir
='${datarootdir}'
845 sysconfdir
='${prefix}/etc'
846 sharedstatedir
='${prefix}/com'
847 localstatedir
='${prefix}/var'
848 includedir
='${prefix}/include'
849 oldincludedir
='/usr/include'
850 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
851 infodir
='${datarootdir}/info'
856 libdir
='${exec_prefix}/lib'
857 localedir
='${datarootdir}/locale'
858 mandir
='${datarootdir}/man'
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\
$ac_option
872 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 # Accept the important Cygnus configure options, so we can diagnose typos.
878 case $ac_dashdash$ac_option in
882 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
884 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
887 -build |
--build |
--buil |
--bui |
--bu)
888 ac_prev
=build_alias
;;
889 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
890 build_alias
=$ac_optarg ;;
892 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
893 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
894 ac_prev
=cache_file
;;
895 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
896 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
897 cache_file
=$ac_optarg ;;
900 cache_file
=config.cache
;;
902 -datadir |
--datadir |
--datadi |
--datad)
904 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
905 datadir
=$ac_optarg ;;
907 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
908 |
--dataroo |
--dataro |
--datar)
909 ac_prev
=datarootdir
;;
910 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
911 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
912 datarootdir
=$ac_optarg ;;
914 -disable-* |
--disable-*)
915 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
918 as_fn_error
"invalid feature name: $ac_useropt"
919 ac_useropt_orig
=$ac_useropt
920 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
925 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926 ac_unrecognized_sep
=', ';;
928 eval enable_
$ac_useropt=no
;;
930 -docdir |
--docdir |
--docdi |
--doc |
--do)
932 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
935 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
937 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
940 -enable-* |
--enable-*)
941 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
944 as_fn_error
"invalid feature name: $ac_useropt"
945 ac_useropt_orig
=$ac_useropt
946 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
951 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952 ac_unrecognized_sep
=', ';;
954 eval enable_
$ac_useropt=\
$ac_optarg ;;
956 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
957 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
958 |
--exec |
--exe |
--ex)
959 ac_prev
=exec_prefix
;;
960 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
961 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
962 |
--exec=* |
--exe=* |
--ex=*)
963 exec_prefix
=$ac_optarg ;;
965 -gas |
--gas |
--ga |
--g)
966 # Obsolete; use --with-gas.
969 -help |
--help |
--hel |
--he |
-h)
971 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
972 ac_init_help
=recursive
;;
973 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
974 ac_init_help
=short
;;
976 -host |
--host |
--hos |
--ho)
977 ac_prev
=host_alias
;;
978 -host=* |
--host=* |
--hos=* |
--ho=*)
979 host_alias
=$ac_optarg ;;
981 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
983 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
985 htmldir
=$ac_optarg ;;
987 -includedir |
--includedir |
--includedi |
--included |
--include \
988 |
--includ |
--inclu |
--incl |
--inc)
989 ac_prev
=includedir
;;
990 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
991 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
992 includedir
=$ac_optarg ;;
994 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
996 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
997 infodir
=$ac_optarg ;;
999 -libdir |
--libdir |
--libdi |
--libd)
1001 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1002 libdir
=$ac_optarg ;;
1004 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1005 |
--libexe |
--libex |
--libe)
1006 ac_prev
=libexecdir
;;
1007 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1008 |
--libexe=* |
--libex=* |
--libe=*)
1009 libexecdir
=$ac_optarg ;;
1011 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1012 ac_prev
=localedir
;;
1013 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1014 localedir
=$ac_optarg ;;
1016 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1017 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1018 ac_prev
=localstatedir
;;
1019 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1020 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1021 localstatedir
=$ac_optarg ;;
1023 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1025 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1026 mandir
=$ac_optarg ;;
1028 -nfp |
--nfp |
--nf)
1029 # Obsolete; use --without-fp.
1032 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1033 |
--no-cr |
--no-c |
-n)
1036 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1037 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1040 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1041 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1042 |
--oldin |
--oldi |
--old |
--ol |
--o)
1043 ac_prev
=oldincludedir
;;
1044 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1045 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1046 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1047 oldincludedir
=$ac_optarg ;;
1049 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1051 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1052 prefix
=$ac_optarg ;;
1054 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1055 |
--program-pre |
--program-pr |
--program-p)
1056 ac_prev
=program_prefix
;;
1057 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1058 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1059 program_prefix
=$ac_optarg ;;
1061 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1062 |
--program-suf |
--program-su |
--program-s)
1063 ac_prev
=program_suffix
;;
1064 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1065 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1066 program_suffix
=$ac_optarg ;;
1068 -program-transform-name |
--program-transform-name \
1069 |
--program-transform-nam |
--program-transform-na \
1070 |
--program-transform-n |
--program-transform- \
1071 |
--program-transform |
--program-transfor \
1072 |
--program-transfo |
--program-transf \
1073 |
--program-trans |
--program-tran \
1074 |
--progr-tra |
--program-tr |
--program-t)
1075 ac_prev
=program_transform_name
;;
1076 -program-transform-name=* |
--program-transform-name=* \
1077 |
--program-transform-nam=* |
--program-transform-na=* \
1078 |
--program-transform-n=* |
--program-transform-=* \
1079 |
--program-transform=* |
--program-transfor=* \
1080 |
--program-transfo=* |
--program-transf=* \
1081 |
--program-trans=* |
--program-tran=* \
1082 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1083 program_transform_name
=$ac_optarg ;;
1085 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1087 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1088 pdfdir
=$ac_optarg ;;
1090 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1092 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1095 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1096 |
-silent |
--silent |
--silen |
--sile |
--sil)
1099 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1101 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1103 sbindir
=$ac_optarg ;;
1105 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1106 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1107 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1109 ac_prev
=sharedstatedir
;;
1110 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1111 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1112 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1114 sharedstatedir
=$ac_optarg ;;
1116 -site |
--site |
--sit)
1118 -site=* |
--site=* |
--sit=*)
1121 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1123 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1124 srcdir
=$ac_optarg ;;
1126 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1127 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1128 ac_prev
=sysconfdir
;;
1129 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1130 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1131 sysconfdir
=$ac_optarg ;;
1133 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1134 ac_prev
=target_alias
;;
1135 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1136 target_alias
=$ac_optarg ;;
1138 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1141 -version |
--version |
--versio |
--versi |
--vers |
-V)
1142 ac_init_version
=: ;;
1145 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1148 as_fn_error
"invalid package name: $ac_useropt"
1149 ac_useropt_orig
=$ac_useropt
1150 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1155 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156 ac_unrecognized_sep
=', ';;
1158 eval with_
$ac_useropt=\
$ac_optarg ;;
1160 -without-* |
--without-*)
1161 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1164 as_fn_error
"invalid package name: $ac_useropt"
1165 ac_useropt_orig
=$ac_useropt
1166 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1171 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172 ac_unrecognized_sep
=', ';;
1174 eval with_
$ac_useropt=no
;;
1177 # Obsolete; use --with-x.
1180 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1181 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1182 ac_prev
=x_includes
;;
1183 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1184 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1185 x_includes
=$ac_optarg ;;
1187 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1188 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1189 ac_prev
=x_libraries
;;
1190 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1191 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1192 x_libraries
=$ac_optarg ;;
1194 -*) as_fn_error
"unrecognized option: \`$ac_option'
1195 Try \`$0 --help' for more information."
1199 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1200 # Reject names that are not valid shell variable names.
1201 case $ac_envvar in #(
1202 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1203 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1205 eval $ac_envvar=\
$ac_optarg
1206 export $ac_envvar ;;
1209 # FIXME: should be removed in autoconf 3.0.
1210 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1212 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1219 if test -n "$ac_prev"; then
1220 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1221 as_fn_error
"missing argument to $ac_option"
1224 if test -n "$ac_unrecognized_opts"; then
1225 case $enable_option_checking in
1227 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232 # Check all directory arguments for consistency.
1233 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
1238 eval ac_val
=\$
$ac_var
1239 # Remove trailing slashes.
1242 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243 eval $ac_var=\
$ac_val;;
1245 # Be sure to have absolute directory names.
1247 [\\/$
]* | ?
:[\\/]* ) continue;;
1248 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1250 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1253 # There might be people who depend on the old broken behavior: `$host'
1254 # used to hold the argument of --host etc.
1255 # FIXME: To remove some day.
1258 target
=$target_alias
1260 # FIXME: To remove some day.
1261 if test "x$host_alias" != x
; then
1262 if test "x$build_alias" = x
; then
1263 cross_compiling
=maybe
1264 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1265 If a cross compiler is detected then cross compile mode will be used." >&2
1266 elif test "x$build_alias" != "x$host_alias"; then
1272 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1274 test "$silent" = yes && exec 6>/dev
/null
1277 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di
=`ls -di .` &&
1279 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1280 as_fn_error
"working directory cannot be determined"
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 as_fn_error
"pwd does not report name of working directory"
1285 # Find the source files, if location was not specified.
1286 if test -z "$srcdir"; then
1287 ac_srcdir_defaulted
=yes
1288 # Try the directory containing this script, then the parent directory.
1289 ac_confdir
=`$as_dirname -- "$as_myself" ||
1290 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291 X"$as_myself" : 'X\(//\)[^/]' \| \
1292 X"$as_myself" : 'X\(//\)$' \| \
1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294 $as_echo X"$as_myself" |
1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1317 ac_srcdir_defaulted
=no
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1321 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1323 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1327 # When building in place, set srcdir=.
1328 if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 # Remove unnecessary trailing slashes from srcdir.
1332 # Double slashes in file names in object file debugging info
1333 # mess up M-x gdb in Emacs.
1335 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 for ac_var
in $ac_precious_vars; do
1338 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1339 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1340 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1341 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1345 # Report the --help message.
1347 if test "$ac_init_help" = "long"; then
1348 # Omit some internal or obsolete options to make the list less imposing.
1349 # This message is too long to be a string in the A/UX 3.1 sh.
1351 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1353 Usage: $0 [OPTION]... [VAR=VALUE]...
1355 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356 VAR=VALUE. See below for descriptions of some of the useful variables.
1358 Defaults for the options are specified in brackets.
1361 -h, --help display this help and exit
1362 --help=short display options specific to this package
1363 --help=recursive display the short help of all the included packages
1364 -V, --version display version information and exit
1365 -q, --quiet, --silent do not print \`checking...' messages
1366 --cache-file=FILE cache test results in FILE [disabled]
1367 -C, --config-cache alias for \`--cache-file=config.cache'
1368 -n, --no-create do not create output files
1369 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371 Installation directories:
1372 --prefix=PREFIX install architecture-independent files in PREFIX
1373 [$ac_default_prefix]
1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1377 By default, \`make install' will install all the files in
1378 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1379 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380 for instance \`--prefix=\$HOME'.
1382 For better control, use the options below.
1384 Fine tuning of the installation directories:
1385 --bindir=DIR user executables [EPREFIX/bin]
1386 --sbindir=DIR system admin executables [EPREFIX/sbin]
1387 --libexecdir=DIR program executables [EPREFIX/libexec]
1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1400 --htmldir=DIR html documentation [DOCDIR]
1401 --dvidir=DIR dvi documentation [DOCDIR]
1402 --pdfdir=DIR pdf documentation [DOCDIR]
1403 --psdir=DIR ps documentation [DOCDIR]
1409 --program-prefix=PREFIX prepend PREFIX to installed program names
1410 --program-suffix=SUFFIX append SUFFIX to installed program names
1411 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1414 --build=BUILD configure
for building on BUILD
[guessed
]
1415 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1416 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive
) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1427 --disable-option-checking ignore unrecognized
--enable/--with options
1428 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1429 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1430 --enable-version-specific-runtime-libs
1431 Specify that runtime libraries should be installed
1432 in a compiler-specific directory
[default
=no
]
1433 --enable-generated-files-in-srcdir
1434 put copies of generated files
in source dir intended
1435 for creating
source tarballs
for users without
1436 texinfo bison or flex.
[default
=no
]
1437 --enable-multilib build many library versions
(default
)
1438 --disable-dependency-tracking speeds up one-time build
1439 --enable-dependency-tracking do not reject slow dependency extractors
1440 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1441 --enable-static[=PKGS
] build static libraries
[default
=yes]
1442 --enable-fast-install[=PKGS
]
1443 optimize
for fast installation
[default
=yes]
1444 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1445 --enable-maintainer-mode enable make rules and dependencies not useful
1446 (and sometimes confusing
) to the casual installer
1447 --enable-linux-futex use the Linux futex system call
[default
=default
]
1448 --enable-tls Use thread-local storage
[default
=yes]
1449 --enable-symvers=STYLE enables symbol versioning of the shared library
1453 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1454 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1455 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1457 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1458 --with-cuda-driver=PATH specify prefix directory
for installed CUDA driver
1459 package. Equivalent to
1460 --with-cuda-driver-include=PATH
/include plus
1461 --with-cuda-driver-lib=PATH
/lib
1462 --with-cuda-driver-include=PATH
1463 specify directory
for installed CUDA driver include
1465 --with-cuda-driver-lib=PATH
1466 specify directory
for the installed CUDA driver
1468 --with-hsa-runtime=PATH specify prefix directory
for installed HSA run-time
1469 package. Equivalent to
1470 --with-hsa-runtime-include=PATH
/include plus
1471 --with-hsa-runtime-lib=PATH
/lib
1472 --with-hsa-runtime-include=PATH
1473 specify directory
for installed HSA run-time include
1475 --with-hsa-runtime-lib=PATH
1476 specify directory
for the installed HSA run-time
1478 --with-hsa-kmt-lib=PATH specify directory
for installed HSA KMT library.
1480 Some influential environment variables
:
1481 CC C compiler
command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1484 nonstandard directory
<lib dir
>
1485 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1486 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1487 you have headers
in a nonstandard directory
<include dir
>
1489 FC Fortran compiler
command
1490 FCFLAGS Fortran compiler flags
1492 Use these variables to override the choices made by
`configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1495 Report bugs to the package provider.
1496 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1497 General help using GNU software: <http://www.gnu.org/gethelp/>.
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1527 .) # We are building in place.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1560 GNU Offloading and Multi Processing Runtime Library configure 1.0
1561 generated by GNU Autoconf 2.64
1563 Copyright (C) 2009 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1570 ## ------------------------ ##
1571 ## Autoconf initialization. ##
1572 ## ------------------------ ##
1574 # ac_fn_c_try_compile LINENO
1575 # --------------------------
1576 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_compile ()
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1584 *) ac_try_echo
=$ac_try;;
1586 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1590 if test -s conftest.err
; then
1591 grep -v '^ *+' conftest.err
>conftest.er1
1592 cat conftest.er1
>&5
1593 mv -f conftest.er1 conftest.err
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.
$ac_objext; then :
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.
$ac_ext >&5
1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1610 } # ac_fn_c_try_compile
1612 # ac_fn_c_try_link LINENO
1613 # -----------------------
1614 # Try to link conftest.$ac_ext, and return whether this succeeded.
1617 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1618 rm -f conftest.
$ac_objext conftest
$ac_exeext
1619 if { { ac_try
="$ac_link"
1621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_link") 2>conftest.err
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest$ac_exeext && {
1638 test "$cross_compiling" = yes ||
1639 $as_test_x conftest$ac_exeext
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1650 # interfere with the next link command; also delete a directory that is
1651 # left behind by Apple's compiler. We do this before executing the actions.
1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1656 } # ac_fn_c_try_link
1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists and can be compiled using the include files in
1661 # INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1668 $as_echo_n "(cached) " >&6
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1675 if ac_fn_c_try_compile "$LINENO"; then :
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687 } # ac_fn_c_check_header_compile
1689 # ac_fn_c_try_cpp LINENO
1690 # ----------------------
1691 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_cpp conftest.$ac_ext"
1697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1698 *) ac_try_echo
=$ac_try;;
1700 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704 if test -s conftest.err
; then
1705 grep -v '^ *+' conftest.err
>conftest.er1
1706 cat conftest.er1
>&5
1707 mv -f conftest.er1 conftest.err
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } >/dev
/null
&& {
1711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.
$ac_ext >&5
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1726 # ac_fn_c_try_run LINENO
1727 # ----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729 # that executables *can* be run.
1732 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1733 if { { ac_try
="$ac_link"
1735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>&5
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744 { { case "(($ac_try" in
1745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1746 *) ac_try_echo
=$ac_try;;
1748 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_try") 2>&5
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; }; }; then :
1756 $as_echo "$as_me: program exited with status $ac_status" >&5
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.
$ac_ext >&5
1760 ac_retval
=$ac_status
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1768 # ac_fn_c_check_func LINENO FUNC VAR
1769 # ----------------------------------
1770 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1771 ac_fn_c_check_func
()
1773 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1781 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1783 #define $2 innocuous_$2
1785 /* System header to define __stub macros and hopefully few prototypes,
1786 which can conflict with char $2 (); below.
1787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1788 <limits.h> exists even on freestanding compilers. */
1791 # include <limits.h>
1793 # include <assert.h>
1798 /* Override any GCC internal prototype to avoid an error.
1799 Use char because int might match the return type of a GCC
1800 builtin and then its argument prototype would still apply. */
1805 /* The GNU C library defines this for functions which it implements
1806 to always fail with ENOSYS. Some functions are actually named
1807 something starting with __ and the normal name is an alias. */
1808 #if defined __stub_$2 || defined __stub___$2
1820 if ac_fn_c_try_link
"$LINENO"; then :
1825 rm -f core conftest.err conftest.
$ac_objext \
1826 conftest
$ac_exeext conftest.
$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1833 } # ac_fn_c_check_func
1835 # ac_fn_fc_try_compile LINENO
1836 # ---------------------------
1837 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_fc_try_compile
()
1840 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1841 rm -f conftest.
$ac_objext
1842 if { { ac_try
="$ac_compile"
1844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_compile") 2>conftest.err
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && {
1858 test -z "$ac_fc_werror_flag" ||
1859 test ! -s conftest.err
1860 } && test -s conftest.$ac_objext; then :
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 } # ac_fn_fc_try_compile
1873 # ac_fn_fc_try_link LINENO
1874 # ------------------------
1875 # Try to link conftest.$ac_ext, and return whether this succeeded.
1876 ac_fn_fc_try_link ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 rm -f conftest.$ac_objext conftest$ac_exeext
1880 if { { ac_try="$ac_link"
1882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1883 *) ac_try_echo
=$ac_try;;
1885 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_link") 2>conftest.err
1889 if test -s conftest.err
; then
1890 grep -v '^ *+' conftest.err
>conftest.er1
1891 cat conftest.er1
>&5
1892 mv -f conftest.er1 conftest.err
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && {
1896 test -z "$ac_fc_werror_flag" ||
1897 test ! -s conftest.err
1898 } && test -s conftest
$ac_exeext && {
1899 test "$cross_compiling" = yes ||
1900 $as_test_x conftest
$ac_exeext
1904 $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.
$ac_ext >&5
1909 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1910 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1911 # interfere with the next link command; also delete a directory that is
1912 # left behind by Apple's compiler. We do this before executing the actions.
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1917 } # ac_fn_fc_try_link
1919 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1922 # the include files in INCLUDES and setting the cache variable VAR
1924 ac_fn_c_check_header_mongrel
()
1926 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1927 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1937 # Is the header compilable?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1939 $as_echo_n "checking $2 usability... " >&6; }
1940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1945 if ac_fn_c_try_compile
"$LINENO"; then :
1946 ac_header_compiler
=yes
1948 ac_header_compiler
=no
1950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1952 $as_echo "$ac_header_compiler" >&6; }
1954 # Is the header present?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1956 $as_echo_n "checking $2 presence... " >&6; }
1957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1961 if ac_fn_c_try_cpp
"$LINENO"; then :
1962 ac_header_preproc
=yes
1964 ac_header_preproc
=no
1966 rm -f conftest.err conftest.
$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1968 $as_echo "$ac_header_preproc" >&6; }
1970 # So? What about this header?
1971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1974 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1980 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1982 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1984 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1986 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994 $as_echo_n "(cached) " >&6
1996 eval "$3=\$ac_header_compiler"
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2004 } # ac_fn_c_check_header_mongrel
2006 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2007 # -------------------------------------------
2008 # Tests whether TYPE exists after having included INCLUDES, setting cache
2009 # variable VAR accordingly.
2010 ac_fn_c_check_type
()
2012 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2016 $as_echo_n "(cached) " >&6
2019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2031 if ac_fn_c_try_compile
"$LINENO"; then :
2032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2044 if ac_fn_c_try_compile
"$LINENO"; then :
2049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2058 } # ac_fn_c_check_type
2060 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2061 # --------------------------------------------
2062 # Tries to find the compile-time value of EXPR in a program that includes
2063 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2065 ac_fn_c_compute_int
()
2067 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2068 if test "$cross_compiling" = yes; then
2069 # Depending upon the size, compute the lo and hi bounds.
2070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2076 static int test_array [1 - 2 * !(($2) >= 0)];
2083 if ac_fn_c_try_compile
"$LINENO"; then :
2086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2092 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099 if ac_fn_c_try_compile
"$LINENO"; then :
2100 ac_hi
=$ac_mid; break
2102 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2103 if test $ac_lo -le $ac_mid; then
2107 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2118 static int test_array [1 - 2 * !(($2) < 0)];
2125 if ac_fn_c_try_compile
"$LINENO"; then :
2128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2134 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2141 if ac_fn_c_try_compile
"$LINENO"; then :
2142 ac_lo
=$ac_mid; break
2144 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2145 if test $ac_mid -le $ac_hi; then
2149 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2159 # Binary search between lo and hi bounds.
2160 while test "x$ac_lo" != "x$ac_hi"; do
2161 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2168 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175 if ac_fn_c_try_compile
"$LINENO"; then :
2178 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2183 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2190 static long int longval () { return $2; }
2191 static unsigned long int ulongval () { return $2; }
2198 FILE *f = fopen ("conftest.val", "w");
2203 long int i = longval ();
2206 fprintf (f, "%ld", i);
2210 unsigned long int i = ulongval ();
2213 fprintf (f, "%lu", i);
2215 /* Do not output a trailing newline, as this causes \r\n confusion
2216 on some platforms. */
2217 return ferror (f) || fclose (f) != 0;
2223 if ac_fn_c_try_run
"$LINENO"; then :
2224 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2228 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2229 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2236 } # ac_fn_c_compute_int
2237 cat >config.log
<<_ACEOF
2238 This file contains any messages produced by compilers while
2239 running configure, to aid debugging if configure makes a mistake.
2241 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2242 generated by GNU Autoconf 2.64. Invocation command line was
2254 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2255 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2256 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2257 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2258 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2260 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2261 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2263 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2264 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2265 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2266 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2267 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2268 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2269 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2277 test -z "$as_dir" && as_dir
=.
2278 $as_echo "PATH: $as_dir"
2294 # Keep a trace of the command line.
2295 # Strip out --no-create and --no-recursion so they do not pile up.
2296 # Strip out --silent because we don't want to record it for future runs.
2297 # Also quote any args containing shell meta-characters.
2298 # Make two passes to allow for proper duplicate-argument suppression.
2302 ac_must_keep_next
=false
2308 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2309 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2310 |
-silent |
--silent |
--silen |
--sile |
--sil)
2313 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2316 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2318 as_fn_append ac_configure_args1
" '$ac_arg'"
2319 if test $ac_must_keep_next = true
; then
2320 ac_must_keep_next
=false
# Got value, back to normal.
2323 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2324 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2325 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2326 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2327 case "$ac_configure_args0 " in
2328 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2331 -* ) ac_must_keep_next
=true
;;
2334 as_fn_append ac_configure_args
" '$ac_arg'"
2339 { ac_configure_args0
=; unset ac_configure_args0
;}
2340 { ac_configure_args1
=; unset ac_configure_args1
;}
2342 # When interrupted or exit'd, cleanup temporary files, and complete
2343 # config.log. We remove comments because anyway the quotes in there
2344 # would cause problems or look ugly.
2345 # WARNING: Use '\'' to represent an apostrophe within the trap.
2346 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2347 trap 'exit_status=$?
2348 # Save into config.log some information that might help in debugging.
2353 ## ---------------- ##
2354 ## Cache variables. ##
2355 ## ---------------- ##
2358 # The following way of writing the cache mishandles newlines in values,
2360 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2361 eval ac_val=\$$ac_var
2365 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2366 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2369 _ | IFS | as_nl) ;; #(
2370 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2371 *) { eval $ac_var=; unset $ac_var;} ;;
2376 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2377 *${as_nl}ac_space=\ *)
2379 "s/'\''/'\''\\\\'\'''\''/g;
2380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2383 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2391 ## ----------------- ##
2392 ## Output variables. ##
2393 ## ----------------- ##
2396 for ac_var in $ac_subst_vars
2398 eval ac_val=\$$ac_var
2400 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2402 $as_echo "$ac_var='\''$ac_val'\''"
2406 if test -n "$ac_subst_files"; then
2408 ## ------------------- ##
2409 ## File substitutions. ##
2410 ## ------------------- ##
2413 for ac_var
in $ac_subst_files
2415 eval ac_val
=\$
$ac_var
2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419 $as_echo "$ac_var='\''$ac_val'\''"
2424 if test -s confdefs.h; then
2434 test "$ac_signal" != 0 &&
2435 $as_echo "$as_me: caught signal $ac_signal"
2436 $as_echo "$as_me: exit $exit_status"
2438 rm -f core *.core core.conftest.* &&
2439 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2442 for ac_signal
in 1 2 13 15; do
2443 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2448 rm -f -r conftest
* confdefs.h
2450 $as_echo "/* confdefs.h */" > confdefs.h
2452 # Predefined preprocessor variables.
2454 cat >>confdefs.h
<<_ACEOF
2455 #define PACKAGE_NAME "$PACKAGE_NAME"
2458 cat >>confdefs.h
<<_ACEOF
2459 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2462 cat >>confdefs.h
<<_ACEOF
2463 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2466 cat >>confdefs.h
<<_ACEOF
2467 #define PACKAGE_STRING "$PACKAGE_STRING"
2470 cat >>confdefs.h
<<_ACEOF
2471 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2474 cat >>confdefs.h
<<_ACEOF
2475 #define PACKAGE_URL "$PACKAGE_URL"
2479 # Let the site file select an alternate cache file if it wants to.
2480 # Prefer an explicitly selected file to automatically selected ones.
2483 if test -n "$CONFIG_SITE"; then
2484 ac_site_file1
=$CONFIG_SITE
2485 elif test "x$prefix" != xNONE
; then
2486 ac_site_file1
=$prefix/share
/config.site
2487 ac_site_file2
=$prefix/etc
/config.site
2489 ac_site_file1
=$ac_default_prefix/share
/config.site
2490 ac_site_file2
=$ac_default_prefix/etc
/config.site
2492 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2494 test "x$ac_site_file" = xNONE
&& continue
2495 if test -r "$ac_site_file"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2497 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2498 sed 's/^/| /' "$ac_site_file" >&5
2503 if test -r "$cache_file"; then
2504 # Some versions of bash will fail to source /dev/null (special
2505 # files actually), so we avoid doing that.
2506 if test -f "$cache_file"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2508 $as_echo "$as_me: loading cache $cache_file" >&6;}
2510 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2511 *) .
"./$cache_file";;
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2516 $as_echo "$as_me: creating cache $cache_file" >&6;}
2520 # Check that the precious variables saved in the cache have kept the same
2522 ac_cache_corrupted
=false
2523 for ac_var
in $ac_precious_vars; do
2524 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2525 eval ac_new_set
=\
$ac_env_${ac_var}_set
2526 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2527 eval ac_new_val
=\
$ac_env_${ac_var}_value
2528 case $ac_old_set,$ac_new_set in
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2531 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2532 ac_cache_corrupted
=: ;;
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2535 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2536 ac_cache_corrupted
=: ;;
2539 if test "x$ac_old_val" != "x$ac_new_val"; then
2540 # differences in whitespace do not lead to failure.
2541 ac_old_val_w
=`echo x $ac_old_val`
2542 ac_new_val_w
=`echo x $ac_new_val`
2543 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2545 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2546 ac_cache_corrupted
=:
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2549 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2550 eval $ac_var=\
$ac_old_val
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2553 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2555 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2558 # Pass precious variables to config.status.
2559 if test "$ac_new_set" = set; then
2561 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2562 *) ac_arg
=$ac_var=$ac_new_val ;;
2564 case " $ac_configure_args " in
2565 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2566 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2570 if $ac_cache_corrupted; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2574 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2575 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2577 ## -------------------- ##
2578 ## Main body of script. ##
2579 ## -------------------- ##
2582 ac_cpp
='$CPP $CPPFLAGS'
2583 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2584 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2585 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2591 ac_config_headers
="$ac_config_headers config.h"
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2599 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2600 # Check whether --enable-version-specific-runtime-libs was given.
2601 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2602 enableval
=$enable_version_specific_runtime_libs;
2603 case "$enableval" in
2605 *) as_fn_error
"Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2609 enable_version_specific_runtime_libs
=no
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2614 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2616 # We would like our source tree to be readonly. However when releases or
2617 # pre-releases are generated, the flex/bison generated files as well as the
2618 # various formats of manuals need to be included along with the rest of the
2619 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2622 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2623 # Check whether --enable-generated-files-in-srcdir was given.
2624 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2625 enableval
=$enable_generated_files_in_srcdir;
2626 case "$enableval" in
2628 *) as_fn_error
"Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2632 enable_generated_files_in_srcdir
=no
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2637 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2638 if test "$enable_generated_files_in_srcdir" = yes; then
2651 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2653 # You will slowly go insane if you do not grok the following fact: when
2654 # building this library, the top-level /target/ becomes the library's /host/.
2656 # configure then causes --target to default to --host, exactly like any
2657 # other package using autoconf. Therefore, 'target' and 'host' will
2658 # always be the same. This makes sense both for native and cross compilers
2659 # just think about it for a little while. :-)
2661 # Also, if this library is being configured as part of a cross compiler, the
2662 # top-level configure script will pass the "real" host as $with_cross_host.
2664 # Do not delete or change the following two lines. For why, see
2665 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2667 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2668 for ac_t
in install-sh
install.sh shtool
; do
2669 if test -f "$ac_dir/$ac_t"; then
2671 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2676 if test -z "$ac_aux_dir"; then
2677 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2680 # These three variables are undocumented and unsupported,
2681 # and are intended to be withdrawn in a future Autoconf release.
2682 # They can cause serious problems if a builder's source tree is in a directory
2683 # whose full name contains unusual characters.
2684 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2685 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2686 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2689 # Make sure we can run config.sub.
2690 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2691 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2694 $as_echo_n "checking build system type... " >&6; }
2695 if test "${ac_cv_build+set}" = set; then :
2696 $as_echo_n "(cached) " >&6
2698 ac_build_alias
=$build_alias
2699 test "x$ac_build_alias" = x
&&
2700 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2701 test "x$ac_build_alias" = x
&&
2702 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
2703 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2704 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2708 $as_echo "$ac_cv_build" >&6; }
2709 case $ac_cv_build in
2711 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
2714 ac_save_IFS
=$IFS; IFS
='-'
2720 # Remember, the first character of IFS is used to create $*,
2721 # except with old shells:
2724 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2728 $as_echo_n "checking host system type... " >&6; }
2729 if test "${ac_cv_host+set}" = set; then :
2730 $as_echo_n "(cached) " >&6
2732 if test "x$host_alias" = x
; then
2733 ac_cv_host
=$ac_cv_build
2735 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2736 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2741 $as_echo "$ac_cv_host" >&6; }
2744 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
2747 ac_save_IFS
=$IFS; IFS
='-'
2753 # Remember, the first character of IFS is used to create $*,
2754 # except with old shells:
2757 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2761 $as_echo_n "checking target system type... " >&6; }
2762 if test "${ac_cv_target+set}" = set; then :
2763 $as_echo_n "(cached) " >&6
2765 if test "x$target_alias" = x
; then
2766 ac_cv_target
=$ac_cv_host
2768 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2769 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2774 $as_echo "$ac_cv_target" >&6; }
2775 case $ac_cv_target in
2777 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
2779 target
=$ac_cv_target
2780 ac_save_IFS
=$IFS; IFS
='-'
2786 # Remember, the first character of IFS is used to create $*,
2787 # except with old shells:
2790 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2793 # The aliases save the names the user supplied, while $host etc.
2794 # will get canonicalized.
2795 test -n "$target_alias" &&
2796 test "$program_prefix$program_suffix$program_transform_name" = \
2798 program_prefix
=${target_alias}-
2800 target_alias
=${target_alias-$host_alias}
2802 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2803 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2804 # 1.9.0: minimum required version
2805 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2806 # of other PACKAGE_* variables will, however, and there's nothing
2807 # we can do about that; they come from AC_INIT).
2808 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2809 # file in the top srcdir, etc, etc), so stop complaining.
2810 # no-dist: we don't want 'dist' and related rules.
2811 # -Wall: turns on all automake warnings...
2812 # -Wno-portability: ...except this one, since GNU make is required.
2813 # -Wno-override: ... and this one, since we do want this in testsuite.
2814 am__api_version
='1.11'
2816 # Find a good install program. We prefer a C program (faster),
2817 # so one script is as good as another. But avoid the broken or
2818 # incompatible versions:
2819 # SysV /etc/install, /usr/sbin/install
2820 # SunOS /usr/etc/install
2821 # IRIX /sbin/install
2823 # AmigaOS /C/install, which installs bootblocks on floppy discs
2824 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2825 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2826 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2827 # OS/2's system install, which has a completely different semantic
2828 # ./install, which can be erroneously created by make from ./install.sh.
2829 # Reject install programs that cannot install multiple files.
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2831 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2832 if test -z "$INSTALL"; then
2833 if test "${ac_cv_path_install+set}" = set; then :
2834 $as_echo_n "(cached) " >&6
2836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2840 test -z "$as_dir" && as_dir
=.
2841 # Account for people who put trailing slashes in PATH elements.
2842 case $as_dir/ in #((
2843 .
/ | .
// |
/[cC
]/* | \
2844 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2845 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2848 # OSF1 and SCO ODT 3.0 have their own names for install.
2849 # Don't use installbsd from OSF since it installs stuff as root
2851 for ac_prog
in ginstall scoinst
install; do
2852 for ac_exec_ext
in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2854 if test $ac_prog = install &&
2855 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2856 # AIX install. It has an incompatible calling convention.
2858 elif test $ac_prog = install &&
2859 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2860 # program-specific install script used by HP pwplus--don't use.
2863 rm -rf conftest.one conftest.two conftest.dir
2864 echo one
> conftest.one
2865 echo two
> conftest.two
2867 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2868 test -s conftest.one
&& test -s conftest.two
&&
2869 test -s conftest.dir
/conftest.one
&&
2870 test -s conftest.dir
/conftest.two
2872 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2885 rm -rf conftest.one conftest.two conftest.dir
2888 if test "${ac_cv_path_install+set}" = set; then
2889 INSTALL
=$ac_cv_path_install
2891 # As a last resort, use the slow shell script. Don't cache a
2892 # value for INSTALL within a source directory, because that will
2893 # break other packages using the cache if that directory is
2894 # removed, or if the value is a relative name.
2895 INSTALL
=$ac_install_sh
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2899 $as_echo "$INSTALL" >&6; }
2901 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2902 # It thinks the first close brace ends the variable substitution.
2903 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2905 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2907 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2910 $as_echo_n "checking whether build environment is sane... " >&6; }
2913 echo timestamp
> conftest.
file
2914 # Reject unsafe characters in $srcdir or the absolute working directory
2915 # name. Accept space and tab only in the latter.
2919 *[\\\"\
#\$\&\'\`$am_lf]*)
2920 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2923 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2924 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2927 # Do `set' in a subshell so we don't clobber the current shell's
2928 # arguments. Must try -L first in case configure is actually a
2929 # symlink; some systems play weird games with the mod time of symlinks
2930 # (eg FreeBSD returns the mod time of the symlink's containing
2933 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2934 if test "$*" = "X"; then
2936 set X
`ls -t "$srcdir/configure" conftest.file`
2939 if test "$*" != "X $srcdir/configure conftest.file" \
2940 && test "$*" != "X conftest.file $srcdir/configure"; then
2942 # If neither matched, then we have a broken ls. This can happen
2943 # if, for instance, CONFIG_SHELL is bash and it inherits a
2944 # broken ls alias from the environment. This has actually
2945 # happened. Such a system could not be considered "sane".
2946 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2947 alias in your environment" "$LINENO" 5
2950 test "$2" = conftest.
file
2956 as_fn_error
"newly created file is older than distributed files!
2957 Check your system clock" "$LINENO" 5
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2960 $as_echo "yes" >&6; }
2961 test "$program_prefix" != NONE
&&
2962 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2963 # Use a double $ so make ignores it.
2964 test "$program_suffix" != NONE
&&
2965 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2966 # Double any \ or $.
2967 # By default was `s,x,x', remove it if useless.
2968 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2969 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2971 # expand $ac_aux_dir to an absolute path
2972 am_aux_dir
=`cd $ac_aux_dir && pwd`
2974 if test x
"${MISSING+set}" != xset
; then
2977 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2979 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2982 # Use eval to expand $SHELL
2983 if eval "$MISSING --run true"; then
2984 am_missing_run
="$MISSING --run "
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2988 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2991 if test x
"${install_sh}" != xset
; then
2994 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2996 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3000 # Installed binaries are usually stripped using `strip' when the user
3001 # run `make install-strip'. However `strip' might not be the right
3002 # tool to use in cross-compilation environments, therefore Automake
3003 # will honor the `STRIP' environment variable to overrule this program.
3004 if test "$cross_compiling" != no
; then
3005 if test -n "$ac_tool_prefix"; then
3006 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3007 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_STRIP+set}" = set; then :
3011 $as_echo_n "(cached) " >&6
3013 if test -n "$STRIP"; then
3014 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir
=.
3021 for ac_exec_ext
in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 STRIP
=$ac_cv_prog_STRIP
3034 if test -n "$STRIP"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3036 $as_echo "$STRIP" >&6; }
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3044 if test -z "$ac_cv_prog_STRIP"; then
3046 # Extract the first word of "strip", so it can be a program name with args.
3047 set dummy strip
; ac_word
=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3051 $as_echo_n "(cached) " >&6
3053 if test -n "$ac_ct_STRIP"; then
3054 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3060 test -z "$as_dir" && as_dir
=.
3061 for ac_exec_ext
in '' $ac_executable_extensions; do
3062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063 ac_cv_prog_ac_ct_STRIP
="strip"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3074 if test -n "$ac_ct_STRIP"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3076 $as_echo "$ac_ct_STRIP" >&6; }
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3082 if test "x$ac_ct_STRIP" = x
; then
3085 case $cross_compiling:$ac_tool_warned in
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3089 ac_tool_warned
=yes ;;
3094 STRIP
="$ac_cv_prog_STRIP"
3098 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3101 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3102 if test -z "$MKDIR_P"; then
3103 if test "${ac_cv_path_mkdir+set}" = set; then :
3104 $as_echo_n "(cached) " >&6
3106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3107 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3110 test -z "$as_dir" && as_dir
=.
3111 for ac_prog
in mkdir gmkdir
; do
3112 for ac_exec_ext
in '' $ac_executable_extensions; do
3113 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3114 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3115 'mkdir (GNU coreutils) '* | \
3116 'mkdir (coreutils) '* | \
3117 'mkdir (fileutils) '4.1*)
3118 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3128 if test "${ac_cv_path_mkdir+set}" = set; then
3129 MKDIR_P
="$ac_cv_path_mkdir -p"
3131 # As a last resort, use the slow shell script. Don't cache a
3132 # value for MKDIR_P within a source directory, because that will
3133 # break other packages using the cache if that directory is
3134 # removed, or if the value is a relative name.
3135 test -d .
/--version && rmdir .
/--version
3136 MKDIR_P
="$ac_install_sh -d"
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3140 $as_echo "$MKDIR_P" >&6; }
3144 [\\/$
]* | ?
:[\\/]*) ;;
3145 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3148 for ac_prog
in gawk mawk nawk
awk
3150 # Extract the first word of "$ac_prog", so it can be a program name with args.
3151 set dummy
$ac_prog; ac_word
=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_AWK+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
3157 if test -n "$AWK"; then
3158 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3164 test -z "$as_dir" && as_dir
=.
3165 for ac_exec_ext
in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_AWK
="$ac_prog"
3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 if test -n "$AWK"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3180 $as_echo "$AWK" >&6; }
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3187 test -n "$AWK" && break
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3191 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3193 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3194 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3195 $as_echo_n "(cached) " >&6
3197 cat >conftest.
make <<\_ACEOF
3200 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3202 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3203 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3205 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3207 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3211 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213 $as_echo "yes" >&6; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 SET_MAKE
="MAKE=${MAKE-make}"
3221 rm -rf .tst
2>/dev
/null
3222 mkdir .tst
2>/dev
/null
3223 if test -d .tst
; then
3228 rmdir .tst
2>/dev
/null
3230 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3231 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3232 # is not polluted with repeated "-I."
3233 am__isrc
=' -I$(srcdir)'
3234 # test to see if srcdir already configured
3235 if test -f $srcdir/config.status
; then
3236 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3240 # test whether we have cygpath
3241 if test -z "$CYGPATH_W"; then
3242 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3243 CYGPATH_W
='cygpath -w'
3250 # Define the identity of the package.
3255 cat >>confdefs.h
<<_ACEOF
3256 #define PACKAGE "$PACKAGE"
3260 cat >>confdefs.h
<<_ACEOF
3261 #define VERSION "$VERSION"
3264 # Some tools Automake needs.
3266 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3269 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3272 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3275 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3278 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3280 # We need awk for the "check" target. The system "awk" is bad on
3282 # Always define AMTAR for backward compatibility. Yes, it's still used
3283 # in the wild :-( We should find a proper way to deprecate it ...
3286 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3292 # Default to --enable-multilib
3293 # Check whether --enable-multilib was given.
3294 if test "${enable_multilib+set}" = set; then :
3295 enableval
=$enable_multilib; case "$enableval" in
3296 yes) multilib
=yes ;;
3298 *) as_fn_error
"bad value $enableval for multilib option" "$LINENO" 5 ;;
3305 # We may get other options which we leave undocumented:
3306 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3307 # See config-ml.in if you want the gory details.
3309 if test "$srcdir" = "."; then
3310 if test "$with_target_subdir" != "."; then
3311 multi_basedir
="$srcdir/$with_multisrctop../.."
3313 multi_basedir
="$srcdir/$with_multisrctop.."
3316 multi_basedir
="$srcdir/.."
3320 # Even if the default multilib is not a cross compilation,
3321 # it may be that some of the other multilibs are.
3322 if test $cross_compiling = no
&& test $multilib = yes \
3323 && test "x${with_multisubdir}" != x
; then
3324 cross_compiling
=maybe
3327 ac_config_commands
="$ac_config_commands default-1"
3330 # Calculate toolexeclibdir
3331 # Also toolexecdir, though it's only used in toolexeclibdir
3332 case ${enable_version_specific_runtime_libs} in
3334 # Need the gcc compiler version to know where to install libraries
3335 # and header files if --enable-version-specific-runtime-libs option
3337 toolexecdir
='$(libdir)/gcc/$(target_alias)'
3338 toolexeclibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3341 if test -n "$with_cross_host" &&
3342 test x
"$with_cross_host" != x
"no"; then
3343 # Install a library built with a cross compiler in tooldir, not libdir.
3344 toolexecdir
='$(exec_prefix)/$(target_alias)'
3345 toolexeclibdir
='$(toolexecdir)/lib'
3347 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3348 toolexeclibdir
='$(libdir)'
3350 multi_os_directory
=`$CC -print-multi-os-directory`
3351 case $multi_os_directory in
3352 .
) ;; # Avoid trailing /.
3353 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3360 # Check the compiler.
3361 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3362 # We must force CC to /not/ be precious variables; otherwise
3363 # the wrong, non-multilib-adjusted value will be used in multilibs.
3364 # As a side effect, we have to subst CFLAGS ourselves.
3369 ac_cpp
='$CPP $CPPFLAGS'
3370 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3373 if test -n "$ac_tool_prefix"; then
3374 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3375 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if test "${ac_cv_prog_CC+set}" = set; then :
3379 $as_echo_n "(cached) " >&6
3381 if test -n "$CC"; then
3382 ac_cv_prog_CC
="$CC" # Let the user override the test.
3384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3388 test -z "$as_dir" && as_dir
=.
3389 for ac_exec_ext
in '' $ac_executable_extensions; do
3390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 if test -n "$CC"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3404 $as_echo "$CC" >&6; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3412 if test -z "$ac_cv_prog_CC"; then
3414 # Extract the first word of "gcc", so it can be a program name with args.
3415 set dummy gcc
; ac_word
=$2
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 $as_echo_n "checking for $ac_word... " >&6; }
3418 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3419 $as_echo_n "(cached) " >&6
3421 if test -n "$ac_ct_CC"; then
3422 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3428 test -z "$as_dir" && as_dir
=.
3429 for ac_exec_ext
in '' $ac_executable_extensions; do
3430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3431 ac_cv_prog_ac_ct_CC
="gcc"
3432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3442 if test -n "$ac_ct_CC"; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3444 $as_echo "$ac_ct_CC" >&6; }
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3450 if test "x$ac_ct_CC" = x
; then
3453 case $cross_compiling:$ac_tool_warned in
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3457 ac_tool_warned
=yes ;;
3465 if test -z "$CC"; then
3466 if test -n "$ac_tool_prefix"; then
3467 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3468 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if test "${ac_cv_prog_CC+set}" = set; then :
3472 $as_echo_n "(cached) " >&6
3474 if test -n "$CC"; then
3475 ac_cv_prog_CC
="$CC" # Let the user override the test.
3477 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3481 test -z "$as_dir" && as_dir
=.
3482 for ac_exec_ext
in '' $ac_executable_extensions; do
3483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3484 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 if test -n "$CC"; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3497 $as_echo "$CC" >&6; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3506 if test -z "$CC"; then
3507 # Extract the first word of "cc", so it can be a program name with args.
3508 set dummy cc
; ac_word
=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if test "${ac_cv_prog_CC+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3514 if test -n "$CC"; then
3515 ac_cv_prog_CC
="$CC" # Let the user override the test.
3518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3522 test -z "$as_dir" && as_dir
=.
3523 for ac_exec_ext
in '' $ac_executable_extensions; do
3524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3526 ac_prog_rejected
=yes
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 if test $ac_prog_rejected = yes; then
3538 # We found a bogon in the path, so make sure we never use it.
3539 set dummy
$ac_cv_prog_CC
3541 if test $# != 0; then
3542 # We chose a different compiler from the bogus one.
3543 # However, it has the same basename, so the bogon will be chosen
3544 # first if we set CC to just the basename; use the full file name.
3546 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3552 if test -n "$CC"; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3554 $as_echo "$CC" >&6; }
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3562 if test -z "$CC"; then
3563 if test -n "$ac_tool_prefix"; then
3564 for ac_prog
in cl.exe
3566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3567 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if test "${ac_cv_prog_CC+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3573 if test -n "$CC"; then
3574 ac_cv_prog_CC
="$CC" # Let the user override the test.
3576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3580 test -z "$as_dir" && as_dir
=.
3581 for ac_exec_ext
in '' $ac_executable_extensions; do
3582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3583 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 if test -n "$CC"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3596 $as_echo "$CC" >&6; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3603 test -n "$CC" && break
3606 if test -z "$CC"; then
3608 for ac_prog
in cl.exe
3610 # Extract the first word of "$ac_prog", so it can be a program name with args.
3611 set dummy
$ac_prog; ac_word
=$2
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613 $as_echo_n "checking for $ac_word... " >&6; }
3614 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3615 $as_echo_n "(cached) " >&6
3617 if test -n "$ac_ct_CC"; then
3618 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3620 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3624 test -z "$as_dir" && as_dir
=.
3625 for ac_exec_ext
in '' $ac_executable_extensions; do
3626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3627 ac_cv_prog_ac_ct_CC
="$ac_prog"
3628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3638 if test -n "$ac_ct_CC"; then
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3640 $as_echo "$ac_ct_CC" >&6; }
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 $as_echo "no" >&6; }
3647 test -n "$ac_ct_CC" && break
3650 if test "x$ac_ct_CC" = x
; then
3653 case $cross_compiling:$ac_tool_warned in
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3657 ac_tool_warned
=yes ;;
3666 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668 as_fn_error
"no acceptable C compiler found in \$PATH
3669 See \`config.log' for more details." "$LINENO" 5; }
3671 # Provide some information about the compiler.
3672 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3675 for ac_option
in --version -v -V -qversion; do
3676 { { ac_try
="$ac_compiler $ac_option >&5"
3678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3685 if test -s conftest.err; then
3687 ... rest of stderr output deleted ...
3688 10q' conftest.err >conftest.er1
3689 cat conftest.er1 >&5
3690 rm -f conftest.er1 conftest.err
3692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693 test $ac_status = 0; }
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3707 ac_clean_files_save=$ac_clean_files
3708 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3709 # Try to create an executable without -o first, disregard a.out.
3710 # It will help us diagnose broken compilers, and finding out an intuition
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3713 $as_echo_n "checking for C compiler default output file name... " >&6; }
3714 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3716 # The possible output files:
3717 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3720 for ac_file in $ac_files
3723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3724 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3729 if { { ac_try="$ac_link_default"
3731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3732 *) ac_try_echo
=$ac_try;;
3734 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735 $as_echo "$ac_try_echo"; } >&5
3736 (eval "$ac_link_default") 2>&5
3738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739 test $ac_status = 0; }; then :
3740 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3741 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3742 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3743 # so that the user can short-circuit this test for compilers unknown to
3745 for ac_file
in $ac_files ''
3747 test -f "$ac_file" ||
continue
3749 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3752 # We found the default executable, but exeext='' is most
3756 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3758 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3760 # We set ac_cv_exeext here because the later test for it is not
3761 # safe: cross compilers may not add the suffix if given an `-o'
3762 # argument, so we may need to know it at that point already.
3763 # Even if this section looks crufty: it has the advantage of
3770 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3776 $as_echo "$ac_file" >&6; }
3777 if test -z "$ac_file"; then :
3778 $as_echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.
$ac_ext >&5
3781 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3783 { as_fn_set_status
77
3784 as_fn_error
"C compiler cannot create executables
3785 See \`config.log' for more details." "$LINENO" 5; }; }
3787 ac_exeext
=$ac_cv_exeext
3789 # Check that the compiler produces executables we can run. If not, either
3790 # the compiler is broken, or we cross compile.
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3792 $as_echo_n "checking whether the C compiler works... " >&6; }
3793 # If not cross compiling, check that we can run a simple program.
3794 if test "$cross_compiling" != yes; then
3795 if { ac_try
='./$ac_file'
3796 { { case "(($ac_try" in
3797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_try") 2>&5
3804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805 test $ac_status = 0; }; }; then
3808 if test "$cross_compiling" = maybe; then
3811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3813 as_fn_error "cannot run C compiled programs.
3814 If you meant to cross compile
, use \
`--host'.
3815 See \`config.log
' for more details." "$LINENO" 5; }
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3820 $as_echo "yes" >&6; }
3822 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3823 ac_clean_files=$ac_clean_files_save
3824 # Check that the compiler produces executables we can run. If not, either
3825 # the compiler is broken, or we cross compile.
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3827 $as_echo_n "checking whether we are cross compiling... " >&6; }
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3829 $as_echo "$cross_compiling" >&6; }
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3832 $as_echo_n "checking for suffix of executables... " >&6; }
3833 if { { ac_try="$ac_link"
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3839 $as_echo "$ac_try_echo"; } >&5
3840 (eval "$ac_link") 2>&5
3842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843 test $ac_status = 0; }; then :
3844 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3845 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3846 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3848 for ac_file
in conftest.exe conftest conftest.
*; do
3849 test -f "$ac_file" ||
continue
3851 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3852 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3860 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3861 See \`config.log' for more details." "$LINENO" 5; }
3863 rm -f conftest
$ac_cv_exeext
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3865 $as_echo "$ac_cv_exeext" >&6; }
3867 rm -f conftest.
$ac_ext
3868 EXEEXT
=$ac_cv_exeext
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3871 $as_echo_n "checking for suffix of object files... " >&6; }
3872 if test "${ac_cv_objext+set}" = set; then :
3873 $as_echo_n "(cached) " >&6
3875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3886 rm -f conftest.o conftest.obj
3887 if { { ac_try
="$ac_compile"
3889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3893 $as_echo "$ac_try_echo"; } >&5
3894 (eval "$ac_compile") 2>&5
3896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3897 test $ac_status = 0; }; then :
3898 for ac_file in conftest.o conftest.obj conftest.*; do
3899 test -f "$ac_file" || continue;
3901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3902 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3907 $as_echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912 as_fn_error "cannot compute suffix of object files
: cannot compile
3913 See \
`config.log' for more details." "$LINENO" 5; }
3915 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3918 $as_echo "$ac_cv_objext" >&6; }
3919 OBJEXT=$ac_cv_objext
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3922 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3923 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3924 $as_echo_n "(cached) " >&6
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3940 if ac_fn_c_try_compile "$LINENO"; then :
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3950 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3951 if test $ac_compiler_gnu = yes; then
3956 ac_test_CFLAGS=${CFLAGS+set}
3957 ac_save_CFLAGS=$CFLAGS
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3959 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3960 if test "${ac_cv_prog_cc_g+set}" = set; then :
3961 $as_echo_n "(cached) " >&6
3963 ac_save_c_werror_flag=$ac_c_werror_flag
3964 ac_c_werror_flag=yes
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3978 if ac_fn_c_try_compile "$LINENO"; then :
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3993 if ac_fn_c_try_compile "$LINENO"; then :
3996 ac_c_werror_flag=$ac_save_c_werror_flag
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4009 if ac_fn_c_try_compile "$LINENO"; then :
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 ac_c_werror_flag=$ac_save_c_werror_flag
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4020 $as_echo "$ac_cv_prog_cc_g" >&6; }
4021 if test "$ac_test_CFLAGS" = set; then
4022 CFLAGS=$ac_save_CFLAGS
4023 elif test $ac_cv_prog_cc_g = yes; then
4024 if test "$GCC" = yes; then
4030 if test "$GCC" = yes; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4037 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4038 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4041 ac_cv_prog_cc_c89=no
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4047 #include <sys/types.h>
4048 #include <sys/stat.h>
4049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4050 struct buf { int x; };
4051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4052 static char *e (p, i)
4058 static char *f (char * (*g) (char **, int), char **p, ...)
4063 s = g (p, va_arg (v,int));
4068 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4069 function prototypes and stuff, but not '\xHH' hex character constants.
4070 These don't provoke an error unfortunately, instead are silently treated
4071 as 'x'. The following induces an error, until -std is added to get
4072 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4073 array size at least. It's necessary to write '\x00'==0 to get something
4074 that's true only with -std. */
4075 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4077 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4078 inside strings and character constants. */
4080 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4082 int test (int i, double x);
4083 struct s1 {int (*f) (int a);};
4084 struct s2 {int (*f) (double a);};
4085 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4091 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4096 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4097 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4099 CC="$ac_save_CC $ac_arg"
4100 if ac_fn_c_try_compile "$LINENO"; then :
4101 ac_cv_prog_cc_c89=$ac_arg
4103 rm -f core conftest.err conftest.$ac_objext
4104 test "x$ac_cv_prog_cc_c89" != "xno" && break
4106 rm -f conftest.$ac_ext
4111 case "x$ac_cv_prog_cc_c89" in
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4114 $as_echo "none needed" >&6; } ;;
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4117 $as_echo "unsupported" >&6; } ;;
4119 CC="$CC $ac_cv_prog_cc_c89"
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4121 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4123 if test "x$ac_cv_prog_cc_c89" != xno; then :
4128 ac_cpp='$CPP $CPPFLAGS'
4129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132 DEPDIR="${am__leading_dot}deps"
4134 ac_config_commands="$ac_config_commands depfiles"
4137 am_make=${MAKE-make}
4138 cat > confinc << 'END'
4140 @echo this is the am__doit target
4143 # If we don't find an include directive, just comment out the code.
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4145 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4149 # First try GNU make style include.
4150 echo "include confinc" > confmf
4151 # Ignore all kinds of additional output from `make'.
4152 case `$am_make -s -f confmf 2> /dev/null` in #(
4153 *the\ am__doit\ target*)
4159 # Now try BSD make style include.
4160 if test "$am__include" = "#"; then
4161 echo '.include
"confinc"' > confmf
4162 case `$am_make -s -f confmf 2> /dev/null` in #(
4163 *the\ am__doit\ target*)
4164 am__include=.include
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4173 $as_echo "$_am_result" >&6; }
4174 rm -f confinc confmf
4176 # Check whether --enable-dependency-tracking was given.
4177 if test "${enable_dependency_tracking+set}" = set; then :
4178 enableval=$enable_dependency_tracking;
4181 if test "x$enable_dependency_tracking" != xno; then
4182 am_depcomp="$ac_aux_dir/depcomp"
4186 if test "x$enable_dependency_tracking" != xno
; then
4196 depcc
="$CC" am_compiler_list
=
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4199 $as_echo_n "checking dependency style of $depcc... " >&6; }
4200 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
4203 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4204 # We make a subdir and do the tests there. Otherwise we can end up
4205 # making bogus files that we don't know about and never remove. For
4206 # instance it was reported that on HP-UX the gcc test will end up
4207 # making a dummy file named `D' -- because `-MD' means `put the output
4211 # Copy depcomp to subdir because otherwise we won't find it if we're
4212 # using a relative directory.
4213 cp "$am_depcomp" conftest.dir
4215 # We will build objects and dependencies in a subdirectory because
4216 # it helps to detect inapplicable dependency modes. For instance
4217 # both Tru64's cc and ICC support -MD to output dependencies as a
4218 # side effect of compilation, but ICC will put the dependencies in
4219 # the current directory while Tru64 will put them in the object
4223 am_cv_CC_dependencies_compiler_type
=none
4224 if test "$am_compiler_list" = ""; then
4225 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4228 case " $depcc " in #(
4229 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4232 for depmode
in $am_compiler_list; do
4233 # Setup a source with many dependencies, because some compilers
4234 # like to wrap large dependency lists on column 80 (with \), and
4235 # we should not choose a depcomp mode which is confused by this.
4237 # We need to recreate these files for each test, as the compiler may
4238 # overwrite some of them when testing with obscure command lines.
4239 # This happens at least with the AIX C compiler.
4241 for i
in 1 2 3 4 5 6; do
4242 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4243 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4244 # Solaris 8's {/usr,}/bin/sh.
4245 touch sub
/conftst
$i.h
4247 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4249 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4250 # mode. It turns out that the SunPro C++ compiler does not properly
4251 # handle `-M -o', and we need to detect this. Also, some Intel
4252 # versions had trouble with output in subdirs
4253 am__obj
=sub
/conftest.
${OBJEXT-o}
4254 am__minus_obj
="-o $am__obj"
4257 # This depmode causes a compiler race in universal mode.
4258 test "$am__universal" = false ||
continue
4261 # after this tag, mechanisms are not by side-effect, so they'll
4262 # only be used when explicitly requested
4263 if test "x$enable_dependency_tracking" = xyes
; then
4269 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4270 # This compiler won't grok `-c -o', but also, the minuso test has
4271 # not run yet. These depmodes are late enough in the game, and
4272 # so weak that their functioning should not be impacted.
4273 am__obj
=conftest.
${OBJEXT-o}
4278 if depmode
=$depmode \
4279 source=sub
/conftest.c object
=$am__obj \
4280 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4281 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4282 >/dev
/null
2>conftest.err
&&
4283 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4284 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4285 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4286 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4287 # icc doesn't choke on unknown options, it will just issue warnings
4288 # or remarks (even with -Werror). So we grep stderr for any message
4289 # that says an option was ignored or not supported.
4290 # When given -MP, icc 7.0 and 7.1 complain thusly:
4291 # icc: Command line warning: ignoring option '-M'; no argument required
4292 # The diagnosis changed in icc 8.0:
4293 # icc: Command line remark: option '-MP' not supported
4294 if (grep 'ignoring option' conftest.err ||
4295 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4296 am_cv_CC_dependencies_compiler_type
=$depmode
4305 am_cv_CC_dependencies_compiler_type
=none
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4310 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4311 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4314 test "x$enable_dependency_tracking" != xno \
4315 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4317 am__fastdepCC_FALSE
='#'
4319 am__fastdepCC_TRUE
='#'
4320 am__fastdepCC_FALSE
=
4328 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4329 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4330 # in both places for now and restore CFLAGS at the end of config.
4331 save_CFLAGS
="$CFLAGS"
4333 # Add -Wall -Werror if we are using GCC.
4334 if test "x$GCC" = "xyes"; then
4335 XCFLAGS
="$XCFLAGS -Wall -Werror"
4338 # Find other programs we need.
4339 if test -n "$ac_tool_prefix"; then
4340 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4341 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4343 $as_echo_n "checking for $ac_word... " >&6; }
4344 if test "${ac_cv_prog_AR+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4347 if test -n "$AR"; then
4348 ac_cv_prog_AR
="$AR" # Let the user override the test.
4350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4354 test -z "$as_dir" && as_dir
=.
4355 for ac_exec_ext
in '' $ac_executable_extensions; do
4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4357 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 if test -n "$AR"; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4370 $as_echo "$AR" >&6; }
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373 $as_echo "no" >&6; }
4378 if test -z "$ac_cv_prog_AR"; then
4380 # Extract the first word of "ar", so it can be a program name with args.
4381 set dummy
ar; ac_word
=$2
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383 $as_echo_n "checking for $ac_word... " >&6; }
4384 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
4387 if test -n "$ac_ct_AR"; then
4388 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4394 test -z "$as_dir" && as_dir
=.
4395 for ac_exec_ext
in '' $ac_executable_extensions; do
4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4397 ac_cv_prog_ac_ct_AR
="ar"
4398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4408 if test -n "$ac_ct_AR"; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4410 $as_echo "$ac_ct_AR" >&6; }
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413 $as_echo "no" >&6; }
4416 if test "x$ac_ct_AR" = x
; then
4419 case $cross_compiling:$ac_tool_warned in
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4423 ac_tool_warned
=yes ;;
4431 if test -n "$ac_tool_prefix"; then
4432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4433 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4435 $as_echo_n "checking for $ac_word... " >&6; }
4436 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
4439 if test -n "$RANLIB"; then
4440 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4446 test -z "$as_dir" && as_dir
=.
4447 for ac_exec_ext
in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 RANLIB
=$ac_cv_prog_RANLIB
4460 if test -n "$RANLIB"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4462 $as_echo "$RANLIB" >&6; }
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4470 if test -z "$ac_cv_prog_RANLIB"; then
4471 ac_ct_RANLIB
=$RANLIB
4472 # Extract the first word of "ranlib", so it can be a program name with args.
4473 set dummy ranlib
; ac_word
=$2
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475 $as_echo_n "checking for $ac_word... " >&6; }
4476 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4479 if test -n "$ac_ct_RANLIB"; then
4480 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4486 test -z "$as_dir" && as_dir
=.
4487 for ac_exec_ext
in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4500 if test -n "$ac_ct_RANLIB"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4502 $as_echo "$ac_ct_RANLIB" >&6; }
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505 $as_echo "no" >&6; }
4508 if test "x$ac_ct_RANLIB" = x
; then
4509 RANLIB
="ranlib-not-found-in-path-error"
4511 case $cross_compiling:$ac_tool_warned in
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4515 ac_tool_warned
=yes ;;
4517 RANLIB
=$ac_ct_RANLIB
4520 RANLIB
="$ac_cv_prog_RANLIB"
4523 # Extract the first word of "perl", so it can be a program name with args.
4524 set dummy perl
; ac_word
=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if test "${ac_cv_path_PERL+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4532 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
4535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4539 test -z "$as_dir" && as_dir
=.
4540 for ac_exec_ext
in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="perl-not-found-in-path-error"
4554 PERL
=$ac_cv_path_PERL
4555 if test -n "$PERL"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4557 $as_echo "$PERL" >&6; }
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4565 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4567 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4568 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4569 $as_echo_n "(cached) " >&6
4571 cat >conftest.
make <<\_ACEOF
4574 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4576 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4577 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4579 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4581 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4585 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4587 $as_echo "yes" >&6; }
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4592 SET_MAKE
="MAKE=${MAKE-make}"
4597 # See if makeinfo has been installed and is modern enough
4598 # that we can use it.
4600 # Extract the first word of "makeinfo", so it can be a program name with args.
4601 set dummy makeinfo
; ac_word
=$2
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4605 $as_echo_n "(cached) " >&6
4607 if test -n "$MAKEINFO"; then
4608 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
4610 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4614 test -z "$as_dir" && as_dir
=.
4615 for ac_exec_ext
in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 ac_cv_prog_MAKEINFO
="makeinfo"
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 MAKEINFO
=$ac_cv_prog_MAKEINFO
4628 if test -n "$MAKEINFO"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4630 $as_echo "$MAKEINFO" >&6; }
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4637 if test -n "$MAKEINFO"; then
4638 # Found it, now check the version.
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4640 $as_echo_n "checking for modern makeinfo... " >&6; }
4641 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
4644 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
4645 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4647 case $ac_prog_version in
4648 '') gcc_cv_prog_makeinfo_modern
=no
;;
4649 4.
[4-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
4650 *) gcc_cv_prog_makeinfo_modern
=no
;;
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4655 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4657 gcc_cv_prog_makeinfo_modern
=no
4659 if test $gcc_cv_prog_makeinfo_modern = no
; then
4660 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4663 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4665 BUILD_INFO_FALSE
='#'
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4677 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4682 macro_version
='2.2.7a'
4683 macro_revision
='1.3134'
4697 ltmain
="$ac_aux_dir/ltmain.sh"
4699 # Backslashify metacharacters that are still active within
4700 # double-quoted strings.
4701 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
4703 # Same as above, but do not quote variable references.
4704 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
4706 # Sed substitution to delay expansion of an escaped shell variable in a
4707 # double_quote_subst'ed string.
4708 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
4710 # Sed substitution to delay expansion of an escaped single quote.
4711 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
4713 # Sed substitution to avoid accidental globbing in evaled expressions
4714 no_glob_subst
='s/\*/\\\*/g'
4716 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4717 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4718 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4721 $as_echo_n "checking how to print strings... " >&6; }
4722 # Test print first, because it will be a builtin if present.
4723 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4724 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4726 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4729 # Use this function as a fallback that always works.
4730 func_fallback_echo ()
4732 eval 'cat <<_LTECHO_EOF
4736 ECHO='func_fallback_echo
'
4739 # func_echo_all arg...
4740 # Invoke $ECHO with all args, space-separated.
4747 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4748 $as_echo "printf" >&6; } ;;
4749 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4750 $as_echo "print -r" >&6; } ;;
4751 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4752 $as_echo "cat" >&6; } ;;
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4769 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4770 if test "${ac_cv_path_SED+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
4773 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4774 for ac_i in 1 2 3 4 5 6 7; do
4775 ac_script="$ac_script$as_nl$ac_script"
4777 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4778 { ac_script=; unset ac_script;}
4779 if test -z "$SED"; then
4780 ac_path_SED_found=false
4781 # Loop through the user's path and
test for each of PROGNAME-LIST
4782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4786 test -z "$as_dir" && as_dir
=.
4787 for ac_prog
in sed gsed
; do
4788 for ac_exec_ext
in '' $ac_executable_extensions; do
4789 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4790 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4791 # Check for GNU ac_path_SED and select it if it is found.
4792 # Check for GNU $ac_path_SED
4793 case `"$ac_path_SED" --version 2>&1` in
4795 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4798 $as_echo_n 0123456789 >"conftest.in"
4801 cat "conftest.in" "conftest.in" >"conftest.tmp"
4802 mv "conftest.tmp" "conftest.in"
4803 cp "conftest.in" "conftest.nl"
4804 $as_echo '' >> "conftest.nl"
4805 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4806 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4807 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4808 if test $ac_count -gt ${ac_path_SED_max-0}; then
4809 # Best one so far, save it but keep looking for a better one
4810 ac_cv_path_SED
="$ac_path_SED"
4811 ac_path_SED_max
=$ac_count
4813 # 10*(2^10) chars as input seems more than enough
4814 test $ac_count -gt 10 && break
4816 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4819 $ac_path_SED_found && break 3
4824 if test -z "$ac_cv_path_SED"; then
4825 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4833 $as_echo "$ac_cv_path_SED" >&6; }
4834 SED
="$ac_cv_path_SED"
4837 test -z "$SED" && SED
=sed
4838 Xsed
="$SED -e 1s/^X//"
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4851 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4852 if test "${ac_cv_path_GREP+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4855 if test -z "$GREP"; then
4856 ac_path_GREP_found
=false
4857 # Loop through the user's path and test for each of PROGNAME-LIST
4858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4859 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4862 test -z "$as_dir" && as_dir
=.
4863 for ac_prog
in grep ggrep
; do
4864 for ac_exec_ext
in '' $ac_executable_extensions; do
4865 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4866 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4867 # Check for GNU ac_path_GREP and select it if it is found.
4868 # Check for GNU $ac_path_GREP
4869 case `"$ac_path_GREP" --version 2>&1` in
4871 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4874 $as_echo_n 0123456789 >"conftest.in"
4877 cat "conftest.in" "conftest.in" >"conftest.tmp"
4878 mv "conftest.tmp" "conftest.in"
4879 cp "conftest.in" "conftest.nl"
4880 $as_echo 'GREP' >> "conftest.nl"
4881 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4882 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4883 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4884 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4885 # Best one so far, save it but keep looking for a better one
4886 ac_cv_path_GREP
="$ac_path_GREP"
4887 ac_path_GREP_max
=$ac_count
4889 # 10*(2^10) chars as input seems more than enough
4890 test $ac_count -gt 10 && break
4892 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4895 $ac_path_GREP_found && break 3
4900 if test -z "$ac_cv_path_GREP"; then
4901 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4904 ac_cv_path_GREP
=$GREP
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4909 $as_echo "$ac_cv_path_GREP" >&6; }
4910 GREP
="$ac_cv_path_GREP"
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4914 $as_echo_n "checking for egrep... " >&6; }
4915 if test "${ac_cv_path_EGREP+set}" = set; then :
4916 $as_echo_n "(cached) " >&6
4918 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4919 then ac_cv_path_EGREP
="$GREP -E"
4921 if test -z "$EGREP"; then
4922 ac_path_EGREP_found
=false
4923 # Loop through the user's path and test for each of PROGNAME-LIST
4924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4925 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4928 test -z "$as_dir" && as_dir
=.
4929 for ac_prog
in egrep; do
4930 for ac_exec_ext
in '' $ac_executable_extensions; do
4931 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4932 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4933 # Check for GNU ac_path_EGREP and select it if it is found.
4934 # Check for GNU $ac_path_EGREP
4935 case `"$ac_path_EGREP" --version 2>&1` in
4937 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4940 $as_echo_n 0123456789 >"conftest.in"
4943 cat "conftest.in" "conftest.in" >"conftest.tmp"
4944 mv "conftest.tmp" "conftest.in"
4945 cp "conftest.in" "conftest.nl"
4946 $as_echo 'EGREP' >> "conftest.nl"
4947 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4948 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4949 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4950 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4951 # Best one so far, save it but keep looking for a better one
4952 ac_cv_path_EGREP
="$ac_path_EGREP"
4953 ac_path_EGREP_max
=$ac_count
4955 # 10*(2^10) chars as input seems more than enough
4956 test $ac_count -gt 10 && break
4958 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4961 $ac_path_EGREP_found && break 3
4966 if test -z "$ac_cv_path_EGREP"; then
4967 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4970 ac_cv_path_EGREP
=$EGREP
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4976 $as_echo "$ac_cv_path_EGREP" >&6; }
4977 EGREP
="$ac_cv_path_EGREP"
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4981 $as_echo_n "checking for fgrep... " >&6; }
4982 if test "${ac_cv_path_FGREP+set}" = set; then :
4983 $as_echo_n "(cached) " >&6
4985 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4986 then ac_cv_path_FGREP
="$GREP -F"
4988 if test -z "$FGREP"; then
4989 ac_path_FGREP_found
=false
4990 # Loop through the user's path and test for each of PROGNAME-LIST
4991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4992 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4995 test -z "$as_dir" && as_dir
=.
4996 for ac_prog
in fgrep
; do
4997 for ac_exec_ext
in '' $ac_executable_extensions; do
4998 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4999 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
5000 # Check for GNU ac_path_FGREP and select it if it is found.
5001 # Check for GNU $ac_path_FGREP
5002 case `"$ac_path_FGREP" --version 2>&1` in
5004 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5007 $as_echo_n 0123456789 >"conftest.in"
5010 cat "conftest.in" "conftest.in" >"conftest.tmp"
5011 mv "conftest.tmp" "conftest.in"
5012 cp "conftest.in" "conftest.nl"
5013 $as_echo 'FGREP' >> "conftest.nl"
5014 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5015 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5016 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5017 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5018 # Best one so far, save it but keep looking for a better one
5019 ac_cv_path_FGREP
="$ac_path_FGREP"
5020 ac_path_FGREP_max
=$ac_count
5022 # 10*(2^10) chars as input seems more than enough
5023 test $ac_count -gt 10 && break
5025 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5028 $ac_path_FGREP_found && break 3
5033 if test -z "$ac_cv_path_FGREP"; then
5034 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5037 ac_cv_path_FGREP
=$FGREP
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5043 $as_echo "$ac_cv_path_FGREP" >&6; }
5044 FGREP
="$ac_cv_path_FGREP"
5047 test -z "$GREP" && GREP
=grep
5067 # Check whether --with-gnu-ld was given.
5068 if test "${with_gnu_ld+set}" = set; then :
5069 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5075 if test "$GCC" = yes; then
5076 # Check if gcc -print-prog-name=ld gives a path.
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5078 $as_echo_n "checking for ld used by $CC... " >&6; }
5081 # gcc leaves a trailing carriage return which upsets mingw
5082 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5084 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5087 # Accept absolute paths.
5089 re_direlt
='/[^/][^/]*/\.\./'
5090 # Canonicalize the pathname of ld
5091 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5092 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5093 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5095 test -z "$LD" && LD
="$ac_prog"
5098 # If it fails, then pretend we aren't using GCC.
5102 # If it is relative, then search for the first ld in PATH.
5106 elif test "$with_gnu_ld" = yes; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5108 $as_echo_n "checking for GNU ld... " >&6; }
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5111 $as_echo_n "checking for non-GNU ld... " >&6; }
5113 if test "${lt_cv_path_LD+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
5116 if test -z "$LD"; then
5117 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5118 for ac_dir
in $PATH; do
5120 test -z "$ac_dir" && ac_dir
=.
5121 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5122 lt_cv_path_LD
="$ac_dir/$ac_prog"
5123 # Check to see if the program is GNU ld. I'd rather use --version,
5124 # but apparently some variants of GNU ld only accept -v.
5125 # Break only if it was the GNU/non-GNU ld that we prefer.
5126 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5127 *GNU
* |
*'with BFD'*)
5128 test "$with_gnu_ld" != no
&& break
5131 test "$with_gnu_ld" != yes && break
5138 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5143 if test -n "$LD"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5145 $as_echo "$LD" >&6; }
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5150 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5152 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5153 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5156 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5157 case `$LD -v 2>&1 </dev/null` in
5158 *GNU
* |
*'with BFD'*)
5159 lt_cv_prog_gnu_ld
=yes
5162 lt_cv_prog_gnu_ld
=no
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5167 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5168 with_gnu_ld
=$lt_cv_prog_gnu_ld
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5179 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5180 if test "${lt_cv_path_NM+set}" = set; then :
5181 $as_echo_n "(cached) " >&6
5183 if test -n "$NM"; then
5184 # Let the user override the test.
5187 lt_nm_to_check
="${ac_tool_prefix}nm"
5188 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5189 lt_nm_to_check
="$lt_nm_to_check nm"
5191 for lt_tmp_nm
in $lt_nm_to_check; do
5192 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5193 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5195 test -z "$ac_dir" && ac_dir
=.
5196 tmp_nm
="$ac_dir/$lt_tmp_nm"
5197 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5198 # Check to see if the nm accepts a BSD-compat flag.
5199 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5200 # nm: unknown option "B" ignored
5201 # Tru64's nm complains that /dev/null is an invalid object file
5202 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5203 */dev
/null
* |
*'Invalid file or object type'*)
5204 lt_cv_path_NM
="$tmp_nm -B"
5208 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5210 lt_cv_path_NM
="$tmp_nm -p"
5214 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5215 continue # so that we can try to find one that supports BSD flags
5224 : ${lt_cv_path_NM=no}
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5228 $as_echo "$lt_cv_path_NM" >&6; }
5229 if test "$lt_cv_path_NM" != "no"; then
5232 # Didn't find any BSD compatible name lister, look for dumpbin.
5233 if test -n "$DUMPBIN"; then :
5234 # Let the user override the test.
5236 if test -n "$ac_tool_prefix"; then
5237 for ac_prog
in dumpbin
"link -dump"
5239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5240 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242 $as_echo_n "checking for $ac_word... " >&6; }
5243 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
5246 if test -n "$DUMPBIN"; then
5247 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5253 test -z "$as_dir" && as_dir
=.
5254 for ac_exec_ext
in '' $ac_executable_extensions; do
5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5256 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 DUMPBIN
=$ac_cv_prog_DUMPBIN
5267 if test -n "$DUMPBIN"; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5269 $as_echo "$DUMPBIN" >&6; }
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272 $as_echo "no" >&6; }
5276 test -n "$DUMPBIN" && break
5279 if test -z "$DUMPBIN"; then
5280 ac_ct_DUMPBIN
=$DUMPBIN
5281 for ac_prog
in dumpbin
"link -dump"
5283 # Extract the first word of "$ac_prog", so it can be a program name with args.
5284 set dummy
$ac_prog; ac_word
=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5288 $as_echo_n "(cached) " >&6
5290 if test -n "$ac_ct_DUMPBIN"; then
5291 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5297 test -z "$as_dir" && as_dir
=.
5298 for ac_exec_ext
in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5311 if test -n "$ac_ct_DUMPBIN"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5313 $as_echo "$ac_ct_DUMPBIN" >&6; }
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5320 test -n "$ac_ct_DUMPBIN" && break
5323 if test "x$ac_ct_DUMPBIN" = x
; then
5326 case $cross_compiling:$ac_tool_warned in
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5330 ac_tool_warned
=yes ;;
5332 DUMPBIN
=$ac_ct_DUMPBIN
5336 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5338 DUMPBIN
="$DUMPBIN -symbols"
5346 if test "$DUMPBIN" != ":"; then
5350 test -z "$NM" && NM
=nm
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5358 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5359 if test "${lt_cv_nm_interface+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
5362 lt_cv_nm_interface
="BSD nm"
5363 echo "int some_variable = 0;" > conftest.
$ac_ext
5364 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5365 (eval "$ac_compile" 2>conftest.err
)
5366 cat conftest.err
>&5
5367 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5368 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5369 cat conftest.err
>&5
5370 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5371 cat conftest.out
>&5
5372 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5373 lt_cv_nm_interface
="MS dumpbin"
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5378 $as_echo "$lt_cv_nm_interface" >&6; }
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5381 $as_echo_n "checking whether ln -s works... " >&6; }
5383 if test "$LN_S" = "ln -s"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5385 $as_echo "yes" >&6; }
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5388 $as_echo "no, using $LN_S" >&6; }
5391 # find the maximum length of command line arguments
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5393 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5394 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5402 # On DJGPP, this test can blow up pretty badly due to problems in libc
5403 # (any single argument exceeding 2000 bytes causes a buffer overrun
5404 # during glob expansion). Even if it were fixed, the result of this
5405 # check would be larger than it should be.
5406 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5410 # Under GNU Hurd, this test is not required because there is
5411 # no limit to the length of command line arguments.
5412 # Libtool will interpret -1 as no limit whatsoever
5413 lt_cv_sys_max_cmd_len
=-1;
5416 cygwin
* | mingw
* | cegcc
*)
5417 # On Win9x/ME, this test blows up -- it succeeds, but takes
5418 # about 5 minutes as the teststring grows exponentially.
5419 # Worse, since 9x/ME are not pre-emptively multitasking,
5420 # you end up with a "frozen" computer, even though with patience
5421 # the test eventually succeeds (with a max line length of 256k).
5422 # Instead, let's just punt: use the minimum linelength reported by
5423 # all of the supported platforms: 8192 (on NT/2K/XP).
5424 lt_cv_sys_max_cmd_len
=8192;
5428 # On MiNT this can take a long time and run out of memory.
5429 lt_cv_sys_max_cmd_len
=8192;
5433 # On AmigaOS with pdksh, this test takes hours, literally.
5434 # So we just punt and use a minimum line length of 8192.
5435 lt_cv_sys_max_cmd_len
=8192;
5438 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5439 # This has been around since 386BSD, at least. Likely further.
5440 if test -x /sbin
/sysctl
; then
5441 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5442 elif test -x /usr
/sbin
/sysctl
; then
5443 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5445 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5447 # And add a safety zone
5448 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5449 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5453 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5454 lt_cv_sys_max_cmd_len
=196608
5458 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5459 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5460 # nice to cause kernel panics so lets avoid the loop below.
5461 # First set a reasonable default.
5462 lt_cv_sys_max_cmd_len
=16384
5464 if test -x /sbin
/sysconfig
; then
5465 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5466 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5471 lt_cv_sys_max_cmd_len
=102400
5473 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5474 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5475 if test -n "$kargmax"; then
5476 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5478 lt_cv_sys_max_cmd_len
=32768
5482 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5483 if test -n "$lt_cv_sys_max_cmd_len"; then
5484 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5485 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5487 # Make teststring a little bigger before we do anything with it.
5488 # a 1K string should be a reasonable start.
5489 for i
in 1 2 3 4 5 6 7 8 ; do
5490 teststring
=$teststring$teststring
5492 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5493 # If test is not a shell built-in, we'll probably end up computing a
5494 # maximum length that is only half of the actual maximum length, but
5496 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5497 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
5498 test $i != 17 # 1/2 MB should be enough
5501 teststring
=$teststring$teststring
5503 # Only check the string length outside the loop.
5504 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5506 # Add a significant safety factor because C++ compilers can tack on
5507 # massive amounts of additional arguments before passing them to the
5508 # linker. It appears as though 1/2 is a usable value.
5509 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5516 if test -n $lt_cv_sys_max_cmd_len ; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5518 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5521 $as_echo "none" >&6; }
5523 max_cmd_len
=$lt_cv_sys_max_cmd_len
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5535 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5536 # Try some XSI features
5539 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5541 && eval 'test $(( 1 + 1 )) -eq 2 \
5542 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5545 $as_echo "$xsi_shell" >&6; }
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5549 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5551 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5553 && lt_shell_append=yes
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5555 $as_echo "$lt_shell_append" >&6; }
5558 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5568 # test EBCDIC or ASCII
5569 case `echo X|tr X '\101'` in
5570 A) # ASCII based system
5571 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5572 lt_SP2NL='tr \040 \012'
5573 lt_NL2SP='tr \015\012 \040\040'
5575 *) # EBCDIC based system
5576 lt_SP2NL='tr \100 \n'
5577 lt_NL2SP='tr \r\n \100\100'
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5590 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5591 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5592 $as_echo_n "(cached
) " >&6
5594 lt_cv_ld_reload_flag='-r'
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5597 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5598 reload_flag=$lt_cv_ld_reload_flag
5599 case $reload_flag in
5601 *) reload_flag=" $reload_flag" ;;
5603 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5606 if test "$GCC" = yes; then
5607 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5609 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5622 if test -n "$ac_tool_prefix"; then
5623 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5624 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5626 $as_echo_n "checking
for $ac_word...
" >&6; }
5627 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5628 $as_echo_n "(cached
) " >&6
5630 if test -n "$OBJDUMP"; then
5631 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5650 OBJDUMP=$ac_cv_prog_OBJDUMP
5651 if test -n "$OBJDUMP"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5653 $as_echo "$OBJDUMP" >&6; }
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5656 $as_echo "no
" >&6; }
5661 if test -z "$ac_cv_prog_OBJDUMP"; then
5662 ac_ct_OBJDUMP=$OBJDUMP
5663 # Extract the first word of "objdump
", so it can be a program name with args.
5664 set dummy objdump; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5666 $as_echo_n "checking
for $ac_word...
" >&6; }
5667 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5668 $as_echo_n "(cached
) " >&6
5670 if test -n "$ac_ct_OBJDUMP"; then
5671 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5680 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5690 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5691 if test -n "$ac_ct_OBJDUMP"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5693 $as_echo "$ac_ct_OBJDUMP" >&6; }
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5696 $as_echo "no
" >&6; }
5699 if test "x
$ac_ct_OBJDUMP" = x; then
5702 case $cross_compiling:$ac_tool_warned in
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5705 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5706 ac_tool_warned=yes ;;
5708 OBJDUMP=$ac_ct_OBJDUMP
5711 OBJDUMP="$ac_cv_prog_OBJDUMP"
5714 test -z "$OBJDUMP" && OBJDUMP=objdump
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5725 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5726 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5727 $as_echo_n "(cached
) " >&6
5729 lt_cv_file_magic_cmd='$MAGIC_CMD'
5730 lt_cv_file_magic_test_file=
5731 lt_cv_deplibs_check_method='unknown'
5732 # Need to set the preceding variable on all platforms that support
5733 # interlibrary dependencies.
5734 # 'none' -- dependencies not supported.
5735 # `unknown' -- same as none, but documents that we really don't know.
5736 # 'pass_all' -- all dependencies passed with no checks.
5737 # 'test_compile' -- check by making test program.
5738 # 'file_magic [[regex]]' -- check by looking for files in library path
5739 # which responds to the $file_magic_cmd with a given extended regex.
5740 # If you have `file' or equivalent on your system and you're not sure
5741 # whether `pass_all' will *always* work, you probably want this one.
5745 lt_cv_deplibs_check_method=pass_all
5749 lt_cv_deplibs_check_method=pass_all
5753 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5754 lt_cv_file_magic_cmd='/usr/bin/file -L'
5755 lt_cv_file_magic_test_file=/shlib/libc.so
5759 # func_win32_libid is a shell function defined in ltmain.sh
5760 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5761 lt_cv_file_magic_cmd='func_win32_libid'
5765 # Base MSYS/MinGW do not provide the 'file' command needed by
5766 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5767 # unless we find 'file', for example because we are cross-compiling.
5768 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5769 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
5770 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5771 lt_cv_file_magic_cmd='func_win32_libid'
5773 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5774 lt_cv_file_magic_cmd='$OBJDUMP -f'
5779 # use the weaker test based on 'objdump'. See mingw*.
5780 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5781 lt_cv_file_magic_cmd='$OBJDUMP -f'
5784 darwin* | rhapsody*)
5785 lt_cv_deplibs_check_method=pass_all
5788 freebsd* | dragonfly*)
5789 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5792 # Not sure whether the presence of OpenBSD here was a mistake.
5793 # Let's accept both of them until this is cleared up.
5794 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5795 lt_cv_file_magic_cmd=/usr/bin/file
5796 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5800 lt_cv_deplibs_check_method=pass_all
5805 lt_cv_deplibs_check_method=pass_all
5809 lt_cv_deplibs_check_method=pass_all
5812 hpux10.20* | hpux11*)
5813 lt_cv_file_magic_cmd=/usr/bin/file
5816 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5817 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5820 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]'
5821 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5824 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5825 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5831 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5835 irix5* | irix6* | nonstopux*)
5837 *-32|*"-32 ") libmagic=32-bit;;
5838 *-n32|*"-n32 ") libmagic=N32;;
5839 *-64|*"-64 ") libmagic=64-bit;;
5840 *) libmagic=never-match;;
5842 lt_cv_deplibs_check_method=pass_all
5845 # This must be Linux ELF.
5846 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5847 lt_cv_deplibs_check_method=pass_all
5851 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5854 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5860 lt_cv_file_magic_cmd=/usr/bin/file
5861 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5865 lt_cv_deplibs_check_method=pass_all
5869 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5870 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5876 osf3* | osf4* | osf5*)
5877 lt_cv_deplibs_check_method=pass_all
5881 lt_cv_deplibs_check_method=pass_all
5885 lt_cv_deplibs_check_method=pass_all
5888 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5889 lt_cv_deplibs_check_method=pass_all
5893 case $host_vendor in
5895 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]'
5896 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5899 lt_cv_deplibs_check_method=pass_all
5902 lt_cv_file_magic_cmd='/bin/file'
5903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5906 lt_cv_file_magic_cmd='/bin/file'
5907 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5908 lt_cv_file_magic_test_file=/lib/libc.so
5911 lt_cv_deplibs_check_method=pass_all
5914 lt_cv_deplibs_check_method=pass_all
5920 lt_cv_deplibs_check_method=pass_all
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5926 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5927 file_magic_cmd=$lt_cv_file_magic_cmd
5928 deplibs_check_method=$lt_cv_deplibs_check_method
5929 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5942 if test -n "$ac_tool_prefix"; then
5943 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5944 set dummy ${ac_tool_prefix}ar; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5946 $as_echo_n "checking
for $ac_word...
" >&6; }
5947 if test "${ac_cv_prog_AR+set}" = set; then :
5948 $as_echo_n "(cached
) " >&6
5950 if test -n "$AR"; then
5951 ac_cv_prog_AR="$AR" # Let the user override the test.
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_prog_AR="${ac_tool_prefix}ar"
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5971 if test -n "$AR"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5973 $as_echo "$AR" >&6; }
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5976 $as_echo "no
" >&6; }
5981 if test -z "$ac_cv_prog_AR"; then
5983 # Extract the first word of "ar", so it can be a program name with args.
5984 set dummy ar; ac_word=$2
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5986 $as_echo_n "checking
for $ac_word...
" >&6; }
5987 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5988 $as_echo_n "(cached
) " >&6
5990 if test -n "$ac_ct_AR"; then
5991 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6000 ac_cv_prog_ac_ct_AR="ar"
6001 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6010 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6011 if test -n "$ac_ct_AR"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6013 $as_echo "$ac_ct_AR" >&6; }
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6016 $as_echo "no
" >&6; }
6019 if test "x
$ac_ct_AR" = x; then
6022 case $cross_compiling:$ac_tool_warned in
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6025 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6026 ac_tool_warned=yes ;;
6034 test -z "$AR" && AR=ar
6035 test -z "$AR_FLAGS" && AR_FLAGS=cru
6047 if test -n "$ac_tool_prefix"; then
6048 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6049 set dummy ${ac_tool_prefix}strip; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6051 $as_echo_n "checking
for $ac_word...
" >&6; }
6052 if test "${ac_cv_prog_STRIP+set}" = set; then :
6053 $as_echo_n "(cached
) " >&6
6055 if test -n "$STRIP"; then
6056 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6075 STRIP=$ac_cv_prog_STRIP
6076 if test -n "$STRIP"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6078 $as_echo "$STRIP" >&6; }
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6081 $as_echo "no
" >&6; }
6086 if test -z "$ac_cv_prog_STRIP"; then
6088 # Extract the first word of "strip
", so it can be a program name with args.
6089 set dummy strip; ac_word=$2
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6091 $as_echo_n "checking
for $ac_word...
" >&6; }
6092 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6093 $as_echo_n "(cached
) " >&6
6095 if test -n "$ac_ct_STRIP"; then
6096 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6105 ac_cv_prog_ac_ct_STRIP="strip
"
6106 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6115 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6116 if test -n "$ac_ct_STRIP"; then
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6118 $as_echo "$ac_ct_STRIP" >&6; }
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6121 $as_echo "no
" >&6; }
6124 if test "x
$ac_ct_STRIP" = x; then
6127 case $cross_compiling:$ac_tool_warned in
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6130 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6131 ac_tool_warned=yes ;;
6136 STRIP="$ac_cv_prog_STRIP"
6139 test -z "$STRIP" && STRIP=:
6146 if test -n "$ac_tool_prefix"; then
6147 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6148 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6150 $as_echo_n "checking
for $ac_word...
" >&6; }
6151 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6152 $as_echo_n "(cached
) " >&6
6154 if test -n "$RANLIB"; then
6155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6165 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6174 RANLIB=$ac_cv_prog_RANLIB
6175 if test -n "$RANLIB"; then
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6177 $as_echo "$RANLIB" >&6; }
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6180 $as_echo "no
" >&6; }
6185 if test -z "$ac_cv_prog_RANLIB"; then
6186 ac_ct_RANLIB=$RANLIB
6187 # Extract the first word of "ranlib
", so it can be a program name with args.
6188 set dummy ranlib; ac_word=$2
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6190 $as_echo_n "checking
for $ac_word...
" >&6; }
6191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6192 $as_echo_n "(cached
) " >&6
6194 if test -n "$ac_ct_RANLIB"; then
6195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6205 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6215 if test -n "$ac_ct_RANLIB"; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6217 $as_echo "$ac_ct_RANLIB" >&6; }
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6220 $as_echo "no
" >&6; }
6223 if test "x
$ac_ct_RANLIB" = x; then
6226 case $cross_compiling:$ac_tool_warned in
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6229 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6230 ac_tool_warned=yes ;;
6232 RANLIB=$ac_ct_RANLIB
6235 RANLIB="$ac_cv_prog_RANLIB"
6238 test -z "$RANLIB" && RANLIB=:
6245 # Determine commands to create old-style static archives.
6246 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6247 old_postinstall_cmds='chmod 644 $oldlib'
6248 old_postuninstall_cmds=
6250 if test -n "$RANLIB"; then
6253 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6256 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6259 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6264 lock_old_archive_extraction=yes ;;
6266 lock_old_archive_extraction=no ;;
6307 # If no C compiler was specified, use CC.
6310 # If no C compiler flags were specified, use CFLAGS.
6311 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6313 # Allow CC to be a program name with arguments.
6317 # Check for command to grab the raw symbol name followed by C symbol from nm.
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6319 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6320 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6321 $as_echo_n "(cached
) " >&6
6324 # These are sane defaults that work on at least a few old systems.
6325 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6327 # Character class describing NM global symbol codes.
6328 symcode='[BCDEGRST]'
6330 # Regexp to match symbols that can be accessed directly from C.
6331 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6333 # Define system-specific variables.
6338 cygwin* | mingw* | pw32* | cegcc*)
6339 symcode='[ABCDGISTW]'
6342 if test "$host_cpu" = ia64; then
6343 symcode='[ABCDEGRST]'
6347 symcode='[BCDEGRST]'
6350 symcode='[BCDEGQRST]'
6361 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6369 # If we're using GNU nm, then use its standard symbol codes.
6370 case `$NM -V 2>&1` in
6371 *GNU* | *'with BFD'*)
6372 symcode='[ABCDGIRSTW]' ;;
6375 # Transform an extracted symbol line into a proper C declaration.
6376 # Some systems (esp. on ia64) link data and code symbols differently,
6377 # so use this general approach.
6378 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6380 # Transform an extracted symbol line into symbol name and symbol address
6381 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6382 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'"
6384 # Handle CRLF in mingw tool chain
6388 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6392 # Try without a prefix underscore, then with it.
6393 for ac_symprfx in "" "_
"; do
6395 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6396 symxfrm="\\1 $ac_symprfx\\2 \\2"
6398 # Write the raw and C identifiers.
6399 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6400 # Fake it for dumpbin and say T for any non-static function
6401 # and D for any global variable.
6402 # Also find C++ and __fastcall symbols from MSVC++,
6403 # which start with @ or ?.
6404 lt_cv_sys_global_symbol_pipe="$AWK '"\
6405 " {last_section=section; section=\$ 3};"\
6406 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6407 " \$ 0!~/External *\|/{next};"\
6408 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6409 " {if(hide[section]) next};"\
6410 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6411 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6412 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6413 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6414 " ' prfx
=^
$ac_symprfx"
6416 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6419 # Check to see that the pipe works correctly.
6423 cat > conftest.$ac_ext <<_LT_EOF
6428 void nm_test_func(void);
6429 void nm_test_func(void){}
6433 int main(){nm_test_var='a';nm_test_func();return(0);}
6436 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6437 (eval $ac_compile) 2>&5
6439 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6440 test $ac_status = 0; }; then
6441 # Now try to grab the symbols.
6443 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6444 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6446 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6447 test $ac_status = 0; } && test -s "$nlist"; then
6448 # Try sorting and uniquifying the output.
6449 if sort "$nlist" | uniq > "$nlist"T; then
6450 mv -f "$nlist"T "$nlist"
6455 # Make sure that we snagged all the symbols we need.
6456 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6457 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6458 cat <<_LT_EOF > conftest.$ac_ext
6464 # Now generate the symbol file.
6465 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6467 cat <<_LT_EOF >> conftest.$ac_ext
6469 /* The mapping between symbol names and symbols. */
6474 lt__PROGRAM__LTX_preloaded_symbols[] =
6476 { "@PROGRAM@
", (void *) 0 },
6478 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6479 cat <<\_LT_EOF >> conftest.$ac_ext
6483 /* This works around a problem in FreeBSD linker */
6484 #ifdef FREEBSD_WORKAROUND
6485 static const void *lt_preloaded_setup() {
6486 return lt__PROGRAM__LTX_preloaded_symbols;
6494 # Now try linking the two files.
6495 mv conftest.$ac_objext conftstm.$ac_objext
6496 lt_save_LIBS="$LIBS"
6497 lt_save_CFLAGS="$CFLAGS"
6498 LIBS="conftstm.
$ac_objext"
6499 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6500 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6501 (eval $ac_link) 2>&5
6503 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6504 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6507 LIBS="$lt_save_LIBS"
6508 CFLAGS="$lt_save_CFLAGS"
6510 echo "cannot
find nm_test_func
in $nlist" >&5
6513 echo "cannot
find nm_test_var
in $nlist" >&5
6516 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6519 echo "$progname: failed program was
:" >&5
6520 cat conftest.$ac_ext >&5
6522 rm -rf conftest* conftst*
6524 # Do not use the global_symbol_pipe unless it works.
6525 if test "$pipe_works" = yes; then
6528 lt_cv_sys_global_symbol_pipe=
6534 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6535 lt_cv_sys_global_symbol_to_cdecl=
6537 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6539 $as_echo "failed
" >&6; }
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6542 $as_echo "ok
" >&6; }
6567 # Check whether --enable-libtool-lock was given.
6568 if test "${enable_libtool_lock+set}" = set; then :
6569 enableval=$enable_libtool_lock;
6572 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6574 # Some flags need to be propagated to the compiler or linker for good
6578 # Find out which ABI we are using.
6579 echo 'int i;' > conftest.$ac_ext
6580 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6581 (eval $ac_compile) 2>&5
6583 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6584 test $ac_status = 0; }; then
6585 case `/usr/bin/file conftest.$ac_objext` in
6597 # Find out which ABI we are using.
6598 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6599 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6600 (eval $ac_compile) 2>&5
6602 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6603 test $ac_status = 0; }; then
6604 if test "$lt_cv_prog_gnu_ld" = yes; then
6605 case `/usr/bin/file conftest.$ac_objext` in
6607 LD="${LD-ld} -melf32bsmip"
6610 LD="${LD-ld} -melf32bmipn32"
6613 LD="${LD-ld} -melf64bmip"
6617 case `/usr/bin/file conftest.$ac_objext` in
6633 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6634 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6635 # Find out which ABI we are using.
6636 echo 'int i;' > conftest.$ac_ext
6637 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6638 (eval $ac_compile) 2>&5
6640 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6641 test $ac_status = 0; }; then
6642 case `/usr/bin/file conftest.o` in
6645 x86_64-*kfreebsd*-gnu)
6646 LD="${LD-ld} -m elf_i386_fbsd
"
6649 case `/usr/bin/file conftest.o` in
6651 LD="${LD-ld} -m elf32_x86_64
"
6654 LD="${LD-ld} -m elf_i386
"
6658 powerpc64le-*linux*)
6659 LD="${LD-ld} -m elf32lppclinux
"
6662 LD="${LD-ld} -m elf32ppclinux
"
6665 LD="${LD-ld} -m elf_s390
"
6668 LD="${LD-ld} -m elf32_sparc
"
6674 x86_64-*kfreebsd*-gnu)
6675 LD="${LD-ld} -m elf_x86_64_fbsd
"
6678 LD="${LD-ld} -m elf_x86_64
"
6681 LD="${LD-ld} -m elf64lppc
"
6684 LD="${LD-ld} -m elf64ppc
"
6686 s390*-*linux*|s390*-*tpf*)
6687 LD="${LD-ld} -m elf64_s390
"
6690 LD="${LD-ld} -m elf64_sparc
"
6700 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6701 SAVE_CFLAGS="$CFLAGS"
6702 CFLAGS="$CFLAGS -belf"
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6704 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6705 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6706 $as_echo_n "(cached
) " >&6
6709 ac_cpp='$CPP $CPPFLAGS'
6710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6725 if ac_fn_c_try_link "$LINENO"; then :
6726 lt_cv_cc_needs_belf=yes
6728 lt_cv_cc_needs_belf=no
6730 rm -f core conftest.err conftest.$ac_objext \
6731 conftest$ac_exeext conftest.$ac_ext
6733 ac_cpp='$CPP $CPPFLAGS'
6734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6740 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6741 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6742 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6743 CFLAGS="$SAVE_CFLAGS"
6747 # Find out which ABI we are using.
6748 echo 'int i;' > conftest.$ac_ext
6749 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6750 (eval $ac_compile) 2>&5
6752 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6753 test $ac_status = 0; }; then
6754 case `/usr/bin/file conftest.o` in
6756 case $lt_cv_prog_gnu_ld in
6757 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6759 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6771 need_locks="$enable_libtool_lock"
6775 rhapsody* | darwin*)
6776 if test -n "$ac_tool_prefix"; then
6777 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6778 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6780 $as_echo_n "checking
for $ac_word...
" >&6; }
6781 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6782 $as_echo_n "(cached
) " >&6
6784 if test -n "$DSYMUTIL"; then
6785 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6804 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6805 if test -n "$DSYMUTIL"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
6807 $as_echo "$DSYMUTIL" >&6; }
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6810 $as_echo "no
" >&6; }
6815 if test -z "$ac_cv_prog_DSYMUTIL"; then
6816 ac_ct_DSYMUTIL=$DSYMUTIL
6817 # Extract the first word of "dsymutil
", so it can be a program name with args.
6818 set dummy dsymutil; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6820 $as_echo_n "checking
for $ac_word...
" >&6; }
6821 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6822 $as_echo_n "(cached
) " >&6
6824 if test -n "$ac_ct_DSYMUTIL"; then
6825 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6844 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6845 if test -n "$ac_ct_DSYMUTIL"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
6847 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6850 $as_echo "no
" >&6; }
6853 if test "x
$ac_ct_DSYMUTIL" = x; then
6856 case $cross_compiling:$ac_tool_warned in
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6859 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6860 ac_tool_warned=yes ;;
6862 DSYMUTIL=$ac_ct_DSYMUTIL
6865 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6868 if test -n "$ac_tool_prefix"; then
6869 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6870 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6872 $as_echo_n "checking
for $ac_word...
" >&6; }
6873 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6874 $as_echo_n "(cached
) " >&6
6876 if test -n "$NMEDIT"; then
6877 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6886 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6896 NMEDIT=$ac_cv_prog_NMEDIT
6897 if test -n "$NMEDIT"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
6899 $as_echo "$NMEDIT" >&6; }
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6902 $as_echo "no
" >&6; }
6907 if test -z "$ac_cv_prog_NMEDIT"; then
6908 ac_ct_NMEDIT=$NMEDIT
6909 # Extract the first word of "nmedit
", so it can be a program name with args.
6910 set dummy nmedit; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6912 $as_echo_n "checking
for $ac_word...
" >&6; }
6913 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6914 $as_echo_n "(cached
) " >&6
6916 if test -n "$ac_ct_NMEDIT"; then
6917 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6926 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6936 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6937 if test -n "$ac_ct_NMEDIT"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
6939 $as_echo "$ac_ct_NMEDIT" >&6; }
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6942 $as_echo "no
" >&6; }
6945 if test "x
$ac_ct_NMEDIT" = x; then
6948 case $cross_compiling:$ac_tool_warned in
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6951 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6952 ac_tool_warned=yes ;;
6954 NMEDIT=$ac_ct_NMEDIT
6957 NMEDIT="$ac_cv_prog_NMEDIT"
6960 if test -n "$ac_tool_prefix"; then
6961 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6962 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6964 $as_echo_n "checking
for $ac_word...
" >&6; }
6965 if test "${ac_cv_prog_LIPO+set}" = set; then :
6966 $as_echo_n "(cached
) " >&6
6968 if test -n "$LIPO"; then
6969 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6988 LIPO=$ac_cv_prog_LIPO
6989 if test -n "$LIPO"; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
6991 $as_echo "$LIPO" >&6; }
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6994 $as_echo "no
" >&6; }
6999 if test -z "$ac_cv_prog_LIPO"; then
7001 # Extract the first word of "lipo
", so it can be a program name with args.
7002 set dummy lipo; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7004 $as_echo_n "checking
for $ac_word...
" >&6; }
7005 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7006 $as_echo_n "(cached
) " >&6
7008 if test -n "$ac_ct_LIPO"; then
7009 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7018 ac_cv_prog_ac_ct_LIPO="lipo
"
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7028 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7029 if test -n "$ac_ct_LIPO"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7031 $as_echo "$ac_ct_LIPO" >&6; }
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7034 $as_echo "no
" >&6; }
7037 if test "x
$ac_ct_LIPO" = x; then
7040 case $cross_compiling:$ac_tool_warned in
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7043 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7044 ac_tool_warned=yes ;;
7049 LIPO="$ac_cv_prog_LIPO"
7052 if test -n "$ac_tool_prefix"; then
7053 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7054 set dummy ${ac_tool_prefix}otool; ac_word=$2
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7056 $as_echo_n "checking
for $ac_word...
" >&6; }
7057 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7058 $as_echo_n "(cached
) " >&6
7060 if test -n "$OTOOL"; then
7061 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7070 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7071 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7080 OTOOL=$ac_cv_prog_OTOOL
7081 if test -n "$OTOOL"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7083 $as_echo "$OTOOL" >&6; }
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7086 $as_echo "no
" >&6; }
7091 if test -z "$ac_cv_prog_OTOOL"; then
7093 # Extract the first word of "otool
", so it can be a program name with args.
7094 set dummy otool; ac_word=$2
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7096 $as_echo_n "checking
for $ac_word...
" >&6; }
7097 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7098 $as_echo_n "(cached
) " >&6
7100 if test -n "$ac_ct_OTOOL"; then
7101 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7110 ac_cv_prog_ac_ct_OTOOL="otool
"
7111 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7120 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7121 if test -n "$ac_ct_OTOOL"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7123 $as_echo "$ac_ct_OTOOL" >&6; }
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7126 $as_echo "no
" >&6; }
7129 if test "x
$ac_ct_OTOOL" = x; then
7132 case $cross_compiling:$ac_tool_warned in
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7135 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7136 ac_tool_warned=yes ;;
7141 OTOOL="$ac_cv_prog_OTOOL"
7144 if test -n "$ac_tool_prefix"; then
7145 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7146 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7148 $as_echo_n "checking
for $ac_word...
" >&6; }
7149 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7150 $as_echo_n "(cached
) " >&6
7152 if test -n "$OTOOL64"; then
7153 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7162 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7163 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7172 OTOOL64=$ac_cv_prog_OTOOL64
7173 if test -n "$OTOOL64"; then
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7175 $as_echo "$OTOOL64" >&6; }
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7178 $as_echo "no
" >&6; }
7183 if test -z "$ac_cv_prog_OTOOL64"; then
7184 ac_ct_OTOOL64=$OTOOL64
7185 # Extract the first word of "otool64
", so it can be a program name with args.
7186 set dummy otool64; ac_word=$2
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7188 $as_echo_n "checking
for $ac_word...
" >&6; }
7189 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7190 $as_echo_n "(cached
) " >&6
7192 if test -n "$ac_ct_OTOOL64"; then
7193 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7202 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7203 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7212 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7213 if test -n "$ac_ct_OTOOL64"; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7215 $as_echo "$ac_ct_OTOOL64" >&6; }
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7218 $as_echo "no
" >&6; }
7221 if test "x
$ac_ct_OTOOL64" = x; then
7224 case $cross_compiling:$ac_tool_warned in
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7227 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7228 ac_tool_warned=yes ;;
7230 OTOOL64=$ac_ct_OTOOL64
7233 OTOOL64="$ac_cv_prog_OTOOL64"
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7263 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7264 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7265 $as_echo_n "(cached
) " >&6
7267 lt_cv_apple_cc_single_mod=no
7268 if test -z "${LT_MULTI_MODULE}"; then
7269 # By default we will add the -single_module flag. You can override
7270 # by either setting the environment variable LT_MULTI_MODULE
7271 # non-empty at configure time, or by adding -multi_module to the
7273 rm -rf libconftest.dylib*
7274 echo "int foo
(void
){return 1;}" > conftest.c
7275 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7276 -dynamiclib -Wl,-single_module conftest.c
" >&5
7277 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7278 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7280 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7281 lt_cv_apple_cc_single_mod=yes
7283 cat conftest.err >&5
7285 rm -rf libconftest.dylib*
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7290 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7292 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7293 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7294 $as_echo_n "(cached
) " >&6
7296 lt_cv_ld_exported_symbols_list=no
7297 save_LDFLAGS=$LDFLAGS
7298 echo "_main
" > conftest.sym
7299 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7311 if ac_fn_c_try_link "$LINENO"; then :
7312 lt_cv_ld_exported_symbols_list=yes
7314 lt_cv_ld_exported_symbols_list=no
7316 rm -f core conftest.err conftest.$ac_objext \
7317 conftest$ac_exeext conftest.$ac_ext
7318 LDFLAGS="$save_LDFLAGS"
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7322 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7324 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7325 if test "${lt_cv_ld_force_load+set}" = set; then :
7326 $as_echo_n "(cached
) " >&6
7328 lt_cv_ld_force_load=no
7329 cat > conftest.c << _LT_EOF
7330 int forced_loaded() { return 2;}
7332 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7333 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7334 echo "$AR cru libconftest.a conftest.o
" >&5
7335 $AR cru libconftest.a conftest.o 2>&5
7336 cat > conftest.c << _LT_EOF
7337 int main() { return 0;}
7339 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7340 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7342 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7343 lt_cv_ld_force_load=yes
7345 cat conftest.err >&5
7347 rm -f conftest.err libconftest.a conftest conftest.c
7348 rm -rf conftest.dSYM
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7352 $as_echo "$lt_cv_ld_force_load" >&6; }
7354 rhapsody* | darwin1.[012])
7355 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7357 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7358 darwin*) # darwin 5.x on
7359 # if running on 10.5 or later, the deployment target defaults
7360 # to the OS version, if on x86, and 10.4, the deployment
7361 # target defaults to 10.4. Don't you love it?
7362 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7363 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7364 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7366 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7368 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7372 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7373 _lt_dar_single_mod='$single_module'
7375 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7376 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7378 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7380 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7381 _lt_dsymutil='~$DSYMUTIL $lib || :'
7389 ac_cpp='$CPP $CPPFLAGS'
7390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7394 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7395 # On Suns, sometimes $CPP names a directory.
7396 if test -n "$CPP" && test -d "$CPP"; then
7399 if test -z "$CPP"; then
7400 if test "${ac_cv_prog_CPP+set}" = set; then :
7401 $as_echo_n "(cached
) " >&6
7403 # Double quotes because CPP needs to be expanded
7404 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7407 for ac_c_preproc_warn_flag in '' yes
7409 # Use a header file that comes with gcc, so configuring glibc
7410 # with a fresh cross-compiler works.
7411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7412 # <limits.h> exists even on freestanding compilers.
7413 # On the NeXT, cc -E runs the code through the compiler's parser,
7414 # not just through cpp. "Syntax error
" is here to catch this case.
7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h. */
7418 # include <limits.h>
7420 # include <assert.h>
7424 if ac_fn_c_try_cpp "$LINENO"; then :
7427 # Broken: fails on valid input.
7430 rm -f conftest.err conftest.$ac_ext
7432 # OK, works on sane cases. Now check whether nonexistent headers
7433 # can be detected and how.
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7436 #include <ac_nonexistent.h>
7438 if ac_fn_c_try_cpp "$LINENO"; then :
7439 # Broken: success on invalid input.
7442 # Passes both tests.
7446 rm -f conftest.err conftest.$ac_ext
7449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7450 rm -f conftest.err conftest.$ac_ext
7451 if $ac_preproc_ok; then :
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7464 $as_echo "$CPP" >&6; }
7466 for ac_c_preproc_warn_flag in '' yes
7468 # Use a header file that comes with gcc, so configuring glibc
7469 # with a fresh cross-compiler works.
7470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7471 # <limits.h> exists even on freestanding compilers.
7472 # On the NeXT, cc -E runs the code through the compiler's parser,
7473 # not just through cpp. "Syntax error
" is here to catch this case.
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7477 # include <limits.h>
7479 # include <assert.h>
7483 if ac_fn_c_try_cpp "$LINENO"; then :
7486 # Broken: fails on valid input.
7489 rm -f conftest.err conftest.$ac_ext
7491 # OK, works on sane cases. Now check whether nonexistent headers
7492 # can be detected and how.
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 #include <ac_nonexistent.h>
7497 if ac_fn_c_try_cpp "$LINENO"; then :
7498 # Broken: success on invalid input.
7501 # Passes both tests.
7505 rm -f conftest.err conftest.$ac_ext
7508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7509 rm -f conftest.err conftest.$ac_ext
7510 if $ac_preproc_ok; then :
7513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7515 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7516 See \`config.log' for more details.
" "$LINENO" 5; }
7520 ac_cpp='$CPP $CPPFLAGS'
7521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7527 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7528 if test "${ac_cv_header_stdc+set}" = set; then :
7529 $as_echo_n "(cached
) " >&6
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7546 if ac_fn_c_try_compile "$LINENO"; then :
7547 ac_cv_header_stdc=yes
7549 ac_cv_header_stdc=no
7551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553 if test $ac_cv_header_stdc = yes; then
7554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7560 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7561 $EGREP "memchr
" >/dev/null 2>&1; then :
7564 ac_cv_header_stdc=no
7570 if test $ac_cv_header_stdc = yes; then
7571 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h. */
7577 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7578 $EGREP "free
" >/dev/null 2>&1; then :
7581 ac_cv_header_stdc=no
7587 if test $ac_cv_header_stdc = yes; then
7588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7589 if test "$cross_compiling" = yes; then :
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7596 #if ((' ' & 0x0FF) == 0x020)
7597 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7598 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7600 # define ISLOWER(c) \
7601 (('a' <= (c) && (c) <= 'i') \
7602 || ('j' <= (c) && (c) <= 'r') \
7603 || ('s' <= (c) && (c) <= 'z'))
7604 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7607 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7612 for (i = 0; i < 256; i++)
7613 if (XOR (islower (i), ISLOWER (i))
7614 || toupper (i) != TOUPPER (i))
7619 if ac_fn_c_try_run "$LINENO"; then :
7622 ac_cv_header_stdc=no
7624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7625 conftest.$ac_objext conftest.beam conftest.$ac_ext
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7631 $as_echo "$ac_cv_header_stdc" >&6; }
7632 if test $ac_cv_header_stdc = yes; then
7634 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7638 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7639 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7640 inttypes.h stdint.h unistd.h
7642 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7643 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7645 eval as_val
=\$
$as_ac_Header
7646 if test "x$as_val" = x
""yes; then :
7647 cat >>confdefs.h
<<_ACEOF
7648 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7656 for ac_header
in dlfcn.h
7658 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7660 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
7661 cat >>confdefs.h
<<_ACEOF
7662 #define HAVE_DLFCN_H 1
7683 # Check whether --enable-shared was given.
7684 if test "${enable_shared+set}" = set; then :
7685 enableval
=$enable_shared; p
=${PACKAGE-default}
7687 yes) enable_shared
=yes ;;
7688 no
) enable_shared
=no
;;
7691 # Look at the argument we got. We use all the common list separators.
7692 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7693 for pkg
in $enableval; do
7695 if test "X$pkg" = "X$p"; then
7714 # Check whether --enable-static was given.
7715 if test "${enable_static+set}" = set; then :
7716 enableval
=$enable_static; p
=${PACKAGE-default}
7718 yes) enable_static
=yes ;;
7719 no
) enable_static
=no
;;
7722 # Look at the argument we got. We use all the common list separators.
7723 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7724 for pkg
in $enableval; do
7726 if test "X$pkg" = "X$p"; then
7746 # Check whether --with-pic was given.
7747 if test "${with_pic+set}" = set; then :
7748 withval
=$with_pic; pic_mode
="$withval"
7754 test -z "$pic_mode" && pic_mode
=default
7762 # Check whether --enable-fast-install was given.
7763 if test "${enable_fast_install+set}" = set; then :
7764 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7766 yes) enable_fast_install
=yes ;;
7767 no
) enable_fast_install
=no
;;
7769 enable_fast_install
=no
7770 # Look at the argument we got. We use all the common list separators.
7771 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7772 for pkg
in $enableval; do
7774 if test "X$pkg" = "X$p"; then
7775 enable_fast_install
=yes
7782 enable_fast_install
=yes
7795 # This can be used to rebuild libtool when needed
7796 LIBTOOL_DEPS
="$ltmain"
7798 # Always use our own libtool.
7799 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7826 test -z "$LN_S" && LN_S
="ln -s"
7841 if test -n "${ZSH_VERSION+set}" ; then
7842 setopt NO_GLOB_SUBST
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7846 $as_echo_n "checking for objdir... " >&6; }
7847 if test "${lt_cv_objdir+set}" = set; then :
7848 $as_echo_n "(cached) " >&6
7850 rm -f .libs
2>/dev
/null
7851 mkdir .libs
2>/dev
/null
7852 if test -d .libs
; then
7855 # MS-DOS does not allow filenames that begin with a dot.
7858 rmdir .libs
2>/dev
/null
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7861 $as_echo "$lt_cv_objdir" >&6; }
7862 objdir
=$lt_cv_objdir
7868 cat >>confdefs.h
<<_ACEOF
7869 #define LT_OBJDIR "$lt_cv_objdir/"
7877 # AIX sometimes has problems with the GCC collect2 program. For some
7878 # reason, if we set the COLLECT_NAMES environment variable, the problems
7879 # vanish in a puff of smoke.
7880 if test "X${COLLECT_NAMES+set}" != Xset
; then
7882 export COLLECT_NAMES
7889 can_build_shared
=yes
7891 # All known linkers require a `.a' archive for static linking (except MSVC,
7892 # which needs '.lib').
7895 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7898 old_CFLAGS
="$CFLAGS"
7900 # Set sane defaults for various variables
7901 test -z "$CC" && CC
=cc
7902 test -z "$LTCC" && LTCC
=$CC
7903 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7904 test -z "$LD" && LD
=ld
7905 test -z "$ac_objext" && ac_objext
=o
7907 for cc_temp
in $compiler""; do
7909 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7910 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7915 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7918 # Only perform the check for file, if the check method requires it
7919 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7920 case $deplibs_check_method in
7922 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7924 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7925 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7926 $as_echo_n "(cached) " >&6
7930 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7933 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7934 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7935 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7936 for ac_dir
in $ac_dummy; do
7938 test -z "$ac_dir" && ac_dir
=.
7939 if test -f $ac_dir/${ac_tool_prefix}file; then
7940 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7941 if test -n "$file_magic_test_file"; then
7942 case $deplibs_check_method in
7944 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7945 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7946 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7947 $EGREP "$file_magic_regex" > /dev
/null
; then
7952 *** Warning: the command libtool uses to detect shared libraries,
7953 *** $file_magic_cmd, produces output that libtool cannot recognize.
7954 *** The result is that libtool may fail to recognize shared libraries
7955 *** as such. This will affect the creation of libtool libraries that
7956 *** depend on shared libraries, but programs linked with such libtool
7957 *** libraries will work regardless of this problem. Nevertheless, you
7958 *** may want to report the problem to your system manager and/or to
7959 *** bug-libtool@gnu.org
7969 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7974 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7975 if test -n "$MAGIC_CMD"; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7977 $as_echo "$MAGIC_CMD" >&6; }
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980 $as_echo "no" >&6; }
7987 if test -z "$lt_cv_path_MAGIC_CMD"; then
7988 if test -n "$ac_tool_prefix"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7990 $as_echo_n "checking for file... " >&6; }
7991 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7992 $as_echo_n "(cached) " >&6
7996 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7999 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8000 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8001 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8002 for ac_dir
in $ac_dummy; do
8004 test -z "$ac_dir" && ac_dir
=.
8005 if test -f $ac_dir/file; then
8006 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8007 if test -n "$file_magic_test_file"; then
8008 case $deplibs_check_method in
8010 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8011 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8012 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8013 $EGREP "$file_magic_regex" > /dev
/null
; then
8018 *** Warning: the command libtool uses to detect shared libraries,
8019 *** $file_magic_cmd, produces output that libtool cannot recognize.
8020 *** The result is that libtool may fail to recognize shared libraries
8021 *** as such. This will affect the creation of libtool libraries that
8022 *** depend on shared libraries, but programs linked with such libtool
8023 *** libraries will work regardless of this problem. Nevertheless, you
8024 *** may want to report the problem to your system manager and/or to
8025 *** bug-libtool@gnu.org
8035 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8040 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8041 if test -n "$MAGIC_CMD"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8043 $as_echo "$MAGIC_CMD" >&6; }
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8059 # Use C for the default configuration in the libtool script
8063 ac_cpp
='$CPP $CPPFLAGS'
8064 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8065 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8066 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8069 # Source file extension for C test sources.
8072 # Object file extension for compiled C test sources.
8076 # Code to be used in simple compile tests
8077 lt_simple_compile_test_code
="int some_variable = 0;"
8079 # Code to be used in simple link tests
8080 lt_simple_link_test_code
='int main(){return(0);}'
8088 # If no C compiler was specified, use CC.
8091 # If no C compiler flags were specified, use CFLAGS.
8092 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8094 # Allow CC to be a program name with arguments.
8097 # Save the default compiler, since it gets overwritten when the other
8098 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8099 compiler_DEFAULT
=$CC
8101 # save warnings/boilerplate of simple test code
8102 ac_outfile
=conftest.
$ac_objext
8103 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8104 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8105 _lt_compiler_boilerplate
=`cat conftest.err`
8108 ac_outfile
=conftest.
$ac_objext
8109 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8110 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8111 _lt_linker_boilerplate
=`cat conftest.err`
8116 ## There is no encapsulation within the following macros, do not change
8117 ## the running order or otherwise move them around unless you know exactly
8118 ## what you are doing...
8119 if test -n "$compiler"; then
8121 lt_prog_compiler_no_builtin_flag
=
8123 if test "$GCC" = yes; then
8124 case $cc_basename in
8126 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8128 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8132 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8133 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8136 lt_cv_prog_compiler_rtti_exceptions
=no
8137 ac_outfile
=conftest.
$ac_objext
8138 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8139 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8140 # Insert the option either (1) after the last *FLAGS variable, or
8141 # (2) before a word containing "conftest.", or (3) at the end.
8142 # Note that $ac_compile itself does not contain backslashes and begins
8143 # with a dollar sign (not a hyphen), so the echo should work correctly.
8144 # The option is referenced via a variable to avoid confusing sed.
8145 lt_compile
=`echo "$ac_compile" | $SED \
8146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8148 -e 's:$: $lt_compiler_flag:'`
8149 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8150 (eval "$lt_compile" 2>conftest.err
)
8152 cat conftest.err
>&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 if (exit $ac_status) && test -s "$ac_outfile"; then
8155 # The compiler can only warn and ignore the option if not recognized
8156 # So say no if there are warnings other than the usual output.
8157 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8158 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8159 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8160 lt_cv_prog_compiler_rtti_exceptions
=yes
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8167 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8169 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8170 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8182 lt_prog_compiler_wl
=
8183 lt_prog_compiler_pic
=
8184 lt_prog_compiler_static
=
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8187 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8189 if test "$GCC" = yes; then
8190 lt_prog_compiler_wl
='-Wl,'
8191 lt_prog_compiler_static
='-static'
8195 # All AIX code is PIC.
8196 if test "$host_cpu" = ia64
; then
8197 # AIX 5 now supports IA64 processor
8198 lt_prog_compiler_static
='-Bstatic'
8200 lt_prog_compiler_pic
='-fPIC'
8206 # see comment about AmigaOS4 .so support
8207 lt_prog_compiler_pic
='-fPIC'
8210 # FIXME: we need at least 68020 code to build shared libraries, but
8211 # adding the `-m68020' flag to GCC prevents building anything better,
8213 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8218 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8219 # PIC is the default for these OSes.
8222 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8223 # This hack is so that the source file can tell whether it is being
8224 # built for inclusion in a dll (and should export symbols for example).
8225 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8226 # (--disable-auto-import) libraries
8227 lt_prog_compiler_pic
='-DDLL_EXPORT'
8230 darwin
* | rhapsody
*)
8231 # PIC is the default on this platform
8232 # Common symbols not allowed in MH_DYLIB files
8233 lt_prog_compiler_pic
='-fno-common'
8237 # PIC is the default for Haiku.
8238 # The "-static" flag exists, but is broken.
8239 lt_prog_compiler_static
=
8243 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8244 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8245 # sets the default TLS model and affects inlining.
8251 lt_prog_compiler_pic
='-fPIC'
8257 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8258 # Instead, we relocate shared libraries at runtime.
8262 # Just because we use GCC doesn't mean we suddenly get shared libraries
8263 # on systems that don't support them.
8264 lt_prog_compiler_can_build_shared
=no
8269 # QNX uses GNU C++, but need to define -shared option too, otherwise
8271 lt_prog_compiler_pic
='-fPIC -shared'
8275 if test -d /usr
/nec
; then
8276 lt_prog_compiler_pic
=-Kconform_pic
8281 lt_prog_compiler_pic
='-fPIC'
8285 case $cc_basename in
8286 nvcc
*) # Cuda Compiler Driver 2.2
8287 lt_prog_compiler_wl
='-Xlinker '
8288 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8292 # PORTME Check for flag to pass linker flags through the system compiler.
8295 lt_prog_compiler_wl
='-Wl,'
8296 if test "$host_cpu" = ia64
; then
8297 # AIX 5 now supports IA64 processor
8298 lt_prog_compiler_static
='-Bstatic'
8300 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8304 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8305 # This hack is so that the source file can tell whether it is being
8306 # built for inclusion in a dll (and should export symbols for example).
8307 lt_prog_compiler_pic
='-DDLL_EXPORT'
8310 hpux9
* | hpux10
* | hpux11
*)
8311 lt_prog_compiler_wl
='-Wl,'
8312 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8319 lt_prog_compiler_pic
='+Z'
8322 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8323 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8326 irix5
* | irix6
* | nonstopux
*)
8327 lt_prog_compiler_wl
='-Wl,'
8328 # PIC (with -KPIC) is the default.
8329 lt_prog_compiler_static
='-non_shared'
8332 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8333 case $cc_basename in
8334 # old Intel for x86_64 which still supported -KPIC.
8336 lt_prog_compiler_wl
='-Wl,'
8337 lt_prog_compiler_pic
='-KPIC'
8338 lt_prog_compiler_static
='-static'
8340 # icc used to be incompatible with GCC.
8341 # ICC 10 doesn't accept -KPIC any more.
8343 lt_prog_compiler_wl
='-Wl,'
8344 lt_prog_compiler_pic
='-fPIC'
8345 lt_prog_compiler_static
='-static'
8347 # Lahey Fortran 8.1.
8349 lt_prog_compiler_wl
='-Wl,'
8350 lt_prog_compiler_pic
='--shared'
8351 lt_prog_compiler_static
='--static'
8353 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8354 # Portland Group compilers (*not* the Pentium gcc compiler,
8355 # which looks to be a dead project)
8356 lt_prog_compiler_wl
='-Wl,'
8357 lt_prog_compiler_pic
='-fpic'
8358 lt_prog_compiler_static
='-Bstatic'
8361 lt_prog_compiler_wl
='-Wl,'
8362 # All Alpha code is PIC.
8363 lt_prog_compiler_static
='-non_shared'
8365 xl
* | bgxl
* | bgf
* | mpixl
*)
8366 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8367 lt_prog_compiler_wl
='-Wl,'
8368 lt_prog_compiler_pic
='-qpic'
8369 lt_prog_compiler_static
='-qstaticlink'
8372 case `$CC -V 2>&1 | sed 5q` in
8373 *Sun\ F
* |
*Sun
*Fortran
*)
8374 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8375 lt_prog_compiler_pic
='-KPIC'
8376 lt_prog_compiler_static
='-Bstatic'
8377 lt_prog_compiler_wl
=''
8381 lt_prog_compiler_pic
='-KPIC'
8382 lt_prog_compiler_static
='-Bstatic'
8383 lt_prog_compiler_wl
='-Wl,'
8391 lt_prog_compiler_pic
='-KPIC'
8392 lt_prog_compiler_static
='-Bstatic'
8396 # QNX uses GNU C++, but need to define -shared option too, otherwise
8398 lt_prog_compiler_pic
='-fPIC -shared'
8401 osf3
* | osf4
* | osf5
*)
8402 lt_prog_compiler_wl
='-Wl,'
8403 # All OSF/1 code is PIC.
8404 lt_prog_compiler_static
='-non_shared'
8408 lt_prog_compiler_static
='-non_shared'
8412 lt_prog_compiler_pic
='-KPIC'
8413 lt_prog_compiler_static
='-Bstatic'
8414 case $cc_basename in
8416 lt_prog_compiler_wl
='-Qoption ld ';;
8418 lt_prog_compiler_wl
='-Wl,';;
8423 lt_prog_compiler_wl
='-Qoption ld '
8424 lt_prog_compiler_pic
='-PIC'
8425 lt_prog_compiler_static
='-Bstatic'
8428 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8429 lt_prog_compiler_wl
='-Wl,'
8430 lt_prog_compiler_pic
='-KPIC'
8431 lt_prog_compiler_static
='-Bstatic'
8435 if test -d /usr
/nec
;then
8436 lt_prog_compiler_pic
='-Kconform_pic'
8437 lt_prog_compiler_static
='-Bstatic'
8441 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8442 lt_prog_compiler_wl
='-Wl,'
8443 lt_prog_compiler_pic
='-KPIC'
8444 lt_prog_compiler_static
='-Bstatic'
8448 lt_prog_compiler_wl
='-Wl,'
8449 lt_prog_compiler_can_build_shared
=no
8453 lt_prog_compiler_pic
='-pic'
8454 lt_prog_compiler_static
='-Bstatic'
8458 lt_prog_compiler_can_build_shared
=no
8464 # For platforms which do not support PIC, -DPIC is meaningless:
8466 lt_prog_compiler_pic
=
8469 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8473 $as_echo "$lt_prog_compiler_pic" >&6; }
8481 # Check to make sure the PIC flag actually works.
8483 if test -n "$lt_prog_compiler_pic"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8485 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8486 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8487 $as_echo_n "(cached) " >&6
8489 lt_cv_prog_compiler_pic_works
=no
8490 ac_outfile
=conftest.
$ac_objext
8491 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8492 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8493 # Insert the option either (1) after the last *FLAGS variable, or
8494 # (2) before a word containing "conftest.", or (3) at the end.
8495 # Note that $ac_compile itself does not contain backslashes and begins
8496 # with a dollar sign (not a hyphen), so the echo should work correctly.
8497 # The option is referenced via a variable to avoid confusing sed.
8498 lt_compile
=`echo "$ac_compile" | $SED \
8499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8501 -e 's:$: $lt_compiler_flag:'`
8502 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8503 (eval "$lt_compile" 2>conftest.err
)
8505 cat conftest.err
>&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 if (exit $ac_status) && test -s "$ac_outfile"; then
8508 # The compiler can only warn and ignore the option if not recognized
8509 # So say no if there are warnings other than the usual output.
8510 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8511 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8512 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8513 lt_cv_prog_compiler_pic_works
=yes
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8520 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8522 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8523 case $lt_prog_compiler_pic in
8525 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8528 lt_prog_compiler_pic
=
8529 lt_prog_compiler_can_build_shared
=no
8540 # Check to make sure the static flag actually works.
8542 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8544 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8545 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
8548 lt_cv_prog_compiler_static_works
=no
8549 save_LDFLAGS
="$LDFLAGS"
8550 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8551 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8552 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8553 # The linker can only warn and ignore the option if not recognized
8554 # So say no if there are warnings
8555 if test -s conftest.err
; then
8556 # Append any errors to the config.log.
8557 cat conftest.err
1>&5
8558 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8559 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8560 if diff conftest.exp conftest.er2
>/dev
/null
; then
8561 lt_cv_prog_compiler_static_works
=yes
8564 lt_cv_prog_compiler_static_works
=yes
8568 LDFLAGS
="$save_LDFLAGS"
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8572 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8574 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8577 lt_prog_compiler_static
=
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8587 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8588 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8589 $as_echo_n "(cached) " >&6
8591 lt_cv_prog_compiler_c_o
=no
8592 $RM -r conftest
2>/dev
/null
8596 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8598 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8599 # Insert the option either (1) after the last *FLAGS variable, or
8600 # (2) before a word containing "conftest.", or (3) at the end.
8601 # Note that $ac_compile itself does not contain backslashes and begins
8602 # with a dollar sign (not a hyphen), so the echo should work correctly.
8603 lt_compile
=`echo "$ac_compile" | $SED \
8604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8606 -e 's:$: $lt_compiler_flag:'`
8607 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8608 (eval "$lt_compile" 2>out
/conftest.err
)
8610 cat out
/conftest.err
>&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8614 # The compiler can only warn and ignore the option if not recognized
8615 # So say no if there are warnings
8616 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8617 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8618 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8619 lt_cv_prog_compiler_c_o
=yes
8624 # SGI C++ compiler will create directory out/ii_files/ for
8625 # template instantiation
8626 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8627 $RM out
/* && rmdir out
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8634 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8642 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8643 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8644 $as_echo_n "(cached) " >&6
8646 lt_cv_prog_compiler_c_o
=no
8647 $RM -r conftest
2>/dev
/null
8651 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8653 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8654 # Insert the option either (1) after the last *FLAGS variable, or
8655 # (2) before a word containing "conftest.", or (3) at the end.
8656 # Note that $ac_compile itself does not contain backslashes and begins
8657 # with a dollar sign (not a hyphen), so the echo should work correctly.
8658 lt_compile
=`echo "$ac_compile" | $SED \
8659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8661 -e 's:$: $lt_compiler_flag:'`
8662 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8663 (eval "$lt_compile" 2>out
/conftest.err
)
8665 cat out
/conftest.err
>&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8669 # The compiler can only warn and ignore the option if not recognized
8670 # So say no if there are warnings
8671 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8672 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8673 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8674 lt_cv_prog_compiler_c_o
=yes
8679 # SGI C++ compiler will create directory out/ii_files/ for
8680 # template instantiation
8681 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8682 $RM out
/* && rmdir out
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8689 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8694 hard_links
="nottested"
8695 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8696 # do not overwrite the value of need_locks provided by the user
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8698 $as_echo_n "checking if we can lock with hard links... " >&6; }
8701 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8703 ln conftest.a conftest.b
2>&5 || hard_links
=no
8704 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8706 $as_echo "$hard_links" >&6; }
8707 if test "$hard_links" = no
; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8709 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8722 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8725 allow_undefined_flag
=
8726 always_export_symbols
=no
8728 archive_expsym_cmds
=
8729 compiler_needs_object
=no
8730 enable_shared_with_static_runtimes
=no
8731 export_dynamic_flag_spec
=
8732 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8733 hardcode_automatic
=no
8735 hardcode_direct_absolute
=no
8736 hardcode_libdir_flag_spec
=
8737 hardcode_libdir_flag_spec_ld
=
8738 hardcode_libdir_separator
=
8740 hardcode_shlibpath_var
=unsupported
8742 link_all_deplibs
=unknown
8745 old_archive_from_new_cmds
=
8746 old_archive_from_expsyms_cmds
=
8747 thread_safe_flag_spec
=
8748 whole_archive_flag_spec
=
8749 # include_expsyms should be a list of space-separated symbols to be *always*
8750 # included in the symbol list
8752 # exclude_expsyms can be an extended regexp of symbols to exclude
8753 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8754 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8755 # as well as any symbol that contains `d'.
8756 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8757 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8758 # platforms (ab)use it in PIC code, but their linkers get confused if
8759 # the symbol is explicitly referenced. Since portable code cannot
8760 # rely on this symbol name, it's probably fine to never include it in
8761 # preloaded symbol tables.
8762 # Exclude shared library initialization/finalization symbols.
8763 extract_expsyms_cmds
=
8766 cygwin
* | mingw
* | pw32
* | cegcc
*)
8767 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8768 # When not using gcc, we currently assume that we are using
8769 # Microsoft Visual C++.
8770 if test "$GCC" != yes; then
8775 # we just hope/assume this is gcc and not c89 (= MSVC++)
8785 # On some targets, GNU ld is compatible enough with the native linker
8786 # that we're better off using the native interface for both.
8787 lt_use_gnu_ld_interface
=no
8788 if test "$with_gnu_ld" = yes; then
8791 # The AIX port of GNU ld has always aspired to compatibility
8792 # with the native linker. However, as the warning in the GNU ld
8793 # block says, versions before 2.19.5* couldn't really create working
8794 # shared libraries, regardless of the interface used.
8795 case `$LD -v 2>&1` in
8796 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
8797 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
8798 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
8800 lt_use_gnu_ld_interface
=yes
8805 lt_use_gnu_ld_interface
=yes
8810 if test "$lt_use_gnu_ld_interface" = yes; then
8811 # If archive_cmds runs LD, not CC, wlarc should be empty
8814 # Set some defaults for GNU ld with shared library support. These
8815 # are reset later if shared libraries are not supported. Putting them
8816 # here allows them to be overridden if necessary.
8817 runpath_var
=LD_RUN_PATH
8818 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8819 export_dynamic_flag_spec
='${wl}--export-dynamic'
8820 # ancient GNU ld didn't support --whole-archive et. al.
8821 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8822 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8824 whole_archive_flag_spec
=
8826 supports_anon_versioning
=no
8827 case `$LD -v 2>&1` in
8828 *GNU\ gold
*) supports_anon_versioning
=yes ;;
8829 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8830 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8831 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8832 *\
2.11.
*) ;; # other 2.11 versions
8833 *) supports_anon_versioning
=yes ;;
8836 # See if GNU ld supports shared libraries.
8839 # On AIX/PPC, the GNU linker is very broken
8840 if test "$host_cpu" != ia64
; then
8844 *** Warning: the GNU linker, at least up to release 2.19, is reported
8845 *** to be unable to reliably create shared libraries on AIX.
8846 *** Therefore, libtool is disabling shared libraries support. If you
8847 *** really care for shared libraries, you may want to install binutils
8848 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8849 *** You will then need to restart the configuration process.
8858 # see comment about AmigaOS4 .so support
8859 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8860 archive_expsym_cmds
=''
8863 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)'
8864 hardcode_libdir_flag_spec
='-L$libdir'
8865 hardcode_minus_L
=yes
8871 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8872 allow_undefined_flag
=unsupported
8873 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8874 # support --undefined. This deserves some investigation. FIXME
8875 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8881 cygwin
* | mingw
* | pw32
* | cegcc
*)
8882 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8883 # as there is no search path for DLLs.
8884 hardcode_libdir_flag_spec
='-L$libdir'
8885 export_dynamic_flag_spec
='${wl}--export-all-symbols'
8886 allow_undefined_flag
=unsupported
8887 always_export_symbols
=no
8888 enable_shared_with_static_runtimes
=yes
8889 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8891 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8892 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8893 # If the export-symbols file already is a .def file (1st line
8894 # is EXPORTS), use it as is; otherwise, prepend...
8895 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8896 cp $export_symbols $output_objdir/$soname.def;
8898 echo EXPORTS > $output_objdir/$soname.def;
8899 cat $export_symbols >> $output_objdir/$soname.def;
8901 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8908 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8909 link_all_deplibs
=yes
8914 hardcode_shlibpath_var
=no
8915 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8916 export_dynamic_flag_spec
='${wl}-E'
8917 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8918 # Instead, shared libraries are loaded at an image base (0x10000000 by
8919 # default) and relocated if they conflict, which is a slow very memory
8920 # consuming and fragmenting process. To avoid this, we pick a random,
8921 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8922 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8923 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8924 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'
8927 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8929 if test "$host_os" = linux-dietlibc
; then
8930 case $cc_basename in
8931 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8934 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8935 && test "$tmp_diet" = no
8937 tmp_addflag
=' $pic_flag'
8938 tmp_sharedflag
='-shared'
8939 case $cc_basename,$host_cpu in
8940 pgcc
*) # Portland Group C compiler
8941 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'
8942 tmp_addflag
=' $pic_flag'
8944 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8945 # Portland Group f77 and f90 compilers
8946 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'
8947 tmp_addflag
=' $pic_flag -Mnomain' ;;
8948 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8949 tmp_addflag
=' -i_dynamic' ;;
8950 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8951 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8952 ifc
* | ifort
*) # Intel Fortran compiler
8953 tmp_addflag
=' -nofor_main' ;;
8954 lf95
*) # Lahey Fortran 8.1
8955 whole_archive_flag_spec
=
8956 tmp_sharedflag
='--shared' ;;
8957 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8958 tmp_sharedflag
='-qmkshrobj'
8960 nvcc
*) # Cuda Compiler Driver 2.2
8961 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'
8962 compiler_needs_object
=yes
8965 case `$CC -V 2>&1 | sed 5q` in
8966 *Sun\ C
*) # Sun C 5.9
8967 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'
8968 compiler_needs_object
=yes
8969 tmp_sharedflag
='-G' ;;
8970 *Sun\ F
*) # Sun Fortran 8.3
8971 tmp_sharedflag
='-G' ;;
8973 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8975 if test "x$supports_anon_versioning" = xyes
; then
8976 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8977 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8978 echo "local: *; };" >> $output_objdir/$libname.ver~
8979 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8982 case $cc_basename in
8983 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
8984 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8985 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8986 hardcode_libdir_flag_spec
=
8987 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8988 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8989 if test "x$supports_anon_versioning" = xyes
; then
8990 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8991 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8992 echo "local: *; };" >> $output_objdir/$libname.ver~
8993 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9003 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9004 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9007 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9008 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9013 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9017 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9018 *** create shared libraries on Solaris systems. Therefore, libtool
9019 *** is disabling shared libraries support. We urge you to upgrade GNU
9020 *** binutils to release 2.9.1 or newer. Another option is to modify
9021 *** your PATH or compiler configuration so that the native linker is
9022 *** used, and then restart.
9025 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9026 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9027 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9033 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9034 case `$LD -v 2>&1` in
9035 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9039 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9040 *** reliably create shared libraries on SCO systems. Therefore, libtool
9041 *** is disabling shared libraries support. We urge you to upgrade GNU
9042 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9043 *** your PATH or compiler configuration so that the native linker is
9044 *** used, and then restart.
9049 # For security reasons, it is highly recommended that you always
9050 # use absolute paths for naming shared libraries, and exclude the
9051 # DT_RUNPATH tag from executables and libraries. But doing so
9052 # requires that you compile everything twice, which is a pain.
9053 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9054 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9055 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9065 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9068 hardcode_shlibpath_var
=no
9072 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9073 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9074 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9081 if test "$ld_shlibs" = no
; then
9083 hardcode_libdir_flag_spec
=
9084 export_dynamic_flag_spec
=
9085 whole_archive_flag_spec
=
9088 # PORTME fill in a description of your system's linker (not GNU ld)
9091 allow_undefined_flag
=unsupported
9092 always_export_symbols
=yes
9093 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'
9094 # Note: this linker hardcodes the directories in LIBPATH if there
9095 # are no directories specified by -L.
9096 hardcode_minus_L
=yes
9097 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9098 # Neither direct hardcoding nor static linking is supported with a
9100 hardcode_direct
=unsupported
9105 if test "$host_cpu" = ia64
; then
9106 # On IA64, the linker does run time linking by default, so we don't
9107 # have to do anything special.
9108 aix_use_runtimelinking
=no
9109 exp_sym_flag
='-Bexport'
9112 # If we're using GNU nm, then we don't want the "-C" option.
9113 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9114 # Also, AIX nm treats weak defined symbols like other global
9115 # defined symbols, whereas GNU nm marks them as "W".
9116 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9117 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'
9119 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9121 aix_use_runtimelinking
=no
9123 # Test if we are trying to use run time linking or normal
9124 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9125 # need to do runtime linking.
9126 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9127 for ld_flag
in $LDFLAGS; do
9128 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9129 aix_use_runtimelinking
=yes
9136 exp_sym_flag
='-bexport'
9137 no_entry_flag
='-bnoentry'
9140 # When large executables or shared objects are built, AIX ld can
9141 # have problems creating the table of contents. If linking a library
9142 # or program results in "error TOC overflow" add -mminimal-toc to
9143 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9144 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9148 hardcode_direct_absolute
=yes
9149 hardcode_libdir_separator
=':'
9150 link_all_deplibs
=yes
9151 file_list_spec
='${wl}-f,'
9153 if test "$GCC" = yes; then
9154 case $host_os in aix4.
[012]|aix4.
[012].
*)
9155 # We only want to do this on AIX 4.2 and lower, the check
9156 # below for broken collect2 doesn't work under 4.3+
9157 collect2name
=`${CC} -print-prog-name=collect2`
9158 if test -f "$collect2name" &&
9159 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9161 # We have reworked collect2
9164 # We have old collect2
9165 hardcode_direct
=unsupported
9166 # It fails to find uninstalled libraries when the uninstalled
9167 # path is not listed in the libpath. Setting hardcode_minus_L
9168 # to unsupported forces relinking
9169 hardcode_minus_L
=yes
9170 hardcode_libdir_flag_spec
='-L$libdir'
9171 hardcode_libdir_separator
=
9175 shared_flag
='-shared'
9176 if test "$aix_use_runtimelinking" = yes; then
9177 shared_flag
="$shared_flag "'${wl}-G'
9181 if test "$host_cpu" = ia64
; then
9182 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9183 # chokes on -Wl,-G. The following line is correct:
9186 if test "$aix_use_runtimelinking" = yes; then
9187 shared_flag
='${wl}-G'
9189 shared_flag
='${wl}-bM:SRE'
9194 export_dynamic_flag_spec
='${wl}-bexpall'
9195 # It seems that -bexpall does not export symbols beginning with
9196 # underscore (_), so it is better to generate a list of symbols to export.
9197 always_export_symbols
=yes
9198 if test "$aix_use_runtimelinking" = yes; then
9199 # Warning - without using the other runtime loading flags (-brtl),
9200 # -berok will link without error, but may produce a broken library.
9201 allow_undefined_flag
='-berok'
9202 # Determine the default libpath from the value encoded in an
9204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9215 if ac_fn_c_try_link
"$LINENO"; then :
9217 lt_aix_libpath_sed
='
9218 /Import File Strings/,/^$/ {
9224 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9225 # Check for a 64-bit object if we didn't find anything.
9226 if test -z "$aix_libpath"; then
9227 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9230 rm -f core conftest.err conftest.
$ac_objext \
9231 conftest
$ac_exeext conftest.
$ac_ext
9232 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9234 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9235 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"
9237 if test "$host_cpu" = ia64
; then
9238 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9239 allow_undefined_flag
="-z nodefs"
9240 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"
9242 # Determine the default libpath from the value encoded in an
9244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9245 /* end confdefs.h. */
9255 if ac_fn_c_try_link
"$LINENO"; then :
9257 lt_aix_libpath_sed
='
9258 /Import File Strings/,/^$/ {
9264 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9265 # Check for a 64-bit object if we didn't find anything.
9266 if test -z "$aix_libpath"; then
9267 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9270 rm -f core conftest.err conftest.
$ac_objext \
9271 conftest
$ac_exeext conftest.
$ac_ext
9272 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9274 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9275 # Warning - without using the other run time loading flags,
9276 # -berok will link without error, but may produce a broken library.
9277 no_undefined_flag
=' ${wl}-bernotok'
9278 allow_undefined_flag
=' ${wl}-berok'
9279 if test "$with_gnu_ld" = yes; then
9280 # We only use this code for GNU lds that support --whole-archive.
9281 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9283 # Exported symbols can be pulled into shared objects from archives
9284 whole_archive_flag_spec
='$convenience'
9286 archive_cmds_need_lc
=yes
9287 # This is similar to how AIX traditionally builds its shared libraries.
9288 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'
9296 # see comment about AmigaOS4 .so support
9297 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9298 archive_expsym_cmds
=''
9301 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)'
9302 hardcode_libdir_flag_spec
='-L$libdir'
9303 hardcode_minus_L
=yes
9309 export_dynamic_flag_spec
=-rdynamic
9312 cygwin
* | mingw
* | pw32
* | cegcc
*)
9313 # When not using gcc, we currently assume that we are using
9314 # Microsoft Visual C++.
9315 # hardcode_libdir_flag_spec is actually meaningless, as there is
9316 # no search path for DLLs.
9317 hardcode_libdir_flag_spec
=' '
9318 allow_undefined_flag
=unsupported
9319 # Tell ltmain to make .lib files, not .a files.
9321 # Tell ltmain to make .dll files, not .so files.
9323 # FIXME: Setting linknames here is a bad hack.
9324 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9325 # The linker will automatically build a .lib file if we build a DLL.
9326 old_archive_from_new_cmds
='true'
9327 # FIXME: Should let the user specify the lib program.
9328 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9329 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9330 enable_shared_with_static_runtimes
=yes
9333 darwin
* | rhapsody
*)
9336 archive_cmds_need_lc
=no
9338 hardcode_automatic
=yes
9339 hardcode_shlibpath_var
=unsupported
9340 if test "$lt_cv_ld_force_load" = "yes"; then
9341 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\"`'
9343 whole_archive_flag_spec
=''
9345 link_all_deplibs
=yes
9346 allow_undefined_flag
="$_lt_dar_allow_undefined"
9347 case $cc_basename in
9348 ifort
*) _lt_dar_can_shared
=yes ;;
9349 *) _lt_dar_can_shared
=$GCC ;;
9351 if test "$_lt_dar_can_shared" = "yes"; then
9352 output_verbose_link_cmd
=func_echo_all
9353 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9354 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9355 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}"
9356 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}"
9365 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9366 hardcode_libdir_flag_spec
='-L$libdir'
9367 hardcode_shlibpath_var
=no
9370 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9371 # support. Future versions do this automatically, but an explicit c++rt0.o
9372 # does not break anything, and helps significantly (at the cost of a little
9375 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9376 hardcode_libdir_flag_spec
='-R$libdir'
9378 hardcode_shlibpath_var
=no
9381 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9383 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9385 hardcode_minus_L
=yes
9386 hardcode_shlibpath_var
=no
9389 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9390 freebsd
* | dragonfly
*)
9391 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9392 hardcode_libdir_flag_spec
='-R$libdir'
9394 hardcode_shlibpath_var
=no
9398 if test "$GCC" = yes; then
9399 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'
9401 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'
9403 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9404 hardcode_libdir_separator
=:
9407 # hardcode_minus_L: Not really in the search PATH,
9408 # but as the default location of the library.
9409 hardcode_minus_L
=yes
9410 export_dynamic_flag_spec
='${wl}-E'
9414 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9415 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9417 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9419 if test "$with_gnu_ld" = no
; then
9420 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9421 hardcode_libdir_flag_spec_ld
='+b $libdir'
9422 hardcode_libdir_separator
=:
9424 hardcode_direct_absolute
=yes
9425 export_dynamic_flag_spec
='${wl}-E'
9426 # hardcode_minus_L: Not really in the search PATH,
9427 # but as the default location of the library.
9428 hardcode_minus_L
=yes
9433 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9436 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9439 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9442 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9448 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9451 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9455 # Older versions of the 11.00 compiler do not understand -b yet
9456 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9458 $as_echo_n "checking if $CC understands -b... " >&6; }
9459 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9460 $as_echo_n "(cached) " >&6
9462 lt_cv_prog_compiler__b
=no
9463 save_LDFLAGS
="$LDFLAGS"
9464 LDFLAGS
="$LDFLAGS -b"
9465 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9466 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9467 # The linker can only warn and ignore the option if not recognized
9468 # So say no if there are warnings
9469 if test -s conftest.err
; then
9470 # Append any errors to the config.log.
9471 cat conftest.err
1>&5
9472 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9473 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9474 if diff conftest.exp conftest.er2
>/dev
/null
; then
9475 lt_cv_prog_compiler__b
=yes
9478 lt_cv_prog_compiler__b
=yes
9482 LDFLAGS
="$save_LDFLAGS"
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9486 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9488 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9489 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9491 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9497 if test "$with_gnu_ld" = no
; then
9498 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9499 hardcode_libdir_separator
=:
9504 hardcode_shlibpath_var
=no
9508 hardcode_direct_absolute
=yes
9509 export_dynamic_flag_spec
='${wl}-E'
9511 # hardcode_minus_L: Not really in the search PATH,
9512 # but as the default location of the library.
9513 hardcode_minus_L
=yes
9519 irix5
* | irix6
* | nonstopux
*)
9520 if test "$GCC" = yes; then
9521 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'
9522 # Try to use the -exported_symbol ld option, if it does not
9523 # work, assume that -exports_file does not work either and
9524 # implicitly export all symbols.
9525 save_LDFLAGS
="$LDFLAGS"
9526 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9528 /* end confdefs.h. */
9531 if ac_fn_c_try_link
"$LINENO"; then :
9532 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'
9535 rm -f core conftest.err conftest.
$ac_objext \
9536 conftest
$ac_exeext conftest.
$ac_ext
9537 LDFLAGS
="$save_LDFLAGS"
9539 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'
9540 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'
9542 archive_cmds_need_lc
='no'
9543 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9544 hardcode_libdir_separator
=:
9546 link_all_deplibs
=yes
9550 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9551 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9553 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9555 hardcode_libdir_flag_spec
='-R$libdir'
9557 hardcode_shlibpath_var
=no
9561 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9563 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9564 hardcode_libdir_separator
=:
9565 hardcode_shlibpath_var
=no
9572 if test -f /usr
/libexec
/ld.so
; then
9574 hardcode_shlibpath_var
=no
9575 hardcode_direct_absolute
=yes
9576 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9577 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9578 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9579 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9580 export_dynamic_flag_spec
='${wl}-E'
9583 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9584 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9585 hardcode_libdir_flag_spec
='-R$libdir'
9588 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9589 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9599 hardcode_libdir_flag_spec
='-L$libdir'
9600 hardcode_minus_L
=yes
9601 allow_undefined_flag
=unsupported
9602 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'
9603 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9607 if test "$GCC" = yes; then
9608 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9609 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'
9611 allow_undefined_flag
=' -expect_unresolved \*'
9612 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'
9614 archive_cmds_need_lc
='no'
9615 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9616 hardcode_libdir_separator
=:
9619 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9620 if test "$GCC" = yes; then
9621 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9622 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'
9623 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9625 allow_undefined_flag
=' -expect_unresolved \*'
9626 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'
9627 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~
9628 $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'
9630 # Both c and cxx compiler support -rpath directly
9631 hardcode_libdir_flag_spec
='-rpath $libdir'
9633 archive_cmds_need_lc
='no'
9634 hardcode_libdir_separator
=:
9638 no_undefined_flag
=' -z defs'
9639 if test "$GCC" = yes; then
9641 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9642 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9643 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9645 case `$CC -V 2>&1` in
9648 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9650 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9654 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9655 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9656 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9660 hardcode_libdir_flag_spec
='-R$libdir'
9661 hardcode_shlibpath_var
=no
9663 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9665 # The compiler driver will combine and reorder linker options,
9666 # but understands `-z linker_flag'. GCC discards it without `$wl',
9667 # but is careful enough not to reorder.
9668 # Supported since Solaris 2.6 (maybe 2.5.1?)
9669 if test "$GCC" = yes; then
9670 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9672 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9676 link_all_deplibs
=yes
9680 if test "x$host_vendor" = xsequent
; then
9681 # Use $CC to link under sequent, because it throws in some extra .o
9682 # files that make .init and .fini sections work.
9683 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9685 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9687 hardcode_libdir_flag_spec
='-L$libdir'
9689 hardcode_minus_L
=yes
9690 hardcode_shlibpath_var
=no
9694 case $host_vendor in
9696 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9697 hardcode_direct
=yes # is this really true???
9700 ## LD is ld it makes a PLAMLIB
9701 ## CC just makes a GrossModule.
9702 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9703 reload_cmds
='$CC -r -o $output$reload_objs'
9707 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9711 runpath_var
='LD_RUN_PATH'
9712 hardcode_shlibpath_var
=no
9716 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9717 hardcode_shlibpath_var
=no
9718 export_dynamic_flag_spec
='-Bexport'
9722 if test -d /usr
/nec
; then
9723 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724 hardcode_shlibpath_var
=no
9725 runpath_var
=LD_RUN_PATH
9726 hardcode_runpath_var
=yes
9731 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9732 no_undefined_flag
='${wl}-z,text'
9733 archive_cmds_need_lc
=no
9734 hardcode_shlibpath_var
=no
9735 runpath_var
='LD_RUN_PATH'
9737 if test "$GCC" = yes; then
9738 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9741 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 sysv5
* | sco3.2v5
* | sco5v6
*)
9747 # Note: We can NOT use -z defs as we might desire, because we do not
9748 # link with -lc, and that would cause any symbols used from libc to
9749 # always be unresolved, which means just about no library would
9750 # ever link correctly. If we're not using GNU ld we use -z text
9751 # though, which does catch some bad symbols but isn't as heavy-handed
9753 no_undefined_flag
='${wl}-z,text'
9754 allow_undefined_flag
='${wl}-z,nodefs'
9755 archive_cmds_need_lc
=no
9756 hardcode_shlibpath_var
=no
9757 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9758 hardcode_libdir_separator
=':'
9759 link_all_deplibs
=yes
9760 export_dynamic_flag_spec
='${wl}-Bexport'
9761 runpath_var
='LD_RUN_PATH'
9763 if test "$GCC" = yes; then
9764 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9765 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9767 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9768 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9773 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9774 hardcode_libdir_flag_spec
='-L$libdir'
9775 hardcode_shlibpath_var
=no
9783 if test x
$host_vendor = xsni
; then
9785 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9786 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9793 $as_echo "$ld_shlibs" >&6; }
9794 test "$ld_shlibs" = no
&& can_build_shared
=no
9796 with_gnu_ld
=$with_gnu_ld
9813 # Do we need to explicitly link libc?
9815 case "x$archive_cmds_need_lc" in
9817 # Assume -lc should be added
9818 archive_cmds_need_lc
=yes
9820 if test "$enable_shared" = yes && test "$GCC" = yes; then
9821 case $archive_cmds in
9823 # FIXME: we may have to deal with multi-command sequences.
9826 # Test whether the compiler implicitly links with -lc since on some
9827 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9828 # to ld, don't add -lc before -lgcc.
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9830 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9831 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9832 $as_echo_n "(cached) " >&6
9835 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9838 (eval $ac_compile) 2>&5
9840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9841 test $ac_status = 0; } 2>conftest.err
; then
9844 libobjs
=conftest.
$ac_objext
9846 wl
=$lt_prog_compiler_wl
9847 pic_flag
=$lt_prog_compiler_pic
9853 lt_save_allow_undefined_flag
=$allow_undefined_flag
9854 allow_undefined_flag
=
9855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9856 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9859 test $ac_status = 0; }
9861 lt_cv_archive_cmds_need_lc
=no
9863 lt_cv_archive_cmds_need_lc
=yes
9865 allow_undefined_flag
=$lt_save_allow_undefined_flag
9867 cat conftest.err
1>&5
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9873 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9874 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10038 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10040 if test "$GCC" = yes; then
10042 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10043 *) lt_awk_arg
="/^libraries:/" ;;
10046 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10047 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10049 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10050 case $lt_search_path_spec in
10052 # if the path contains ";" then we assume it to be the separator
10053 # otherwise default to the standard path separator (i.e. ":") - it is
10054 # assumed that no part of a normal pathname contains ";" but that should
10055 # okay in the real world where ";" in dirpaths is itself problematic.
10056 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10059 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10062 # Ok, now we have the path, separated by spaces, we can step through it
10063 # and add multilib dir if necessary.
10064 lt_tmp_lt_search_path_spec
=
10065 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10066 for lt_sys_path
in $lt_search_path_spec; do
10067 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10068 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10070 test -d "$lt_sys_path" && \
10071 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10074 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10075 BEGIN {RS=" "; FS="/|\n";} {
10078 for (lt_i = NF; lt_i > 0; lt_i--) {
10079 if ($lt_i != "" && $lt_i != ".") {
10080 if ($lt_i == "..") {
10083 if (lt_count == 0) {
10084 lt_foo="/" $lt_i lt_foo;
10091 if (lt_foo != "") { lt_freq[lt_foo]++; }
10092 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10094 # AWK program above erroneously prepends '/' to C:/dos/paths
10097 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10098 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10100 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10102 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10104 library_names_spec
=
10105 libname_spec
='lib$name'
10109 postuninstall_cmds
=
10113 shlibpath_overrides_runpath
=unknown
10115 dynamic_linker
="$host_os ld.so"
10116 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10117 need_lib_prefix
=unknown
10118 hardcode_into_libs
=no
10120 # when you set need_version to no, make sure it does not cause -set_version
10121 # flags to be left without arguments
10122 need_version
=unknown
10127 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10128 shlibpath_var
=LIBPATH
10130 # AIX 3 has no versioning support, so we append a major version to the name.
10131 soname_spec
='${libname}${release}${shared_ext}$major'
10138 hardcode_into_libs
=yes
10139 if test "$host_cpu" = ia64
; then
10140 # AIX 5 supports IA64
10141 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10142 shlibpath_var
=LD_LIBRARY_PATH
10144 # With GCC up to 2.95.x, collect2 would create an import file
10145 # for dependence libraries. The import file would start with
10146 # the line `#! .'. This would cause the generated library to
10147 # depend on `.', always an invalid library. This was fixed in
10148 # development snapshots of GCC prior to 3.0.
10150 aix4 | aix4.
[01] | aix4.
[01].
*)
10151 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10153 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10156 can_build_shared
=no
10160 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10161 # soname into executable. Probably we can add versioning support to
10162 # collect2, so additional links can be useful in future.
10163 if test "$aix_use_runtimelinking" = yes; then
10164 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10165 # instead of lib<name>.a to let people know that these are not
10166 # typical AIX shared libraries.
10167 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169 # We preserve .a as extension for shared libraries through AIX4.2
10170 # and later when we are not doing run time linking.
10171 library_names_spec
='${libname}${release}.a $libname.a'
10172 soname_spec
='${libname}${release}${shared_ext}$major'
10174 shlibpath_var
=LIBPATH
10181 # Since July 2007 AmigaOS4 officially supports .so libraries.
10182 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10183 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186 library_names_spec
='$libname.ixlibrary $libname.a'
10187 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10188 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'
10194 library_names_spec
='${libname}${shared_ext}'
10195 dynamic_linker
="$host_os ld.so"
10196 shlibpath_var
=LIBRARY_PATH
10202 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 soname_spec
='${libname}${release}${shared_ext}$major'
10204 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10205 shlibpath_var
=LD_LIBRARY_PATH
10206 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10207 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10208 # the default ld.so.conf also contains /usr/contrib/lib and
10209 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10210 # libtool to hard-code these into programs
10213 cygwin
* | mingw
* | pw32
* | cegcc
*)
10214 version_type
=windows
10219 case $GCC,$host_os in
10220 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10221 library_names_spec
='$libname.dll.a'
10222 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10223 postinstall_cmds
='base_file=`basename \${file}`~
10224 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10225 dldir=$destdir/`dirname \$dlpath`~
10226 test -d \$dldir || mkdir -p \$dldir~
10227 $install_prog $dir/$dlname \$dldir/$dlname~
10228 chmod a+x \$dldir/$dlname~
10229 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10230 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10232 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10233 dlpath=$dir/\$dldll~
10235 shlibpath_overrides_runpath
=yes
10239 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10240 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10242 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10245 # MinGW DLLs use traditional 'lib' prefix
10246 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10249 # pw32 DLLs use 'pw' prefix rather than 'lib'
10250 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10256 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10259 dynamic_linker
='Win32 ld.exe'
10260 # FIXME: first we should search . and the directory the executable is in
10264 darwin
* | rhapsody
*)
10265 dynamic_linker
="$host_os dyld"
10266 version_type
=darwin
10269 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10270 soname_spec
='${libname}${release}${major}$shared_ext'
10271 shlibpath_overrides_runpath
=yes
10272 shlibpath_var
=DYLD_LIBRARY_PATH
10273 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10275 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10276 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10283 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10284 soname_spec
='${libname}${release}${shared_ext}$major'
10285 shlibpath_var
=LD_LIBRARY_PATH
10288 freebsd
* | dragonfly
*)
10289 # DragonFly does not have aout. When/if they implement a new
10290 # versioning mechanism, adjust this.
10291 if test -x /usr
/bin
/objformat
; then
10292 objformat
=`/usr/bin/objformat`
10295 freebsd
[23].
*) objformat
=aout
;;
10296 *) objformat
=elf
;;
10299 version_type
=freebsd-
$objformat
10300 case $version_type in
10302 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10307 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10311 shlibpath_var
=LD_LIBRARY_PATH
10314 shlibpath_overrides_runpath
=yes
10316 freebsd3.
[01]* | freebsdelf3.
[01]*)
10317 shlibpath_overrides_runpath
=yes
10318 hardcode_into_libs
=yes
10320 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10321 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10322 shlibpath_overrides_runpath
=no
10323 hardcode_into_libs
=yes
10325 *) # from 4.6 on, and DragonFly
10326 shlibpath_overrides_runpath
=yes
10327 hardcode_into_libs
=yes
10336 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10337 soname_spec
='${libname}${release}${shared_ext}$major'
10338 shlibpath_var
=LD_LIBRARY_PATH
10339 hardcode_into_libs
=yes
10346 dynamic_linker
="$host_os runtime_loader"
10347 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10348 soname_spec
='${libname}${release}${shared_ext}$major'
10349 shlibpath_var
=LIBRARY_PATH
10350 shlibpath_overrides_runpath
=yes
10351 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10352 hardcode_into_libs
=yes
10355 hpux9
* | hpux10
* | hpux11
*)
10356 # Give a soname corresponding to the major version so that dld.sl refuses to
10357 # link against other versions.
10364 hardcode_into_libs
=yes
10365 dynamic_linker
="$host_os dld.so"
10366 shlibpath_var
=LD_LIBRARY_PATH
10367 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10368 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 soname_spec
='${libname}${release}${shared_ext}$major'
10370 if test "X$HPUX_IA64_MODE" = X32
; then
10371 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10373 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10375 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10379 hardcode_into_libs
=yes
10380 dynamic_linker
="$host_os dld.sl"
10381 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10382 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10383 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10384 soname_spec
='${libname}${release}${shared_ext}$major'
10385 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10386 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10390 dynamic_linker
="$host_os dld.sl"
10391 shlibpath_var
=SHLIB_PATH
10392 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10393 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394 soname_spec
='${libname}${release}${shared_ext}$major'
10397 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10398 postinstall_cmds
='chmod 555 $lib'
10399 # or fails outright, so override atomically:
10400 install_override_mode
=555
10407 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10408 soname_spec
='${libname}${release}${shared_ext}$major'
10409 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10410 shlibpath_var
=LD_LIBRARY_PATH
10411 shlibpath_overrides_runpath
=no
10412 hardcode_into_libs
=yes
10415 irix5
* | irix6
* | nonstopux
*)
10417 nonstopux
*) version_type
=nonstopux
;;
10419 if test "$lt_cv_prog_gnu_ld" = yes; then
10427 soname_spec
='${libname}${release}${shared_ext}$major'
10428 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10430 irix5
* | nonstopux
*)
10431 libsuff
= shlibsuff
=
10434 case $LD in # libtool.m4 will add one of these switches to LD
10435 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10436 libsuff
= shlibsuff
= libmagic
=32-bit;;
10437 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10438 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10439 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10440 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10441 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10445 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10446 shlibpath_overrides_runpath
=no
10447 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10448 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10449 hardcode_into_libs
=yes
10452 # No shared lib support for Linux oldld, aout, or coff.
10453 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10457 # This must be Linux ELF.
10458 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10462 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463 soname_spec
='${libname}${release}${shared_ext}$major'
10464 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10465 shlibpath_var
=LD_LIBRARY_PATH
10466 shlibpath_overrides_runpath
=no
10468 # Some binutils ld are patched to set DT_RUNPATH
10469 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10470 $as_echo_n "(cached) " >&6
10472 lt_cv_shlibpath_overrides_runpath
=no
10473 save_LDFLAGS
=$LDFLAGS
10474 save_libdir
=$libdir
10475 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10476 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h. */
10488 if ac_fn_c_try_link
"$LINENO"; then :
10489 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10490 lt_cv_shlibpath_overrides_runpath
=yes
10493 rm -f core conftest.err conftest.
$ac_objext \
10494 conftest
$ac_exeext conftest.
$ac_ext
10495 LDFLAGS
=$save_LDFLAGS
10496 libdir
=$save_libdir
10500 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10502 # This implies no fast_install, which is unacceptable.
10503 # Some rework will be needed to allow for fast_install
10504 # before this can be enabled.
10505 hardcode_into_libs
=yes
10507 # Append ld.so.conf contents to the search path
10508 if test -f /etc
/ld.so.conf
; then
10509 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' ' '`
10510 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10513 # We used to test for /lib/ld.so.1 and disable shared libraries on
10514 # powerpc, because MkLinux only supported shared libraries with the
10515 # GNU dynamic linker. Since this was broken with cross compilers,
10516 # most powerpc-linux boxes support dynamic linking these days and
10517 # people can always --disable-shared, the test was removed, and we
10518 # assume the GNU/Linux dynamic linker is in use.
10519 dynamic_linker
='GNU/Linux ld.so'
10526 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10527 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10528 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10529 dynamic_linker
='NetBSD (a.out) ld.so'
10531 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10532 soname_spec
='${libname}${release}${shared_ext}$major'
10533 dynamic_linker
='NetBSD ld.elf_so'
10535 shlibpath_var
=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath
=yes
10537 hardcode_into_libs
=yes
10542 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10543 shlibpath_var
=LD_LIBRARY_PATH
10544 shlibpath_overrides_runpath
=yes
10551 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552 soname_spec
='${libname}${release}${shared_ext}$major'
10553 shlibpath_var
=LD_LIBRARY_PATH
10554 shlibpath_overrides_runpath
=no
10555 hardcode_into_libs
=yes
10556 dynamic_linker
='ldqnx.so'
10561 sys_lib_dlsearch_path_spec
="/usr/lib"
10563 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10565 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10566 *) need_version
=no
;;
10568 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10569 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10570 shlibpath_var
=LD_LIBRARY_PATH
10571 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10573 openbsd2.
[89] | openbsd2.
[89].
*)
10574 shlibpath_overrides_runpath
=no
10577 shlibpath_overrides_runpath
=yes
10581 shlibpath_overrides_runpath
=yes
10586 libname_spec
='$name'
10589 library_names_spec
='$libname${shared_ext} $libname.a'
10590 dynamic_linker
='OS/2 ld.exe'
10591 shlibpath_var
=LIBPATH
10594 osf3
* | osf4
* | osf5
*)
10598 soname_spec
='${libname}${release}${shared_ext}$major'
10599 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600 shlibpath_var
=LD_LIBRARY_PATH
10601 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10602 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614 soname_spec
='${libname}${release}${shared_ext}$major'
10615 shlibpath_var
=LD_LIBRARY_PATH
10616 shlibpath_overrides_runpath
=yes
10617 hardcode_into_libs
=yes
10618 # ldd complains unless libraries are executable
10619 postinstall_cmds
='chmod +x $lib'
10624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10625 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10626 shlibpath_var
=LD_LIBRARY_PATH
10627 shlibpath_overrides_runpath
=yes
10628 if test "$with_gnu_ld" = yes; then
10636 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10637 soname_spec
='${libname}${release}${shared_ext}$major'
10638 shlibpath_var
=LD_LIBRARY_PATH
10639 case $host_vendor in
10641 shlibpath_overrides_runpath
=no
10643 runpath_var
=LD_RUN_PATH
10651 shlibpath_overrides_runpath
=no
10652 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10658 if test -d /usr
/nec
;then
10660 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10661 soname_spec
='$libname${shared_ext}.$major'
10662 shlibpath_var
=LD_LIBRARY_PATH
10666 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10667 version_type
=freebsd-elf
10670 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10671 soname_spec
='${libname}${release}${shared_ext}$major'
10672 shlibpath_var
=LD_LIBRARY_PATH
10673 shlibpath_overrides_runpath
=yes
10674 hardcode_into_libs
=yes
10675 if test "$with_gnu_ld" = yes; then
10676 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10678 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10681 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10685 sys_lib_dlsearch_path_spec
='/usr/lib'
10689 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10693 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 shlibpath_var
=LD_LIBRARY_PATH
10695 shlibpath_overrides_runpath
=no
10696 hardcode_into_libs
=yes
10701 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10702 soname_spec
='${libname}${release}${shared_ext}$major'
10703 shlibpath_var
=LD_LIBRARY_PATH
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10711 $as_echo "$dynamic_linker" >&6; }
10712 test "$dynamic_linker" = no
&& can_build_shared
=no
10714 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10715 if test "$GCC" = yes; then
10716 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10719 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10720 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10722 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10723 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10818 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10820 if test -n "$hardcode_libdir_flag_spec" ||
10821 test -n "$runpath_var" ||
10822 test "X$hardcode_automatic" = "Xyes" ; then
10824 # We can hardcode non-existent directories.
10825 if test "$hardcode_direct" != no
&&
10826 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10827 # have to relink, otherwise we might link with an installed library
10828 # when we should be linking with a yet-to-be-installed one
10829 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10830 test "$hardcode_minus_L" != no
; then
10831 # Linking always hardcodes the temporary library directory.
10832 hardcode_action
=relink
10834 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10835 hardcode_action
=immediate
10838 # We cannot hardcode anything, or else we can only hardcode existing
10840 hardcode_action
=unsupported
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10843 $as_echo "$hardcode_action" >&6; }
10845 if test "$hardcode_action" = relink ||
10846 test "$inherit_rpath" = yes; then
10847 # Fast installation is not supported
10848 enable_fast_install
=no
10849 elif test "$shlibpath_overrides_runpath" = yes ||
10850 test "$enable_shared" = no
; then
10851 # Fast installation is not necessary
10852 enable_fast_install
=needless
10860 if test "x$enable_dlopen" != xyes
; then
10861 enable_dlopen
=unknown
10862 enable_dlopen_self
=unknown
10863 enable_dlopen_self_static
=unknown
10870 lt_cv_dlopen
="load_add_on"
10872 lt_cv_dlopen_self
=yes
10875 mingw
* | pw32
* | cegcc
*)
10876 lt_cv_dlopen
="LoadLibrary"
10881 lt_cv_dlopen
="dlopen"
10886 # if libdl is installed we need to link against it
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10888 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10889 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10890 $as_echo_n "(cached) " >&6
10892 ac_check_lib_save_LIBS
=$LIBS
10894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10897 /* Override any GCC internal prototype to avoid an error.
10898 Use char because int might match the return type of a GCC
10899 builtin and then its argument prototype would still apply. */
10912 if ac_fn_c_try_link
"$LINENO"; then :
10913 ac_cv_lib_dl_dlopen
=yes
10915 ac_cv_lib_dl_dlopen
=no
10917 rm -f core conftest.err conftest.
$ac_objext \
10918 conftest
$ac_exeext conftest.
$ac_ext
10919 LIBS
=$ac_check_lib_save_LIBS
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10922 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10923 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10924 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10927 lt_cv_dlopen
="dyld"
10929 lt_cv_dlopen_self
=yes
10936 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
10937 if test "x$ac_cv_func_shl_load" = x
""yes; then :
10938 lt_cv_dlopen
="shl_load"
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10941 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10942 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10943 $as_echo_n "(cached) " >&6
10945 ac_check_lib_save_LIBS
=$LIBS
10947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10950 /* Override any GCC internal prototype to avoid an error.
10951 Use char because int might match the return type of a GCC
10952 builtin and then its argument prototype would still apply. */
10960 return shl_load ();
10965 if ac_fn_c_try_link
"$LINENO"; then :
10966 ac_cv_lib_dld_shl_load
=yes
10968 ac_cv_lib_dld_shl_load
=no
10970 rm -f core conftest.err conftest.
$ac_objext \
10971 conftest
$ac_exeext conftest.
$ac_ext
10972 LIBS
=$ac_check_lib_save_LIBS
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10975 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10976 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
10977 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10979 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10980 if test "x$ac_cv_func_dlopen" = x
""yes; then :
10981 lt_cv_dlopen
="dlopen"
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10984 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10985 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10988 ac_check_lib_save_LIBS
=$LIBS
10990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10993 /* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
11008 if ac_fn_c_try_link
"$LINENO"; then :
11009 ac_cv_lib_dl_dlopen
=yes
11011 ac_cv_lib_dl_dlopen
=no
11013 rm -f core conftest.err conftest.
$ac_objext \
11014 conftest
$ac_exeext conftest.
$ac_ext
11015 LIBS
=$ac_check_lib_save_LIBS
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11018 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11019 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
11020 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11023 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11024 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11025 $as_echo_n "(cached) " >&6
11027 ac_check_lib_save_LIBS
=$LIBS
11028 LIBS
="-lsvld $LIBS"
11029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11032 /* Override any GCC internal prototype to avoid an error.
11033 Use char because int might match the return type of a GCC
11034 builtin and then its argument prototype would still apply. */
11047 if ac_fn_c_try_link
"$LINENO"; then :
11048 ac_cv_lib_svld_dlopen
=yes
11050 ac_cv_lib_svld_dlopen
=no
11052 rm -f core conftest.err conftest.
$ac_objext \
11053 conftest
$ac_exeext conftest.
$ac_ext
11054 LIBS
=$ac_check_lib_save_LIBS
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11057 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11058 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
11059 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11062 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11063 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11064 $as_echo_n "(cached) " >&6
11066 ac_check_lib_save_LIBS
=$LIBS
11068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11069 /* end confdefs.h. */
11071 /* Override any GCC internal prototype to avoid an error.
11072 Use char because int might match the return type of a GCC
11073 builtin and then its argument prototype would still apply. */
11081 return dld_link ();
11086 if ac_fn_c_try_link
"$LINENO"; then :
11087 ac_cv_lib_dld_dld_link
=yes
11089 ac_cv_lib_dld_dld_link
=no
11091 rm -f core conftest.err conftest.
$ac_objext \
11092 conftest
$ac_exeext conftest.
$ac_ext
11093 LIBS
=$ac_check_lib_save_LIBS
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11096 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11097 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
11098 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11119 if test "x$lt_cv_dlopen" != xno
; then
11125 case $lt_cv_dlopen in
11127 save_CPPFLAGS
="$CPPFLAGS"
11128 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11130 save_LDFLAGS
="$LDFLAGS"
11131 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11134 LIBS
="$lt_cv_dlopen_libs $LIBS"
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11137 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11138 if test "${lt_cv_dlopen_self+set}" = set; then :
11139 $as_echo_n "(cached) " >&6
11141 if test "$cross_compiling" = yes; then :
11142 lt_cv_dlopen_self
=cross
11144 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11145 lt_status
=$lt_dlunknown
11146 cat > conftest.
$ac_ext <<_LT_EOF
11147 #line 11147 "configure"
11148 #include "confdefs.h"
11157 # define LT_DLGLOBAL RTLD_GLOBAL
11160 # define LT_DLGLOBAL DL_GLOBAL
11162 # define LT_DLGLOBAL 0
11166 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11167 find out it does not work in some platform. */
11168 #ifndef LT_DLLAZY_OR_NOW
11170 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11173 # define LT_DLLAZY_OR_NOW DL_LAZY
11176 # define LT_DLLAZY_OR_NOW RTLD_NOW
11179 # define LT_DLLAZY_OR_NOW DL_NOW
11181 # define LT_DLLAZY_OR_NOW 0
11188 /* When -fvisbility=hidden is used, assume the code has been annotated
11189 correspondingly for the symbols needed. */
11190 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11191 void fnord () __attribute__((visibility("default")));
11194 void fnord () { int i=42; }
11197 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11198 int status = $lt_dlunknown;
11202 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11205 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11206 else puts (dlerror ());
11208 /* dlclose (self); */
11216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11217 (eval $ac_link) 2>&5
11219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11220 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11221 (.
/conftest
; exit; ) >&5 2>/dev
/null
11223 case x
$lt_status in
11224 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11225 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11226 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11229 # compilation failed
11230 lt_cv_dlopen_self
=no
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11238 $as_echo "$lt_cv_dlopen_self" >&6; }
11240 if test "x$lt_cv_dlopen_self" = xyes
; then
11241 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11243 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11244 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11245 $as_echo_n "(cached) " >&6
11247 if test "$cross_compiling" = yes; then :
11248 lt_cv_dlopen_self_static
=cross
11250 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11251 lt_status
=$lt_dlunknown
11252 cat > conftest.
$ac_ext <<_LT_EOF
11253 #line 11253 "configure"
11254 #include "confdefs.h"
11263 # define LT_DLGLOBAL RTLD_GLOBAL
11266 # define LT_DLGLOBAL DL_GLOBAL
11268 # define LT_DLGLOBAL 0
11272 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11273 find out it does not work in some platform. */
11274 #ifndef LT_DLLAZY_OR_NOW
11276 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11279 # define LT_DLLAZY_OR_NOW DL_LAZY
11282 # define LT_DLLAZY_OR_NOW RTLD_NOW
11285 # define LT_DLLAZY_OR_NOW DL_NOW
11287 # define LT_DLLAZY_OR_NOW 0
11294 /* When -fvisbility=hidden is used, assume the code has been annotated
11295 correspondingly for the symbols needed. */
11296 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11297 void fnord () __attribute__((visibility("default")));
11300 void fnord () { int i=42; }
11303 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11304 int status = $lt_dlunknown;
11308 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11311 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11312 else puts (dlerror ());
11314 /* dlclose (self); */
11322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11323 (eval $ac_link) 2>&5
11325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11326 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11327 (.
/conftest
; exit; ) >&5 2>/dev
/null
11329 case x
$lt_status in
11330 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11331 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11332 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11335 # compilation failed
11336 lt_cv_dlopen_self_static
=no
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11344 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11347 CPPFLAGS
="$save_CPPFLAGS"
11348 LDFLAGS
="$save_LDFLAGS"
11353 case $lt_cv_dlopen_self in
11354 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11355 *) enable_dlopen_self
=unknown
;;
11358 case $lt_cv_dlopen_self_static in
11359 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11360 *) enable_dlopen_self_static
=unknown
;;
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11383 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11384 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11385 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11386 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11388 $as_echo "yes" >&6; }
11390 # FIXME - insert some real tests, host_os isn't really good enough
11393 if test -n "$STRIP" ; then
11394 striplib
="$STRIP -x"
11395 old_striplib
="$STRIP -S"
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11397 $as_echo "yes" >&6; }
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400 $as_echo "no" >&6; }
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 $as_echo "no" >&6; }
11421 # Report which library types will actually be built
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11423 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11425 $as_echo "$can_build_shared" >&6; }
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11428 $as_echo_n "checking whether to build shared libraries... " >&6; }
11429 test "$can_build_shared" = "no" && enable_shared
=no
11431 # On AIX, shared libraries and static libraries use the same namespace, and
11432 # are all built from PIC.
11435 test "$enable_shared" = yes && enable_static
=no
11436 if test -n "$RANLIB"; then
11437 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11438 postinstall_cmds
='$RANLIB $lib'
11443 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11444 test "$enable_shared" = yes && enable_static
=no
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11449 $as_echo "$enable_shared" >&6; }
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11452 $as_echo_n "checking whether to build static libraries... " >&6; }
11453 # Make sure either enable_shared or enable_static is yes.
11454 test "$enable_shared" = yes || enable_static
=yes
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11456 $as_echo "$enable_static" >&6; }
11463 ac_cpp
='$CPP $CPPFLAGS'
11464 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11465 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11466 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11482 ac_config_commands
="$ac_config_commands libtool"
11487 # Only expand once:
11494 *-cygwin* |
*-mingw*)
11495 # 'host' will be top-level target in the case of a target lib,
11496 # we must compare to with_cross_host to decide if this is a native
11497 # or cross-compiler and select where to install dlls appropriately.
11498 if test -n "$with_cross_host" &&
11499 test x
"$with_cross_host" != x
"no"; then
11500 lt_host_flags
='-no-undefined -bindir "$(toolexeclibdir)"';
11502 lt_host_flags
='-no-undefined -bindir "$(bindir)"';
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11517 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11518 # Check whether --enable-maintainer-mode was given.
11519 if test "${enable_maintainer_mode+set}" = set; then :
11520 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
11522 USE_MAINTAINER_MODE
=no
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11526 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11527 if test $USE_MAINTAINER_MODE = yes; then
11528 MAINTAINER_MODE_TRUE
=
11529 MAINTAINER_MODE_FALSE
='#'
11531 MAINTAINER_MODE_TRUE
='#'
11532 MAINTAINER_MODE_FALSE
=
11535 MAINT
=$MAINTAINER_MODE_TRUE
11539 # Create a spec file, so that compile/link tests don't fail
11540 test -f libgfortran.spec ||
touch libgfortran.spec
11541 FCFLAGS
="$FCFLAGS -L."
11543 # We need gfortran to compile parts of the library
11544 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11545 #AC_PROG_FC(gfortran)
11546 case `echo $GFORTRAN` in
11550 set dummy
$GFORTRAN; ac_word
=$2
11551 if test -x "$ac_word"; then
11557 ac_ext
=${ac_fc_srcext-f}
11558 ac_compile
='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11559 ac_link
='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11560 ac_compiler_gnu
=$ac_cv_fc_compiler_gnu
11561 if test -n "$ac_tool_prefix"; then
11562 for ac_prog
in gfortran
11564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11565 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11567 $as_echo_n "checking for $ac_word... " >&6; }
11568 if test "${ac_cv_prog_FC+set}" = set; then :
11569 $as_echo_n "(cached) " >&6
11571 if test -n "$FC"; then
11572 ac_cv_prog_FC
="$FC" # Let the user override the test.
11574 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11575 for as_dir
in $PATH
11578 test -z "$as_dir" && as_dir
=.
11579 for ac_exec_ext
in '' $ac_executable_extensions; do
11580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11581 ac_cv_prog_FC
="$ac_tool_prefix$ac_prog"
11582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 if test -n "$FC"; then
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11594 $as_echo "$FC" >&6; }
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597 $as_echo "no" >&6; }
11601 test -n "$FC" && break
11604 if test -z "$FC"; then
11606 for ac_prog
in gfortran
11608 # Extract the first word of "$ac_prog", so it can be a program name with args.
11609 set dummy
$ac_prog; ac_word
=$2
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11611 $as_echo_n "checking for $ac_word... " >&6; }
11612 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11613 $as_echo_n "(cached) " >&6
11615 if test -n "$ac_ct_FC"; then
11616 ac_cv_prog_ac_ct_FC
="$ac_ct_FC" # Let the user override the test.
11618 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11619 for as_dir
in $PATH
11622 test -z "$as_dir" && as_dir
=.
11623 for ac_exec_ext
in '' $ac_executable_extensions; do
11624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11625 ac_cv_prog_ac_ct_FC
="$ac_prog"
11626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11635 ac_ct_FC
=$ac_cv_prog_ac_ct_FC
11636 if test -n "$ac_ct_FC"; then
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11638 $as_echo "$ac_ct_FC" >&6; }
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11641 $as_echo "no" >&6; }
11645 test -n "$ac_ct_FC" && break
11648 if test "x$ac_ct_FC" = x
; then
11651 case $cross_compiling:$ac_tool_warned in
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11655 ac_tool_warned
=yes ;;
11662 # Provide some information about the compiler.
11663 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11666 for ac_option
in --version -v -V -qversion; do
11667 { { ac_try
="$ac_compiler $ac_option >&5"
11668 case "(($ac_try" in
11669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11673 $as_echo "$ac_try_echo"; } >&5
11674 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11676 if test -s conftest.err; then
11678 ... rest of stderr output deleted ...
11679 10q' conftest.err >conftest.er1
11680 cat conftest.er1 >&5
11681 rm -f conftest.er1 conftest.err
11683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11684 test $ac_status = 0; }
11688 # If we don't use `.F
' as extension, the preprocessor is not run on the
11689 # input file. (Note that this only needs to work for GNU compilers.)
11690 ac_save_ext=$ac_ext
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11693 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11694 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11695 $as_echo_n "(cached) " >&6
11697 cat > conftest.$ac_ext <<_ACEOF
11705 if ac_fn_fc_try_compile "$LINENO"; then :
11706 ac_compiler_gnu=yes
11710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11711 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11715 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11716 ac_ext=$ac_save_ext
11717 ac_test_FCFLAGS=${FCFLAGS+set}
11718 ac_save_FCFLAGS=$FCFLAGS
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11721 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11722 if test "${ac_cv_prog_fc_g+set}" = set; then :
11723 $as_echo_n "(cached) " >&6
11726 cat > conftest.$ac_ext <<_ACEOF
11731 if ac_fn_fc_try_compile "$LINENO"; then :
11732 ac_cv_prog_fc_g=yes
11736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11740 $as_echo "$ac_cv_prog_fc_g" >&6; }
11741 if test "$ac_test_FCFLAGS" = set; then
11742 FCFLAGS=$ac_save_FCFLAGS
11743 elif test $ac_cv_prog_fc_g = yes; then
11744 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11750 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11758 ac_cpp='$CPP $CPPFLAGS'
11759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
11760 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
11761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11763 ac_ext=${ac_fc_srcext-f}
11764 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.
$ac_ext >&5'
11765 ac_link='$FC -o conftest
$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.
$ac_ext $LIBS >&5'
11766 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11769 if test -z "$FC" || test "X$FC" = "Xno"; then
11773 archive_cmds_need_lc_FC=no
11774 allow_undefined_flag_FC=
11775 always_export_symbols_FC=no
11776 archive_expsym_cmds_FC=
11777 export_dynamic_flag_spec_FC=
11778 hardcode_direct_FC=no
11779 hardcode_direct_absolute_FC=no
11780 hardcode_libdir_flag_spec_FC=
11781 hardcode_libdir_flag_spec_ld_FC=
11782 hardcode_libdir_separator_FC=
11783 hardcode_minus_L_FC=no
11784 hardcode_automatic_FC=no
11785 inherit_rpath_FC=no
11787 module_expsym_cmds_FC=
11788 link_all_deplibs_FC=unknown
11789 old_archive_cmds_FC=$old_archive_cmds
11790 reload_flag_FC=$reload_flag
11791 reload_cmds_FC=$reload_cmds
11792 no_undefined_flag_FC=
11793 whole_archive_flag_spec_FC=
11794 enable_shared_with_static_runtimes_FC=no
11796 # Source file extension for fc test sources.
11797 ac_ext=${ac_fc_srcext-f}
11799 # Object file extension for compiled fc test sources.
11803 # No sense in running all these tests if we already determined that
11804 # the FC compiler isn't working. Some variables
(like enable_shared
)
11805 # are currently assumed to apply to all compilers on this platform,
11806 # and will be corrupted by setting them based on a non-working compiler.
11807 if test "$_lt_disable_FC" != yes; then
11808 # Code to be used in simple compile tests
11809 lt_simple_compile_test_code
="\
11815 # Code to be used in simple link tests
11816 lt_simple_link_test_code
="\
11821 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11828 # If no C compiler was specified, use CC.
11831 # If no C compiler flags were specified, use CFLAGS.
11832 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
11834 # Allow CC to be a program name with arguments.
11838 # save warnings/boilerplate of simple test code
11839 ac_outfile
=conftest.
$ac_objext
11840 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
11841 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11842 _lt_compiler_boilerplate
=`cat conftest.err`
11845 ac_outfile
=conftest.
$ac_objext
11846 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
11847 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11848 _lt_linker_boilerplate
=`cat conftest.err`
11852 # Allow CC to be a program name with arguments.
11857 GCC
=$ac_cv_fc_compiler_gnu
11860 for cc_temp
in $compiler""; do
11862 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
11863 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
11868 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11871 if test -n "$compiler"; then
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11873 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11875 $as_echo "$can_build_shared" >&6; }
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11878 $as_echo_n "checking whether to build shared libraries... " >&6; }
11879 test "$can_build_shared" = "no" && enable_shared
=no
11881 # On AIX, shared libraries and static libraries use the same namespace, and
11882 # are all built from PIC.
11885 test "$enable_shared" = yes && enable_static
=no
11886 if test -n "$RANLIB"; then
11887 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11888 postinstall_cmds
='$RANLIB $lib'
11892 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11893 test "$enable_shared" = yes && enable_static
=no
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11898 $as_echo "$enable_shared" >&6; }
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11901 $as_echo_n "checking whether to build static libraries... " >&6; }
11902 # Make sure either enable_shared or enable_static is yes.
11903 test "$enable_shared" = yes || enable_static
=yes
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11905 $as_echo "$enable_static" >&6; }
11907 GCC_FC
="$ac_cv_fc_compiler_gnu"
11911 ## There is no encapsulation within the following macros, do not change
11912 ## the running order or otherwise move them around unless you know exactly
11913 ## what you are doing...
11914 # Dependencies to place before and after the object being linked:
11916 postdep_objects_FC
=
11919 compiler_lib_search_path_FC
=
11921 cat > conftest.
$ac_ext <<_LT_EOF
11930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11931 (eval $ac_compile) 2>&5
11933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11934 test $ac_status = 0; }; then
11935 # Parse the compiler output and extract the necessary
11936 # objects, libraries and library flags.
11938 # Sentinel used to keep track of whether or not we are before
11939 # the conftest object file.
11940 pre_test_object_deps_done
=no
11942 for p
in `eval "$output_verbose_link_cmd"`; do
11946 # Some compilers place space between "-{L,R}" and the path.
11947 # Remove the space.
11948 if test $p = "-L" ||
11949 test $p = "-R"; then
11956 if test "$pre_test_object_deps_done" = no
; then
11959 # Internal compiler library paths should come after those
11960 # provided the user. The postdeps already come after the
11961 # user supplied libs so there is no need to process them.
11962 if test -z "$compiler_lib_search_path_FC"; then
11963 compiler_lib_search_path_FC
="${prev}${p}"
11965 compiler_lib_search_path_FC
="${compiler_lib_search_path_FC} ${prev}${p}"
11968 # The "-l" case would never come before the object being
11969 # linked, so don't bother handling this case.
11972 if test -z "$postdeps_FC"; then
11973 postdeps_FC
="${prev}${p}"
11975 postdeps_FC
="${postdeps_FC} ${prev}${p}"
11981 # This assumes that the test object file only shows up
11982 # once in the compiler output.
11983 if test "$p" = "conftest.$objext"; then
11984 pre_test_object_deps_done
=yes
11988 if test "$pre_test_object_deps_done" = no
; then
11989 if test -z "$predep_objects_FC"; then
11990 predep_objects_FC
="$p"
11992 predep_objects_FC
="$predep_objects_FC $p"
11995 if test -z "$postdep_objects_FC"; then
11996 postdep_objects_FC
="$p"
11998 postdep_objects_FC
="$postdep_objects_FC $p"
12003 *) ;; # Ignore the rest.
12011 echo "libtool.m4: error: problem compiling FC test program"
12014 $RM -f confest.
$objext
12016 # PORTME: override above test on systems where it is broken
12019 case " $postdeps_FC " in
12020 *" -lc "*) archive_cmds_need_lc_FC
=no
;;
12022 compiler_lib_search_dirs_FC
=
12023 if test -n "${compiler_lib_search_path_FC}"; then
12024 compiler_lib_search_dirs_FC
=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12057 lt_prog_compiler_wl_FC
=
12058 lt_prog_compiler_pic_FC
=
12059 lt_prog_compiler_static_FC
=
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12062 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12064 if test "$GCC" = yes; then
12065 lt_prog_compiler_wl_FC
='-Wl,'
12066 lt_prog_compiler_static_FC
='-static'
12070 # All AIX code is PIC.
12071 if test "$host_cpu" = ia64
; then
12072 # AIX 5 now supports IA64 processor
12073 lt_prog_compiler_static_FC
='-Bstatic'
12075 lt_prog_compiler_pic_FC
='-fPIC'
12081 # see comment about AmigaOS4 .so support
12082 lt_prog_compiler_pic_FC
='-fPIC'
12085 # FIXME: we need at least 68020 code to build shared libraries, but
12086 # adding the `-m68020' flag to GCC prevents building anything better,
12088 lt_prog_compiler_pic_FC
='-m68020 -resident32 -malways-restore-a4'
12093 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12094 # PIC is the default for these OSes.
12097 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12098 # This hack is so that the source file can tell whether it is being
12099 # built for inclusion in a dll (and should export symbols for example).
12100 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12101 # (--disable-auto-import) libraries
12102 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12105 darwin
* | rhapsody
*)
12106 # PIC is the default on this platform
12107 # Common symbols not allowed in MH_DYLIB files
12108 lt_prog_compiler_pic_FC
='-fno-common'
12112 # PIC is the default for Haiku.
12113 # The "-static" flag exists, but is broken.
12114 lt_prog_compiler_static_FC
=
12118 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12119 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12120 # sets the default TLS model and affects inlining.
12126 lt_prog_compiler_pic_FC
='-fPIC'
12132 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12133 # Instead, we relocate shared libraries at runtime.
12137 # Just because we use GCC doesn't mean we suddenly get shared libraries
12138 # on systems that don't support them.
12139 lt_prog_compiler_can_build_shared_FC
=no
12144 # QNX uses GNU C++, but need to define -shared option too, otherwise
12145 # it will coredump.
12146 lt_prog_compiler_pic_FC
='-fPIC -shared'
12150 if test -d /usr
/nec
; then
12151 lt_prog_compiler_pic_FC
=-Kconform_pic
12156 lt_prog_compiler_pic_FC
='-fPIC'
12160 case $cc_basename in
12161 nvcc
*) # Cuda Compiler Driver 2.2
12162 lt_prog_compiler_wl_FC
='-Xlinker '
12163 lt_prog_compiler_pic_FC
='-Xcompiler -fPIC'
12167 # PORTME Check for flag to pass linker flags through the system compiler.
12170 lt_prog_compiler_wl_FC
='-Wl,'
12171 if test "$host_cpu" = ia64
; then
12172 # AIX 5 now supports IA64 processor
12173 lt_prog_compiler_static_FC
='-Bstatic'
12175 lt_prog_compiler_static_FC
='-bnso -bI:/lib/syscalls.exp'
12179 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12180 # This hack is so that the source file can tell whether it is being
12181 # built for inclusion in a dll (and should export symbols for example).
12182 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12185 hpux9
* | hpux10
* | hpux11
*)
12186 lt_prog_compiler_wl_FC
='-Wl,'
12187 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12188 # not for PA HP-UX.
12194 lt_prog_compiler_pic_FC
='+Z'
12197 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12198 lt_prog_compiler_static_FC
='${wl}-a ${wl}archive'
12201 irix5
* | irix6
* | nonstopux
*)
12202 lt_prog_compiler_wl_FC
='-Wl,'
12203 # PIC (with -KPIC) is the default.
12204 lt_prog_compiler_static_FC
='-non_shared'
12207 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12208 case $cc_basename in
12209 # old Intel for x86_64 which still supported -KPIC.
12211 lt_prog_compiler_wl_FC
='-Wl,'
12212 lt_prog_compiler_pic_FC
='-KPIC'
12213 lt_prog_compiler_static_FC
='-static'
12215 # icc used to be incompatible with GCC.
12216 # ICC 10 doesn't accept -KPIC any more.
12218 lt_prog_compiler_wl_FC
='-Wl,'
12219 lt_prog_compiler_pic_FC
='-fPIC'
12220 lt_prog_compiler_static_FC
='-static'
12222 # Lahey Fortran 8.1.
12224 lt_prog_compiler_wl_FC
='-Wl,'
12225 lt_prog_compiler_pic_FC
='--shared'
12226 lt_prog_compiler_static_FC
='--static'
12228 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12229 # Portland Group compilers (*not* the Pentium gcc compiler,
12230 # which looks to be a dead project)
12231 lt_prog_compiler_wl_FC
='-Wl,'
12232 lt_prog_compiler_pic_FC
='-fpic'
12233 lt_prog_compiler_static_FC
='-Bstatic'
12236 lt_prog_compiler_wl_FC
='-Wl,'
12237 # All Alpha code is PIC.
12238 lt_prog_compiler_static_FC
='-non_shared'
12240 xl
* | bgxl
* | bgf
* | mpixl
*)
12241 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12242 lt_prog_compiler_wl_FC
='-Wl,'
12243 lt_prog_compiler_pic_FC
='-qpic'
12244 lt_prog_compiler_static_FC
='-qstaticlink'
12247 case `$CC -V 2>&1 | sed 5q` in
12248 *Sun\ F
* |
*Sun
*Fortran
*)
12249 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12250 lt_prog_compiler_pic_FC
='-KPIC'
12251 lt_prog_compiler_static_FC
='-Bstatic'
12252 lt_prog_compiler_wl_FC
=''
12256 lt_prog_compiler_pic_FC
='-KPIC'
12257 lt_prog_compiler_static_FC
='-Bstatic'
12258 lt_prog_compiler_wl_FC
='-Wl,'
12266 lt_prog_compiler_pic_FC
='-KPIC'
12267 lt_prog_compiler_static_FC
='-Bstatic'
12271 # QNX uses GNU C++, but need to define -shared option too, otherwise
12272 # it will coredump.
12273 lt_prog_compiler_pic_FC
='-fPIC -shared'
12276 osf3
* | osf4
* | osf5
*)
12277 lt_prog_compiler_wl_FC
='-Wl,'
12278 # All OSF/1 code is PIC.
12279 lt_prog_compiler_static_FC
='-non_shared'
12283 lt_prog_compiler_static_FC
='-non_shared'
12287 lt_prog_compiler_pic_FC
='-KPIC'
12288 lt_prog_compiler_static_FC
='-Bstatic'
12289 case $cc_basename in
12290 f77
* | f90
* | f95
*)
12291 lt_prog_compiler_wl_FC
='-Qoption ld ';;
12293 lt_prog_compiler_wl_FC
='-Wl,';;
12298 lt_prog_compiler_wl_FC
='-Qoption ld '
12299 lt_prog_compiler_pic_FC
='-PIC'
12300 lt_prog_compiler_static_FC
='-Bstatic'
12303 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12304 lt_prog_compiler_wl_FC
='-Wl,'
12305 lt_prog_compiler_pic_FC
='-KPIC'
12306 lt_prog_compiler_static_FC
='-Bstatic'
12310 if test -d /usr
/nec
;then
12311 lt_prog_compiler_pic_FC
='-Kconform_pic'
12312 lt_prog_compiler_static_FC
='-Bstatic'
12316 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12317 lt_prog_compiler_wl_FC
='-Wl,'
12318 lt_prog_compiler_pic_FC
='-KPIC'
12319 lt_prog_compiler_static_FC
='-Bstatic'
12323 lt_prog_compiler_wl_FC
='-Wl,'
12324 lt_prog_compiler_can_build_shared_FC
=no
12328 lt_prog_compiler_pic_FC
='-pic'
12329 lt_prog_compiler_static_FC
='-Bstatic'
12333 lt_prog_compiler_can_build_shared_FC
=no
12339 # For platforms which do not support PIC, -DPIC is meaningless:
12341 lt_prog_compiler_pic_FC
=
12344 lt_prog_compiler_pic_FC
="$lt_prog_compiler_pic_FC"
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12348 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12353 # Check to make sure the PIC flag actually works.
12355 if test -n "$lt_prog_compiler_pic_FC"; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12357 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12358 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12361 lt_cv_prog_compiler_pic_works_FC
=no
12362 ac_outfile
=conftest.
$ac_objext
12363 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12364 lt_compiler_flag
="$lt_prog_compiler_pic_FC"
12365 # Insert the option either (1) after the last *FLAGS variable, or
12366 # (2) before a word containing "conftest.", or (3) at the end.
12367 # Note that $ac_compile itself does not contain backslashes and begins
12368 # with a dollar sign (not a hyphen), so the echo should work correctly.
12369 # The option is referenced via a variable to avoid confusing sed.
12370 lt_compile
=`echo "$ac_compile" | $SED \
12371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12373 -e 's:$: $lt_compiler_flag:'`
12374 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12375 (eval "$lt_compile" 2>conftest.err
)
12377 cat conftest.err
>&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 if (exit $ac_status) && test -s "$ac_outfile"; then
12380 # The compiler can only warn and ignore the option if not recognized
12381 # So say no if there are warnings other than the usual output.
12382 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12383 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12384 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12385 lt_cv_prog_compiler_pic_works_FC
=yes
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12392 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12394 if test x
"$lt_cv_prog_compiler_pic_works_FC" = xyes
; then
12395 case $lt_prog_compiler_pic_FC in
12397 *) lt_prog_compiler_pic_FC
=" $lt_prog_compiler_pic_FC" ;;
12400 lt_prog_compiler_pic_FC
=
12401 lt_prog_compiler_can_build_shared_FC
=no
12409 # Check to make sure the static flag actually works.
12411 wl
=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_FC\"
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12413 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12414 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12415 $as_echo_n "(cached) " >&6
12417 lt_cv_prog_compiler_static_works_FC
=no
12418 save_LDFLAGS
="$LDFLAGS"
12419 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12420 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12421 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12422 # The linker can only warn and ignore the option if not recognized
12423 # So say no if there are warnings
12424 if test -s conftest.err
; then
12425 # Append any errors to the config.log.
12426 cat conftest.err
1>&5
12427 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12428 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12429 if diff conftest.exp conftest.er2
>/dev
/null
; then
12430 lt_cv_prog_compiler_static_works_FC
=yes
12433 lt_cv_prog_compiler_static_works_FC
=yes
12437 LDFLAGS
="$save_LDFLAGS"
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12441 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12443 if test x
"$lt_cv_prog_compiler_static_works_FC" = xyes
; then
12446 lt_prog_compiler_static_FC
=
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12453 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12454 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12455 $as_echo_n "(cached) " >&6
12457 lt_cv_prog_compiler_c_o_FC
=no
12458 $RM -r conftest
2>/dev
/null
12462 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12464 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12465 # Insert the option either (1) after the last *FLAGS variable, or
12466 # (2) before a word containing "conftest.", or (3) at the end.
12467 # Note that $ac_compile itself does not contain backslashes and begins
12468 # with a dollar sign (not a hyphen), so the echo should work correctly.
12469 lt_compile
=`echo "$ac_compile" | $SED \
12470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12472 -e 's:$: $lt_compiler_flag:'`
12473 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12474 (eval "$lt_compile" 2>out
/conftest.err
)
12476 cat out
/conftest.err
>&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12480 # The compiler can only warn and ignore the option if not recognized
12481 # So say no if there are warnings
12482 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12483 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12484 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12485 lt_cv_prog_compiler_c_o_FC
=yes
12490 # SGI C++ compiler will create directory out/ii_files/ for
12491 # template instantiation
12492 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12493 $RM out
/* && rmdir out
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12500 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12505 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12506 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12507 $as_echo_n "(cached) " >&6
12509 lt_cv_prog_compiler_c_o_FC
=no
12510 $RM -r conftest
2>/dev
/null
12514 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12516 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12517 # Insert the option either (1) after the last *FLAGS variable, or
12518 # (2) before a word containing "conftest.", or (3) at the end.
12519 # Note that $ac_compile itself does not contain backslashes and begins
12520 # with a dollar sign (not a hyphen), so the echo should work correctly.
12521 lt_compile
=`echo "$ac_compile" | $SED \
12522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12524 -e 's:$: $lt_compiler_flag:'`
12525 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12526 (eval "$lt_compile" 2>out
/conftest.err
)
12528 cat out
/conftest.err
>&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12532 # The compiler can only warn and ignore the option if not recognized
12533 # So say no if there are warnings
12534 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12535 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12536 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12537 lt_cv_prog_compiler_c_o_FC
=yes
12542 # SGI C++ compiler will create directory out/ii_files/ for
12543 # template instantiation
12544 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12545 $RM out
/* && rmdir out
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12552 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12557 hard_links
="nottested"
12558 if test "$lt_cv_prog_compiler_c_o_FC" = no
&& test "$need_locks" != no
; then
12559 # do not overwrite the value of need_locks provided by the user
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12561 $as_echo_n "checking if we can lock with hard links... " >&6; }
12564 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12566 ln conftest.a conftest.b
2>&5 || hard_links
=no
12567 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12569 $as_echo "$hard_links" >&6; }
12570 if test "$hard_links" = no
; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12572 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12582 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12585 allow_undefined_flag_FC
=
12586 always_export_symbols_FC
=no
12588 archive_expsym_cmds_FC
=
12589 compiler_needs_object_FC
=no
12590 enable_shared_with_static_runtimes_FC
=no
12591 export_dynamic_flag_spec_FC
=
12592 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12593 hardcode_automatic_FC
=no
12594 hardcode_direct_FC
=no
12595 hardcode_direct_absolute_FC
=no
12596 hardcode_libdir_flag_spec_FC
=
12597 hardcode_libdir_flag_spec_ld_FC
=
12598 hardcode_libdir_separator_FC
=
12599 hardcode_minus_L_FC
=no
12600 hardcode_shlibpath_var_FC
=unsupported
12601 inherit_rpath_FC
=no
12602 link_all_deplibs_FC
=unknown
12604 module_expsym_cmds_FC
=
12605 old_archive_from_new_cmds_FC
=
12606 old_archive_from_expsyms_cmds_FC
=
12607 thread_safe_flag_spec_FC
=
12608 whole_archive_flag_spec_FC
=
12609 # include_expsyms should be a list of space-separated symbols to be *always*
12610 # included in the symbol list
12611 include_expsyms_FC
=
12612 # exclude_expsyms can be an extended regexp of symbols to exclude
12613 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12614 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12615 # as well as any symbol that contains `d'.
12616 exclude_expsyms_FC
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12617 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12618 # platforms (ab)use it in PIC code, but their linkers get confused if
12619 # the symbol is explicitly referenced. Since portable code cannot
12620 # rely on this symbol name, it's probably fine to never include it in
12621 # preloaded symbol tables.
12622 # Exclude shared library initialization/finalization symbols.
12623 extract_expsyms_cmds
=
12626 cygwin
* | mingw
* | pw32
* | cegcc
*)
12627 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12628 # When not using gcc, we currently assume that we are using
12629 # Microsoft Visual C++.
12630 if test "$GCC" != yes; then
12635 # we just hope/assume this is gcc and not c89 (= MSVC++)
12645 # On some targets, GNU ld is compatible enough with the native linker
12646 # that we're better off using the native interface for both.
12647 lt_use_gnu_ld_interface
=no
12648 if test "$with_gnu_ld" = yes; then
12651 # The AIX port of GNU ld has always aspired to compatibility
12652 # with the native linker. However, as the warning in the GNU ld
12653 # block says, versions before 2.19.5* couldn't really create working
12654 # shared libraries, regardless of the interface used.
12655 case `$LD -v 2>&1` in
12656 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12657 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12658 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12660 lt_use_gnu_ld_interface
=yes
12665 lt_use_gnu_ld_interface
=yes
12670 if test "$lt_use_gnu_ld_interface" = yes; then
12671 # If archive_cmds runs LD, not CC, wlarc should be empty
12674 # Set some defaults for GNU ld with shared library support. These
12675 # are reset later if shared libraries are not supported. Putting them
12676 # here allows them to be overridden if necessary.
12677 runpath_var
=LD_RUN_PATH
12678 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12679 export_dynamic_flag_spec_FC
='${wl}--export-dynamic'
12680 # ancient GNU ld didn't support --whole-archive et. al.
12681 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12682 whole_archive_flag_spec_FC
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12684 whole_archive_flag_spec_FC
=
12686 supports_anon_versioning
=no
12687 case `$LD -v 2>&1` in
12688 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12689 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12690 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12691 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12692 *\
2.11.
*) ;; # other 2.11 versions
12693 *) supports_anon_versioning
=yes ;;
12696 # See if GNU ld supports shared libraries.
12699 # On AIX/PPC, the GNU linker is very broken
12700 if test "$host_cpu" != ia64
; then
12704 *** Warning: the GNU linker, at least up to release 2.19, is reported
12705 *** to be unable to reliably create shared libraries on AIX.
12706 *** Therefore, libtool is disabling shared libraries support. If you
12707 *** really care for shared libraries, you may want to install binutils
12708 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12709 *** You will then need to restart the configuration process.
12718 # see comment about AmigaOS4 .so support
12719 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12720 archive_expsym_cmds_FC
=''
12723 archive_cmds_FC
='$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)'
12724 hardcode_libdir_flag_spec_FC
='-L$libdir'
12725 hardcode_minus_L_FC
=yes
12731 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12732 allow_undefined_flag_FC
=unsupported
12733 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12734 # support --undefined. This deserves some investigation. FIXME
12735 archive_cmds_FC
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12741 cygwin
* | mingw
* | pw32
* | cegcc
*)
12742 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12743 # as there is no search path for DLLs.
12744 hardcode_libdir_flag_spec_FC
='-L$libdir'
12745 export_dynamic_flag_spec_FC
='${wl}--export-all-symbols'
12746 allow_undefined_flag_FC
=unsupported
12747 always_export_symbols_FC
=no
12748 enable_shared_with_static_runtimes_FC
=yes
12749 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12751 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12752 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12753 # If the export-symbols file already is a .def file (1st line
12754 # is EXPORTS), use it as is; otherwise, prepend...
12755 archive_expsym_cmds_FC
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12756 cp $export_symbols $output_objdir/$soname.def;
12758 echo EXPORTS > $output_objdir/$soname.def;
12759 cat $export_symbols >> $output_objdir/$soname.def;
12761 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12768 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12769 link_all_deplibs_FC
=yes
12773 hardcode_direct_FC
=no
12774 hardcode_shlibpath_var_FC
=no
12775 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
12776 export_dynamic_flag_spec_FC
='${wl}-E'
12777 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12778 # Instead, shared libraries are loaded at an image base (0x10000000 by
12779 # default) and relocated if they conflict, which is a slow very memory
12780 # consuming and fragmenting process. To avoid this, we pick a random,
12781 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12782 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12783 archive_cmds_FC
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12784 archive_expsym_cmds_FC
='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'
12787 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12789 if test "$host_os" = linux-dietlibc
; then
12790 case $cc_basename in
12791 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
12794 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
12795 && test "$tmp_diet" = no
12797 tmp_addflag
=' $pic_flag'
12798 tmp_sharedflag
='-shared'
12799 case $cc_basename,$host_cpu in
12800 pgcc
*) # Portland Group C compiler
12801 whole_archive_flag_spec_FC
='${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'
12802 tmp_addflag
=' $pic_flag'
12804 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12805 # Portland Group f77 and f90 compilers
12806 whole_archive_flag_spec_FC
='${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'
12807 tmp_addflag
=' $pic_flag -Mnomain' ;;
12808 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12809 tmp_addflag
=' -i_dynamic' ;;
12810 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12811 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12812 ifc
* | ifort
*) # Intel Fortran compiler
12813 tmp_addflag
=' -nofor_main' ;;
12814 lf95
*) # Lahey Fortran 8.1
12815 whole_archive_flag_spec_FC
=
12816 tmp_sharedflag
='--shared' ;;
12817 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12818 tmp_sharedflag
='-qmkshrobj'
12820 nvcc
*) # Cuda Compiler Driver 2.2
12821 whole_archive_flag_spec_FC
='${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'
12822 compiler_needs_object_FC
=yes
12825 case `$CC -V 2>&1 | sed 5q` in
12826 *Sun\ C
*) # Sun C 5.9
12827 whole_archive_flag_spec_FC
='${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'
12828 compiler_needs_object_FC
=yes
12829 tmp_sharedflag
='-G' ;;
12830 *Sun\ F
*) # Sun Fortran 8.3
12831 tmp_sharedflag
='-G' ;;
12833 archive_cmds_FC
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12835 if test "x$supports_anon_versioning" = xyes
; then
12836 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
12837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12838 echo "local: *; };" >> $output_objdir/$libname.ver~
12839 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12842 case $cc_basename in
12843 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
12844 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12845 whole_archive_flag_spec_FC
='--whole-archive$convenience --no-whole-archive'
12846 hardcode_libdir_flag_spec_FC
=
12847 hardcode_libdir_flag_spec_ld_FC
='-rpath $libdir'
12848 archive_cmds_FC
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12849 if test "x$supports_anon_versioning" = xyes
; then
12850 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
12851 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12852 echo "local: *; };" >> $output_objdir/$libname.ver~
12853 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12863 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12864 archive_cmds_FC
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12867 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12868 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12873 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
12877 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12878 *** create shared libraries on Solaris systems. Therefore, libtool
12879 *** is disabling shared libraries support. We urge you to upgrade GNU
12880 *** binutils to release 2.9.1 or newer. Another option is to modify
12881 *** your PATH or compiler configuration so that the native linker is
12882 *** used, and then restart.
12885 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12886 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12887 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12893 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
12894 case `$LD -v 2>&1` in
12895 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
12899 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12900 *** reliably create shared libraries on SCO systems. Therefore, libtool
12901 *** is disabling shared libraries support. We urge you to upgrade GNU
12902 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12903 *** your PATH or compiler configuration so that the native linker is
12904 *** used, and then restart.
12909 # For security reasons, it is highly recommended that you always
12910 # use absolute paths for naming shared libraries, and exclude the
12911 # DT_RUNPATH tag from executables and libraries. But doing so
12912 # requires that you compile everything twice, which is a pain.
12913 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12914 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12915 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12916 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12925 archive_cmds_FC
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12927 hardcode_direct_FC
=yes
12928 hardcode_shlibpath_var_FC
=no
12932 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12933 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12934 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12941 if test "$ld_shlibs_FC" = no
; then
12943 hardcode_libdir_flag_spec_FC
=
12944 export_dynamic_flag_spec_FC
=
12945 whole_archive_flag_spec_FC
=
12948 # PORTME fill in a description of your system's linker (not GNU ld)
12951 allow_undefined_flag_FC
=unsupported
12952 always_export_symbols_FC
=yes
12953 archive_expsym_cmds_FC
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12954 # Note: this linker hardcodes the directories in LIBPATH if there
12955 # are no directories specified by -L.
12956 hardcode_minus_L_FC
=yes
12957 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12958 # Neither direct hardcoding nor static linking is supported with a
12960 hardcode_direct_FC
=unsupported
12965 if test "$host_cpu" = ia64
; then
12966 # On IA64, the linker does run time linking by default, so we don't
12967 # have to do anything special.
12968 aix_use_runtimelinking
=no
12969 exp_sym_flag
='-Bexport'
12972 # If we're using GNU nm, then we don't want the "-C" option.
12973 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12974 # Also, AIX nm treats weak defined symbols like other global
12975 # defined symbols, whereas GNU nm marks them as "W".
12976 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
12977 export_symbols_cmds_FC
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12979 export_symbols_cmds_FC
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12981 aix_use_runtimelinking
=no
12983 # Test if we are trying to use run time linking or normal
12984 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12985 # need to do runtime linking.
12986 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12987 for ld_flag
in $LDFLAGS; do
12988 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
12989 aix_use_runtimelinking
=yes
12996 exp_sym_flag
='-bexport'
12997 no_entry_flag
='-bnoentry'
13000 # When large executables or shared objects are built, AIX ld can
13001 # have problems creating the table of contents. If linking a library
13002 # or program results in "error TOC overflow" add -mminimal-toc to
13003 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13004 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13007 hardcode_direct_FC
=yes
13008 hardcode_direct_absolute_FC
=yes
13009 hardcode_libdir_separator_FC
=':'
13010 link_all_deplibs_FC
=yes
13011 file_list_spec_FC
='${wl}-f,'
13013 if test "$GCC" = yes; then
13014 case $host_os in aix4.
[012]|aix4.
[012].
*)
13015 # We only want to do this on AIX 4.2 and lower, the check
13016 # below for broken collect2 doesn't work under 4.3+
13017 collect2name
=`${CC} -print-prog-name=collect2`
13018 if test -f "$collect2name" &&
13019 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13021 # We have reworked collect2
13024 # We have old collect2
13025 hardcode_direct_FC
=unsupported
13026 # It fails to find uninstalled libraries when the uninstalled
13027 # path is not listed in the libpath. Setting hardcode_minus_L
13028 # to unsupported forces relinking
13029 hardcode_minus_L_FC
=yes
13030 hardcode_libdir_flag_spec_FC
='-L$libdir'
13031 hardcode_libdir_separator_FC
=
13035 shared_flag
='-shared'
13036 if test "$aix_use_runtimelinking" = yes; then
13037 shared_flag
="$shared_flag "'${wl}-G'
13041 if test "$host_cpu" = ia64
; then
13042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13043 # chokes on -Wl,-G. The following line is correct:
13046 if test "$aix_use_runtimelinking" = yes; then
13047 shared_flag
='${wl}-G'
13049 shared_flag
='${wl}-bM:SRE'
13054 export_dynamic_flag_spec_FC
='${wl}-bexpall'
13055 # It seems that -bexpall does not export symbols beginning with
13056 # underscore (_), so it is better to generate a list of symbols to export.
13057 always_export_symbols_FC
=yes
13058 if test "$aix_use_runtimelinking" = yes; then
13059 # Warning - without using the other runtime loading flags (-brtl),
13060 # -berok will link without error, but may produce a broken library.
13061 allow_undefined_flag_FC
='-berok'
13062 # Determine the default libpath from the value encoded in an
13063 # empty executable.
13064 cat > conftest.
$ac_ext <<_ACEOF
13069 if ac_fn_fc_try_link
"$LINENO"; then :
13071 lt_aix_libpath_sed
='
13072 /Import File Strings/,/^$/ {
13078 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13079 # Check for a 64-bit object if we didn't find anything.
13080 if test -z "$aix_libpath"; then
13081 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13084 rm -f core conftest.err conftest.
$ac_objext \
13085 conftest
$ac_exeext conftest.
$ac_ext
13086 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13088 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13089 archive_expsym_cmds_FC
='$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"
13091 if test "$host_cpu" = ia64
; then
13092 hardcode_libdir_flag_spec_FC
='${wl}-R $libdir:/usr/lib:/lib'
13093 allow_undefined_flag_FC
="-z nodefs"
13094 archive_expsym_cmds_FC
="\$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"
13096 # Determine the default libpath from the value encoded in an
13097 # empty executable.
13098 cat > conftest.
$ac_ext <<_ACEOF
13103 if ac_fn_fc_try_link
"$LINENO"; then :
13105 lt_aix_libpath_sed
='
13106 /Import File Strings/,/^$/ {
13112 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13113 # Check for a 64-bit object if we didn't find anything.
13114 if test -z "$aix_libpath"; then
13115 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13118 rm -f core conftest.err conftest.
$ac_objext \
13119 conftest
$ac_exeext conftest.
$ac_ext
13120 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13122 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13123 # Warning - without using the other run time loading flags,
13124 # -berok will link without error, but may produce a broken library.
13125 no_undefined_flag_FC
=' ${wl}-bernotok'
13126 allow_undefined_flag_FC
=' ${wl}-berok'
13127 if test "$with_gnu_ld" = yes; then
13128 # We only use this code for GNU lds that support --whole-archive.
13129 whole_archive_flag_spec_FC
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13131 # Exported symbols can be pulled into shared objects from archives
13132 whole_archive_flag_spec_FC
='$convenience'
13134 archive_cmds_need_lc_FC
=yes
13135 # This is similar to how AIX traditionally builds its shared libraries.
13136 archive_expsym_cmds_FC
="\$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'
13144 # see comment about AmigaOS4 .so support
13145 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13146 archive_expsym_cmds_FC
=''
13149 archive_cmds_FC
='$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)'
13150 hardcode_libdir_flag_spec_FC
='-L$libdir'
13151 hardcode_minus_L_FC
=yes
13157 export_dynamic_flag_spec_FC
=-rdynamic
13160 cygwin
* | mingw
* | pw32
* | cegcc
*)
13161 # When not using gcc, we currently assume that we are using
13162 # Microsoft Visual C++.
13163 # hardcode_libdir_flag_spec is actually meaningless, as there is
13164 # no search path for DLLs.
13165 hardcode_libdir_flag_spec_FC
=' '
13166 allow_undefined_flag_FC
=unsupported
13167 # Tell ltmain to make .lib files, not .a files.
13169 # Tell ltmain to make .dll files, not .so files.
13171 # FIXME: Setting linknames here is a bad hack.
13172 archive_cmds_FC
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13173 # The linker will automatically build a .lib file if we build a DLL.
13174 old_archive_from_new_cmds_FC
='true'
13175 # FIXME: Should let the user specify the lib program.
13176 old_archive_cmds_FC
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13177 fix_srcfile_path_FC
='`cygpath -w "$srcfile"`'
13178 enable_shared_with_static_runtimes_FC
=yes
13181 darwin
* | rhapsody
*)
13184 archive_cmds_need_lc_FC
=no
13185 hardcode_direct_FC
=no
13186 hardcode_automatic_FC
=yes
13187 hardcode_shlibpath_var_FC
=unsupported
13188 if test "$lt_cv_ld_force_load" = "yes"; then
13189 whole_archive_flag_spec_FC
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13191 whole_archive_flag_spec_FC
=''
13193 link_all_deplibs_FC
=yes
13194 allow_undefined_flag_FC
="$_lt_dar_allow_undefined"
13195 case $cc_basename in
13196 ifort
*) _lt_dar_can_shared
=yes ;;
13197 *) _lt_dar_can_shared
=$GCC ;;
13199 if test "$_lt_dar_can_shared" = "yes"; then
13200 output_verbose_link_cmd
=func_echo_all
13201 archive_cmds_FC
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13202 module_cmds_FC
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13203 archive_expsym_cmds_FC
="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}"
13204 module_expsym_cmds_FC
="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}"
13213 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13214 hardcode_libdir_flag_spec_FC
='-L$libdir'
13215 hardcode_shlibpath_var_FC
=no
13218 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13219 # support. Future versions do this automatically, but an explicit c++rt0.o
13220 # does not break anything, and helps significantly (at the cost of a little
13223 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13224 hardcode_libdir_flag_spec_FC
='-R$libdir'
13225 hardcode_direct_FC
=yes
13226 hardcode_shlibpath_var_FC
=no
13229 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13231 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13232 hardcode_direct_FC
=yes
13233 hardcode_minus_L_FC
=yes
13234 hardcode_shlibpath_var_FC
=no
13237 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13238 freebsd
* | dragonfly
*)
13239 archive_cmds_FC
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13240 hardcode_libdir_flag_spec_FC
='-R$libdir'
13241 hardcode_direct_FC
=yes
13242 hardcode_shlibpath_var_FC
=no
13246 if test "$GCC" = yes; then
13247 archive_cmds_FC
='$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'
13249 archive_cmds_FC
='$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'
13251 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13252 hardcode_libdir_separator_FC
=:
13253 hardcode_direct_FC
=yes
13255 # hardcode_minus_L: Not really in the search PATH,
13256 # but as the default location of the library.
13257 hardcode_minus_L_FC
=yes
13258 export_dynamic_flag_spec_FC
='${wl}-E'
13262 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13263 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13265 archive_cmds_FC
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13267 if test "$with_gnu_ld" = no
; then
13268 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13269 hardcode_libdir_flag_spec_ld_FC
='+b $libdir'
13270 hardcode_libdir_separator_FC
=:
13271 hardcode_direct_FC
=yes
13272 hardcode_direct_absolute_FC
=yes
13273 export_dynamic_flag_spec_FC
='${wl}-E'
13274 # hardcode_minus_L: Not really in the search PATH,
13275 # but as the default location of the library.
13276 hardcode_minus_L_FC
=yes
13281 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13284 archive_cmds_FC
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13287 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13290 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13296 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13299 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13302 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13306 if test "$with_gnu_ld" = no
; then
13307 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13308 hardcode_libdir_separator_FC
=:
13312 hardcode_direct_FC
=no
13313 hardcode_shlibpath_var_FC
=no
13316 hardcode_direct_FC
=yes
13317 hardcode_direct_absolute_FC
=yes
13318 export_dynamic_flag_spec_FC
='${wl}-E'
13320 # hardcode_minus_L: Not really in the search PATH,
13321 # but as the default location of the library.
13322 hardcode_minus_L_FC
=yes
13328 irix5
* | irix6
* | nonstopux
*)
13329 if test "$GCC" = yes; then
13330 archive_cmds_FC
='$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'
13331 # Try to use the -exported_symbol ld option, if it does not
13332 # work, assume that -exports_file does not work either and
13333 # implicitly export all symbols.
13334 save_LDFLAGS
="$LDFLAGS"
13335 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13336 cat > conftest.
$ac_ext <<_ACEOF
13339 if ac_fn_fc_try_link
"$LINENO"; then :
13340 archive_expsym_cmds_FC
='$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'
13343 rm -f core conftest.err conftest.
$ac_objext \
13344 conftest
$ac_exeext conftest.
$ac_ext
13345 LDFLAGS
="$save_LDFLAGS"
13347 archive_cmds_FC
='$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'
13348 archive_expsym_cmds_FC
='$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'
13350 archive_cmds_need_lc_FC
='no'
13351 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13352 hardcode_libdir_separator_FC
=:
13353 inherit_rpath_FC
=yes
13354 link_all_deplibs_FC
=yes
13358 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13359 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13361 archive_cmds_FC
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13363 hardcode_libdir_flag_spec_FC
='-R$libdir'
13364 hardcode_direct_FC
=yes
13365 hardcode_shlibpath_var_FC
=no
13369 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13370 hardcode_direct_FC
=yes
13371 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13372 hardcode_libdir_separator_FC
=:
13373 hardcode_shlibpath_var_FC
=no
13380 if test -f /usr
/libexec
/ld.so
; then
13381 hardcode_direct_FC
=yes
13382 hardcode_shlibpath_var_FC
=no
13383 hardcode_direct_absolute_FC
=yes
13384 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13385 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13386 archive_expsym_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13387 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13388 export_dynamic_flag_spec_FC
='${wl}-E'
13391 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13392 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13393 hardcode_libdir_flag_spec_FC
='-R$libdir'
13396 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13397 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13407 hardcode_libdir_flag_spec_FC
='-L$libdir'
13408 hardcode_minus_L_FC
=yes
13409 allow_undefined_flag_FC
=unsupported
13410 archive_cmds_FC
='$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'
13411 old_archive_from_new_cmds_FC
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13415 if test "$GCC" = yes; then
13416 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13417 archive_cmds_FC
='$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'
13419 allow_undefined_flag_FC
=' -expect_unresolved \*'
13420 archive_cmds_FC
='$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'
13422 archive_cmds_need_lc_FC
='no'
13423 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13424 hardcode_libdir_separator_FC
=:
13427 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13428 if test "$GCC" = yes; then
13429 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13430 archive_cmds_FC
='$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'
13431 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13433 allow_undefined_flag_FC
=' -expect_unresolved \*'
13434 archive_cmds_FC
='$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'
13435 archive_expsym_cmds_FC
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13436 $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'
13438 # Both c and cxx compiler support -rpath directly
13439 hardcode_libdir_flag_spec_FC
='-rpath $libdir'
13441 archive_cmds_need_lc_FC
='no'
13442 hardcode_libdir_separator_FC
=:
13446 no_undefined_flag_FC
=' -z defs'
13447 if test "$GCC" = yes; then
13449 archive_cmds_FC
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13450 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13451 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13453 case `$CC -V 2>&1` in
13456 archive_cmds_FC
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13457 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13458 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13462 archive_cmds_FC
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13463 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13464 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13468 hardcode_libdir_flag_spec_FC
='-R$libdir'
13469 hardcode_shlibpath_var_FC
=no
13471 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13473 # The compiler driver will combine and reorder linker options,
13474 # but understands `-z linker_flag'. GCC discards it without `$wl',
13475 # but is careful enough not to reorder.
13476 # Supported since Solaris 2.6 (maybe 2.5.1?)
13477 if test "$GCC" = yes; then
13478 whole_archive_flag_spec_FC
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13480 whole_archive_flag_spec_FC
='-z allextract$convenience -z defaultextract'
13484 link_all_deplibs_FC
=yes
13488 if test "x$host_vendor" = xsequent
; then
13489 # Use $CC to link under sequent, because it throws in some extra .o
13490 # files that make .init and .fini sections work.
13491 archive_cmds_FC
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13493 archive_cmds_FC
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13495 hardcode_libdir_flag_spec_FC
='-L$libdir'
13496 hardcode_direct_FC
=yes
13497 hardcode_minus_L_FC
=yes
13498 hardcode_shlibpath_var_FC
=no
13502 case $host_vendor in
13504 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13505 hardcode_direct_FC
=yes # is this really true???
13508 ## LD is ld it makes a PLAMLIB
13509 ## CC just makes a GrossModule.
13510 archive_cmds_FC
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13511 reload_cmds_FC
='$CC -r -o $output$reload_objs'
13512 hardcode_direct_FC
=no
13515 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13516 hardcode_direct_FC
=no
#Motorola manual says yes, but my tests say they lie
13519 runpath_var
='LD_RUN_PATH'
13520 hardcode_shlibpath_var_FC
=no
13524 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13525 hardcode_shlibpath_var_FC
=no
13526 export_dynamic_flag_spec_FC
='-Bexport'
13530 if test -d /usr
/nec
; then
13531 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13532 hardcode_shlibpath_var_FC
=no
13533 runpath_var
=LD_RUN_PATH
13534 hardcode_runpath_var
=yes
13539 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13540 no_undefined_flag_FC
='${wl}-z,text'
13541 archive_cmds_need_lc_FC
=no
13542 hardcode_shlibpath_var_FC
=no
13543 runpath_var
='LD_RUN_PATH'
13545 if test "$GCC" = yes; then
13546 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13547 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13549 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13550 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13554 sysv5
* | sco3.2v5
* | sco5v6
*)
13555 # Note: We can NOT use -z defs as we might desire, because we do not
13556 # link with -lc, and that would cause any symbols used from libc to
13557 # always be unresolved, which means just about no library would
13558 # ever link correctly. If we're not using GNU ld we use -z text
13559 # though, which does catch some bad symbols but isn't as heavy-handed
13561 no_undefined_flag_FC
='${wl}-z,text'
13562 allow_undefined_flag_FC
='${wl}-z,nodefs'
13563 archive_cmds_need_lc_FC
=no
13564 hardcode_shlibpath_var_FC
=no
13565 hardcode_libdir_flag_spec_FC
='${wl}-R,$libdir'
13566 hardcode_libdir_separator_FC
=':'
13567 link_all_deplibs_FC
=yes
13568 export_dynamic_flag_spec_FC
='${wl}-Bexport'
13569 runpath_var
='LD_RUN_PATH'
13571 if test "$GCC" = yes; then
13572 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13573 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13575 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13576 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13581 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13582 hardcode_libdir_flag_spec_FC
='-L$libdir'
13583 hardcode_shlibpath_var_FC
=no
13591 if test x
$host_vendor = xsni
; then
13593 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13594 export_dynamic_flag_spec_FC
='${wl}-Blargedynsym'
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13601 $as_echo "$ld_shlibs_FC" >&6; }
13602 test "$ld_shlibs_FC" = no
&& can_build_shared
=no
13604 with_gnu_ld_FC
=$with_gnu_ld
13612 # Do we need to explicitly link libc?
13614 case "x$archive_cmds_need_lc_FC" in
13616 # Assume -lc should be added
13617 archive_cmds_need_lc_FC
=yes
13619 if test "$enable_shared" = yes && test "$GCC" = yes; then
13620 case $archive_cmds_FC in
13622 # FIXME: we may have to deal with multi-command sequences.
13625 # Test whether the compiler implicitly links with -lc since on some
13626 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13627 # to ld, don't add -lc before -lgcc.
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13629 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13630 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13631 $as_echo_n "(cached) " >&6
13634 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13637 (eval $ac_compile) 2>&5
13639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13640 test $ac_status = 0; } 2>conftest.err
; then
13643 libobjs
=conftest.
$ac_objext
13645 wl
=$lt_prog_compiler_wl_FC
13646 pic_flag
=$lt_prog_compiler_pic_FC
13652 lt_save_allow_undefined_flag
=$allow_undefined_flag_FC
13653 allow_undefined_flag_FC
=
13654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13655 (eval $archive_cmds_FC 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13658 test $ac_status = 0; }
13660 lt_cv_archive_cmds_need_lc_FC
=no
13662 lt_cv_archive_cmds_need_lc_FC
=yes
13664 allow_undefined_flag_FC
=$lt_save_allow_undefined_flag
13666 cat conftest.err
1>&5
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13672 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13673 archive_cmds_need_lc_FC
=$lt_cv_archive_cmds_need_lc_FC
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13744 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13746 library_names_spec
=
13747 libname_spec
='lib$name'
13751 postuninstall_cmds
=
13755 shlibpath_overrides_runpath
=unknown
13757 dynamic_linker
="$host_os ld.so"
13758 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
13759 need_lib_prefix
=unknown
13760 hardcode_into_libs
=no
13762 # when you set need_version to no, make sure it does not cause -set_version
13763 # flags to be left without arguments
13764 need_version
=unknown
13769 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
13770 shlibpath_var
=LIBPATH
13772 # AIX 3 has no versioning support, so we append a major version to the name.
13773 soname_spec
='${libname}${release}${shared_ext}$major'
13780 hardcode_into_libs
=yes
13781 if test "$host_cpu" = ia64
; then
13782 # AIX 5 supports IA64
13783 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13784 shlibpath_var
=LD_LIBRARY_PATH
13786 # With GCC up to 2.95.x, collect2 would create an import file
13787 # for dependence libraries. The import file would start with
13788 # the line `#! .'. This would cause the generated library to
13789 # depend on `.', always an invalid library. This was fixed in
13790 # development snapshots of GCC prior to 3.0.
13792 aix4 | aix4.
[01] | aix4.
[01].
*)
13793 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13795 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
13798 can_build_shared
=no
13802 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13803 # soname into executable. Probably we can add versioning support to
13804 # collect2, so additional links can be useful in future.
13805 if test "$aix_use_runtimelinking" = yes; then
13806 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13807 # instead of lib<name>.a to let people know that these are not
13808 # typical AIX shared libraries.
13809 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13811 # We preserve .a as extension for shared libraries through AIX4.2
13812 # and later when we are not doing run time linking.
13813 library_names_spec
='${libname}${release}.a $libname.a'
13814 soname_spec
='${libname}${release}${shared_ext}$major'
13816 shlibpath_var
=LIBPATH
13823 # Since July 2007 AmigaOS4 officially supports .so libraries.
13824 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13825 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13828 library_names_spec
='$libname.ixlibrary $libname.a'
13829 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13830 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'
13836 library_names_spec
='${libname}${shared_ext}'
13837 dynamic_linker
="$host_os ld.so"
13838 shlibpath_var
=LIBRARY_PATH
13844 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13845 soname_spec
='${libname}${release}${shared_ext}$major'
13846 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
13847 shlibpath_var
=LD_LIBRARY_PATH
13848 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13849 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
13850 # the default ld.so.conf also contains /usr/contrib/lib and
13851 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13852 # libtool to hard-code these into programs
13855 cygwin
* | mingw
* | pw32
* | cegcc
*)
13856 version_type
=windows
13861 case $GCC,$host_os in
13862 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
13863 library_names_spec
='$libname.dll.a'
13864 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13865 postinstall_cmds
='base_file=`basename \${file}`~
13866 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13867 dldir=$destdir/`dirname \$dlpath`~
13868 test -d \$dldir || mkdir -p \$dldir~
13869 $install_prog $dir/$dlname \$dldir/$dlname~
13870 chmod a+x \$dldir/$dlname~
13871 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13872 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13874 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13875 dlpath=$dir/\$dldll~
13877 shlibpath_overrides_runpath
=yes
13881 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13882 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13886 # MinGW DLLs use traditional 'lib' prefix
13887 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13890 # pw32 DLLs use 'pw' prefix rather than 'lib'
13891 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13897 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13900 dynamic_linker
='Win32 ld.exe'
13901 # FIXME: first we should search . and the directory the executable is in
13905 darwin
* | rhapsody
*)
13906 dynamic_linker
="$host_os dyld"
13907 version_type
=darwin
13910 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13911 soname_spec
='${libname}${release}${major}$shared_ext'
13912 shlibpath_overrides_runpath
=yes
13913 shlibpath_var
=DYLD_LIBRARY_PATH
13914 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
13916 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
13923 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13924 soname_spec
='${libname}${release}${shared_ext}$major'
13925 shlibpath_var
=LD_LIBRARY_PATH
13928 freebsd
* | dragonfly
*)
13929 # DragonFly does not have aout. When/if they implement a new
13930 # versioning mechanism, adjust this.
13931 if test -x /usr
/bin
/objformat
; then
13932 objformat
=`/usr/bin/objformat`
13935 freebsd
[23].
*) objformat
=aout
;;
13936 *) objformat
=elf
;;
13939 version_type
=freebsd-
$objformat
13940 case $version_type in
13942 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13947 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13951 shlibpath_var
=LD_LIBRARY_PATH
13954 shlibpath_overrides_runpath
=yes
13956 freebsd3.
[01]* | freebsdelf3.
[01]*)
13957 shlibpath_overrides_runpath
=yes
13958 hardcode_into_libs
=yes
13960 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
13961 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
13962 shlibpath_overrides_runpath
=no
13963 hardcode_into_libs
=yes
13965 *) # from 4.6 on, and DragonFly
13966 shlibpath_overrides_runpath
=yes
13967 hardcode_into_libs
=yes
13976 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13977 soname_spec
='${libname}${release}${shared_ext}$major'
13978 shlibpath_var
=LD_LIBRARY_PATH
13979 hardcode_into_libs
=yes
13986 dynamic_linker
="$host_os runtime_loader"
13987 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13988 soname_spec
='${libname}${release}${shared_ext}$major'
13989 shlibpath_var
=LIBRARY_PATH
13990 shlibpath_overrides_runpath
=yes
13991 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13992 hardcode_into_libs
=yes
13995 hpux9
* | hpux10
* | hpux11
*)
13996 # Give a soname corresponding to the major version so that dld.sl refuses to
13997 # link against other versions.
14004 hardcode_into_libs
=yes
14005 dynamic_linker
="$host_os dld.so"
14006 shlibpath_var
=LD_LIBRARY_PATH
14007 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14008 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14009 soname_spec
='${libname}${release}${shared_ext}$major'
14010 if test "X$HPUX_IA64_MODE" = X32
; then
14011 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14013 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14015 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14019 hardcode_into_libs
=yes
14020 dynamic_linker
="$host_os dld.sl"
14021 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14022 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14023 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14024 soname_spec
='${libname}${release}${shared_ext}$major'
14025 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14026 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14030 dynamic_linker
="$host_os dld.sl"
14031 shlibpath_var
=SHLIB_PATH
14032 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14034 soname_spec
='${libname}${release}${shared_ext}$major'
14037 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14038 postinstall_cmds
='chmod 555 $lib'
14039 # or fails outright, so override atomically:
14040 install_override_mode
=555
14047 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14048 soname_spec
='${libname}${release}${shared_ext}$major'
14049 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14050 shlibpath_var
=LD_LIBRARY_PATH
14051 shlibpath_overrides_runpath
=no
14052 hardcode_into_libs
=yes
14055 irix5
* | irix6
* | nonstopux
*)
14057 nonstopux
*) version_type
=nonstopux
;;
14059 if test "$lt_cv_prog_gnu_ld" = yes; then
14067 soname_spec
='${libname}${release}${shared_ext}$major'
14068 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14070 irix5
* | nonstopux
*)
14071 libsuff
= shlibsuff
=
14074 case $LD in # libtool.m4 will add one of these switches to LD
14075 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14076 libsuff
= shlibsuff
= libmagic
=32-bit;;
14077 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14078 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14079 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14080 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14081 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14085 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14086 shlibpath_overrides_runpath
=no
14087 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14088 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14089 hardcode_into_libs
=yes
14092 # No shared lib support for Linux oldld, aout, or coff.
14093 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14097 # This must be Linux ELF.
14098 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14102 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14103 soname_spec
='${libname}${release}${shared_ext}$major'
14104 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14105 shlibpath_var
=LD_LIBRARY_PATH
14106 shlibpath_overrides_runpath
=no
14108 # Some binutils ld are patched to set DT_RUNPATH
14109 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14110 $as_echo_n "(cached) " >&6
14112 lt_cv_shlibpath_overrides_runpath
=no
14113 save_LDFLAGS
=$LDFLAGS
14114 save_libdir
=$libdir
14115 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14116 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14117 cat > conftest.
$ac_ext <<_ACEOF
14122 if ac_fn_fc_try_link
"$LINENO"; then :
14123 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14124 lt_cv_shlibpath_overrides_runpath
=yes
14127 rm -f core conftest.err conftest.
$ac_objext \
14128 conftest
$ac_exeext conftest.
$ac_ext
14129 LDFLAGS
=$save_LDFLAGS
14130 libdir
=$save_libdir
14134 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14136 # This implies no fast_install, which is unacceptable.
14137 # Some rework will be needed to allow for fast_install
14138 # before this can be enabled.
14139 hardcode_into_libs
=yes
14141 # Append ld.so.conf contents to the search path
14142 if test -f /etc
/ld.so.conf
; then
14143 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' ' '`
14144 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14147 # We used to test for /lib/ld.so.1 and disable shared libraries on
14148 # powerpc, because MkLinux only supported shared libraries with the
14149 # GNU dynamic linker. Since this was broken with cross compilers,
14150 # most powerpc-linux boxes support dynamic linking these days and
14151 # people can always --disable-shared, the test was removed, and we
14152 # assume the GNU/Linux dynamic linker is in use.
14153 dynamic_linker
='GNU/Linux ld.so'
14160 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14161 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14162 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14163 dynamic_linker
='NetBSD (a.out) ld.so'
14165 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14166 soname_spec
='${libname}${release}${shared_ext}$major'
14167 dynamic_linker
='NetBSD ld.elf_so'
14169 shlibpath_var
=LD_LIBRARY_PATH
14170 shlibpath_overrides_runpath
=yes
14171 hardcode_into_libs
=yes
14176 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14177 shlibpath_var
=LD_LIBRARY_PATH
14178 shlibpath_overrides_runpath
=yes
14185 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14186 soname_spec
='${libname}${release}${shared_ext}$major'
14187 shlibpath_var
=LD_LIBRARY_PATH
14188 shlibpath_overrides_runpath
=no
14189 hardcode_into_libs
=yes
14190 dynamic_linker
='ldqnx.so'
14195 sys_lib_dlsearch_path_spec
="/usr/lib"
14197 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14199 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14200 *) need_version
=no
;;
14202 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14203 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14204 shlibpath_var
=LD_LIBRARY_PATH
14205 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14207 openbsd2.
[89] | openbsd2.
[89].
*)
14208 shlibpath_overrides_runpath
=no
14211 shlibpath_overrides_runpath
=yes
14215 shlibpath_overrides_runpath
=yes
14220 libname_spec
='$name'
14223 library_names_spec
='$libname${shared_ext} $libname.a'
14224 dynamic_linker
='OS/2 ld.exe'
14225 shlibpath_var
=LIBPATH
14228 osf3
* | osf4
* | osf5
*)
14232 soname_spec
='${libname}${release}${shared_ext}$major'
14233 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14234 shlibpath_var
=LD_LIBRARY_PATH
14235 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14236 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14247 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14248 soname_spec
='${libname}${release}${shared_ext}$major'
14249 shlibpath_var
=LD_LIBRARY_PATH
14250 shlibpath_overrides_runpath
=yes
14251 hardcode_into_libs
=yes
14252 # ldd complains unless libraries are executable
14253 postinstall_cmds
='chmod +x $lib'
14258 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14259 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14260 shlibpath_var
=LD_LIBRARY_PATH
14261 shlibpath_overrides_runpath
=yes
14262 if test "$with_gnu_ld" = yes; then
14270 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14271 soname_spec
='${libname}${release}${shared_ext}$major'
14272 shlibpath_var
=LD_LIBRARY_PATH
14273 case $host_vendor in
14275 shlibpath_overrides_runpath
=no
14277 runpath_var
=LD_RUN_PATH
14285 shlibpath_overrides_runpath
=no
14286 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14292 if test -d /usr
/nec
;then
14294 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14295 soname_spec
='$libname${shared_ext}.$major'
14296 shlibpath_var
=LD_LIBRARY_PATH
14300 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14301 version_type
=freebsd-elf
14304 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14305 soname_spec
='${libname}${release}${shared_ext}$major'
14306 shlibpath_var
=LD_LIBRARY_PATH
14307 shlibpath_overrides_runpath
=yes
14308 hardcode_into_libs
=yes
14309 if test "$with_gnu_ld" = yes; then
14310 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14312 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14315 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14319 sys_lib_dlsearch_path_spec
='/usr/lib'
14323 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14327 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14328 shlibpath_var
=LD_LIBRARY_PATH
14329 shlibpath_overrides_runpath
=no
14330 hardcode_into_libs
=yes
14335 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14336 soname_spec
='${libname}${release}${shared_ext}$major'
14337 shlibpath_var
=LD_LIBRARY_PATH
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14345 $as_echo "$dynamic_linker" >&6; }
14346 test "$dynamic_linker" = no
&& can_build_shared
=no
14348 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14349 if test "$GCC" = yes; then
14350 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14353 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14354 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14356 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14357 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14398 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14399 hardcode_action_FC
=
14400 if test -n "$hardcode_libdir_flag_spec_FC" ||
14401 test -n "$runpath_var_FC" ||
14402 test "X$hardcode_automatic_FC" = "Xyes" ; then
14404 # We can hardcode non-existent directories.
14405 if test "$hardcode_direct_FC" != no
&&
14406 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14407 # have to relink, otherwise we might link with an installed library
14408 # when we should be linking with a yet-to-be-installed one
14409 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14410 test "$hardcode_minus_L_FC" != no
; then
14411 # Linking always hardcodes the temporary library directory.
14412 hardcode_action_FC
=relink
14414 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14415 hardcode_action_FC
=immediate
14418 # We cannot hardcode anything, or else we can only hardcode existing
14420 hardcode_action_FC
=unsupported
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14423 $as_echo "$hardcode_action_FC" >&6; }
14425 if test "$hardcode_action_FC" = relink ||
14426 test "$inherit_rpath_FC" = yes; then
14427 # Fast installation is not supported
14428 enable_fast_install
=no
14429 elif test "$shlibpath_overrides_runpath" = yes ||
14430 test "$enable_shared" = no
; then
14431 # Fast installation is not necessary
14432 enable_fast_install
=needless
14441 fi # test -n "$compiler"
14445 fi # test "$_lt_disable_FC" != yes
14448 ac_cpp
='$CPP $CPPFLAGS'
14449 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14450 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14451 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14454 FCFLAGS
="$FCFLAGS -Wall -L../libgfortran"
14456 # For libtool versioning info, format is CURRENT:REVISION:AGE
14457 libtool_VERSION
=1:0:0
14460 # Check header files.
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14462 $as_echo_n "checking for ANSI C header files... " >&6; }
14463 if test "${ac_cv_header_stdc+set}" = set; then :
14464 $as_echo_n "(cached) " >&6
14466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14467 /* end confdefs.h. */
14468 #include <stdlib.h>
14469 #include <stdarg.h>
14470 #include <string.h>
14481 if ac_fn_c_try_compile
"$LINENO"; then :
14482 ac_cv_header_stdc
=yes
14484 ac_cv_header_stdc
=no
14486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14488 if test $ac_cv_header_stdc = yes; then
14489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h. */
14492 #include <string.h>
14495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14496 $EGREP "memchr" >/dev
/null
2>&1; then :
14499 ac_cv_header_stdc
=no
14505 if test $ac_cv_header_stdc = yes; then
14506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h. */
14509 #include <stdlib.h>
14512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14513 $EGREP "free" >/dev
/null
2>&1; then :
14516 ac_cv_header_stdc
=no
14522 if test $ac_cv_header_stdc = yes; then
14523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14524 if test "$cross_compiling" = yes; then :
14527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14530 #include <stdlib.h>
14531 #if ((' ' & 0x0FF) == 0x020)
14532 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14533 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14535 # define ISLOWER(c) \
14536 (('a' <= (c) && (c) <= 'i') \
14537 || ('j' <= (c) && (c) <= 'r') \
14538 || ('s' <= (c) && (c) <= 'z'))
14539 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14542 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14547 for (i = 0; i < 256; i++)
14548 if (XOR (islower (i), ISLOWER (i))
14549 || toupper (i) != TOUPPER (i))
14554 if ac_fn_c_try_run
"$LINENO"; then :
14557 ac_cv_header_stdc
=no
14559 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14560 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14566 $as_echo "$ac_cv_header_stdc" >&6; }
14567 if test $ac_cv_header_stdc = yes; then
14569 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14574 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14575 if test "${ac_cv_header_time+set}" = set; then :
14576 $as_echo_n "(cached) " >&6
14578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14579 /* end confdefs.h. */
14580 #include <sys/types.h>
14581 #include <sys/time.h>
14587 if ((struct tm *) 0)
14593 if ac_fn_c_try_compile
"$LINENO"; then :
14594 ac_cv_header_time
=yes
14596 ac_cv_header_time
=no
14598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14601 $as_echo "$ac_cv_header_time" >&6; }
14602 if test $ac_cv_header_time = yes; then
14604 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14609 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14610 if test "${gcc_cv_header_string+set}" = set; then :
14611 $as_echo_n "(cached) " >&6
14613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h. */
14615 #include <string.h>
14616 #include <strings.h>
14625 if ac_fn_c_try_compile
"$LINENO"; then :
14626 gcc_cv_header_string
=yes
14628 gcc_cv_header_string
=no
14630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14633 $as_echo "$gcc_cv_header_string" >&6; }
14634 if test $gcc_cv_header_string = yes; then
14636 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14640 for ac_header
in pthread.h unistd.h semaphore.h sys
/loadavg.h sys
/sysctl.h sys
/time.h
14642 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14643 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14644 eval as_val
=\$
$as_ac_Header
14645 if test "x$as_val" = x
""yes; then :
14646 cat >>confdefs.h
<<_ACEOF
14647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14657 inttype_headers
=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14659 acx_cv_header_stdint
=stddef.h
14660 acx_cv_header_stdint_kind
="(already complete)"
14661 for i
in stdint.h
$inttype_headers; do
14662 unset ac_cv_type_uintptr_t
14663 unset ac_cv_type_uintmax_t
14664 unset ac_cv_type_int_least32_t
14665 unset ac_cv_type_int_fast32_t
14666 unset ac_cv_type_uint64_t
14667 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14668 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14671 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
14672 acx_cv_header_stdint
=$i
14677 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14680 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
14683 acx_cv_header_stdint_kind
="(mostly complete)"
14686 ac_fn_c_check_type
"$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14689 if test "x$ac_cv_type_int_least32_t" = x
""yes; then :
14692 acx_cv_header_stdint_kind
="(mostly complete)"
14695 ac_fn_c_check_type
"$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14698 if test "x$ac_cv_type_int_fast32_t" = x
""yes; then :
14701 acx_cv_header_stdint_kind
="(mostly complete)"
14704 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14707 if test "x$ac_cv_type_uint64_t" = x
""yes; then :
14710 acx_cv_header_stdint_kind
="(lacks uint64_t)"
14715 if test "$acx_cv_header_stdint" = stddef.h
; then
14716 acx_cv_header_stdint_kind
="(lacks uintmax_t)"
14717 for i
in stdint.h
$inttype_headers; do
14718 unset ac_cv_type_uintptr_t
14719 unset ac_cv_type_uint32_t
14720 unset ac_cv_type_uint64_t
14721 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14722 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14725 if test "x$ac_cv_type_uint32_t" = x
""yes; then :
14726 acx_cv_header_stdint
=$i
14731 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14734 if test "x$ac_cv_type_uint64_t" = x
""yes; then :
14738 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14741 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
14748 if test "$acx_cv_header_stdint" = stddef.h
; then
14749 acx_cv_header_stdint_kind
="(u_intXX_t style)"
14750 for i
in sys
/types.h
$inttype_headers; do
14751 unset ac_cv_type_u_int32_t
14752 unset ac_cv_type_u_int64_t
14753 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14754 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14757 if test "x$ac_cv_type_u_int32_t" = x
""yes; then :
14758 acx_cv_header_stdint
=$i
14763 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14766 if test "x$ac_cv_type_u_int64_t" = x
""yes; then :
14773 if test "$acx_cv_header_stdint" = stddef.h
; then
14774 acx_cv_header_stdint_kind
="(using manual detection)"
14777 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t
=no
14778 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t
=no
14779 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t
=no
14780 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t
=no
14781 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t
=no
14783 # ----------------- Summarize what we found so far
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14786 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14788 case `$as_basename -- gstdint.h ||
14789 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14790 Xgstdint.h : 'X\(//\)$' \| \
14791 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14792 $as_echo X/gstdint.h |
14793 sed '/^.*\/\([^/][^/]*\)\/*$/{
14806 stdint.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14807 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14808 inttypes.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14809 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14814 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14816 # ----------------- done included file, check C basic types --------
14818 # Lacking an uintptr_t? Test size of void *
14819 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14820 stddef.h
:* |
*:no
) # The cast to long int works around a bug in the HP C Compiler
14821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14823 # This bug is HP SR number 8606223364.
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14825 $as_echo_n "checking size of void *... " >&6; }
14826 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14827 $as_echo_n "(cached) " >&6
14829 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14832 if test "$ac_cv_type_void_p" = yes; then
14833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14835 { as_fn_set_status
77
14836 as_fn_error
"cannot compute sizeof (void *)
14837 See \`config.log' for more details." "$LINENO" 5; }; }
14839 ac_cv_sizeof_void_p
=0
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14845 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14849 cat >>confdefs.h
<<_ACEOF
14850 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14856 # Lacking an uint64_t? Test size of long
14857 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14858 stddef.h
:*:* |
*:no
:no
) # The cast to long int works around a bug in the HP C Compiler
14859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14861 # This bug is HP SR number 8606223364.
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14863 $as_echo_n "checking size of long... " >&6; }
14864 if test "${ac_cv_sizeof_long+set}" = set; then :
14865 $as_echo_n "(cached) " >&6
14867 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14870 if test "$ac_cv_type_long" = yes; then
14871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14873 { as_fn_set_status
77
14874 as_fn_error
"cannot compute sizeof (long)
14875 See \`config.log' for more details." "$LINENO" 5; }; }
14877 ac_cv_sizeof_long
=0
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14883 $as_echo "$ac_cv_sizeof_long" >&6; }
14887 cat >>confdefs.h
<<_ACEOF
14888 #define SIZEOF_LONG $ac_cv_sizeof_long
14894 if test $acx_cv_header_stdint = stddef.h
; then
14895 # Lacking a good header? Test size of everything and deduce all types.
14896 # The cast to long int works around a bug in the HP C Compiler
14897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14899 # This bug is HP SR number 8606223364.
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14901 $as_echo_n "checking size of int... " >&6; }
14902 if test "${ac_cv_sizeof_int+set}" = set; then :
14903 $as_echo_n "(cached) " >&6
14905 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14908 if test "$ac_cv_type_int" = yes; then
14909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14911 { as_fn_set_status
77
14912 as_fn_error
"cannot compute sizeof (int)
14913 See \`config.log' for more details." "$LINENO" 5; }; }
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14921 $as_echo "$ac_cv_sizeof_int" >&6; }
14925 cat >>confdefs.h
<<_ACEOF
14926 #define SIZEOF_INT $ac_cv_sizeof_int
14930 # The cast to long int works around a bug in the HP C Compiler
14931 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14932 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14933 # This bug is HP SR number 8606223364.
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14935 $as_echo_n "checking size of short... " >&6; }
14936 if test "${ac_cv_sizeof_short+set}" = set; then :
14937 $as_echo_n "(cached) " >&6
14939 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14942 if test "$ac_cv_type_short" = yes; then
14943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14945 { as_fn_set_status
77
14946 as_fn_error
"cannot compute sizeof (short)
14947 See \`config.log' for more details." "$LINENO" 5; }; }
14949 ac_cv_sizeof_short
=0
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14955 $as_echo "$ac_cv_sizeof_short" >&6; }
14959 cat >>confdefs.h
<<_ACEOF
14960 #define SIZEOF_SHORT $ac_cv_sizeof_short
14964 # The cast to long int works around a bug in the HP C Compiler
14965 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14966 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14967 # This bug is HP SR number 8606223364.
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14969 $as_echo_n "checking size of char... " >&6; }
14970 if test "${ac_cv_sizeof_char+set}" = set; then :
14971 $as_echo_n "(cached) " >&6
14973 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14976 if test "$ac_cv_type_char" = yes; then
14977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14979 { as_fn_set_status
77
14980 as_fn_error
"cannot compute sizeof (char)
14981 See \`config.log' for more details." "$LINENO" 5; }; }
14983 ac_cv_sizeof_char
=0
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14989 $as_echo "$ac_cv_sizeof_char" >&6; }
14993 cat >>confdefs.h
<<_ACEOF
14994 #define SIZEOF_CHAR $ac_cv_sizeof_char
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15000 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15001 case "$ac_cv_sizeof_char" in
15002 1) acx_cv_type_int8_t
=char
;;
15003 *) as_fn_error
"no 8-bit type, please report a bug" "$LINENO" 5
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15006 $as_echo "$acx_cv_type_int8_t" >&6; }
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15009 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15010 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15011 2:*) acx_cv_type_int16_t
=int
;;
15012 *:2) acx_cv_type_int16_t
=short
;;
15013 *) as_fn_error
"no 16-bit type, please report a bug" "$LINENO" 5
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15016 $as_echo "$acx_cv_type_int16_t" >&6; }
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15019 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15020 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15021 4:*) acx_cv_type_int32_t
=int
;;
15022 *:4) acx_cv_type_int32_t
=long
;;
15023 *) as_fn_error
"no 32-bit type, please report a bug" "$LINENO" 5
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15026 $as_echo "$acx_cv_type_int32_t" >&6; }
15029 # These tests are here to make the output prettier
15031 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15032 case "$ac_cv_sizeof_long" in
15033 8) acx_cv_type_int64_t
=long
;;
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15036 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15038 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15041 # Now we can use the above types
15043 if test "$ac_cv_type_uintptr_t" != yes; then
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15045 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15046 case $ac_cv_sizeof_void_p in
15047 2) acx_cv_type_intptr_t
=int16_t
;;
15048 4) acx_cv_type_intptr_t
=int32_t
;;
15049 8) acx_cv_type_intptr_t
=int64_t
;;
15050 *) as_fn_error
"no equivalent for intptr_t, please report a bug" "$LINENO" 5
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15053 $as_echo "$acx_cv_type_intptr_t" >&6; }
15056 # ----------------- done all checks, emit header -------------
15057 ac_config_commands
="$ac_config_commands gstdint.h"
15065 # RTEMS supports Pthreads, but the library is not available at GCC build time.
15068 # NVPTX does not support Pthreads, has its own code replacement.
15071 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15072 # In case the pthread.h system header is not found, this test will fail.
15073 CFLAGS
="$CFLAGS -pthread"
15074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15075 /* end confdefs.h. */
15076 #include <pthread.h>
15077 void *g(void *d) { return NULL; }
15081 pthread_t t; pthread_create(&t,NULL,g,NULL);
15086 if ac_fn_c_try_link
"$LINENO"; then :
15087 XPCFLAGS
=" -Wc,-pthread"
15089 CFLAGS
="$save_CFLAGS" LIBS
="-lpthread $LIBS"
15090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h. */
15092 #include <pthread.h>
15093 void *g(void *d) { return NULL; }
15097 pthread_t t; pthread_create(&t,NULL,g,NULL);
15102 if ac_fn_c_try_link
"$LINENO"; then :
15105 as_fn_error
"Pthreads are required to build libgomp" "$LINENO" 5
15107 rm -f core conftest.err conftest.
$ac_objext \
15108 conftest
$ac_exeext conftest.
$ac_ext
15110 rm -f core conftest.err conftest.
$ac_objext \
15111 conftest
$ac_exeext conftest.
$ac_ext
15114 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15116 # Copyright (C) 2014-2016 Free Software Foundation, Inc.
15118 # Contributed by Mentor Embedded.
15120 # This file is part of the GNU Offloading and Multi Processing Library
15123 # Libgomp is free software; you can redistribute it and/or modify it
15124 # under the terms of the GNU General Public License as published by
15125 # the Free Software Foundation; either version 3, or (at your option)
15126 # any later version.
15128 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15129 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15130 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15133 # Under Section 7 of GPL version 3, you are granted additional
15134 # permissions described in the GCC Runtime Library Exception, version
15135 # 3.1, as published by the Free Software Foundation.
15137 # You should have received a copy of the GNU General Public License and
15138 # a copy of the GCC Runtime Library Exception along with this program;
15139 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15140 # <http://www.gnu.org/licenses/>.
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15146 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15147 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15148 $as_echo_n "(cached) " >&6
15150 ac_check_lib_save_LIBS
=$LIBS
15152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15155 /* Override any GCC internal prototype to avoid an error.
15156 Use char because int might match the return type of a GCC
15157 builtin and then its argument prototype would still apply. */
15170 if ac_fn_c_try_link
"$LINENO"; then :
15171 ac_cv_lib_dl_dlsym
=yes
15173 ac_cv_lib_dl_dlsym
=no
15175 rm -f core conftest.err conftest.
$ac_objext \
15176 conftest
$ac_exeext conftest.
$ac_ext
15177 LIBS
=$ac_check_lib_save_LIBS
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15180 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15181 if test "x$ac_cv_lib_dl_dlsym" = x
""yes; then :
15182 cat >>confdefs.h
<<_ACEOF
15183 #define HAVE_LIBDL 1
15192 if test x
"$plugin_support" = xyes
; then
15194 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15196 elif test "x${enable_offload_targets-no}" != xno
; then
15197 as_fn_error
"Can't support offloading without support for plugins" "$LINENO" 5
15200 # Look for the CUDA driver package.
15201 CUDA_DRIVER_INCLUDE
=
15205 CUDA_DRIVER_CPPFLAGS
=
15206 CUDA_DRIVER_LDFLAGS
=
15208 # Check whether --with-cuda-driver was given.
15209 if test "${with_cuda_driver+set}" = set; then :
15210 withval
=$with_cuda_driver;
15214 # Check whether --with-cuda-driver-include was given.
15215 if test "${with_cuda_driver_include+set}" = set; then :
15216 withval
=$with_cuda_driver_include;
15220 # Check whether --with-cuda-driver-lib was given.
15221 if test "${with_cuda_driver_lib+set}" = set; then :
15222 withval
=$with_cuda_driver_lib;
15225 if test "x$with_cuda_driver" != x
; then
15226 CUDA_DRIVER_INCLUDE
=$with_cuda_driver/include
15227 CUDA_DRIVER_LIB
=$with_cuda_driver/lib
15229 if test "x$with_cuda_driver_include" != x
; then
15230 CUDA_DRIVER_INCLUDE
=$with_cuda_driver_include
15232 if test "x$with_cuda_driver_lib" != x
; then
15233 CUDA_DRIVER_LIB
=$with_cuda_driver_lib
15235 if test "x$CUDA_DRIVER_INCLUDE" != x
; then
15236 CUDA_DRIVER_CPPFLAGS
=-I$CUDA_DRIVER_INCLUDE
15238 if test "x$CUDA_DRIVER_LIB" != x
; then
15239 CUDA_DRIVER_LDFLAGS
=-L$CUDA_DRIVER_LIB
15243 PLUGIN_NVPTX_CPPFLAGS
=
15244 PLUGIN_NVPTX_LDFLAGS
=
15251 # Look for HSA run-time, its includes and libraries
15253 HSA_RUNTIME_INCLUDE
=
15257 HSA_RUNTIME_CPPFLAGS
=
15258 HSA_RUNTIME_LDFLAGS
=
15261 # Check whether --with-hsa-runtime was given.
15262 if test "${with_hsa_runtime+set}" = set; then :
15263 withval
=$with_hsa_runtime;
15267 # Check whether --with-hsa-runtime-include was given.
15268 if test "${with_hsa_runtime_include+set}" = set; then :
15269 withval
=$with_hsa_runtime_include;
15273 # Check whether --with-hsa-runtime-lib was given.
15274 if test "${with_hsa_runtime_lib+set}" = set; then :
15275 withval
=$with_hsa_runtime_lib;
15278 if test "x$with_hsa_runtime" != x
; then
15279 HSA_RUNTIME_INCLUDE
=$with_hsa_runtime/include
15280 HSA_RUNTIME_LIB
=$with_hsa_runtime/lib
15282 if test "x$with_hsa_runtime_include" != x
; then
15283 HSA_RUNTIME_INCLUDE
=$with_hsa_runtime_include
15285 if test "x$with_hsa_runtime_lib" != x
; then
15286 HSA_RUNTIME_LIB
=$with_hsa_runtime_lib
15288 if test "x$HSA_RUNTIME_INCLUDE" != x
; then
15289 HSA_RUNTIME_CPPFLAGS
=-I$HSA_RUNTIME_INCLUDE
15291 if test "x$HSA_RUNTIME_LIB" != x
; then
15292 HSA_RUNTIME_LDFLAGS
=-L$HSA_RUNTIME_LIB
15296 # Check whether --with-hsa-kmt-lib was given.
15297 if test "${with_hsa_kmt_lib+set}" = set; then :
15298 withval
=$with_hsa_kmt_lib;
15301 if test "x$with_hsa_kmt_lib" != x
; then
15302 HSA_RUNTIME_LDFLAGS
="$HSA_RUNTIME_LDFLAGS -L$with_hsa_kmt_lib"
15307 PLUGIN_HSA_CPPFLAGS
=
15308 PLUGIN_HSA_LDFLAGS
=
15317 # Get offload targets and path to install tree of offloading compiler.
15318 offload_additional_options
=
15319 offload_additional_lib_paths
=
15322 if test x
"$enable_offload_targets" != x
; then
15323 for tgt
in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15324 tgt_dir
=`echo $tgt | grep '=' | sed 's/.*=//'`
15325 tgt
=`echo $tgt | sed 's/=.*//'`
15327 *-intelmic-* |
*-intelmicemul-*)
15333 PLUGIN_NVPTX_CPPFLAGS
=$CUDA_DRIVER_CPPFLAGS
15334 PLUGIN_NVPTX_LDFLAGS
=$CUDA_DRIVER_LDFLAGS
15335 PLUGIN_NVPTX_LIBS
='-lcuda'
15337 PLUGIN_NVPTX_save_CPPFLAGS
=$CPPFLAGS
15338 CPPFLAGS
="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15339 PLUGIN_NVPTX_save_LDFLAGS
=$LDFLAGS
15340 LDFLAGS
="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15341 PLUGIN_NVPTX_save_LIBS
=$LIBS
15342 LIBS
="$PLUGIN_NVPTX_LIBS $LIBS"
15343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15344 /* end confdefs.h. */
15349 CUresult r = cuCtxPushCurrent (NULL);
15354 if ac_fn_c_try_link
"$LINENO"; then :
15357 rm -f core conftest.err conftest.
$ac_objext \
15358 conftest
$ac_exeext conftest.
$ac_ext
15359 CPPFLAGS
=$PLUGIN_NVPTX_save_CPPFLAGS
15360 LDFLAGS
=$PLUGIN_NVPTX_save_LDFLAGS
15361 LIBS
=$PLUGIN_NVPTX_save_LIBS
15362 case $PLUGIN_NVPTX in
15365 as_fn_error
"CUDA driver package required for nvptx support" "$LINENO" 5
15370 case "${target}" in
15372 case " ${CC} ${CFLAGS} " in
15379 PLUGIN_HSA_CPPFLAGS
=$HSA_RUNTIME_CPPFLAGS
15380 PLUGIN_HSA_LDFLAGS
=$HSA_RUNTIME_LDFLAGS
15381 PLUGIN_HSA_LIBS
="-lhsa-runtime64 -lhsakmt"
15383 PLUGIN_HSA_save_CPPFLAGS
=$CPPFLAGS
15384 CPPFLAGS
="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15385 PLUGIN_HSA_save_LDFLAGS
=$LDFLAGS
15386 LDFLAGS
="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15387 PLUGIN_HSA_save_LIBS
=$LIBS
15388 LIBS
="$PLUGIN_HSA_LIBS $LIBS"
15390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15391 /* end confdefs.h. */
15396 hsa_status_t status = hsa_init ()
15401 if ac_fn_c_try_link
"$LINENO"; then :
15404 rm -f core conftest.err conftest.
$ac_objext \
15405 conftest
$ac_exeext conftest.
$ac_ext
15406 CPPFLAGS
=$PLUGIN_HSA_save_CPPFLAGS
15407 LDFLAGS
=$PLUGIN_HSA_save_LDFLAGS
15408 LIBS
=$PLUGIN_HSA_save_LIBS
15409 case $PLUGIN_HSA in
15412 as_fn_error
"HSA run-time package required for HSA support" "$LINENO" 5
15424 as_fn_error
"unknown offload target specified" "$LINENO" 5
15427 if test x
"$offload_targets" = x
; then
15428 offload_targets
=$tgt_name
15430 offload_targets
=$offload_targets,$tgt_name
15432 if test x
"$tgt_dir" != x
; then
15433 offload_additional_options
="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15434 offload_additional_lib_paths
="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15436 offload_additional_options
="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15437 offload_additional_lib_paths
="$offload_additional_lib_paths:$toolexeclibdir"
15442 cat >>confdefs.h
<<_ACEOF
15443 #define OFFLOAD_TARGETS "$offload_targets"
15446 if test $PLUGIN_NVPTX = 1; then
15448 PLUGIN_NVPTX_FALSE
='#'
15450 PLUGIN_NVPTX_TRUE
='#'
15451 PLUGIN_NVPTX_FALSE
=
15455 cat >>confdefs.h
<<_ACEOF
15456 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15459 if test $PLUGIN_HSA = 1; then
15461 PLUGIN_HSA_FALSE
='#'
15463 PLUGIN_HSA_TRUE
='#'
15468 cat >>confdefs.h
<<_ACEOF
15469 #define PLUGIN_HSA $PLUGIN_HSA
15474 # Check for functions needed.
15475 for ac_func
in getloadavg clock_gettime strtoull
15477 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15478 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15479 eval as_val
=\$
$as_ac_var
15480 if test "x$as_val" = x
""yes; then :
15481 cat >>confdefs.h
<<_ACEOF
15482 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15489 # Check for broken semaphore implementation on darwin.
15490 # sem_init returns: sem_init error: Function not implemented.
15494 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15499 # RTEMS specific checks
15502 ac_fn_c_check_type
"$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15504 if test "x$ac_cv_type_struct__Mutex_Control" = x
""yes; then :
15506 cat >>confdefs.h
<<_ACEOF
15507 #define HAVE_STRUCT__MUTEX_CONTROL 1
15516 # Check whether --enable-linux-futex was given.
15517 if test "${enable_linux_futex+set}" = set; then :
15518 enableval
=$enable_linux_futex;
15519 case "$enableval" in
15521 *) as_fn_error
"Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15525 enable_linux_futex
=default
15531 case "$enable_linux_futex" in
15533 # If headers don't have gettid/futex syscalls definition, then
15534 # default to no, otherwise there will be compile time failures.
15535 # Otherwise, default to yes. If we don't detect we are
15536 # compiled/linked against NPTL and not cross-compiling, check
15537 # if programs are run by default against NPTL and if not, issue
15539 enable_linux_futex
=no
15540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15541 /* end confdefs.h. */
15542 #include <sys/syscall.h>
15547 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15552 if ac_fn_c_try_link
"$LINENO"; then :
15554 LIBS
="-lpthread $LIBS"
15555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h. */
15557 #ifndef _GNU_SOURCE
15558 #define _GNU_SOURCE 1
15560 #include <pthread.h>
15561 pthread_t th; void *status;
15565 pthread_tryjoin_np (th, &status);
15570 if ac_fn_c_try_link
"$LINENO"; then :
15571 enable_linux_futex
=yes
15573 if test x
$cross_compiling = xno
; then
15574 if getconf GNU_LIBPTHREAD_VERSION
2>/dev
/null \
15575 | LC_ALL
=C
grep -i NPTL
> /dev
/null
2>/dev
/null
; then :; else
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15577 If so, please configure with --disable-linux-futex" >&5
15578 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15579 If so, please configure with --disable-linux-futex" >&2;}
15582 enable_linux_futex
=yes
15584 rm -f core conftest.err conftest.
$ac_objext \
15585 conftest
$ac_exeext conftest.
$ac_ext
15588 rm -f core conftest.err conftest.
$ac_objext \
15589 conftest
$ac_exeext conftest.
$ac_ext
15592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15593 /* end confdefs.h. */
15594 #include <sys/syscall.h>
15599 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15604 if ac_fn_c_try_link
"$LINENO"; then :
15607 as_fn_error
"SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15609 rm -f core conftest.err conftest.
$ac_objext \
15610 conftest
$ac_exeext conftest.
$ac_ext
15615 enable_linux_futex
=no
15618 if test x
$enable_linux_futex = xyes
; then
15623 # Check for pthread_{,attr_}[sg]etaffinity_np.
15624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15625 /* end confdefs.h. */
15626 #define _GNU_SOURCE
15627 #include <pthread.h>
15632 pthread_attr_t attr;
15633 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15634 if (CPU_ISSET (0, &cpuset))
15635 CPU_SET (1, &cpuset);
15637 CPU_ZERO (&cpuset);
15638 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15639 pthread_attr_init (&attr);
15640 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15641 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15646 if ac_fn_c_try_link
"$LINENO"; then :
15648 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15651 rm -f core conftest.err conftest.
$ac_objext \
15652 conftest
$ac_exeext conftest.
$ac_ext
15654 # At least for glibc, clock_gettime is in librt. But don't pull that
15655 # in if it still doesn't give us the function we want.
15656 if test $ac_cv_func_clock_gettime = no
; then
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15658 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15659 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15660 $as_echo_n "(cached) " >&6
15662 ac_check_lib_save_LIBS
=$LIBS
15664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15665 /* end confdefs.h. */
15667 /* Override any GCC internal prototype to avoid an error.
15668 Use char because int might match the return type of a GCC
15669 builtin and then its argument prototype would still apply. */
15673 char clock_gettime ();
15677 return clock_gettime ();
15682 if ac_fn_c_try_link
"$LINENO"; then :
15683 ac_cv_lib_rt_clock_gettime
=yes
15685 ac_cv_lib_rt_clock_gettime
=no
15687 rm -f core conftest.err conftest.
$ac_objext \
15688 conftest
$ac_exeext conftest.
$ac_ext
15689 LIBS
=$ac_check_lib_save_LIBS
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15692 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15693 if test "x$ac_cv_lib_rt_clock_gettime" = x
""yes; then :
15696 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15702 # See if we support thread-local storage.
15705 # Check whether --enable-tls was given.
15706 if test "${enable_tls+set}" = set; then :
15707 enableval
=$enable_tls;
15708 case "$enableval" in
15710 *) as_fn_error
"Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15719 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15720 if test "${gcc_cv_have_tls+set}" = set; then :
15721 $as_echo_n "(cached) " >&6
15724 if test "$cross_compiling" = yes; then :
15725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15726 /* end confdefs.h. */
15727 __thread int a; int b; int main() { return a = b; }
15729 if ac_fn_c_try_link
"$LINENO"; then :
15730 chktls_save_LDFLAGS
="$LDFLAGS"
15733 LDFLAGS
="-shared -Wl,--no-undefined $LDFLAGS"
15736 chktls_save_CFLAGS
="$CFLAGS"
15737 CFLAGS
="-fPIC $CFLAGS"
15738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15739 /* end confdefs.h. */
15740 int f() { return 0; }
15742 if ac_fn_c_try_link
"$LINENO"; then :
15743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15744 /* end confdefs.h. */
15745 __thread int a; int b; int f() { return a = b; }
15747 if ac_fn_c_try_link
"$LINENO"; then :
15748 gcc_cv_have_tls
=yes
15752 rm -f core conftest.err conftest.
$ac_objext \
15753 conftest
$ac_exeext conftest.
$ac_ext
15755 gcc_cv_have_tls
=yes
15757 rm -f core conftest.err conftest.
$ac_objext \
15758 conftest
$ac_exeext conftest.
$ac_ext
15759 CFLAGS
="$chktls_save_CFLAGS"
15760 LDFLAGS
="$chktls_save_LDFLAGS"
15764 rm -f core conftest.err conftest.
$ac_objext \
15765 conftest
$ac_exeext conftest.
$ac_ext
15769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15770 /* end confdefs.h. */
15771 __thread int a; int b; int main() { return a = b; }
15773 if ac_fn_c_try_run
"$LINENO"; then :
15774 chktls_save_LDFLAGS
="$LDFLAGS"
15775 LDFLAGS
="-static $LDFLAGS"
15776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15778 int main() { return 0; }
15780 if ac_fn_c_try_link
"$LINENO"; then :
15781 if test "$cross_compiling" = yes; then :
15782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15784 as_fn_error
"cannot run test program while cross compiling
15785 See \`config.log' for more details." "$LINENO" 5; }
15787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15788 /* end confdefs.h. */
15789 __thread int a; int b; int main() { return a = b; }
15791 if ac_fn_c_try_run
"$LINENO"; then :
15792 gcc_cv_have_tls
=yes
15796 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15797 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15801 gcc_cv_have_tls
=yes
15803 rm -f core conftest.err conftest.
$ac_objext \
15804 conftest
$ac_exeext conftest.
$ac_ext
15805 LDFLAGS
="$chktls_save_LDFLAGS"
15806 if test $gcc_cv_have_tls = yes; then
15807 chktls_save_CFLAGS
="$CFLAGS"
15808 thread_CFLAGS
=failed
15809 for flag
in '' '-pthread' '-lpthread'; do
15810 CFLAGS
="$flag $chktls_save_CFLAGS"
15811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h. */
15813 #include <pthread.h>
15814 void *g(void *d) { return NULL; }
15818 pthread_t t; pthread_create(&t,NULL,g,NULL);
15823 if ac_fn_c_try_link
"$LINENO"; then :
15824 thread_CFLAGS
="$flag"
15826 rm -f core conftest.err conftest.
$ac_objext \
15827 conftest
$ac_exeext conftest.
$ac_ext
15828 if test "X$thread_CFLAGS" != Xfailed
; then
15832 CFLAGS
="$chktls_save_CFLAGS"
15833 if test "X$thread_CFLAGS" != Xfailed
; then
15834 CFLAGS
="$thread_CFLAGS $chktls_save_CFLAGS"
15835 if test "$cross_compiling" = yes; then :
15836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15838 as_fn_error
"cannot run test program while cross compiling
15839 See \`config.log' for more details." "$LINENO" 5; }
15841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15843 #include <pthread.h>
15845 static int *volatile a_in_other_thread;
15847 thread_func (void *arg)
15849 a_in_other_thread = &a;
15856 void *thread_retval;
15857 int *volatile a_in_main_thread;
15858 a_in_main_thread = &a;
15859 if (pthread_create (&thread, (pthread_attr_t *)0,
15860 thread_func, (void *)0))
15862 if (pthread_join (thread, &thread_retval))
15864 return (a_in_other_thread == a_in_main_thread);
15869 if ac_fn_c_try_run
"$LINENO"; then :
15870 gcc_cv_have_tls
=yes
15874 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15875 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15878 CFLAGS
="$chktls_save_CFLAGS"
15884 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15885 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15890 $as_echo "$gcc_cv_have_tls" >&6; }
15891 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15893 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15897 # See if we have emulated thread-local storage.
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15900 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15901 if test "${gcc_cv_use_emutls+set}" = set; then :
15902 $as_echo_n "(cached) " >&6
15905 gcc_cv_use_emutls
=no
15906 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15907 if { ac_try
='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15909 (eval $ac_try) 2>&5
15911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15912 test $ac_status = 0; }; }; then
15913 if grep __emutls_get_address conftest.s
> /dev
/null
; then
15914 gcc_cv_use_emutls
=yes
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15921 $as_echo "$gcc_cv_use_emutls" >&6; }
15922 if test "$gcc_cv_use_emutls" = "yes" ; then
15924 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
15928 # See what sort of export controls are available.
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15931 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15932 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15933 $as_echo_n "(cached) " >&6
15936 save_CFLAGS
="$CFLAGS"
15937 CFLAGS
="$CFLAGS -Werror"
15938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15939 /* end confdefs.h. */
15940 void __attribute__((visibility("hidden"))) foo(void) { }
15949 if ac_fn_c_try_compile
"$LINENO"; then :
15950 libgomp_cv_have_attribute_visibility
=yes
15952 libgomp_cv_have_attribute_visibility
=no
15954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15955 CFLAGS
="$save_CFLAGS"
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15958 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15959 if test $libgomp_cv_have_attribute_visibility = yes; then
15961 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15966 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15967 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15968 $as_echo_n "(cached) " >&6
15971 save_CFLAGS
="$CFLAGS"
15972 CFLAGS
="$CFLAGS -Werror"
15973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15974 /* end confdefs.h. */
15975 void __attribute__((dllexport)) foo(void) { }
15984 if ac_fn_c_try_compile
"$LINENO"; then :
15985 libgomp_cv_have_attribute_dllexport
=yes
15987 libgomp_cv_have_attribute_dllexport
=no
15989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15990 CFLAGS
="$save_CFLAGS"
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15993 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15994 if test $libgomp_cv_have_attribute_dllexport = yes; then
15996 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16001 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16002 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
16003 $as_echo_n "(cached) " >&6
16006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h. */
16010 extern void bar(void) __attribute__((alias("foo")));
16019 if ac_fn_c_try_link
"$LINENO"; then :
16020 libgomp_cv_have_attribute_alias
=yes
16022 libgomp_cv_have_attribute_alias
=no
16024 rm -f core conftest.err conftest.
$ac_objext \
16025 conftest
$ac_exeext conftest.
$ac_ext
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16028 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16029 if test $libgomp_cv_have_attribute_alias = yes; then
16031 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16036 # Check whether --with-gnu-ld was given.
16037 if test "${with_gnu_ld+set}" = set; then :
16038 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
16044 if test "$GCC" = yes; then
16045 # Check if gcc -print-prog-name=ld gives a path.
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16047 $as_echo_n "checking for ld used by $CC... " >&6; }
16050 # gcc leaves a trailing carriage return which upsets mingw
16051 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16053 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16056 # Accept absolute paths.
16058 re_direlt
='/[^/][^/]*/\.\./'
16059 # Canonicalize the pathname of ld
16060 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16061 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
16062 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16064 test -z "$LD" && LD
="$ac_prog"
16067 # If it fails, then pretend we aren't using GCC.
16071 # If it is relative, then search for the first ld in PATH.
16072 with_gnu_ld
=unknown
16075 elif test "$with_gnu_ld" = yes; then
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16077 $as_echo_n "checking for GNU ld... " >&6; }
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16080 $as_echo_n "checking for non-GNU ld... " >&6; }
16082 if test "${lt_cv_path_LD+set}" = set; then :
16083 $as_echo_n "(cached) " >&6
16085 if test -z "$LD"; then
16086 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16087 for ac_dir
in $PATH; do
16089 test -z "$ac_dir" && ac_dir
=.
16090 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16091 lt_cv_path_LD
="$ac_dir/$ac_prog"
16092 # Check to see if the program is GNU ld. I'd rather use --version,
16093 # but apparently some variants of GNU ld only accept -v.
16094 # Break only if it was the GNU/non-GNU ld that we prefer.
16095 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16096 *GNU
* |
*'with BFD'*)
16097 test "$with_gnu_ld" != no
&& break
16100 test "$with_gnu_ld" != yes && break
16107 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
16111 LD
="$lt_cv_path_LD"
16112 if test -n "$LD"; then
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16114 $as_echo "$LD" >&6; }
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16117 $as_echo "no" >&6; }
16119 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16121 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16122 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16123 $as_echo_n "(cached) " >&6
16125 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16126 case `$LD -v 2>&1 </dev/null` in
16127 *GNU
* |
*'with BFD'*)
16128 lt_cv_prog_gnu_ld
=yes
16131 lt_cv_prog_gnu_ld
=no
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16136 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16137 with_gnu_ld
=$lt_cv_prog_gnu_ld
16145 # If we're not using GNU ld, then there's no point in even trying these
16146 # tests. Check for that first. We should have already tested for gld
16147 # by now (in libtool), but require it now just to be safe...
16148 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
16149 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
16153 # The name set by libtool depends on the version of libtool. Shame on us
16154 # for depending on an impl detail, but c'est la vie. Older versions used
16155 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16156 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16157 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16158 # set (hence we're using an older libtool), then set it.
16159 if test x
${with_gnu_ld+set} != xset
; then
16160 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
16161 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16164 with_gnu_ld
=$ac_cv_prog_gnu_ld
16168 # Start by getting the version number. I think the libtool test already
16169 # does some of this, but throws away the result.
16170 libgomp_ld_is_gold
=no
16171 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
16172 libgomp_ld_is_gold
=yes
16175 ldver
=`$LD --version 2>/dev/null |
16176 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'`
16178 libgomp_gnu_ld_version
=`echo $ldver | \
16179 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16181 # Set --gc-sections.
16182 if test "$with_gnu_ld" = "notbroken"; then
16183 # GNU ld it is! Joy and bunny rabbits!
16185 # All these tests are for C++; save the language and the compiler flags.
16186 # Need to do this so that g++ won't try to link in libstdc++
16187 ac_test_CFLAGS
="${CFLAGS+set}"
16188 ac_save_CFLAGS
="$CFLAGS"
16189 CFLAGS
='-x c++ -Wl,--gc-sections'
16191 # Check for -Wl,--gc-sections
16192 # XXX This test is broken at the moment, as symbols required for linking
16193 # are now in libsupc++ (not built yet). In addition, this test has
16194 # cored on solaris in the past. In addition, --gc-sections doesn't
16195 # really work at the moment (keeps on discarding used sections, first
16196 # .eh_frame and now some of the glibc sections for iconv).
16197 # Bzzzzt. Thanks for playing, maybe next time.
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16199 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16200 if test "$cross_compiling" = yes; then :
16201 ac_sectionLDflags
=yes
16203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16214 if ac_fn_c_try_run
"$LINENO"; then :
16215 ac_sectionLDflags
=yes
16217 ac_sectionLDflags
=no
16219 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16220 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16223 if test "$ac_test_CFLAGS" = set; then
16224 CFLAGS
="$ac_save_CFLAGS"
16226 # this is the suspicious part
16229 if test "$ac_sectionLDflags" = "yes"; then
16230 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16233 $as_echo "$ac_sectionLDflags" >&6; }
16236 # Set linker optimization flags.
16237 if test x
"$with_gnu_ld" = x
"yes"; then
16238 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
16246 # Check whether --enable-symvers was given.
16247 if test "${enable_symvers+set}" = set; then :
16248 enableval
=$enable_symvers;
16249 case "$enableval" in
16250 yes|no|gnu
*|sun
) ;;
16251 *) as_fn_error
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16260 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16261 # don't know enough about $LD to do tricks...
16264 # Turn a 'yes' into a suitable default.
16265 if test x
$enable_symvers = xyes
; then
16266 # FIXME The following test is too strict, in theory.
16267 if test $enable_shared = no ||
test "x$LD" = x
; then
16270 if test $with_gnu_ld = yes ; then
16273 case ${target_os} in
16274 # Sun symbol versioning exists since Solaris 2.5.
16275 solaris2.
[5-9]* | solaris2.1
[0-9]*)
16276 enable_symvers
=sun
;;
16278 enable_symvers
=no
;;
16284 # Check if 'sun' was requested on non-Solaris 2 platforms.
16285 if test x
$enable_symvers = xsun
; then
16286 case ${target_os} in
16291 # Unlikely to work.
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16293 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16295 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16297 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16303 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16304 if test $enable_symvers != no
; then
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16306 $as_echo_n "checking for shared libgcc... " >&6; }
16307 ac_save_CFLAGS
="$CFLAGS"
16309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16310 /* end confdefs.h. */
16320 if ac_fn_c_try_link
"$LINENO"; then :
16321 libgomp_shared_libgcc
=yes
16323 libgomp_shared_libgcc
=no
16325 rm -f core conftest.err conftest.
$ac_objext \
16326 conftest
$ac_exeext conftest.
$ac_ext
16327 CFLAGS
="$ac_save_CFLAGS"
16328 if test $libgomp_shared_libgcc = no
; then
16329 cat > conftest.c
<<EOF
16330 int main (void) { return 0; }
16332 libgomp_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16333 -shared -shared-libgcc -o conftest.so \
16334 conftest.c -v 2>&1 >/dev/null \
16335 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16336 rm -f conftest.c conftest.so
16337 if test x
${libgomp_libgcc_s_suffix+set} = xset
; then
16338 CFLAGS
=" -lgcc_s$libgomp_libgcc_s_suffix"
16339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16340 /* end confdefs.h. */
16350 if ac_fn_c_try_link
"$LINENO"; then :
16351 libgomp_shared_libgcc
=yes
16353 rm -f core conftest.err conftest.
$ac_objext \
16354 conftest
$ac_exeext conftest.
$ac_ext
16355 CFLAGS
="$ac_save_CFLAGS"
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16359 $as_echo "$libgomp_shared_libgcc" >&6; }
16362 # For GNU ld, we need at least this version. The format is described in
16363 # LIBGOMP_CHECK_LINKER_FEATURES above.
16364 libgomp_min_gnu_ld_version
=21400
16365 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16367 # Check to see if unspecified "yes" value can win, given results above.
16368 # Change "yes" into either "no" or a style name.
16369 if test $enable_symvers != no
&& test $libgomp_shared_libgcc = yes; then
16370 if test $with_gnu_ld = yes; then
16371 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16373 elif test $libgomp_ld_is_gold = yes ; then
16376 # The right tools, the right setup, but too old. Fallbacks?
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16378 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16380 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16382 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16384 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16385 if test $libgomp_gnu_ld_version -ge 21200 ; then
16386 # Globbing fix is present, proper block support is not.
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16388 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16393 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16397 elif test $enable_symvers = sun
; then
16398 : All interesting versions of Sun ld support sun style symbol versioning.
16400 # just fail for now
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16402 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16404 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16406 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16408 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16414 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16415 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
16416 $as_echo_n "(cached) " >&6
16419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16420 /* end confdefs.h. */
16421 void foo (void); __asm (".symver foo, bar@SYMVER");
16430 if ac_fn_c_try_compile
"$LINENO"; then :
16431 libgomp_cv_have_as_symver_directive
=yes
16433 libgomp_cv_have_as_symver_directive
=no
16435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16438 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16439 if test $libgomp_cv_have_as_symver_directive = yes; then
16441 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16445 if test $enable_symvers != no
; then
16446 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
=
16447 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
='#'
16449 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
='#'
16450 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
=
16453 if test $enable_symvers = gnu
; then
16454 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
16455 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
16457 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
16458 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
16461 if test $enable_symvers = sun
; then
16462 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
16463 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
16465 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
16466 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16470 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16472 if test $enable_symvers != no
; then
16473 case ${target_os} in
16474 # The Solaris 2 runtime linker doesn't support the GNU extension of
16475 # binding the same symbol to different versions
16478 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16481 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16488 if test $enable_symvers = gnu
; then
16490 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16494 # Get target configury.
16495 .
${srcdir}/configure.tgt
16496 CFLAGS
="$save_CFLAGS $XCFLAGS"
16498 # Check for __sync_val_compare_and_swap, but only after the target has
16499 # had a chance to set XCFLAGS.
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16502 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16503 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16504 $as_echo_n "(cached) " >&6
16507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16508 /* end confdefs.h. */
16513 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16518 if ac_fn_c_try_link
"$LINENO"; then :
16519 libgomp_cv_have_sync_builtins
=yes
16521 libgomp_cv_have_sync_builtins
=no
16523 rm -f core conftest.err conftest.
$ac_objext \
16524 conftest
$ac_exeext conftest.
$ac_ext
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16527 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16528 if test $libgomp_cv_have_sync_builtins = yes; then
16530 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16534 XCFLAGS
="$XCFLAGS$XPCFLAGS"
16540 # Cleanup and exit.
16541 CFLAGS
="$save_CFLAGS"
16542 cat >confcache
<<\_ACEOF
16543 # This file is a shell script that caches the results of configure
16544 # tests run on this system so they can be shared between configure
16545 # scripts and configure runs, see configure's option --config-cache.
16546 # It is not useful on other systems. If it contains results you don't
16547 # want to keep, you may remove or edit it.
16549 # config.status only pays attention to the cache file if you give it
16550 # the --recheck option to rerun configure.
16552 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16553 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16554 # following values.
16558 # The following way of writing the cache mishandles newlines in values,
16559 # but we know of no workaround that is simple, portable, and efficient.
16560 # So, we kill variables containing newlines.
16561 # Ultrix sh set writes to stderr and can't be redirected directly,
16562 # and sets the high bit in the cache file unless we assign to the vars.
16564 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16565 eval ac_val
=\$
$ac_var
16569 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16570 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16573 _ | IFS | as_nl
) ;; #(
16574 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16575 *) { eval $ac_var=; unset $ac_var;} ;;
16581 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16582 *${as_nl}ac_space
=\
*)
16583 # `set' does not quote correctly, so add quotes: double-quote
16584 # substitution turns \\\\ into \\, and sed turns \\ into \.
16587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16590 # `set' quotes correctly as required by POSIX, so do not add quotes.
16591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16600 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16602 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16604 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16605 if test -w "$cache_file"; then
16606 test "x$cache_file" != "x/dev/null" &&
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16608 $as_echo "$as_me: updating cache $cache_file" >&6;}
16609 cat confcache
>$cache_file
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16612 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16617 if test ${multilib} = yes; then
16618 multilib_arg
="--enable-multilib"
16623 # Set up the set of libraries that we need to link against for libgomp.
16624 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16625 # which will force linkage against -lpthread (or equivalent for the system).
16626 # That's not 100% ideal, but about the best we can do easily.
16627 if test $enable_shared = yes; then
16628 link_gomp
="-lgomp %{static: $LIBS}"
16630 link_gomp
="-lgomp $LIBS"
16634 if test "$ac_cv_fc_compiler_gnu" = yes; then
16636 USE_FORTRAN_FALSE
='#'
16638 USE_FORTRAN_TRUE
='#'
16643 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16644 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16645 # the underscore here and update the PREREQ. If it doesn't, then we'll
16646 # need to copy this macro to our acinclude.m4.
16647 save_CFLAGS
="$CFLAGS"
16648 for i
in $config_path; do
16649 if test -f $srcdir/config
/$i/omp-lock.h
; then
16650 CFLAGS
="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16655 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16658 as_fn_error
"unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16662 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16667 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16672 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16677 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16680 as_fn_error
"unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16684 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16689 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16694 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16700 # If the lock fits in an integer, then arrange for Fortran to use that
16701 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16702 # Except that we don't have a way at present to multi-lib the installed
16703 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16705 OMP_LOCK_KIND
=$OMP_LOCK_SIZE
16706 OMP_NEST_LOCK_KIND
=$OMP_NEST_LOCK_SIZE
16707 if test $OMP_LOCK_SIZE -gt 8 ||
test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16710 if test $OMP_NEST_LOCK_SIZE -gt 8 ||
test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16711 OMP_NEST_LOCK_KIND
=8
16713 OMP_LOCK_25_KIND
=$OMP_LOCK_25_SIZE
16714 OMP_NEST_LOCK_25_KIND
=$OMP_NEST_LOCK_25_SIZE
16715 if test $OMP_LOCK_25_SIZE -gt 8 ||
test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16718 if test $OMP_NEST_LOCK_25_SIZE -gt 8 ||
test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16719 OMP_NEST_LOCK_25_KIND
=8
16734 CFLAGS
="$save_CFLAGS"
16736 ac_config_files
="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16738 ac_config_files
="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16740 ac_config_files
="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16742 cat >confcache
<<\_ACEOF
16743 # This file is a shell script that caches the results of configure
16744 # tests run on this system so they can be shared between configure
16745 # scripts and configure runs, see configure's option --config-cache.
16746 # It is not useful on other systems. If it contains results you don't
16747 # want to keep, you may remove or edit it.
16749 # config.status only pays attention to the cache file if you give it
16750 # the --recheck option to rerun configure.
16752 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16753 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16754 # following values.
16758 # The following way of writing the cache mishandles newlines in values,
16759 # but we know of no workaround that is simple, portable, and efficient.
16760 # So, we kill variables containing newlines.
16761 # Ultrix sh set writes to stderr and can't be redirected directly,
16762 # and sets the high bit in the cache file unless we assign to the vars.
16764 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16765 eval ac_val
=\$
$ac_var
16769 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16770 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16773 _ | IFS | as_nl
) ;; #(
16774 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16775 *) { eval $ac_var=; unset $ac_var;} ;;
16781 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16782 *${as_nl}ac_space
=\
*)
16783 # `set' does not quote correctly, so add quotes: double-quote
16784 # substitution turns \\\\ into \\, and sed turns \\ into \.
16787 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16790 # `set' quotes correctly as required by POSIX, so do not add quotes.
16791 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16800 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16802 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16804 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16805 if test -w "$cache_file"; then
16806 test "x$cache_file" != "x/dev/null" &&
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16808 $as_echo "$as_me: updating cache $cache_file" >&6;}
16809 cat confcache
>$cache_file
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16812 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16817 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16818 # Let make expand exec_prefix.
16819 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16821 DEFS
=-DHAVE_CONFIG_H
16825 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16826 # 1. Remove the extension, and $U if already installed.
16827 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16828 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16829 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16830 # will be set to the directory where LIBOBJS objects are built.
16831 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16832 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16834 LIBOBJS
=$ac_libobjs
16836 LTLIBOBJS
=$ac_ltlibobjs
16839 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16840 as_fn_error
"conditional \"GENINSRC\" was never defined.
16841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16843 if test -n "$EXEEXT"; then
16845 am__EXEEXT_FALSE
='#'
16847 am__EXEEXT_TRUE
='#'
16851 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16852 as_fn_error
"conditional \"AMDEP\" was never defined.
16853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16855 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16856 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
16857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16859 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16860 as_fn_error
"conditional \"BUILD_INFO\" was never defined.
16861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16863 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16864 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16867 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
16868 as_fn_error
"conditional \"PLUGIN_NVPTX\" was never defined.
16869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16871 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
16872 as_fn_error
"conditional \"PLUGIN_HSA\" was never defined.
16873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16875 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16876 as_fn_error
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16879 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16880 as_fn_error
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16883 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16884 as_fn_error
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16887 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16888 as_fn_error
"conditional \"USE_FORTRAN\" was never defined.
16889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16892 : ${CONFIG_STATUS=./config.status}
16894 ac_clean_files_save
=$ac_clean_files
16895 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16897 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16899 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16901 # Generated by $as_me.
16902 # Run this file to recreate the current configuration.
16903 # Compiler output produced by configure, useful for debugging
16904 # configure, is in config.log if it exists.
16907 ac_cs_recheck=false
16910 SHELL=\${CONFIG_SHELL-$SHELL}
16913 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16914 ## -------------------- ##
16915 ## M4sh Initialization. ##
16916 ## -------------------- ##
16918 # Be more Bourne compatible
16919 DUALCASE
=1; export DUALCASE
# for MKS sh
16920 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16923 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16924 # is contrary to our usage. Disable this feature.
16925 alias -g '${1+"$@"}'='"$@"'
16926 setopt NO_GLOB_SUBST
16928 case `(set -o) 2>/dev/null` in #(
16940 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16941 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16942 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16943 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16944 # Prefer a ksh shell builtin over an external printf program on Solaris,
16945 # but without wasting forks for bash or zsh.
16946 if test -z "$BASH_VERSION$ZSH_VERSION" \
16947 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16948 as_echo='print
-r --'
16949 as_echo_n='print
-rn --'
16950 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16951 as_echo='printf %s
\n'
16952 as_echo_n='printf %s
'
16954 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16955 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16956 as_echo_n='/usr
/ucb
/echo -n'
16958 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16959 as_echo_n_body='eval
16963 expr "X$arg" : "X\\(.*\\)$as_nl";
16964 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16966 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16968 export as_echo_n_body
16969 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16971 export as_echo_body
16972 as_echo='sh
-c $as_echo_body as_echo
'
16975 # The user is always right.
16976 if test "${PATH_SEPARATOR+set}" != set; then
16978 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16979 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16986 # We need space, tab and new line, in precisely that order. Quoting is
16987 # there to prevent editors from complaining about space-tab.
16988 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16989 # splitting by setting IFS to empty value.)
16992 # Find who we are. Look in the path if we contain no directory separator.
16994 *[\\/]* ) as_myself=$0 ;;
16995 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16996 for as_dir in $PATH
16999 test -z "$as_dir" && as_dir=.
17000 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17006 # We did not find ourselves, most probably we were run as `sh COMMAND'
17007 # in which case we are not to be found in the path.
17008 if test "x$as_myself" = x
; then
17011 if test ! -f "$as_myself"; then
17012 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17016 # Unset variables that we do not need and which cause bugs (e.g. in
17017 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17018 # suppresses any "Segmentation fault" message there. '((' could
17019 # trigger a bug in pdksh 5.2.14.
17020 for as_var
in BASH_ENV ENV MAIL MAILPATH
17021 do eval test x\
${$as_var+set} = xset \
17022 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17035 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17038 # as_fn_error ERROR [LINENO LOG_FD]
17039 # ---------------------------------
17040 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17041 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17042 # script with status $?, using 1 if that was 0.
17045 as_status
=$?
; test $as_status -eq 0 && as_status
=1
17047 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17048 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17050 $as_echo "$as_me: error: $1" >&2
17051 as_fn_exit
$as_status
17055 # as_fn_set_status STATUS
17056 # -----------------------
17057 # Set $? to STATUS, without forking.
17058 as_fn_set_status
()
17061 } # as_fn_set_status
17063 # as_fn_exit STATUS
17064 # -----------------
17065 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17069 as_fn_set_status
$1
17075 # Portably unset VAR.
17078 { eval $1=; unset $1;}
17080 as_unset
=as_fn_unset
17081 # as_fn_append VAR VALUE
17082 # ----------------------
17083 # Append the text in VALUE to the end of the definition contained in VAR. Take
17084 # advantage of any shell optimizations that allow amortized linear growth over
17085 # repeated appends, instead of the typical quadratic growth present in naive
17087 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17088 eval 'as_fn_append ()
17099 # as_fn_arith ARG...
17100 # ------------------
17101 # Perform arithmetic evaluation on the ARGs, and store the result in the
17102 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17103 # must be portable across $(()) and expr.
17104 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17105 eval 'as_fn_arith ()
17112 as_val
=`expr "$@" || test $? -eq 1`
17117 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17118 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17124 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17125 as_basename
=basename
17130 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17136 as_me
=`$as_basename -- "$0" ||
17137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17138 X"$0" : 'X\(//\)$' \| \
17139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17141 sed '/^.*\/\([^/][^/]*\)\/*$/{
17155 # Avoid depending upon Character Ranges.
17156 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17157 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17158 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17159 as_cr_digits
='0123456789'
17160 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17162 ECHO_C
= ECHO_N
= ECHO_T
=
17163 case `echo -n x` in #(((((
17165 case `echo 'xy\c'` in
17166 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17168 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17175 rm -f conf$$ conf$$.exe conf$$.
file
17176 if test -d conf$$.dir
; then
17177 rm -f conf$$.dir
/conf$$.
file
17180 mkdir conf$$.dir
2>/dev
/null
17182 if (echo >conf$$.
file) 2>/dev
/null
; then
17183 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17185 # ... but there are two gotchas:
17186 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17187 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17188 # In both cases, we have to default to `cp -p'.
17189 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17191 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17199 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17200 rmdir conf$$.dir
2>/dev
/null
17205 # Create "$as_dir" as a directory, including parents if necessary.
17210 -*) as_dir
=.
/$as_dir;;
17212 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17216 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17217 *) as_qdir
=$as_dir;;
17219 as_dirs
="'$as_qdir' $as_dirs"
17220 as_dir
=`$as_dirname -- "$as_dir" ||
17221 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17222 X"$as_dir" : 'X\(//\)[^/]' \| \
17223 X"$as_dir" : 'X\(//\)$' \| \
17224 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17225 $as_echo X"$as_dir" |
17226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17230 /^X\(\/\/\)[^/].*/{
17243 test -d "$as_dir" && break
17245 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17246 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
17250 if mkdir
-p .
2>/dev
/null
; then
17251 as_mkdir_p
='mkdir -p "$as_dir"'
17253 test -d .
/-p && rmdir .
/-p
17257 if test -x / >/dev
/null
2>&1; then
17258 as_test_x
='test -x'
17260 if ls -dL / >/dev
/null
2>&1; then
17267 if test -d "$1"; then
17273 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17274 ???[sx]*):;;*)false;;esac;fi
17278 as_executable_p
=$as_test_x
17280 # Sed expression to map a string onto a valid CPP name.
17281 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17283 # Sed expression to map a string onto a valid variable name.
17284 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17288 ## ----------------------------------- ##
17289 ## Main body of $CONFIG_STATUS script. ##
17290 ## ----------------------------------- ##
17292 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17295 # Save the log message, to keep $0 and so on meaningful, and to
17296 # report actual input values of CONFIG_FILES etc. instead of their
17297 # values after options handling.
17299 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17300 generated by GNU Autoconf 2.64. Invocation command line was
17302 CONFIG_FILES = $CONFIG_FILES
17303 CONFIG_HEADERS = $CONFIG_HEADERS
17304 CONFIG_LINKS = $CONFIG_LINKS
17305 CONFIG_COMMANDS = $CONFIG_COMMANDS
17308 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17313 case $ac_config_files in *"
17314 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17317 case $ac_config_headers in *"
17318 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17323 # Files that config.status was made for.
17324 config_files="$ac_config_files"
17325 config_headers="$ac_config_headers"
17326 config_commands="$ac_config_commands"
17330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17332 \`$as_me' instantiates files and other configuration actions
17333 from templates according to the current configuration. Unless the files
17334 and actions are specified as TAGs, all are instantiated by default.
17336 Usage: $0 [OPTION]... [TAG]...
17338 -h, --help print this help, then exit
17339 -V, --version print version number and configuration settings, then exit
17340 -q, --quiet, --silent
17341 do not print progress messages
17342 -d, --debug don't remove temporary files
17343 --recheck update $as_me by reconfiguring in the same conditions
17344 --file=FILE[:TEMPLATE]
17345 instantiate the configuration file FILE
17346 --header=FILE[:TEMPLATE]
17347 instantiate the configuration header FILE
17349 Configuration files:
17352 Configuration headers:
17355 Configuration commands:
17358 Report bugs to the package provider.
17359 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17360 General help using GNU software: <http://www.gnu.org/gethelp/>."
17363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17365 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17366 configured by $0, generated by GNU Autoconf 2.64,
17367 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17369 Copyright (C) 2009 Free Software Foundation, Inc.
17370 This config.status script is free software; the Free Software Foundation
17371 gives unlimited permission to copy, distribute and modify it."
17378 test -n "\$AWK" || AWK=awk
17381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17382 # The default lists apply if the user does not specify any file.
17388 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17389 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17400 # Handling of the options.
17401 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17403 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17404 $as_echo "$ac_cs_version"; exit ;;
17405 --debug |
--debu |
--deb |
--de |
--d |
-d )
17407 --file |
--fil |
--fi |
--f )
17410 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17412 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17413 ac_need_defaults
=false
;;
17414 --header |
--heade |
--head |
--hea )
17417 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17419 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17420 ac_need_defaults
=false
;;
17422 # Conflict between --help and --header
17423 as_fn_error
"ambiguous option: \`$1'
17424 Try \`$0 --help' for more information.";;
17425 --help |
--hel |
-h )
17426 $as_echo "$ac_cs_usage"; exit ;;
17427 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17428 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17431 # This is an error.
17432 -*) as_fn_error
"unrecognized option: \`$1'
17433 Try \`$0 --help' for more information." ;;
17435 *) as_fn_append ac_config_targets
" $1"
17436 ac_need_defaults
=false
;;
17442 ac_configure_extra_args
=
17444 if $ac_cs_silent; then
17446 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17451 if \$ac_cs_recheck; then
17452 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17454 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17455 CONFIG_SHELL='$SHELL'
17456 export CONFIG_SHELL
17461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17465 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17466 ## Running $as_me. ##
17472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17480 with_multisubdir="$with_multisubdir"
17481 with_multisrctop="$with_multisrctop"
17482 with_target_subdir="$with_target_subdir"
17483 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17484 multi_basedir="$multi_basedir"
17485 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17488 GFORTRAN="$GFORTRAN"
17490 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17493 # The HP-UX ksh and POSIX shell print the target directory to stdout
17494 # if CDPATH is set.
17495 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17497 sed_quote_subst='$sed_quote_subst'
17498 double_quote_subst='$double_quote_subst'
17499 delay_variable_subst='$delay_variable_subst'
17500 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17501 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17502 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17503 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17504 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17505 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17506 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17507 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17508 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17509 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17510 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17511 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17512 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17513 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17514 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17515 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17516 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17517 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17518 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17519 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17520 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17521 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17522 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17523 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17524 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17525 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17526 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17527 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17528 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17529 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17530 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17531 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17532 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17533 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17534 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17535 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17536 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17537 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17538 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17539 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17540 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17541 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17542 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17543 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17544 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17545 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17546 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17547 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17548 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"`'
17549 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17550 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17551 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17552 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17553 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17554 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17555 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17556 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17557 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17558 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17559 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17560 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17561 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17562 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17563 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17564 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17565 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17566 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17567 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17568 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17569 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17570 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17571 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17572 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17573 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17574 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17575 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17576 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17577 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17578 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17579 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17580 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17581 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17582 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17583 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17584 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17585 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17586 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17587 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17588 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17589 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17590 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17591 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17592 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17593 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17594 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17595 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17596 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17597 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17598 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17599 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17600 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17601 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17602 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17603 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17604 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17605 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17606 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17607 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17608 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17609 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17610 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17611 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17612 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17613 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17614 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17615 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17616 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17617 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17618 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17619 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17620 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17621 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17622 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17623 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17624 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17625 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17626 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17627 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17628 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17629 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17630 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17631 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17632 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17633 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17634 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17635 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17636 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17637 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17638 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17639 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17640 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17641 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17642 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17643 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17644 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17645 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17646 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17647 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17648 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17649 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17650 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17651 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17652 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17653 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17654 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17655 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17656 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17657 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17658 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17659 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17660 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17661 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17662 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17663 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17664 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17665 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17666 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17667 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17668 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17669 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17670 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17671 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17672 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17673 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17674 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17677 LTCFLAGS='$LTCFLAGS'
17678 compiler='$compiler_DEFAULT'
17680 # A function that is used when there is no print builtin or printf.
17681 func_fallback_echo ()
17683 eval 'cat <<_LTECHO_EOF
17688 # Quote evaled strings.
17702 deplibs_check_method \
17711 lt_cv_sys_global_symbol_pipe \
17712 lt_cv_sys_global_symbol_to_cdecl \
17713 lt_cv_sys_global_symbol_to_c_name_address \
17714 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17715 lt_prog_compiler_no_builtin_flag \
17716 lt_prog_compiler_wl \
17717 lt_prog_compiler_pic \
17718 lt_prog_compiler_static \
17719 lt_cv_prog_compiler_c_o \
17727 export_dynamic_flag_spec \
17728 whole_archive_flag_spec \
17729 compiler_needs_object \
17731 allow_undefined_flag \
17732 no_undefined_flag \
17733 hardcode_libdir_flag_spec \
17734 hardcode_libdir_flag_spec_ld \
17735 hardcode_libdir_separator \
17740 variables_saved_for_relink \
17742 library_names_spec \
17744 install_override_mode \
17748 compiler_lib_search_dirs \
17753 compiler_lib_search_path \
17757 lt_prog_compiler_no_builtin_flag_FC \
17758 lt_prog_compiler_wl_FC \
17759 lt_prog_compiler_pic_FC \
17760 lt_prog_compiler_static_FC \
17761 lt_cv_prog_compiler_c_o_FC \
17762 export_dynamic_flag_spec_FC \
17763 whole_archive_flag_spec_FC \
17764 compiler_needs_object_FC \
17766 allow_undefined_flag_FC \
17767 no_undefined_flag_FC \
17768 hardcode_libdir_flag_spec_FC \
17769 hardcode_libdir_flag_spec_ld_FC \
17770 hardcode_libdir_separator_FC \
17771 fix_srcfile_path_FC \
17772 exclude_expsyms_FC \
17773 include_expsyms_FC \
17774 file_list_spec_FC \
17775 compiler_lib_search_dirs_FC \
17776 predep_objects_FC \
17777 postdep_objects_FC \
17780 compiler_lib_search_path_FC; do
17781 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17782 *[\\\\\\\`\\"\\\$]*)
17783 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17786 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17791 # Double-quote double-evaled strings.
17792 for var in reload_cmds \
17793 old_postinstall_cmds \
17794 old_postuninstall_cmds \
17796 extract_expsyms_cmds \
17797 old_archive_from_new_cmds \
17798 old_archive_from_expsyms_cmds \
17800 archive_expsym_cmds \
17802 module_expsym_cmds \
17803 export_symbols_cmds \
17806 postuninstall_cmds \
17808 sys_lib_search_path_spec \
17809 sys_lib_dlsearch_path_spec \
17811 old_archive_cmds_FC \
17812 old_archive_from_new_cmds_FC \
17813 old_archive_from_expsyms_cmds_FC \
17815 archive_expsym_cmds_FC \
17817 module_expsym_cmds_FC \
17818 export_symbols_cmds_FC \
17819 prelink_cmds_FC; do
17820 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17821 *[\\\\\\\`\\"\\\$]*)
17822 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17825 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17830 ac_aux_dir='$ac_aux_dir'
17831 xsi_shell='$xsi_shell'
17832 lt_shell_append='$lt_shell_append'
17834 # See if we are running on zsh, and set the options which allow our
17835 # commands through without removal of \ escapes INIT.
17836 if test -n "\${ZSH_VERSION+set}" ; then
17837 setopt NO_GLOB_SUBST
17843 TIMESTAMP='$TIMESTAMP'
17854 acx_cv_header_stdint="$acx_cv_header_stdint"
17855 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17856 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17857 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17858 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17859 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17860 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17861 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17862 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17863 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17864 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17865 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17866 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17867 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17874 # Handling of arguments.
17875 for ac_config_target
in $ac_config_targets
17877 case $ac_config_target in
17878 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
17879 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17880 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17881 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17882 "gstdint.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS gstdint.h" ;;
17883 "omp.h") CONFIG_FILES
="$CONFIG_FILES omp.h" ;;
17884 "omp_lib.h") CONFIG_FILES
="$CONFIG_FILES omp_lib.h" ;;
17885 "omp_lib.f90") CONFIG_FILES
="$CONFIG_FILES omp_lib.f90" ;;
17886 "libgomp_f.h") CONFIG_FILES
="$CONFIG_FILES libgomp_f.h" ;;
17887 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17888 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
17889 "libgomp.spec") CONFIG_FILES
="$CONFIG_FILES libgomp.spec" ;;
17890 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
17892 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17897 # If the user did not use the arguments to specify the items to instantiate,
17898 # then the envvar interface is used. Set only those that are not.
17899 # We use the long form for the default assignment because of an extremely
17900 # bizarre bug on SunOS 4.1.3.
17901 if $ac_need_defaults; then
17902 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17903 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17904 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17907 # Have a temporary directory for convenience. Make it in the build tree
17908 # simply because there is no reason against having it here, and in addition,
17909 # creating and moving files from /tmp can sometimes cause problems.
17910 # Hook for its removal unless debugging.
17911 # Note that there is a small window in which the directory will not be cleaned:
17912 # after its creation but before its name has been assigned to `$tmp'.
17916 trap 'exit_status=$?
17917 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17919 trap 'as_fn_exit 1' 1 2 13 15
17921 # Create a (secure) tmp directory for tmp files.
17924 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17925 test -n "$tmp" && test -d "$tmp"
17928 tmp
=.
/conf$$
-$RANDOM
17929 (umask 077 && mkdir
"$tmp")
17930 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
17932 # Set up the scripts for CONFIG_FILES section.
17933 # No need to generate them if there are no CONFIG_FILES.
17934 # This happens for instance with `./config.status config.h'.
17935 if test -n "$CONFIG_FILES"; then
17938 ac_cr
=`echo X | tr X '\015'`
17939 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17940 # But we know of no other shell where ac_cr would be empty at this
17941 # point, so we can use a bashism as a fallback.
17942 if test "x$ac_cr" = x
; then
17943 eval ac_cr
=\$
\'\\r
\'
17945 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17946 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17949 ac_cs_awk_cr
=$ac_cr
17952 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17957 echo "cat >conf$$subs.awk <<_ACEOF" &&
17958 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17960 } >conf$$subs.sh ||
17961 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17962 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17964 for ac_last_try in false false false false false :; do
17965 . ./conf$$subs.sh ||
17966 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17968 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17969 if test $ac_delim_n = $ac_delim_num; then
17971 elif $ac_last_try; then
17972 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17974 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17977 rm -f conf$$subs.sh
17979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17980 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17984 s/^/S["/; s
/!.
*/"]=/
17994 s/\(.\{148\}\).*/\1/
17996 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18001 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18008 s/\(.\{148\}\).*/\1/
18010 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18014 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18019 ' <conf$$subs.awk | sed '
18024 ' >>$CONFIG_STATUS || ac_write_fail=1
18025 rm -f conf$$subs.awk
18026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18028 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
18029 for (key in S) S_is_set[key] = 1
18035 nfields = split(line, field, "@
")
18037 len = length(field[1])
18038 for (i = 2; i < nfields; i++) {
18040 keylen = length(key)
18041 if (S_is_set[key]) {
18043 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18044 len += length(value) + length(field[++i])
18055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18056 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18057 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18060 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
18061 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
18064 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18065 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
18066 # trailing colons and then remove the whole line if VPATH becomes empty
18067 # (actually we leave an empty line to preserve line numbers).
18068 if test "x
$srcdir" = x.; then
18069 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18070 s/:*\$(srcdir):*/:/
18071 s/:*\${srcdir}:*/:/
18073 s/^\([^=]*=[ ]*\):*/\1/
18079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18080 fi # test -n "$CONFIG_FILES"
18082 # Set up the scripts for CONFIG_HEADERS section.
18083 # No need to generate them if there are no CONFIG_HEADERS.
18084 # This happens for instance with `./config.status Makefile'.
18085 if test -n "$CONFIG_HEADERS"; then
18086 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18090 # Transform confdefs.h into an awk script `defines.awk', embedded as
18091 # here-document in config.status, that substitutes the proper values into
18092 # config.h.in to produce config.h.
18094 # Create a delimiter string that does not exist in confdefs.h, to ease
18095 # handling of long lines.
18097 for ac_last_try in false false :; do
18098 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18099 if test -z "$ac_t"; then
18101 elif $ac_last_try; then
18102 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
18104 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18108 # For the awk script, D is an array of macro values keyed by name,
18109 # likewise P contains macro parameters if any. Preserve backslash
18110 # newline sequences.
18112 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18114 s/.\{148\}/&'"$ac_delim"'/g
18117 s/^[ ]*#[ ]*define[ ][ ]*/ /
18124 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18126 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18130 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18131 D["\
1"]=" \
3\\\\\\n
"\\/p
18133 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18138 s/.\{148\}/&'"$ac_delim"'/g
18143 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18146 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18148 ' <confdefs.h | sed '
18149 s/'"$ac_delim"'/"\\\
18150 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18153 for (key in D) D_is_set[key] = 1
18156 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18158 split(line, arg, " ")
18159 if (arg[1] == "#") {
18163 defundef
= substr
(arg
[1], 2)
18166 split(mac1
, mac2
, "(") #)
18168 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18169 if (D_is_set
[macro
]) {
18170 # Preserve the white space surrounding the "#".
18171 print prefix
"define", macro P
[macro
] D
[macro
]
18174 # Replace #undef with comments. This is necessary, for example,
18175 # in the case of _POSIX_SOURCE, which is predefined and required
18176 # on some systems where configure will not decide to define it.
18177 if (defundef
== "undef") {
18178 print
"/*", prefix defundef
, macro
, "*/"
18186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18187 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
18188 fi # test -n "$CONFIG_HEADERS"
18191 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18196 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18198 case $ac_mode$ac_tag in
18200 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18201 :[FH
]-) ac_tag
=-:-;;
18202 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18219 -) ac_f
="$tmp/stdin";;
18220 *) # Look for the file first in the build tree, then in the source tree
18221 # (if the path is not absolute). The absolute path cannot be DOS-style,
18222 # because $ac_f cannot contain `:'.
18226 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18228 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
18230 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18231 as_fn_append ac_file_inputs
" '$ac_f'"
18234 # Let's still pretend it is `configure' which instantiates (i.e., don't
18235 # use $as_me), people would be surprised to read:
18236 # /* config.h. Generated by config.status. */
18237 configure_input
='Generated from '`
18238 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18240 if test x
"$ac_file" != x-
; then
18241 configure_input
="$ac_file. $configure_input"
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18243 $as_echo "$as_me: creating $ac_file" >&6;}
18245 # Neutralize special characters interpreted by sed in replacement strings.
18246 case $configure_input in #(
18247 *\
&* |
*\|
* |
*\\* )
18248 ac_sed_conf_input
=`$as_echo "$configure_input" |
18249 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18250 *) ac_sed_conf_input
=$configure_input;;
18254 *:-:* |
*:-) cat >"$tmp/stdin" \
18255 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
18260 ac_dir
=`$as_dirname -- "$ac_file" ||
18261 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18262 X"$ac_file" : 'X\(//\)[^/]' \| \
18263 X"$ac_file" : 'X\(//\)$' \| \
18264 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18265 $as_echo X"$ac_file" |
18266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18270 /^X\(\/\/\)[^/].*/{
18283 as_dir
="$ac_dir"; as_fn_mkdir_p
18287 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18289 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18290 # A ".." for each directory in $ac_dir_suffix.
18291 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18292 case $ac_top_builddir_sub in
18293 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18294 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18297 ac_abs_top_builddir
=$ac_pwd
18298 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18299 # for backward compatibility:
18300 ac_top_builddir
=$ac_top_build_prefix
18303 .
) # We are building in place.
18305 ac_top_srcdir
=$ac_top_builddir_sub
18306 ac_abs_top_srcdir
=$ac_pwd ;;
18307 [\\/]* | ?
:[\\/]* ) # Absolute name.
18308 ac_srcdir
=$srcdir$ac_dir_suffix;
18309 ac_top_srcdir
=$srcdir
18310 ac_abs_top_srcdir
=$srcdir ;;
18311 *) # Relative name.
18312 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18313 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18314 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18316 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18326 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18327 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18329 ac_MKDIR_P
=$MKDIR_P
18331 [\\/$
]* | ?
:[\\/]* ) ;;
18332 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18337 # If the template does not know about datarootdir, expand it.
18338 # FIXME: This hack should be removed a few years after 2.60.
18339 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18350 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18351 *datarootdir
*) ac_datarootdir_seen
=yes;;
18352 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18354 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18357 ac_datarootdir_hack='
18358 s&@datadir@&$datadir&g
18359 s&@docdir@&$docdir&g
18360 s&@infodir@&$infodir&g
18361 s&@localedir@&$localedir&g
18362 s&@mandir@&$mandir&g
18363 s&\\\${datarootdir}&$datarootdir&g' ;;
18367 # Neutralize VPATH when `$srcdir' = `.'.
18368 # Shell code in configure.ac might set extrasub.
18369 # FIXME: do we really want to maintain this feature?
18370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18371 ac_sed_extra="$ac_vpsub
18374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18376 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18377 s|@configure_input@|
$ac_sed_conf_input|
;t t
18378 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18379 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18380 s
&@srcdir@
&$ac_srcdir&;t t
18381 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18382 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18383 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18384 s
&@builddir@
&$ac_builddir&;t t
18385 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18386 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18387 s
&@INSTALL@
&$ac_INSTALL&;t t
18388 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18389 $ac_datarootdir_hack
18391 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
18392 || as_fn_error "could not create
$ac_file" "$LINENO" 5
18394 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18395 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18396 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18398 which seems to be undefined. Please make sure it is defined." >&5
18399 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18400 which seems to be undefined. Please make sure it is defined." >&2;}
18404 -) cat "$tmp/out" && rm -f "$tmp/out";;
18405 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18407 || as_fn_error "could not create $ac_file" "$LINENO" 5
18413 if test x"$ac_file" != x-; then
18415 $as_echo "/* $configure_input */" \
18416 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18417 } >"$tmp/config.h" \
18418 || as_fn_error "could not create $ac_file" "$LINENO" 5
18419 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18421 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18424 mv "$tmp/config.h" "$ac_file" \
18425 || as_fn_error "could not create $ac_file" "$LINENO" 5
18428 $as_echo "/* $configure_input */" \
18429 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18430 || as_fn_error "could not create -" "$LINENO" 5
18432 # Compute "$ac_file"'s index
in $config_headers.
18435 for _am_header
in $config_headers :; do
18436 case $_am_header in
18437 $_am_arg |
$_am_arg:* )
18440 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18443 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18444 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18445 X"$_am_arg" : 'X\(//\)[^/]' \| \
18446 X"$_am_arg" : 'X\(//\)$' \| \
18447 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18448 $as_echo X"$_am_arg" |
18449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18453 /^X\(\/\/\)[^/].*/{
18465 s/.*/./; q'`/stamp-h
$_am_stamp_count
18468 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18469 $as_echo "$as_me: executing $ac_file commands" >&6;}
18474 case $ac_file$ac_mode in
18476 # Only add multilib support code if we just rebuilt the top-level
18478 case " $CONFIG_FILES " in
18480 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18483 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18484 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18485 # are listed without --file. Let's play safe and only enable the eval
18486 # if we detect the quoting.
18487 case $CONFIG_FILES in
18488 *\'*) eval set x
"$CONFIG_FILES" ;;
18489 *) set x
$CONFIG_FILES ;;
18494 # Strip MF so we end up with the name of the file.
18495 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18496 # Check whether this is an Automake generated Makefile or not.
18497 # We used to match only the files named `Makefile.in', but
18498 # some people rename them; so instead we look at the file content.
18499 # Grep'ing the first line is not enough: some people post-process
18500 # each Makefile.in and add a new line on top of each file to say so.
18501 # Grep'ing the whole file is not good either: AIX grep has a line
18502 # limit of 2048, but all sed's we know have understand at least 4000.
18503 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18504 dirpart
=`$as_dirname -- "$mf" ||
18505 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18506 X"$mf" : 'X\(//\)[^/]' \| \
18507 X"$mf" : 'X\(//\)$' \| \
18508 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18514 /^X\(\/\/\)[^/].*/{
18530 # Extract the definition of DEPDIR, am__include, and am__quote
18531 # from the Makefile without running `make'.
18532 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18533 test -z "$DEPDIR" && continue
18534 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18535 test -z "am__include" && continue
18536 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18537 # When using ansi2knr, U may be empty or an underscore; expand it
18538 U
=`sed -n 's/^U = //p' < "$mf"`
18539 # Find all dependency output files, they are included files with
18540 # $(DEPDIR) in their names. We invoke sed twice because it is the
18541 # simplest approach to changing $(DEPDIR) to its actual value in the
18543 for file in `sed -n "
18544 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18545 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18546 # Make sure the directory exists.
18547 test -f "$dirpart/$file" && continue
18548 fdir
=`$as_dirname -- "$file" ||
18549 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18550 X"$file" : 'X\(//\)[^/]' \| \
18551 X"$file" : 'X\(//\)$' \| \
18552 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18553 $as_echo X"$file" |
18554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18558 /^X\(\/\/\)[^/].*/{
18571 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18572 # echo "creating $dirpart/$file"
18573 echo '# dummy' > "$dirpart/$file"
18580 # See if we are running on zsh, and set the options which allow our
18581 # commands through without removal of \ escapes.
18582 if test -n "${ZSH_VERSION+set}" ; then
18583 setopt NO_GLOB_SUBST
18586 cfgfile
="${ofile}T"
18587 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18590 cat <<_LT_EOF >> "$cfgfile"
18593 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18594 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18595 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18596 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18598 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18599 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18600 # Written by Gordon Matzigkeit, 1996
18602 # This file is part of GNU Libtool.
18604 # GNU Libtool is free software; you can redistribute it and/or
18605 # modify it under the terms of the GNU General Public License as
18606 # published by the Free Software Foundation; either version 2 of
18607 # the License, or (at your option) any later version.
18609 # As a special exception to the GNU General Public License,
18610 # if you distribute this file as part of a program or library that
18611 # is built using GNU Libtool, you may include this file under the
18612 # same distribution terms that you use for the rest of that program.
18614 # GNU Libtool is distributed in the hope that it will be useful,
18615 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18616 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18617 # GNU General Public License for more details.
18619 # You should have received a copy of the GNU General Public License
18620 # along with GNU Libtool; see the file COPYING. If not, a copy
18621 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18622 # obtained by writing to the Free Software Foundation, Inc.,
18623 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18626 # The names of the tagged configurations supported by this script.
18627 available_tags="FC "
18629 # ### BEGIN LIBTOOL CONFIG
18631 # Which release of libtool.m4 was used?
18632 macro_version=$macro_version
18633 macro_revision=$macro_revision
18635 # Whether or not to build shared libraries.
18636 build_libtool_libs=$enable_shared
18638 # Whether or not to build static libraries.
18639 build_old_libs=$enable_static
18641 # What type of objects to build.
18644 # Whether or not to optimize for fast installation.
18645 fast_install=$enable_fast_install
18647 # Shell to use when invoking shell scripts.
18650 # An echo program that protects backslashes.
18654 host_alias=$host_alias
18658 # The build system.
18659 build_alias=$build_alias
18663 # A sed program that does not truncate output.
18666 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18667 Xsed="\$SED -e 1s/^X//"
18669 # A grep program that handles long lines.
18675 # A literal string matcher.
18678 # A BSD- or MS-compatible name lister.
18681 # Whether we need soft or hard links.
18684 # What is the maximum length of a command?
18685 max_cmd_len=$max_cmd_len
18687 # Object file suffix (normally "o").
18690 # Executable file suffix (normally "").
18693 # whether the shell understands "unset".
18696 # turn spaces into newlines.
18699 # turn newlines into spaces.
18702 # An object symbol dumper.
18703 OBJDUMP=$lt_OBJDUMP
18705 # Method to check whether dependent libraries are shared objects.
18706 deplibs_check_method=$lt_deplibs_check_method
18708 # Command to use when deplibs_check_method == "file_magic".
18709 file_magic_cmd=$lt_file_magic_cmd
18713 AR_FLAGS=$lt_AR_FLAGS
18715 # A symbol stripping program.
18718 # Commands used to install an old-style archive.
18720 old_postinstall_cmds=$lt_old_postinstall_cmds
18721 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18723 # Whether to use a lock for old archive extraction.
18724 lock_old_archive_extraction=$lock_old_archive_extraction
18729 # LTCC compiler flags.
18730 LTCFLAGS=$lt_CFLAGS
18732 # Take the output of nm and produce a listing of raw symbols and C names.
18733 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18735 # Transform the output of nm in a proper C declaration.
18736 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18738 # Transform the output of nm in a C name address pair.
18739 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18741 # Transform the output of nm in a C name address pair when lib prefix is needed.
18742 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18744 # The name of the directory that contains temporary libtool files.
18747 # Used to examine libraries when file_magic_cmd begins with "file".
18748 MAGIC_CMD=$MAGIC_CMD
18750 # Must we lock files when doing compilation?
18751 need_locks=$lt_need_locks
18753 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18754 DSYMUTIL=$lt_DSYMUTIL
18756 # Tool to change global to local symbols on Mac OS X.
18759 # Tool to manipulate fat objects and archives on Mac OS X.
18762 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18765 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18766 OTOOL64=$lt_OTOOL64
18768 # Old archive suffix (normally "a").
18771 # Shared library suffix (normally ".so").
18772 shrext_cmds=$lt_shrext_cmds
18774 # The commands to extract the exported symbol list from a shared archive.
18775 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18777 # Variables whose values should be saved in libtool wrapper scripts and
18778 # restored at link time.
18779 variables_saved_for_relink=$lt_variables_saved_for_relink
18781 # Do we need the "lib" prefix for modules?
18782 need_lib_prefix=$need_lib_prefix
18784 # Do we need a version for libraries?
18785 need_version=$need_version
18787 # Library versioning type.
18788 version_type=$version_type
18790 # Shared library runtime path variable.
18791 runpath_var=$runpath_var
18793 # Shared library path variable.
18794 shlibpath_var=$shlibpath_var
18796 # Is shlibpath searched before the hard-coded library search path?
18797 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18799 # Format of library name prefix.
18800 libname_spec=$lt_libname_spec
18802 # List of archive names. First name is the real one, the rest are links.
18803 # The last name is the one that the linker finds with -lNAME
18804 library_names_spec=$lt_library_names_spec
18806 # The coded name of the library, if different from the real name.
18807 soname_spec=$lt_soname_spec
18809 # Permission mode override for installation of shared libraries.
18810 install_override_mode=$lt_install_override_mode
18812 # Command to use after installation of a shared archive.
18813 postinstall_cmds=$lt_postinstall_cmds
18815 # Command to use after uninstallation of a shared archive.
18816 postuninstall_cmds=$lt_postuninstall_cmds
18818 # Commands used to finish a libtool library installation in a directory.
18819 finish_cmds=$lt_finish_cmds
18821 # As "finish_cmds", except a single script fragment to be evaled but
18823 finish_eval=$lt_finish_eval
18825 # Whether we should hardcode library paths into libraries.
18826 hardcode_into_libs=$hardcode_into_libs
18828 # Compile-time system search path for libraries.
18829 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18831 # Run-time system search path for libraries.
18832 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18834 # Whether dlopen is supported.
18835 dlopen_support=$enable_dlopen
18837 # Whether dlopen of programs is supported.
18838 dlopen_self=$enable_dlopen_self
18840 # Whether dlopen of statically linked programs is supported.
18841 dlopen_self_static=$enable_dlopen_self_static
18843 # Commands to strip libraries.
18844 old_striplib=$lt_old_striplib
18845 striplib=$lt_striplib
18848 # The linker used to build libraries.
18851 # How to create reloadable object files.
18852 reload_flag=$lt_reload_flag
18853 reload_cmds=$lt_reload_cmds
18855 # Commands used to build an old-style archive.
18856 old_archive_cmds=$lt_old_archive_cmds
18858 # A language specific compiler.
18861 # Is the compiler the GNU compiler?
18864 # Compiler flag to turn off builtin functions.
18865 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18867 # How to pass a linker flag through the compiler.
18868 wl=$lt_lt_prog_compiler_wl
18870 # Additional compiler flags for building library objects.
18871 pic_flag=$lt_lt_prog_compiler_pic
18873 # Compiler flag to prevent dynamic linking.
18874 link_static_flag=$lt_lt_prog_compiler_static
18876 # Does compiler simultaneously support -c and -o options?
18877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18879 # Whether or not to add -lc for building shared libraries.
18880 build_libtool_need_lc=$archive_cmds_need_lc
18882 # Whether or not to disallow shared libs when runtime libs are static.
18883 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18885 # Compiler flag to allow reflexive dlopens.
18886 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18888 # Compiler flag to generate shared objects directly from archives.
18889 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18891 # Whether the compiler copes with passing no objects directly.
18892 compiler_needs_object=$lt_compiler_needs_object
18894 # Create an old-style archive from a shared archive.
18895 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18897 # Create a temporary old-style archive to link instead of a shared archive.
18898 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18900 # Commands used to build a shared archive.
18901 archive_cmds=$lt_archive_cmds
18902 archive_expsym_cmds=$lt_archive_expsym_cmds
18904 # Commands used to build a loadable module if different from building
18905 # a shared archive.
18906 module_cmds=$lt_module_cmds
18907 module_expsym_cmds=$lt_module_expsym_cmds
18909 # Whether we are building with GNU ld or not.
18910 with_gnu_ld=$lt_with_gnu_ld
18912 # Flag that allows shared libraries with undefined symbols to be built.
18913 allow_undefined_flag=$lt_allow_undefined_flag
18915 # Flag that enforces no undefined symbols.
18916 no_undefined_flag=$lt_no_undefined_flag
18918 # Flag to hardcode \$libdir into a binary during linking.
18919 # This must work even if \$libdir does not exist
18920 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18922 # If ld is used when linking, flag to hardcode \$libdir into a binary
18923 # during linking. This must work even if \$libdir does not exist.
18924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18926 # Whether we need a single "-rpath" flag with a separated argument.
18927 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18929 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18930 # DIR into the resulting binary.
18931 hardcode_direct=$hardcode_direct
18933 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18934 # DIR into the resulting binary and the resulting library dependency is
18935 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18936 # library is relocated.
18937 hardcode_direct_absolute=$hardcode_direct_absolute
18939 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18940 # into the resulting binary.
18941 hardcode_minus_L=$hardcode_minus_L
18943 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18944 # into the resulting binary.
18945 hardcode_shlibpath_var=$hardcode_shlibpath_var
18947 # Set to "yes" if building a shared library automatically hardcodes DIR
18948 # into the library and all subsequent libraries and executables linked
18950 hardcode_automatic=$hardcode_automatic
18952 # Set to yes if linker adds runtime paths of dependent libraries
18953 # to runtime path list.
18954 inherit_rpath=$inherit_rpath
18956 # Whether libtool must link a program against all its dependency libraries.
18957 link_all_deplibs=$link_all_deplibs
18959 # Fix the shell variable \$srcfile for the compiler.
18960 fix_srcfile_path=$lt_fix_srcfile_path
18962 # Set to "yes" if exported symbols are required.
18963 always_export_symbols=$always_export_symbols
18965 # The commands to list exported symbols.
18966 export_symbols_cmds=$lt_export_symbols_cmds
18968 # Symbols that should not be listed in the preloaded symbols.
18969 exclude_expsyms=$lt_exclude_expsyms
18971 # Symbols that must always be exported.
18972 include_expsyms=$lt_include_expsyms
18974 # Commands necessary for linking programs (against libraries) with templates.
18975 prelink_cmds=$lt_prelink_cmds
18977 # Specify filename containing input files.
18978 file_list_spec=$lt_file_list_spec
18980 # How to hardcode a shared library path into an executable.
18981 hardcode_action=$hardcode_action
18983 # The directories searched by this compiler when creating a shared library.
18984 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18986 # Dependencies to place before and after the objects being linked to
18987 # create a shared library.
18988 predep_objects=$lt_predep_objects
18989 postdep_objects=$lt_postdep_objects
18990 predeps=$lt_predeps
18991 postdeps=$lt_postdeps
18993 # The library search path used internally by the compiler when linking
18994 # a shared library.
18995 compiler_lib_search_path=$lt_compiler_lib_search_path
18997 # ### END LIBTOOL CONFIG
19003 cat <<\_LT_EOF
>> "$cfgfile"
19004 # AIX sometimes has problems with the GCC collect2 program. For some
19005 # reason, if we set the COLLECT_NAMES environment variable, the problems
19006 # vanish in a puff of smoke.
19007 if test "X${COLLECT_NAMES+set}" != Xset
; then
19009 export COLLECT_NAMES
19016 ltmain
="$ac_aux_dir/ltmain.sh"
19019 # We use sed instead of cat because bash on DJGPP gets confused if
19020 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19021 # text mode, it properly converts lines to CR/LF. This bash problem
19022 # is reportedly fixed, but why not run on old versions too?
19023 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19024 ||
(rm -f "$cfgfile"; exit 1)
19028 cat << \_LT_EOF
>> "$cfgfile"
19030 # func_dirname file append nondir_replacement
19031 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19032 # otherwise set result to NONDIR_REPLACEMENT.
19036 */*) func_dirname_result
="${1%/*}${2}" ;;
19037 * ) func_dirname_result
="${3}" ;;
19041 # func_basename file
19044 func_basename_result
="${1##*/}"
19047 # func_dirname_and_basename file append nondir_replacement
19048 # perform func_basename and func_dirname in a single function
19050 # dirname: Compute the dirname of FILE. If nonempty,
19051 # add APPEND to the result, otherwise set result
19052 # to NONDIR_REPLACEMENT.
19053 # value returned in "$func_dirname_result"
19054 # basename: Compute filename of FILE.
19055 # value retuned in "$func_basename_result"
19056 # Implementation must be kept synchronized with func_dirname
19057 # and func_basename. For efficiency, we do not delegate to
19058 # those functions but instead duplicate the functionality here.
19059 func_dirname_and_basename
()
19062 */*) func_dirname_result
="${1%/*}${2}" ;;
19063 * ) func_dirname_result
="${3}" ;;
19065 func_basename_result
="${1##*/}"
19068 # func_stripname prefix suffix name
19069 # strip PREFIX and SUFFIX off of NAME.
19070 # PREFIX and SUFFIX must not contain globbing or regex special
19071 # characters, hashes, percent signs, but SUFFIX may contain a leading
19072 # dot (in which case that matches only a dot).
19075 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19076 # positional parameters, so assign one to ordinary parameter first.
19077 func_stripname_result
=${3}
19078 func_stripname_result
=${func_stripname_result#"${1}"}
19079 func_stripname_result
=${func_stripname_result%"${2}"}
19085 func_opt_split_opt
=${1%%=*}
19086 func_opt_split_arg
=${1#*=}
19093 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19094 *) func_lo2o_result
=${1} ;;
19098 # func_xform libobj-or-source
19101 func_xform_result
=${1%.*}.lo
19104 # func_arith arithmetic-term...
19107 func_arith_result
=$
(( $
* ))
19111 # STRING may not start with a hyphen.
19114 func_len_result
=${#1}
19119 *) # Bourne compatible functions.
19120 cat << \_LT_EOF
>> "$cfgfile"
19122 # func_dirname file append nondir_replacement
19123 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19124 # otherwise set result to NONDIR_REPLACEMENT.
19127 # Extract subdirectory from the argument.
19128 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19129 if test "X$func_dirname_result" = "X${1}"; then
19130 func_dirname_result
="${3}"
19132 func_dirname_result
="$func_dirname_result${2}"
19136 # func_basename file
19139 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19143 # func_stripname prefix suffix name
19144 # strip PREFIX and SUFFIX off of NAME.
19145 # PREFIX and SUFFIX must not contain globbing or regex special
19146 # characters, hashes, percent signs, but SUFFIX may contain a leading
19147 # dot (in which case that matches only a dot).
19148 # func_strip_suffix prefix name
19152 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19153 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19158 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19159 my_sed_long_arg
='1s/^-[^=]*=//'
19164 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19165 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19171 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19174 # func_xform libobj-or-source
19177 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19180 # func_arith arithmetic-term...
19183 func_arith_result
=`expr "$@"`
19187 # STRING may not start with a hyphen.
19190 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19196 case $lt_shell_append in
19198 cat << \_LT_EOF
>> "$cfgfile"
19200 # func_append var value
19201 # Append VALUE to the end of shell variable VAR.
19209 cat << \_LT_EOF
>> "$cfgfile"
19211 # func_append var value
19212 # Append VALUE to the end of shell variable VAR.
19223 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19224 ||
(rm -f "$cfgfile"; exit 1)
19226 mv -f "$cfgfile" "$ofile" ||
19227 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19231 cat <<_LT_EOF >> "$ofile"
19233 # ### BEGIN LIBTOOL TAG CONFIG: FC
19235 # The linker used to build libraries.
19238 # How to create reloadable object files.
19239 reload_flag=$lt_reload_flag_FC
19240 reload_cmds=$lt_reload_cmds_FC
19242 # Commands used to build an old-style archive.
19243 old_archive_cmds=$lt_old_archive_cmds_FC
19245 # A language specific compiler.
19248 # Is the compiler the GNU compiler?
19251 # Compiler flag to turn off builtin functions.
19252 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19254 # How to pass a linker flag through the compiler.
19255 wl=$lt_lt_prog_compiler_wl_FC
19257 # Additional compiler flags for building library objects.
19258 pic_flag=$lt_lt_prog_compiler_pic_FC
19260 # Compiler flag to prevent dynamic linking.
19261 link_static_flag=$lt_lt_prog_compiler_static_FC
19263 # Does compiler simultaneously support -c and -o options?
19264 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19266 # Whether or not to add -lc for building shared libraries.
19267 build_libtool_need_lc=$archive_cmds_need_lc_FC
19269 # Whether or not to disallow shared libs when runtime libs are static.
19270 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19272 # Compiler flag to allow reflexive dlopens.
19273 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19275 # Compiler flag to generate shared objects directly from archives.
19276 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19278 # Whether the compiler copes with passing no objects directly.
19279 compiler_needs_object=$lt_compiler_needs_object_FC
19281 # Create an old-style archive from a shared archive.
19282 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19284 # Create a temporary old-style archive to link instead of a shared archive.
19285 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19287 # Commands used to build a shared archive.
19288 archive_cmds=$lt_archive_cmds_FC
19289 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19291 # Commands used to build a loadable module if different from building
19292 # a shared archive.
19293 module_cmds=$lt_module_cmds_FC
19294 module_expsym_cmds=$lt_module_expsym_cmds_FC
19296 # Whether we are building with GNU ld or not.
19297 with_gnu_ld=$lt_with_gnu_ld_FC
19299 # Flag that allows shared libraries with undefined symbols to be built.
19300 allow_undefined_flag=$lt_allow_undefined_flag_FC
19302 # Flag that enforces no undefined symbols.
19303 no_undefined_flag=$lt_no_undefined_flag_FC
19305 # Flag to hardcode \$libdir into a binary during linking.
19306 # This must work even if \$libdir does not exist
19307 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19309 # If ld is used when linking, flag to hardcode \$libdir into a binary
19310 # during linking. This must work even if \$libdir does not exist.
19311 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19313 # Whether we need a single "-rpath" flag with a separated argument.
19314 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19316 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19317 # DIR into the resulting binary.
19318 hardcode_direct=$hardcode_direct_FC
19320 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19321 # DIR into the resulting binary and the resulting library dependency is
19322 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19323 # library is relocated.
19324 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19326 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19327 # into the resulting binary.
19328 hardcode_minus_L=$hardcode_minus_L_FC
19330 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19331 # into the resulting binary.
19332 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19334 # Set to "yes" if building a shared library automatically hardcodes DIR
19335 # into the library and all subsequent libraries and executables linked
19337 hardcode_automatic=$hardcode_automatic_FC
19339 # Set to yes if linker adds runtime paths of dependent libraries
19340 # to runtime path list.
19341 inherit_rpath=$inherit_rpath_FC
19343 # Whether libtool must link a program against all its dependency libraries.
19344 link_all_deplibs=$link_all_deplibs_FC
19346 # Fix the shell variable \$srcfile for the compiler.
19347 fix_srcfile_path=$lt_fix_srcfile_path_FC
19349 # Set to "yes" if exported symbols are required.
19350 always_export_symbols=$always_export_symbols_FC
19352 # The commands to list exported symbols.
19353 export_symbols_cmds=$lt_export_symbols_cmds_FC
19355 # Symbols that should not be listed in the preloaded symbols.
19356 exclude_expsyms=$lt_exclude_expsyms_FC
19358 # Symbols that must always be exported.
19359 include_expsyms=$lt_include_expsyms_FC
19361 # Commands necessary for linking programs (against libraries) with templates.
19362 prelink_cmds=$lt_prelink_cmds_FC
19364 # Specify filename containing input files.
19365 file_list_spec=$lt_file_list_spec_FC
19367 # How to hardcode a shared library path into an executable.
19368 hardcode_action=$hardcode_action_FC
19370 # The directories searched by this compiler when creating a shared library.
19371 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19373 # Dependencies to place before and after the objects being linked to
19374 # create a shared library.
19375 predep_objects=$lt_predep_objects_FC
19376 postdep_objects=$lt_postdep_objects_FC
19377 predeps=$lt_predeps_FC
19378 postdeps=$lt_postdeps_FC
19380 # The library search path used internally by the compiler when linking
19381 # a shared library.
19382 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19384 # ### END LIBTOOL TAG CONFIG: FC
19389 if test "$GCC" = yes; then
19390 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19392 echo "/* generated for $CC */" > tmp-stdint.h
19395 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19397 #ifndef GCC_GENERATED_STDINT_H
19398 #define GCC_GENERATED_STDINT_H 1
19400 #include <sys/types.h>
19403 if test "$acx_cv_header_stdint" != stdint.h
; then
19404 echo "#include <stddef.h>" >> tmp-stdint.h
19406 if test "$acx_cv_header_stdint" != stddef.h
; then
19407 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19410 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19411 /* glibc uses these symbols as guards to prevent redefinitions. */
19412 #ifdef __int8_t_defined
19417 #ifdef __uint32_t_defined
19423 # ----------------- done header, emit basic int types -------------
19424 if test "$acx_cv_header_stdint" = stddef.h
; then
19425 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19429 #ifndef __uint8_t_defined
19430 #define __uint8_t_defined
19432 typedef unsigned $acx_cv_type_int8_t uint8_t;
19439 #ifndef __uint16_t_defined
19440 #define __uint16_t_defined
19442 typedef unsigned $acx_cv_type_int16_t uint16_t;
19449 #ifndef __uint32_t_defined
19450 #define __uint32_t_defined
19452 typedef unsigned $acx_cv_type_int32_t uint32_t;
19459 #ifndef __int8_t_defined
19460 #define __int8_t_defined
19462 typedef $acx_cv_type_int8_t int8_t;
19469 #ifndef __int16_t_defined
19470 #define __int16_t_defined
19472 typedef $acx_cv_type_int16_t int16_t;
19479 #ifndef __int32_t_defined
19480 #define __int32_t_defined
19482 typedef $acx_cv_type_int32_t int32_t;
19487 elif test "$ac_cv_type_u_int32_t" = yes; then
19488 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19490 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19503 #ifndef __uint8_t_defined
19504 #define __uint8_t_defined
19506 typedef u_int8_t uint8_t;
19513 #ifndef __uint16_t_defined
19514 #define __uint16_t_defined
19516 typedef u_int16_t uint16_t;
19523 #ifndef __uint32_t_defined
19524 #define __uint32_t_defined
19526 typedef u_int32_t uint32_t;
19532 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19534 /* Some systems have guard macros to prevent redefinitions, define them. */
19556 # ------------- done basic int types, emit int64_t types ------------
19557 if test "$ac_cv_type_uint64_t" = yes; then
19558 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19560 /* system headers have good uint64_t and int64_t */
19568 elif test "$ac_cv_type_u_int64_t" = yes; then
19569 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19571 /* system headers have an u_int64_t (and int64_t) */
19577 #ifndef __uint64_t_defined
19578 #define __uint64_t_defined
19580 typedef u_int64_t uint64_t;
19585 elif test -n "$acx_cv_type_int64_t"; then
19586 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19588 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19592 typedef $acx_cv_type_int64_t int64_t;
19597 #ifndef __uint64_t_defined
19598 #define __uint64_t_defined
19600 typedef unsigned $acx_cv_type_int64_t uint64_t;
19606 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19608 /* some common heuristics for int64_t, using compiler-specific tests */
19609 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19612 #ifndef __int64_t_defined
19614 typedef long long int64_t;
19621 typedef unsigned long long uint64_t;
19625 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19626 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19627 does not implement __extension__. But that compiler doesn't define
19629 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19630 # define __extension__
19636 __extension__ typedef long long int64_t;
19642 __extension__ typedef unsigned long long uint64_t;
19646 #elif !defined __STRICT_ANSI__
19647 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19652 typedef __int64 int64_t;
19658 typedef unsigned __int64 uint64_t;
19661 # endif /* compiler */
19663 #endif /* ANSI version */
19667 # ------------- done int64_t types, emit intptr types ------------
19668 if test "$ac_cv_type_uintptr_t" != yes; then
19669 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19671 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19672 #ifndef __uintptr_t_defined
19674 typedef u$acx_cv_type_intptr_t uintptr_t;
19677 #ifndef __intptr_t_defined
19679 typedef $acx_cv_type_intptr_t intptr_t;
19685 # ------------- done intptr types, emit int_least types ------------
19686 if test "$ac_cv_type_int_least32_t" != yes; then
19687 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19689 /* Define int_least types */
19690 typedef int8_t int_least8_t;
19691 typedef int16_t int_least16_t;
19692 typedef int32_t int_least32_t;
19694 typedef int64_t int_least64_t;
19697 typedef uint8_t uint_least8_t;
19698 typedef uint16_t uint_least16_t;
19699 typedef uint32_t uint_least32_t;
19701 typedef uint64_t uint_least64_t;
19706 # ------------- done intptr types, emit int_fast types ------------
19707 if test "$ac_cv_type_int_fast32_t" != yes; then
19708 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19710 /* Define int_fast types. short is often slow */
19711 typedef int8_t int_fast8_t;
19712 typedef int int_fast16_t;
19713 typedef int32_t int_fast32_t;
19715 typedef int64_t int_fast64_t;
19718 typedef uint8_t uint_fast8_t;
19719 typedef unsigned int uint_fast16_t;
19720 typedef uint32_t uint_fast32_t;
19722 typedef uint64_t uint_fast64_t;
19727 if test "$ac_cv_type_uintmax_t" != yes; then
19728 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19730 /* Define intmax based on what we found */
19733 typedef int64_t intmax_t;
19735 typedef long intmax_t;
19740 typedef uint64_t uintmax_t;
19742 typedef unsigned long uintmax_t;
19748 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19750 #endif /* GCC_GENERATED_STDINT_H */
19753 if test -r gstdint.h
&& cmp -s tmp-stdint.h gstdint.h
; then
19756 mv -f tmp-stdint.h gstdint.h
19767 ac_clean_files
=$ac_clean_files_save
19769 test $ac_write_fail = 0 ||
19770 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19773 # configure is writing to config.log, and then calls config.status.
19774 # config.status does its own redirection, appending to config.log.
19775 # Unfortunately, on DOS this fails, as config.log is still kept open
19776 # by configure, so config.status won't be able to write to it; its
19777 # output is simply discarded. So we exec the FD to /dev/null,
19778 # effectively closing config.log, so it can be properly (re)opened and
19779 # appended to by config.status. When coming back to configure, we
19780 # need to make the FD available again.
19781 if test "$no_create" != yes; then
19783 ac_config_status_args
=
19784 test "$silent" = yes &&
19785 ac_config_status_args
="$ac_config_status_args --quiet"
19787 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19789 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19790 # would make configure fail if this is the last instruction.
19791 $ac_cs_success || as_fn_exit $?
19793 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19795 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}