2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Offloading and Multi Processing Runtime Library 1.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
588 PACKAGE_NAME
='GNU Offloading and Multi Processing Runtime Library'
589 PACKAGE_TARNAME
='libgomp'
590 PACKAGE_VERSION
='1.0'
591 PACKAGE_STRING
='GNU Offloading and Multi Processing Runtime Library 1.0'
593 PACKAGE_URL
='http://www.gnu.org/software/libgomp/'
595 # Factoring default headers for most tests.
596 ac_includes_default
="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
633 ac_subst_vars
='am__EXEEXT_FALSE
639 OMP_NEST_LOCK_25_KIND
641 OMP_NEST_LOCK_25_ALIGN
642 OMP_NEST_LOCK_25_SIZE
660 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
661 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
662 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
663 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
664 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
665 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
670 PLUGIN_NVPTX_DYNAMIC_FALSE
671 PLUGIN_NVPTX_DYNAMIC_TRUE
674 offload_additional_lib_paths
675 offload_additional_options
680 PLUGIN_NVPTX_CPPFLAGS
689 MAINTAINER_MODE_FALSE
748 INSTALL_STRIP_PROGRAM
804 program_transform_name
817 enable_option_checking
818 enable_version_specific_runtime_libs
819 enable_generated_files_in_srcdir
823 enable_dependency_tracking
831 enable_maintainer_mode
833 with_cuda_driver_include
839 with_gcc_major_version_only
841 ac_precious_vars
='build_alias
852 # Initialize some variables set by options.
854 ac_init_version
=false
855 ac_unrecognized_opts
=
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
866 program_transform_name
=s
,x
,x
,
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir
='${exec_prefix}/bin'
881 sbindir
='${exec_prefix}/sbin'
882 libexecdir
='${exec_prefix}/libexec'
883 datarootdir
='${prefix}/share'
884 datadir
='${datarootdir}'
885 sysconfdir
='${prefix}/etc'
886 sharedstatedir
='${prefix}/com'
887 localstatedir
='${prefix}/var'
888 includedir
='${prefix}/include'
889 oldincludedir
='/usr/include'
890 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
891 infodir
='${datarootdir}/info'
896 libdir
='${exec_prefix}/lib'
897 localedir
='${datarootdir}/locale'
898 mandir
='${datarootdir}/man'
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\
$ac_option
912 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 # Accept the important Cygnus configure options, so we can diagnose typos.
919 case $ac_dashdash$ac_option in
923 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
925 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
928 -build |
--build |
--buil |
--bui |
--bu)
929 ac_prev
=build_alias
;;
930 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
931 build_alias
=$ac_optarg ;;
933 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
934 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
935 ac_prev
=cache_file
;;
936 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
937 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
938 cache_file
=$ac_optarg ;;
941 cache_file
=config.cache
;;
943 -datadir |
--datadir |
--datadi |
--datad)
945 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
946 datadir
=$ac_optarg ;;
948 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
949 |
--dataroo |
--dataro |
--datar)
950 ac_prev
=datarootdir
;;
951 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
952 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
953 datarootdir
=$ac_optarg ;;
955 -disable-* |
--disable-*)
956 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
959 as_fn_error $?
"invalid feature name: $ac_useropt"
960 ac_useropt_orig
=$ac_useropt
961 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
966 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
967 ac_unrecognized_sep
=', ';;
969 eval enable_
$ac_useropt=no
;;
971 -docdir |
--docdir |
--docdi |
--doc |
--do)
973 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
976 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
978 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
981 -enable-* |
--enable-*)
982 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
985 as_fn_error $?
"invalid feature name: $ac_useropt"
986 ac_useropt_orig
=$ac_useropt
987 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
992 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
993 ac_unrecognized_sep
=', ';;
995 eval enable_
$ac_useropt=\
$ac_optarg ;;
997 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
998 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
999 |
--exec |
--exe |
--ex)
1000 ac_prev
=exec_prefix
;;
1001 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1002 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1003 |
--exec=* |
--exe=* |
--ex=*)
1004 exec_prefix
=$ac_optarg ;;
1006 -gas |
--gas |
--ga |
--g)
1007 # Obsolete; use --with-gas.
1010 -help |
--help |
--hel |
--he |
-h)
1011 ac_init_help
=long
;;
1012 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1013 ac_init_help
=recursive
;;
1014 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1015 ac_init_help
=short
;;
1017 -host |
--host |
--hos |
--ho)
1018 ac_prev
=host_alias
;;
1019 -host=* |
--host=* |
--hos=* |
--ho=*)
1020 host_alias
=$ac_optarg ;;
1022 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1024 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1026 htmldir
=$ac_optarg ;;
1028 -includedir |
--includedir |
--includedi |
--included |
--include \
1029 |
--includ |
--inclu |
--incl |
--inc)
1030 ac_prev
=includedir
;;
1031 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1032 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1033 includedir
=$ac_optarg ;;
1035 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1037 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1038 infodir
=$ac_optarg ;;
1040 -libdir |
--libdir |
--libdi |
--libd)
1042 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1043 libdir
=$ac_optarg ;;
1045 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1046 |
--libexe |
--libex |
--libe)
1047 ac_prev
=libexecdir
;;
1048 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1049 |
--libexe=* |
--libex=* |
--libe=*)
1050 libexecdir
=$ac_optarg ;;
1052 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1053 ac_prev
=localedir
;;
1054 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1055 localedir
=$ac_optarg ;;
1057 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1058 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1059 ac_prev
=localstatedir
;;
1060 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1061 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1062 localstatedir
=$ac_optarg ;;
1064 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1066 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1067 mandir
=$ac_optarg ;;
1069 -nfp |
--nfp |
--nf)
1070 # Obsolete; use --without-fp.
1073 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1074 |
--no-cr |
--no-c |
-n)
1077 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1078 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1081 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1082 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1083 |
--oldin |
--oldi |
--old |
--ol |
--o)
1084 ac_prev
=oldincludedir
;;
1085 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1086 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1087 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1088 oldincludedir
=$ac_optarg ;;
1090 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1092 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1093 prefix
=$ac_optarg ;;
1095 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1096 |
--program-pre |
--program-pr |
--program-p)
1097 ac_prev
=program_prefix
;;
1098 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1099 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1100 program_prefix
=$ac_optarg ;;
1102 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1103 |
--program-suf |
--program-su |
--program-s)
1104 ac_prev
=program_suffix
;;
1105 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1106 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1107 program_suffix
=$ac_optarg ;;
1109 -program-transform-name |
--program-transform-name \
1110 |
--program-transform-nam |
--program-transform-na \
1111 |
--program-transform-n |
--program-transform- \
1112 |
--program-transform |
--program-transfor \
1113 |
--program-transfo |
--program-transf \
1114 |
--program-trans |
--program-tran \
1115 |
--progr-tra |
--program-tr |
--program-t)
1116 ac_prev
=program_transform_name
;;
1117 -program-transform-name=* |
--program-transform-name=* \
1118 |
--program-transform-nam=* |
--program-transform-na=* \
1119 |
--program-transform-n=* |
--program-transform-=* \
1120 |
--program-transform=* |
--program-transfor=* \
1121 |
--program-transfo=* |
--program-transf=* \
1122 |
--program-trans=* |
--program-tran=* \
1123 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1124 program_transform_name
=$ac_optarg ;;
1126 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1128 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1129 pdfdir
=$ac_optarg ;;
1131 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1133 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1136 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1137 |
-silent |
--silent |
--silen |
--sile |
--sil)
1140 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1142 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1144 sbindir
=$ac_optarg ;;
1146 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1147 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1148 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1150 ac_prev
=sharedstatedir
;;
1151 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1152 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1153 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1155 sharedstatedir
=$ac_optarg ;;
1157 -site |
--site |
--sit)
1159 -site=* |
--site=* |
--sit=*)
1162 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1164 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1165 srcdir
=$ac_optarg ;;
1167 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1168 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1169 ac_prev
=sysconfdir
;;
1170 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1171 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1172 sysconfdir
=$ac_optarg ;;
1174 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1175 ac_prev
=target_alias
;;
1176 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1177 target_alias
=$ac_optarg ;;
1179 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1182 -version |
--version |
--versio |
--versi |
--vers |
-V)
1183 ac_init_version
=: ;;
1186 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1189 as_fn_error $?
"invalid package name: $ac_useropt"
1190 ac_useropt_orig
=$ac_useropt
1191 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1196 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197 ac_unrecognized_sep
=', ';;
1199 eval with_
$ac_useropt=\
$ac_optarg ;;
1201 -without-* |
--without-*)
1202 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1205 as_fn_error $?
"invalid package name: $ac_useropt"
1206 ac_useropt_orig
=$ac_useropt
1207 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1212 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213 ac_unrecognized_sep
=', ';;
1215 eval with_
$ac_useropt=no
;;
1218 # Obsolete; use --with-x.
1221 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1222 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1223 ac_prev
=x_includes
;;
1224 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1225 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1226 x_includes
=$ac_optarg ;;
1228 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1229 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1230 ac_prev
=x_libraries
;;
1231 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1232 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1233 x_libraries
=$ac_optarg ;;
1235 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1236 Try \`$0 --help' for more information"
1240 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
1242 case $ac_envvar in #(
1243 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1244 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1246 eval $ac_envvar=\
$ac_optarg
1247 export $ac_envvar ;;
1250 # FIXME: should be removed in autoconf 3.0.
1251 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1253 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1260 if test -n "$ac_prev"; then
1261 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1262 as_fn_error $?
"missing argument to $ac_option"
1265 if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in
1268 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1269 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 # Check all directory arguments for consistency.
1274 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir
1279 eval ac_val
=\$
$ac_var
1280 # Remove trailing slashes.
1283 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\
$ac_val;;
1286 # Be sure to have absolute directory names.
1288 [\\/$
]* | ?
:[\\/]* ) continue;;
1289 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1291 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1299 target
=$target_alias
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x
; then
1303 if test "x$build_alias" = x
; then
1304 cross_compiling
=maybe
1305 elif test "x$build_alias" != "x$host_alias"; then
1311 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1313 test "$silent" = yes && exec 6>/dev
/null
1316 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di
=`ls -di .` &&
1318 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1319 as_fn_error $?
"working directory cannot be determined"
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 as_fn_error $?
"pwd does not report name of working directory"
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted
=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir
=`$as_dirname -- "$as_myself" ||
1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333 $as_echo X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1356 ac_srcdir_defaulted
=no
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1360 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1362 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1374 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 for ac_var
in $ac_precious_vars; do
1377 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1379 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1384 # Report the --help message.
1386 if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1390 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE. See below for descriptions of some of the useful variables.
1397 Defaults for the options are specified in brackets.
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking ...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1410 Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 By default, \`make install' will install all the files in
1417 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419 for instance \`--prefix=\$HOME'.
1421 For better control, use the options below.
1423 Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1448 --program-prefix=PREFIX prepend PREFIX to installed program names
1449 --program-suffix=SUFFIX append SUFFIX to installed program names
1450 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1453 --build=BUILD configure
for building on BUILD
[guessed
]
1454 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1455 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1459 if test -n "$ac_init_help"; then
1460 case $ac_init_help in
1461 short | recursive
) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1466 --disable-option-checking ignore unrecognized
--enable/--with options
1467 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1468 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1469 --enable-version-specific-runtime-libs
1470 Specify that runtime libraries should be installed
1471 in a compiler-specific directory
[default
=no
]
1472 --enable-generated-files-in-srcdir
1473 put copies of generated files
in source dir intended
1474 for creating
source tarballs
for users without
1475 texinfo bison or flex.
[default
=no
]
1476 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1477 --disable-silent-rules verbose build output
(undo
: "make V=0")
1478 --enable-multilib build many library versions
(default
)
1479 --enable-dependency-tracking
1480 do not reject slow dependency extractors
1481 --disable-dependency-tracking
1482 speeds up one-time build
1483 --disable-werror disable building with
-Werror
1484 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1485 --enable-static[=PKGS
] build static libraries
[default
=yes]
1486 --enable-fast-install[=PKGS
]
1487 optimize
for fast installation
[default
=yes]
1488 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1489 --enable-maintainer-mode
1490 enable make rules and dependencies not useful
(and
1491 sometimes confusing
) to the casual installer
1492 --enable-linux-futex use the Linux futex system call
[default
=default
]
1493 --enable-tls Use thread-local storage
[default
=yes]
1494 --enable-symvers=STYLE enables symbol versioning of the shared library
1496 --enable-cet enable Intel CET
in target libraries
[default
=auto
]
1499 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1500 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1501 --with-toolexeclibdir=DIR
1502 install libraries built with a cross compiler within
1504 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1506 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1507 --with-cuda-driver=PATH specify prefix directory
for installed CUDA driver
1508 package. Equivalent to
1509 --with-cuda-driver-include=PATH
/include plus
1510 --with-cuda-driver-lib=PATH
/lib
1511 --with-cuda-driver-include=PATH
1512 specify directory
for installed CUDA driver include
1514 --with-cuda-driver-lib=PATH
1515 specify directory
for the installed CUDA driver
1517 --with-gcc-major-version-only
1518 use only GCC major number
in filesystem paths
1520 Some influential environment variables
:
1521 CC C compiler
command
1522 CFLAGS C compiler flags
1523 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1524 nonstandard directory
<lib dir
>
1525 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1526 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1527 you have headers
in a nonstandard directory
<include dir
>
1529 FC Fortran compiler
command
1530 FCFLAGS Fortran compiler flags
1532 Use these variables to override the choices made by
`configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1535 Report bugs to the package provider.
1536 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1537 General help using GNU software: <http://www.gnu.org/gethelp/>.
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1567 .) # We are building in place.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1600 GNU Offloading and Multi Processing Runtime Library configure 1.0
1601 generated by GNU Autoconf 2.69
1603 Copyright (C) 2012 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1610 ## ------------------------ ##
1611 ## Autoconf initialization. ##
1612 ## ------------------------ ##
1614 # ac_fn_c_try_compile LINENO
1615 # --------------------------
1616 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_compile ()
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 rm -f conftest.$ac_objext
1621 if { { ac_try="$ac_compile"
1623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1624 *) ac_try_echo
=$ac_try;;
1626 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_compile") 2>conftest.err
1630 if test -s conftest.err
; then
1631 grep -v '^ *+' conftest.err
>conftest.er1
1632 cat conftest.er1
>&5
1633 mv -f conftest.er1 conftest.err
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && {
1637 test -z "$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 } && test -s conftest.
$ac_objext; then :
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.
$ac_ext >&5
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status
$ac_retval
1650 } # ac_fn_c_try_compile
1652 # ac_fn_c_try_link LINENO
1653 # -----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded.
1657 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1658 rm -f conftest.
$ac_objext conftest
$ac_exeext
1659 if { { ac_try
="$ac_link"
1661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>conftest.err
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest$ac_exeext && {
1678 test "$cross_compiling" = yes ||
1679 test -x conftest$ac_exeext
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1688 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1689 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1690 # interfere with the next link command; also delete a directory that is
1691 # left behind by Apple's compiler. We do this before executing the actions.
1692 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
1696 } # ac_fn_c_try_link
1698 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1699 # -------------------------------------------------------
1700 # Tests whether HEADER exists and can be compiled using the include files in
1701 # INCLUDES, setting the cache variable VAR accordingly.
1702 ac_fn_c_check_header_compile ()
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval \${$3+:} false; then :
1708 $as_echo_n "(cached) " >&6
1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1715 if ac_fn_c_try_compile "$LINENO"; then :
1720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724 $as_echo "$ac_res" >&6; }
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 } # ac_fn_c_check_header_compile
1729 # ac_fn_c_try_cpp LINENO
1730 # ----------------------
1731 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { { ac_try="$ac_cpp conftest.$ac_ext"
1737 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1738 *) ac_try_echo
=$ac_try;;
1740 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1744 if test -s conftest.err
; then
1745 grep -v '^ *+' conftest.err
>conftest.er1
1746 cat conftest.er1
>&5
1747 mv -f conftest.er1 conftest.err
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } > conftest.i
&& {
1751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1752 test ! -s conftest.err
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.
$ac_ext >&5
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status
$ac_retval
1766 # ac_fn_c_try_run LINENO
1767 # ----------------------
1768 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1769 # that executables *can* be run.
1772 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1773 if { { ac_try
="$ac_link"
1775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_link") 2>&5
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1784 { { case "(($ac_try" in
1785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1786 *) ac_try_echo
=$ac_try;;
1788 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_try") 2>&5
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; }; }; then :
1796 $as_echo "$as_me: program exited with status $ac_status" >&5
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.
$ac_ext >&5
1800 ac_retval
=$ac_status
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status
$ac_retval
1808 # ac_fn_c_check_func LINENO FUNC VAR
1809 # ----------------------------------
1810 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1811 ac_fn_c_check_func
()
1813 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \
${$3+:} false
; then :
1817 $as_echo_n "(cached) " >&6
1819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1823 #define $2 innocuous_$2
1825 /* System header to define __stub macros and hopefully few prototypes,
1826 which can conflict with char $2 (); below.
1827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1828 <limits.h> exists even on freestanding compilers. */
1831 # include <limits.h>
1833 # include <assert.h>
1838 /* Override any GCC internal prototype to avoid an error.
1839 Use char because int might match the return type of a GCC
1840 builtin and then its argument prototype would still apply. */
1845 /* The GNU C library defines this for functions which it implements
1846 to always fail with ENOSYS. Some functions are actually named
1847 something starting with __ and the normal name is an alias. */
1848 #if defined __stub_$2 || defined __stub___$2
1860 if ac_fn_c_try_link
"$LINENO"; then :
1865 rm -f core conftest.err conftest.
$ac_objext \
1866 conftest
$ac_exeext conftest.
$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 } # ac_fn_c_check_func
1875 # ac_fn_fc_try_compile LINENO
1876 # ---------------------------
1877 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_fc_try_compile
()
1880 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1881 rm -f conftest.
$ac_objext
1882 if { { ac_try
="$ac_compile"
1884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_compile") 2>conftest.err
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_fc_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest.$ac_objext; then :
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status $ac_retval
1911 } # ac_fn_fc_try_compile
1913 # ac_fn_fc_try_link LINENO
1914 # ------------------------
1915 # Try to link conftest.$ac_ext, and return whether this succeeded.
1916 ac_fn_fc_try_link ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 rm -f conftest.$ac_objext conftest$ac_exeext
1920 if { { ac_try="$ac_link"
1922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1923 *) ac_try_echo
=$ac_try;;
1925 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927 (eval "$ac_link") 2>conftest.err
1929 if test -s conftest.err
; then
1930 grep -v '^ *+' conftest.err
>conftest.er1
1931 cat conftest.er1
>&5
1932 mv -f conftest.er1 conftest.err
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; } && {
1936 test -z "$ac_fc_werror_flag" ||
1937 test ! -s conftest.err
1938 } && test -s conftest
$ac_exeext && {
1939 test "$cross_compiling" = yes ||
1940 test -x conftest
$ac_exeext
1944 $as_echo "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.
$ac_ext >&5
1949 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1950 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1951 # interfere with the next link command; also delete a directory that is
1952 # left behind by Apple's compiler. We do this before executing the actions.
1953 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 as_fn_set_status
$ac_retval
1957 } # ac_fn_fc_try_link
1959 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1960 # -------------------------------------------------------
1961 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1962 # the include files in INCLUDES and setting the cache variable VAR
1964 ac_fn_c_check_header_mongrel
()
1966 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1967 if eval \
${$3+:} false
; then :
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if eval \
${$3+:} false
; then :
1971 $as_echo_n "(cached) " >&6
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1977 # Is the header compilable?
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1979 $as_echo_n "checking $2 usability... " >&6; }
1980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1985 if ac_fn_c_try_compile
"$LINENO"; then :
1986 ac_header_compiler
=yes
1988 ac_header_compiler
=no
1990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1992 $as_echo "$ac_header_compiler" >&6; }
1994 # Is the header present?
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1996 $as_echo_n "checking $2 presence... " >&6; }
1997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2001 if ac_fn_c_try_cpp
"$LINENO"; then :
2002 ac_header_preproc
=yes
2004 ac_header_preproc
=no
2006 rm -f conftest.err conftest.i conftest.
$ac_ext
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2008 $as_echo "$ac_header_preproc" >&6; }
2010 # So? What about this header?
2011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2014 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2016 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2020 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2022 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2024 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2026 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2028 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if eval \
${$3+:} false
; then :
2034 $as_echo_n "(cached) " >&6
2036 eval "$3=\$ac_header_compiler"
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044 } # ac_fn_c_check_header_mongrel
2046 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2047 # --------------------------------------------
2048 # Tries to find the compile-time value of EXPR in a program that includes
2049 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2051 ac_fn_c_compute_int
()
2053 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2054 if test "$cross_compiling" = yes; then
2055 # Depending upon the size, compute the lo and hi bounds.
2056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2062 static int test_array [1 - 2 * !(($2) >= 0)];
2064 return test_array [0];
2070 if ac_fn_c_try_compile
"$LINENO"; then :
2073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2079 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2081 return test_array [0];
2087 if ac_fn_c_try_compile
"$LINENO"; then :
2088 ac_hi
=$ac_mid; break
2090 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2091 if test $ac_lo -le $ac_mid; then
2095 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2106 static int test_array [1 - 2 * !(($2) < 0)];
2108 return test_array [0];
2114 if ac_fn_c_try_compile
"$LINENO"; then :
2117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2123 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2125 return test_array [0];
2131 if ac_fn_c_try_compile
"$LINENO"; then :
2132 ac_lo
=$ac_mid; break
2134 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2135 if test $ac_mid -le $ac_hi; then
2139 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2149 # Binary search between lo and hi bounds.
2150 while test "x$ac_lo" != "x$ac_hi"; do
2151 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2158 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2160 return test_array [0];
2166 if ac_fn_c_try_compile
"$LINENO"; then :
2169 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2174 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2181 static long int longval () { return $2; }
2182 static unsigned long int ulongval () { return $2; }
2189 FILE *f = fopen ("conftest.val", "w");
2194 long int i = longval ();
2197 fprintf (f, "%ld", i);
2201 unsigned long int i = ulongval ();
2204 fprintf (f, "%lu", i);
2206 /* Do not output a trailing newline, as this causes \r\n confusion
2207 on some platforms. */
2208 return ferror (f) || fclose (f) != 0;
2214 if ac_fn_c_try_run
"$LINENO"; then :
2215 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2219 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2220 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2224 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2225 as_fn_set_status
$ac_retval
2227 } # ac_fn_c_compute_int
2229 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2230 # -------------------------------------------
2231 # Tests whether TYPE exists after having included INCLUDES, setting cache
2232 # variable VAR accordingly.
2233 ac_fn_c_check_type
()
2235 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2237 $as_echo_n "checking for $2... " >&6; }
2238 if eval \
${$3+:} false
; then :
2239 $as_echo_n "(cached) " >&6
2242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2254 if ac_fn_c_try_compile
"$LINENO"; then :
2255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2267 if ac_fn_c_try_compile
"$LINENO"; then :
2272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278 $as_echo "$ac_res" >&6; }
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2281 } # ac_fn_c_check_type
2282 cat >config.log
<<_ACEOF
2283 This file contains any messages produced by compilers while
2284 running configure, to aid debugging if configure makes a mistake.
2286 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2287 generated by GNU Autoconf 2.69. Invocation command line was
2299 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2300 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2301 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2302 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2303 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2305 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2306 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2308 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2309 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2310 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2311 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2312 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2313 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2314 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2322 test -z "$as_dir" && as_dir
=.
2323 $as_echo "PATH: $as_dir"
2339 # Keep a trace of the command line.
2340 # Strip out --no-create and --no-recursion so they do not pile up.
2341 # Strip out --silent because we don't want to record it for future runs.
2342 # Also quote any args containing shell meta-characters.
2343 # Make two passes to allow for proper duplicate-argument suppression.
2347 ac_must_keep_next
=false
2353 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2354 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2355 |
-silent |
--silent |
--silen |
--sile |
--sil)
2358 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2361 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2363 as_fn_append ac_configure_args1
" '$ac_arg'"
2364 if test $ac_must_keep_next = true
; then
2365 ac_must_keep_next
=false
# Got value, back to normal.
2368 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2369 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2370 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2371 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2372 case "$ac_configure_args0 " in
2373 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2376 -* ) ac_must_keep_next
=true
;;
2379 as_fn_append ac_configure_args
" '$ac_arg'"
2384 { ac_configure_args0
=; unset ac_configure_args0
;}
2385 { ac_configure_args1
=; unset ac_configure_args1
;}
2387 # When interrupted or exit'd, cleanup temporary files, and complete
2388 # config.log. We remove comments because anyway the quotes in there
2389 # would cause problems or look ugly.
2390 # WARNING: Use '\'' to represent an apostrophe within the trap.
2391 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2392 trap 'exit_status=$?
2393 # Save into config.log some information that might help in debugging.
2397 $as_echo "## ---------------- ##
2398 ## Cache variables. ##
2399 ## ---------------- ##"
2401 # The following way of writing the cache mishandles newlines in values,
2403 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2404 eval ac_val=\$$ac_var
2408 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2409 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2412 _ | IFS | as_nl) ;; #(
2413 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2414 *) { eval $ac_var=; unset $ac_var;} ;;
2419 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2420 *${as_nl}ac_space=\ *)
2422 "s/'\''/'\''\\\\'\'''\''/g;
2423 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2426 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2433 $as_echo "## ----------------- ##
2434 ## Output variables. ##
2435 ## ----------------- ##"
2437 for ac_var in $ac_subst_vars
2439 eval ac_val=\$$ac_var
2441 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2443 $as_echo "$ac_var='\''$ac_val'\''"
2447 if test -n "$ac_subst_files"; then
2448 $as_echo "## ------------------- ##
2449 ## File substitutions. ##
2450 ## ------------------- ##"
2452 for ac_var
in $ac_subst_files
2454 eval ac_val
=\$
$ac_var
2456 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2458 $as_echo "$ac_var='\''$ac_val'\''"
2463 if test -s confdefs.h; then
2464 $as_echo "## ----------- ##
2471 test "$ac_signal" != 0 &&
2472 $as_echo "$as_me: caught signal $ac_signal"
2473 $as_echo "$as_me: exit $exit_status"
2475 rm -f core *.core core.conftest.* &&
2476 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2479 for ac_signal
in 1 2 13 15; do
2480 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2484 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2485 rm -f -r conftest
* confdefs.h
2487 $as_echo "/* confdefs.h */" > confdefs.h
2489 # Predefined preprocessor variables.
2491 cat >>confdefs.h
<<_ACEOF
2492 #define PACKAGE_NAME "$PACKAGE_NAME"
2495 cat >>confdefs.h
<<_ACEOF
2496 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2499 cat >>confdefs.h
<<_ACEOF
2500 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2503 cat >>confdefs.h
<<_ACEOF
2504 #define PACKAGE_STRING "$PACKAGE_STRING"
2507 cat >>confdefs.h
<<_ACEOF
2508 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2511 cat >>confdefs.h
<<_ACEOF
2512 #define PACKAGE_URL "$PACKAGE_URL"
2516 # Let the site file select an alternate cache file if it wants to.
2517 # Prefer an explicitly selected file to automatically selected ones.
2520 if test -n "$CONFIG_SITE"; then
2521 # We do not want a PATH search for config.site.
2522 case $CONFIG_SITE in #((
2523 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2524 */*) ac_site_file1
=$CONFIG_SITE;;
2525 *) ac_site_file1
=.
/$CONFIG_SITE;;
2527 elif test "x$prefix" != xNONE
; then
2528 ac_site_file1
=$prefix/share
/config.site
2529 ac_site_file2
=$prefix/etc
/config.site
2531 ac_site_file1
=$ac_default_prefix/share
/config.site
2532 ac_site_file2
=$ac_default_prefix/etc
/config.site
2534 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2536 test "x$ac_site_file" = xNONE
&& continue
2537 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2539 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2540 sed 's/^/| /' "$ac_site_file" >&5
2542 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2544 as_fn_error $?
"failed to load site script $ac_site_file
2545 See \`config.log' for more details" "$LINENO" 5; }
2549 if test -r "$cache_file"; then
2550 # Some versions of bash will fail to source /dev/null (special files
2551 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2552 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2554 $as_echo "$as_me: loading cache $cache_file" >&6;}
2556 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2557 *) .
"./$cache_file";;
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2562 $as_echo "$as_me: creating cache $cache_file" >&6;}
2566 as_fn_append ac_header_list
" unistd.h"
2567 as_fn_append ac_func_list
" secure_getenv"
2568 as_fn_append ac_func_list
" __secure_getenv"
2569 as_fn_append ac_func_list
" getuid"
2570 as_fn_append ac_func_list
" geteuid"
2571 as_fn_append ac_func_list
" getgid"
2572 as_fn_append ac_func_list
" getegid"
2573 # Check that the precious variables saved in the cache have kept the same
2575 ac_cache_corrupted
=false
2576 for ac_var
in $ac_precious_vars; do
2577 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2578 eval ac_new_set
=\
$ac_env_${ac_var}_set
2579 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2580 eval ac_new_val
=\
$ac_env_${ac_var}_value
2581 case $ac_old_set,$ac_new_set in
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2584 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2585 ac_cache_corrupted
=: ;;
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2588 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2589 ac_cache_corrupted
=: ;;
2592 if test "x$ac_old_val" != "x$ac_new_val"; then
2593 # differences in whitespace do not lead to failure.
2594 ac_old_val_w
=`echo x $ac_old_val`
2595 ac_new_val_w
=`echo x $ac_new_val`
2596 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2598 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2599 ac_cache_corrupted
=:
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2602 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2603 eval $ac_var=\
$ac_old_val
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2606 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2608 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2611 # Pass precious variables to config.status.
2612 if test "$ac_new_set" = set; then
2614 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2615 *) ac_arg
=$ac_var=$ac_new_val ;;
2617 case " $ac_configure_args " in
2618 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2619 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2623 if $ac_cache_corrupted; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2627 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2628 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2630 ## -------------------- ##
2631 ## Main body of script. ##
2632 ## -------------------- ##
2635 ac_cpp
='$CPP $CPPFLAGS'
2636 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2637 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2638 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2644 ac_config_headers
="$ac_config_headers config.h"
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2652 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2653 # Check whether --enable-version-specific-runtime-libs was given.
2654 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2655 enableval
=$enable_version_specific_runtime_libs;
2656 case "$enableval" in
2658 *) as_fn_error $?
"Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2662 enable_version_specific_runtime_libs
=no
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2667 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2669 # We would like our source tree to be readonly. However when releases or
2670 # pre-releases are generated, the flex/bison generated files as well as the
2671 # various formats of manuals need to be included along with the rest of the
2672 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2675 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2676 # Check whether --enable-generated-files-in-srcdir was given.
2677 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2678 enableval
=$enable_generated_files_in_srcdir;
2679 case "$enableval" in
2681 *) as_fn_error $?
"Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2685 enable_generated_files_in_srcdir
=no
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2690 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2691 if test "$enable_generated_files_in_srcdir" = yes; then
2704 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2706 # You will slowly go insane if you do not grok the following fact: when
2707 # building this library, the top-level /target/ becomes the library's /host/.
2709 # configure then causes --target to default to --host, exactly like any
2710 # other package using autoconf. Therefore, 'target' and 'host' will
2711 # always be the same. This makes sense both for native and cross compilers
2712 # just think about it for a little while. :-)
2714 # Also, if this library is being configured as part of a cross compiler, the
2715 # top-level configure script will pass the "real" host as $with_cross_host.
2717 # Do not delete or change the following two lines. For why, see
2718 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2720 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2721 if test -f "$ac_dir/install-sh"; then
2723 ac_install_sh
="$ac_aux_dir/install-sh -c"
2725 elif test -f "$ac_dir/install.sh"; then
2727 ac_install_sh
="$ac_aux_dir/install.sh -c"
2729 elif test -f "$ac_dir/shtool"; then
2731 ac_install_sh
="$ac_aux_dir/shtool install -c"
2735 if test -z "$ac_aux_dir"; then
2736 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2739 # These three variables are undocumented and unsupported,
2740 # and are intended to be withdrawn in a future Autoconf release.
2741 # They can cause serious problems if a builder's source tree is in a directory
2742 # whose full name contains unusual characters.
2743 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2744 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2745 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2748 # Make sure we can run config.sub.
2749 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2750 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2753 $as_echo_n "checking build system type... " >&6; }
2754 if ${ac_cv_build+:} false
; then :
2755 $as_echo_n "(cached) " >&6
2757 ac_build_alias
=$build_alias
2758 test "x$ac_build_alias" = x
&&
2759 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2760 test "x$ac_build_alias" = x
&&
2761 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2762 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2763 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2767 $as_echo "$ac_cv_build" >&6; }
2768 case $ac_cv_build in
2770 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2773 ac_save_IFS
=$IFS; IFS
='-'
2779 # Remember, the first character of IFS is used to create $*,
2780 # except with old shells:
2783 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2787 $as_echo_n "checking host system type... " >&6; }
2788 if ${ac_cv_host+:} false
; then :
2789 $as_echo_n "(cached) " >&6
2791 if test "x$host_alias" = x
; then
2792 ac_cv_host
=$ac_cv_build
2794 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2795 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2800 $as_echo "$ac_cv_host" >&6; }
2803 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2806 ac_save_IFS
=$IFS; IFS
='-'
2812 # Remember, the first character of IFS is used to create $*,
2813 # except with old shells:
2816 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2820 $as_echo_n "checking target system type... " >&6; }
2821 if ${ac_cv_target+:} false
; then :
2822 $as_echo_n "(cached) " >&6
2824 if test "x$target_alias" = x
; then
2825 ac_cv_target
=$ac_cv_host
2827 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2828 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2833 $as_echo "$ac_cv_target" >&6; }
2834 case $ac_cv_target in
2836 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2838 target
=$ac_cv_target
2839 ac_save_IFS
=$IFS; IFS
='-'
2845 # Remember, the first character of IFS is used to create $*,
2846 # except with old shells:
2849 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2852 # The aliases save the names the user supplied, while $host etc.
2853 # will get canonicalized.
2854 test -n "$target_alias" &&
2855 test "$program_prefix$program_suffix$program_transform_name" = \
2857 program_prefix
=${target_alias}-
2859 target_alias
=${target_alias-$host_alias}
2861 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2862 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2863 # 1.9.0: minimum required version
2864 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2865 # of other PACKAGE_* variables will, however, and there's nothing
2866 # we can do about that; they come from AC_INIT).
2867 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2868 # file in the top srcdir, etc, etc), so stop complaining.
2869 # no-dist: we don't want 'dist' and related rules.
2870 # -Wall: turns on all automake warnings...
2871 # -Wno-portability: ...except this one, since GNU make is required.
2872 # -Wno-override: ... and this one, since we do want this in testsuite.
2873 am__api_version
='1.15'
2875 # Find a good install program. We prefer a C program (faster),
2876 # so one script is as good as another. But avoid the broken or
2877 # incompatible versions:
2878 # SysV /etc/install, /usr/sbin/install
2879 # SunOS /usr/etc/install
2880 # IRIX /sbin/install
2882 # AmigaOS /C/install, which installs bootblocks on floppy discs
2883 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2884 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2885 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2886 # OS/2's system install, which has a completely different semantic
2887 # ./install, which can be erroneously created by make from ./install.sh.
2888 # Reject install programs that cannot install multiple files.
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2890 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2891 if test -z "$INSTALL"; then
2892 if ${ac_cv_path_install+:} false
; then :
2893 $as_echo_n "(cached) " >&6
2895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2899 test -z "$as_dir" && as_dir
=.
2900 # Account for people who put trailing slashes in PATH elements.
2901 case $as_dir/ in #((
2902 .
/ | .
// |
/[cC
]/* | \
2903 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2904 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2907 # OSF1 and SCO ODT 3.0 have their own names for install.
2908 # Don't use installbsd from OSF since it installs stuff as root
2910 for ac_prog
in ginstall scoinst
install; do
2911 for ac_exec_ext
in '' $ac_executable_extensions; do
2912 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2913 if test $ac_prog = install &&
2914 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2915 # AIX install. It has an incompatible calling convention.
2917 elif test $ac_prog = install &&
2918 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2919 # program-specific install script used by HP pwplus--don't use.
2922 rm -rf conftest.one conftest.two conftest.dir
2923 echo one
> conftest.one
2924 echo two
> conftest.two
2926 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2927 test -s conftest.one
&& test -s conftest.two
&&
2928 test -s conftest.dir
/conftest.one
&&
2929 test -s conftest.dir
/conftest.two
2931 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2944 rm -rf conftest.one conftest.two conftest.dir
2947 if test "${ac_cv_path_install+set}" = set; then
2948 INSTALL
=$ac_cv_path_install
2950 # As a last resort, use the slow shell script. Don't cache a
2951 # value for INSTALL within a source directory, because that will
2952 # break other packages using the cache if that directory is
2953 # removed, or if the value is a relative name.
2954 INSTALL
=$ac_install_sh
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2958 $as_echo "$INSTALL" >&6; }
2960 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2961 # It thinks the first close brace ends the variable substitution.
2962 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2964 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2966 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2969 $as_echo_n "checking whether build environment is sane... " >&6; }
2970 # Reject unsafe characters in $srcdir or the absolute working directory
2971 # name. Accept space and tab only in the latter.
2975 *[\\\"\
#\$\&\'\`$am_lf]*)
2976 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2979 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2980 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2983 # Do 'set' in a subshell so we don't clobber the current shell's
2984 # arguments. Must try -L first in case configure is actually a
2985 # symlink; some systems play weird games with the mod time of symlinks
2986 # (eg FreeBSD returns the mod time of the symlink's containing
2990 for am_try
in 1 2; do
2991 echo "timestamp, slept: $am_has_slept" > conftest.
file
2992 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2993 if test "$*" = "X"; then
2995 set X
`ls -t "$srcdir/configure" conftest.file`
2997 if test "$*" != "X $srcdir/configure conftest.file" \
2998 && test "$*" != "X conftest.file $srcdir/configure"; then
3000 # If neither matched, then we have a broken ls. This can happen
3001 # if, for instance, CONFIG_SHELL is bash and it inherits a
3002 # broken ls alias from the environment. This has actually
3003 # happened. Such a system could not be considered "sane".
3004 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3005 alias in your environment" "$LINENO" 5
3007 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3014 test "$2" = conftest.
file
3020 as_fn_error $?
"newly created file is older than distributed files!
3021 Check your system clock" "$LINENO" 5
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3024 $as_echo "yes" >&6; }
3025 # If we didn't sleep, we still need to ensure time stamps of config.status and
3026 # generated files are strictly newer.
3028 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3035 test "$program_prefix" != NONE
&&
3036 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3037 # Use a double $ so make ignores it.
3038 test "$program_suffix" != NONE
&&
3039 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3040 # Double any \ or $.
3041 # By default was `s,x,x', remove it if useless.
3042 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3043 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3045 # Expand $ac_aux_dir to an absolute path.
3046 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3048 if test x
"${MISSING+set}" != xset
; then
3051 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3053 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3056 # Use eval to expand $SHELL
3057 if eval "$MISSING --is-lightweight"; then
3058 am_missing_run
="$MISSING "
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3062 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3065 if test x
"${install_sh+set}" != xset
; then
3068 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3070 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3074 # Installed binaries are usually stripped using 'strip' when the user
3075 # run "make install-strip". However 'strip' might not be the right
3076 # tool to use in cross-compilation environments, therefore Automake
3077 # will honor the 'STRIP' environment variable to overrule this program.
3078 if test "$cross_compiling" != no
; then
3079 if test -n "$ac_tool_prefix"; then
3080 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3081 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_STRIP+:} false
; then :
3085 $as_echo_n "(cached) " >&6
3087 if test -n "$STRIP"; then
3088 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3094 test -z "$as_dir" && as_dir
=.
3095 for ac_exec_ext
in '' $ac_executable_extensions; do
3096 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 STRIP
=$ac_cv_prog_STRIP
3108 if test -n "$STRIP"; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3110 $as_echo "$STRIP" >&6; }
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3118 if test -z "$ac_cv_prog_STRIP"; then
3120 # Extract the first word of "strip", so it can be a program name with args.
3121 set dummy strip
; ac_word
=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3125 $as_echo_n "(cached) " >&6
3127 if test -n "$ac_ct_STRIP"; then
3128 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3134 test -z "$as_dir" && as_dir
=.
3135 for ac_exec_ext
in '' $ac_executable_extensions; do
3136 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_ac_ct_STRIP
="strip"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3148 if test -n "$ac_ct_STRIP"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3150 $as_echo "$ac_ct_STRIP" >&6; }
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3156 if test "x$ac_ct_STRIP" = x
; then
3159 case $cross_compiling:$ac_tool_warned in
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3163 ac_tool_warned
=yes ;;
3168 STRIP
="$ac_cv_prog_STRIP"
3172 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3175 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3176 if test -z "$MKDIR_P"; then
3177 if ${ac_cv_path_mkdir+:} false
; then :
3178 $as_echo_n "(cached) " >&6
3180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3181 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3184 test -z "$as_dir" && as_dir
=.
3185 for ac_prog
in mkdir gmkdir
; do
3186 for ac_exec_ext
in '' $ac_executable_extensions; do
3187 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3188 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3189 'mkdir (GNU coreutils) '* | \
3190 'mkdir (coreutils) '* | \
3191 'mkdir (fileutils) '4.1*)
3192 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3202 test -d .
/--version && rmdir .
/--version
3203 if test "${ac_cv_path_mkdir+set}" = set; then
3204 MKDIR_P
="$ac_cv_path_mkdir -p"
3206 # As a last resort, use the slow shell script. Don't cache a
3207 # value for MKDIR_P within a source directory, because that will
3208 # break other packages using the cache if that directory is
3209 # removed, or if the value is a relative name.
3210 MKDIR_P
="$ac_install_sh -d"
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3214 $as_echo "$MKDIR_P" >&6; }
3216 for ac_prog
in gawk mawk nawk
awk
3218 # Extract the first word of "$ac_prog", so it can be a program name with args.
3219 set dummy
$ac_prog; ac_word
=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if ${ac_cv_prog_AWK+:} false
; then :
3223 $as_echo_n "(cached) " >&6
3225 if test -n "$AWK"; then
3226 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3232 test -z "$as_dir" && as_dir
=.
3233 for ac_exec_ext
in '' $ac_executable_extensions; do
3234 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3235 ac_cv_prog_AWK
="$ac_prog"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 if test -n "$AWK"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3248 $as_echo "$AWK" >&6; }
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3255 test -n "$AWK" && break
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3259 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3261 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3262 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3263 $as_echo_n "(cached) " >&6
3265 cat >conftest.
make <<\_ACEOF
3268 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3270 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3271 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3273 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3275 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3279 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3281 $as_echo "yes" >&6; }
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3286 SET_MAKE
="MAKE=${MAKE-make}"
3289 rm -rf .tst
2>/dev
/null
3290 mkdir .tst
2>/dev
/null
3291 if test -d .tst
; then
3296 rmdir .tst
2>/dev
/null
3298 # Check whether --enable-silent-rules was given.
3299 if test "${enable_silent_rules+set}" = set; then :
3300 enableval
=$enable_silent_rules;
3303 case $enable_silent_rules in # (((
3304 yes) AM_DEFAULT_VERBOSITY
=0;;
3305 no
) AM_DEFAULT_VERBOSITY
=1;;
3306 *) AM_DEFAULT_VERBOSITY
=1;;
3308 am_make
=${MAKE-make}
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3310 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3311 if ${am_cv_make_support_nested_variables+:} false
; then :
3312 $as_echo_n "(cached) " >&6
3314 if $as_echo 'TRUE=$(BAR$(V))
3320 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3321 am_cv_make_support_nested_variables
=yes
3323 am_cv_make_support_nested_variables
=no
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3327 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3328 if test $am_cv_make_support_nested_variables = yes; then
3330 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3332 AM_V
=$AM_DEFAULT_VERBOSITY
3333 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3337 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3338 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3339 # is not polluted with repeated "-I."
3340 am__isrc
=' -I$(srcdir)'
3341 # test to see if srcdir already configured
3342 if test -f $srcdir/config.status
; then
3343 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3347 # test whether we have cygpath
3348 if test -z "$CYGPATH_W"; then
3349 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3350 CYGPATH_W
='cygpath -w'
3357 # Define the identity of the package.
3362 cat >>confdefs.h
<<_ACEOF
3363 #define PACKAGE "$PACKAGE"
3367 cat >>confdefs.h
<<_ACEOF
3368 #define VERSION "$VERSION"
3371 # Some tools Automake needs.
3373 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3376 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3379 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3382 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3385 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3387 # For better backward compatibility. To be removed once Automake 1.9.x
3388 # dies out for good. For more background, see:
3389 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3390 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3391 mkdir_p
='$(MKDIR_P)'
3393 # We need awk for the "check" target (and possibly the TAP driver). The
3394 # system "awk" is bad on some platforms.
3395 # Always define AMTAR for backward compatibility. Yes, it's still used
3396 # in the wild :-( We should find a proper way to deprecate it ...
3400 # We'll loop over all known methods to create a tar archive until one works.
3401 _am_tools
='gnutar pax cpio none'
3403 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3410 # POSIX will say in a future version that running "rm -f" with no argument
3411 # is OK; and we want to be able to make that assumption in our Makefile
3412 # recipes. So use an aggressive probe to check that the usage we want is
3413 # actually supported "in the wild" to an acceptable degree.
3414 # See automake bug#10828.
3415 # To make any issue more visible, cause the running configure to be aborted
3416 # by default if the 'rm' program in use doesn't match our expectations; the
3417 # user can still override this though.
3418 if rm -f && rm -fr && rm -rf; then : OK
; else
3422 Your 'rm' program seems unable to run without file operands specified
3423 on the command line, even when the '-f' option is present. This is contrary
3424 to the behaviour of most rm programs out there, and not conforming with
3425 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3427 Please tell bug-automake@gnu.org about your system, including the value
3428 of your $PATH and any error possibly output before this message. This
3429 can help us improve future automake versions.
3432 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3433 echo 'Configuration will proceed anyway, since you have set the' >&2
3434 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3438 Aborting the configuration process, to ensure you take notice of the issue.
3440 You can download and install GNU coreutils to get an 'rm' implementation
3441 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3443 If you want to complete the configuration process using your problematic
3444 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3445 to "yes", and re-run configure.
3448 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3452 # Default to --enable-multilib
3453 # Check whether --enable-multilib was given.
3454 if test "${enable_multilib+set}" = set; then :
3455 enableval
=$enable_multilib; case "$enableval" in
3456 yes) multilib
=yes ;;
3458 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
3465 # We may get other options which we leave undocumented:
3466 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3467 # See config-ml.in if you want the gory details.
3469 if test "$srcdir" = "."; then
3470 if test "$with_target_subdir" != "."; then
3471 multi_basedir
="$srcdir/$with_multisrctop../.."
3473 multi_basedir
="$srcdir/$with_multisrctop.."
3476 multi_basedir
="$srcdir/.."
3480 # Even if the default multilib is not a cross compilation,
3481 # it may be that some of the other multilibs are.
3482 if test $cross_compiling = no
&& test $multilib = yes \
3483 && test "x${with_multisubdir}" != x
; then
3484 cross_compiling
=maybe
3487 ac_config_commands
="$ac_config_commands default-1"
3491 # Check whether --with-toolexeclibdir was given.
3492 if test "${with_toolexeclibdir+set}" = set; then :
3493 withval
=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3497 with_toolexeclibdir
=`echo $with_toolexeclibdir | sed 's,/$,,'`
3501 with_toolexeclibdir
=no
3506 # Calculate toolexeclibdir
3507 # Also toolexecdir, though it's only used in toolexeclibdir
3508 case ${enable_version_specific_runtime_libs} in
3510 # Need the gcc compiler version to know where to install libraries
3511 # and header files if --enable-version-specific-runtime-libs option
3513 toolexecdir
='$(libdir)/gcc/$(target_alias)'
3514 toolexeclibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3517 if test -n "$with_cross_host" &&
3518 test x
"$with_cross_host" != x
"no"; then
3519 # Install a library built with a cross compiler in tooldir, not libdir.
3520 toolexecdir
='$(exec_prefix)/$(target_alias)'
3521 case ${with_toolexeclibdir} in
3523 toolexeclibdir
='$(toolexecdir)/lib'
3526 toolexeclibdir
=${with_toolexeclibdir}
3530 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3531 toolexeclibdir
='$(libdir)'
3533 multi_os_directory
=`$CC -print-multi-os-directory`
3534 case $multi_os_directory in
3535 .
) ;; # Avoid trailing /.
3536 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3543 # Check the compiler.
3544 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3545 # We must force CC to /not/ be precious variables; otherwise
3546 # the wrong, non-multilib-adjusted value will be used in multilibs.
3547 # As a side effect, we have to subst CFLAGS ourselves.
3552 ac_cpp
='$CPP $CPPFLAGS'
3553 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3554 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3555 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3556 if test -n "$ac_tool_prefix"; then
3557 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3558 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3560 $as_echo_n "checking for $ac_word... " >&6; }
3561 if ${ac_cv_prog_CC+:} false
; then :
3562 $as_echo_n "(cached) " >&6
3564 if test -n "$CC"; then
3565 ac_cv_prog_CC
="$CC" # Let the user override the test.
3567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3571 test -z "$as_dir" && as_dir
=.
3572 for ac_exec_ext
in '' $ac_executable_extensions; do
3573 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3574 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 if test -n "$CC"; then
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3587 $as_echo "$CC" >&6; }
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590 $as_echo "no" >&6; }
3595 if test -z "$ac_cv_prog_CC"; then
3597 # Extract the first word of "gcc", so it can be a program name with args.
3598 set dummy gcc
; ac_word
=$2
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600 $as_echo_n "checking for $ac_word... " >&6; }
3601 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3602 $as_echo_n "(cached) " >&6
3604 if test -n "$ac_ct_CC"; then
3605 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3607 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3611 test -z "$as_dir" && as_dir
=.
3612 for ac_exec_ext
in '' $ac_executable_extensions; do
3613 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3614 ac_cv_prog_ac_ct_CC
="gcc"
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3625 if test -n "$ac_ct_CC"; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3627 $as_echo "$ac_ct_CC" >&6; }
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3633 if test "x$ac_ct_CC" = x
; then
3636 case $cross_compiling:$ac_tool_warned in
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3640 ac_tool_warned
=yes ;;
3648 if test -z "$CC"; then
3649 if test -n "$ac_tool_prefix"; then
3650 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3651 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if ${ac_cv_prog_CC+:} false
; then :
3655 $as_echo_n "(cached) " >&6
3657 if test -n "$CC"; then
3658 ac_cv_prog_CC
="$CC" # Let the user override the test.
3660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3664 test -z "$as_dir" && as_dir
=.
3665 for ac_exec_ext
in '' $ac_executable_extensions; do
3666 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 if test -n "$CC"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 $as_echo "$CC" >&6; }
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3689 if test -z "$CC"; then
3690 # Extract the first word of "cc", so it can be a program name with args.
3691 set dummy cc
; ac_word
=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if ${ac_cv_prog_CC+:} false
; then :
3695 $as_echo_n "(cached) " >&6
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC
="$CC" # Let the user override the test.
3701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir
=.
3706 for ac_exec_ext
in '' $ac_executable_extensions; do
3707 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3708 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3709 ac_prog_rejected
=yes
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 if test $ac_prog_rejected = yes; then
3721 # We found a bogon in the path, so make sure we never use it.
3722 set dummy
$ac_cv_prog_CC
3724 if test $# != 0; then
3725 # We chose a different compiler from the bogus one.
3726 # However, it has the same basename, so the bogon will be chosen
3727 # first if we set CC to just the basename; use the full file name.
3729 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3735 if test -n "$CC"; then
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737 $as_echo "$CC" >&6; }
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 $as_echo "no" >&6; }
3745 if test -z "$CC"; then
3746 if test -n "$ac_tool_prefix"; then
3747 for ac_prog
in cl.exe
3749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3750 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if ${ac_cv_prog_CC+:} false
; then :
3754 $as_echo_n "(cached) " >&6
3756 if test -n "$CC"; then
3757 ac_cv_prog_CC
="$CC" # Let the user override the test.
3759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3763 test -z "$as_dir" && as_dir
=.
3764 for ac_exec_ext
in '' $ac_executable_extensions; do
3765 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3766 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 if test -n "$CC"; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3779 $as_echo "$CC" >&6; }
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3786 test -n "$CC" && break
3789 if test -z "$CC"; then
3791 for ac_prog
in cl.exe
3793 # Extract the first word of "$ac_prog", so it can be a program name with args.
3794 set dummy
$ac_prog; ac_word
=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3798 $as_echo_n "(cached) " >&6
3800 if test -n "$ac_ct_CC"; then
3801 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3807 test -z "$as_dir" && as_dir
=.
3808 for ac_exec_ext
in '' $ac_executable_extensions; do
3809 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_ac_ct_CC
="$ac_prog"
3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3820 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3821 if test -n "$ac_ct_CC"; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3823 $as_echo "$ac_ct_CC" >&6; }
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3830 test -n "$ac_ct_CC" && break
3833 if test "x$ac_ct_CC" = x
; then
3836 case $cross_compiling:$ac_tool_warned in
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3840 ac_tool_warned
=yes ;;
3849 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3851 as_fn_error $?
"no acceptable C compiler found in \$PATH
3852 See \`config.log' for more details" "$LINENO" 5; }
3854 # Provide some information about the compiler.
3855 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3858 for ac_option
in --version -v -V -qversion; do
3859 { { ac_try
="$ac_compiler $ac_option >&5"
3861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865 $as_echo "$ac_try_echo"; } >&5
3866 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3868 if test -s conftest.err; then
3870 ... rest of stderr output deleted ...
3871 10q' conftest.err >conftest.er1
3872 cat conftest.er1 >&5
3874 rm -f conftest.er1 conftest.err
3875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876 test $ac_status = 0; }
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3890 ac_clean_files_save=$ac_clean_files
3891 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3892 # Try to create an executable without -o first, disregard a.out.
3893 # It will help us diagnose broken compilers, and finding out an intuition
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3896 $as_echo_n "checking whether the C compiler works... " >&6; }
3897 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3899 # The possible output files:
3900 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3903 for ac_file in $ac_files
3906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3907 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3912 if { { ac_try="$ac_link_default"
3914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3915 *) ac_try_echo
=$ac_try;;
3917 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 $as_echo "$ac_try_echo"; } >&5
3919 (eval "$ac_link_default") 2>&5
3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922 test $ac_status = 0; }; then :
3923 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3924 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3925 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3926 # so that the user can short-circuit this test for compilers unknown to
3928 for ac_file
in $ac_files ''
3930 test -f "$ac_file" ||
continue
3932 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3935 # We found the default executable, but exeext='' is most
3939 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3941 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3943 # We set ac_cv_exeext here because the later test for it is not
3944 # safe: cross compilers may not add the suffix if given an `-o'
3945 # argument, so we may need to know it at that point already.
3946 # Even if this section looks crufty: it has the advantage of
3953 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3958 if test -z "$ac_file"; then :
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3961 $as_echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.
$ac_ext >&5
3964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3966 as_fn_error
77 "C compiler cannot create executables
3967 See \`config.log' for more details" "$LINENO" 5; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3970 $as_echo "yes" >&6; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3973 $as_echo_n "checking for C compiler default output file name... " >&6; }
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3975 $as_echo "$ac_file" >&6; }
3976 ac_exeext
=$ac_cv_exeext
3978 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3979 ac_clean_files
=$ac_clean_files_save
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3981 $as_echo_n "checking for suffix of executables... " >&6; }
3982 if { { ac_try
="$ac_link"
3984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3988 $as_echo "$ac_try_echo"; } >&5
3989 (eval "$ac_link") 2>&5
3991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3992 test $ac_status = 0; }; then :
3993 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3994 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3995 # work properly (i.e., refer to `conftest.exe'), while it won't with
3997 for ac_file
in conftest.exe conftest conftest.
*; do
3998 test -f "$ac_file" ||
continue
4000 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4001 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4009 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4010 See \`config.log' for more details" "$LINENO" 5; }
4012 rm -f conftest conftest
$ac_cv_exeext
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4014 $as_echo "$ac_cv_exeext" >&6; }
4016 rm -f conftest.
$ac_ext
4017 EXEEXT
=$ac_cv_exeext
4019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4025 FILE *f = fopen ("conftest.out", "w");
4026 return ferror (f) || fclose (f) != 0;
4032 ac_clean_files
="$ac_clean_files conftest.out"
4033 # Check that the compiler produces executables we can run. If not, either
4034 # the compiler is broken, or we cross compile.
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4036 $as_echo_n "checking whether we are cross compiling... " >&6; }
4037 if test "$cross_compiling" != yes; then
4038 { { ac_try
="$ac_link"
4040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4044 $as_echo "$ac_try_echo"; } >&5
4045 (eval "$ac_link") 2>&5
4047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4048 test $ac_status = 0; }
4049 if { ac_try='./conftest$ac_cv_exeext'
4050 { { case "(($ac_try" in
4051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4052 *) ac_try_echo
=$ac_try;;
4054 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4055 $as_echo "$ac_try_echo"; } >&5
4056 (eval "$ac_try") 2>&5
4058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059 test $ac_status = 0; }; }; then
4062 if test "$cross_compiling" = maybe
; then
4065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4067 as_fn_error $?
"cannot run C compiled programs.
4068 If you meant to cross compile, use \`--host'.
4069 See \`config.log' for more details" "$LINENO" 5; }
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4074 $as_echo "$cross_compiling" >&6; }
4076 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4077 ac_clean_files
=$ac_clean_files_save
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4079 $as_echo_n "checking for suffix of object files... " >&6; }
4080 if ${ac_cv_objext+:} false
; then :
4081 $as_echo_n "(cached) " >&6
4083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4094 rm -f conftest.o conftest.obj
4095 if { { ac_try
="$ac_compile"
4097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102 (eval "$ac_compile") 2>&5
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }; then :
4106 for ac_file in conftest.o conftest.obj conftest.*; do
4107 test -f "$ac_file" || continue;
4109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4110 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4115 $as_echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4120 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4121 See \
`config.log' for more details" "$LINENO" 5; }
4123 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4126 $as_echo "$ac_cv_objext" >&6; }
4127 OBJEXT=$ac_cv_objext
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4130 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4131 if ${ac_cv_c_compiler_gnu+:} false; then :
4132 $as_echo_n "(cached) " >&6
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4148 if ac_fn_c_try_compile "$LINENO"; then :
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4158 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4159 if test $ac_compiler_gnu = yes; then
4164 ac_test_CFLAGS=${CFLAGS+set}
4165 ac_save_CFLAGS=$CFLAGS
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4167 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4168 if ${ac_cv_prog_cc_g+:} false; then :
4169 $as_echo_n "(cached) " >&6
4171 ac_save_c_werror_flag=$ac_c_werror_flag
4172 ac_c_werror_flag=yes
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4186 if ac_fn_c_try_compile "$LINENO"; then :
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4201 if ac_fn_c_try_compile "$LINENO"; then :
4204 ac_c_werror_flag=$ac_save_c_werror_flag
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4217 if ac_fn_c_try_compile "$LINENO"; then :
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225 ac_c_werror_flag=$ac_save_c_werror_flag
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4228 $as_echo "$ac_cv_prog_cc_g" >&6; }
4229 if test "$ac_test_CFLAGS" = set; then
4230 CFLAGS=$ac_save_CFLAGS
4231 elif test $ac_cv_prog_cc_g = yes; then
4232 if test "$GCC" = yes; then
4238 if test "$GCC" = yes; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4245 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4246 if ${ac_cv_prog_cc_c89+:} false; then :
4247 $as_echo_n "(cached) " >&6
4249 ac_cv_prog_cc_c89=no
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4256 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4257 struct buf { int x; };
4258 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4259 static char *e (p, i)
4265 static char *f (char * (*g) (char **, int), char **p, ...)
4270 s = g (p, va_arg (v,int));
4275 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4276 function prototypes and stuff, but not '\xHH' hex character constants.
4277 These don't provoke an error unfortunately, instead are silently treated
4278 as 'x'. The following induces an error, until -std is added to get
4279 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4280 array size at least. It's necessary to write '\x00'==0 to get something
4281 that's true only with -std. */
4282 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4284 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4285 inside strings and character constants. */
4287 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4289 int test (int i, double x);
4290 struct s1 {int (*f) (int a);};
4291 struct s2 {int (*f) (double a);};
4292 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4298 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4303 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4304 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4306 CC="$ac_save_CC $ac_arg"
4307 if ac_fn_c_try_compile "$LINENO"; then :
4308 ac_cv_prog_cc_c89=$ac_arg
4310 rm -f core conftest.err conftest.$ac_objext
4311 test "x$ac_cv_prog_cc_c89" != "xno" && break
4313 rm -f conftest.$ac_ext
4318 case "x$ac_cv_prog_cc_c89" in
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4321 $as_echo "none needed" >&6; } ;;
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4324 $as_echo "unsupported" >&6; } ;;
4326 CC="$CC $ac_cv_prog_cc_c89"
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4328 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4330 if test "x$ac_cv_prog_cc_c89" != xno; then :
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341 ac_cpp='$CPP $CPPFLAGS'
4342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4346 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4347 if ${am_cv_prog_cc_c_o+:} false; then :
4348 $as_echo_n "(cached) " >&6
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4361 # Make sure it works both with $CC and with simple cc.
4362 # Following AC_PROG_CC_C_O, we do the test twice because some
4363 # compilers refuse to overwrite an existing .o file with -o,
4364 # though they will create one.
4365 am_cv_prog_cc_c_o=yes
4367 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4368 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } \
4372 && test -f conftest2.$ac_objext; then
4375 am_cv_prog_cc_c_o=no
4379 rm -f core conftest*
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4383 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4384 if test "$am_cv_prog_cc_c_o" != yes; then
4385 # Losing compiler, so override with the script.
4386 # FIXME: It is wrong to rewrite CC.
4387 # But if we don't then we get into trouble of one sort or another.
4388 # A longer-term fix would be to have automake use am__CC in this case,
4389 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4390 CC="$am_aux_dir/compile $CC"
4393 ac_cpp='$CPP $CPPFLAGS'
4394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4398 DEPDIR="${am__leading_dot}deps"
4400 ac_config_commands="$ac_config_commands depfiles"
4403 am_make=${MAKE-make}
4404 cat > confinc << 'END'
4406 @echo this is the am__doit target
4409 # If we don't find an include directive, just comment out the code.
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4411 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4415 # First try GNU make style include.
4416 echo "include confinc" > confmf
4417 # Ignore all kinds of additional output from 'make'.
4418 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4419 *the\ am__doit\ target*)
4425 # Now try BSD make style include.
4426 if test "$am__include" = "#"; then
4427 echo '.include "confinc"' > confmf
4428 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4429 *the\ am__doit\ target*)
4430 am__include=.include
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4439 $as_echo "$_am_result" >&6; }
4440 rm -f confinc confmf
4442 # Check whether --enable-dependency-tracking was given.
4443 if test "${enable_dependency_tracking+set}" = set; then :
4444 enableval=$enable_dependency_tracking;
4447 if test "x$enable_dependency_tracking" != xno; then
4448 am_depcomp="$ac_aux_dir/depcomp"
4452 if test "x$enable_dependency_tracking" != xno; then
4462 depcc="$CC" am_compiler_list=
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4465 $as_echo_n "checking dependency style of $depcc... " >&6; }
4466 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4467 $as_echo_n "(cached) " >&6
4469 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4470 # We make a subdir and do the tests there. Otherwise we can end up
4471 # making bogus files that we don't know about and never remove. For
4472 # instance it was reported that on HP-UX the gcc test will end up
4473 # making a dummy file named 'D' -- because '-MD' means "put the output
4477 # Copy depcomp to subdir because otherwise we won't find it if we're
4478 # using a relative directory.
4479 cp "$am_depcomp" conftest.dir
4481 # We will build objects and dependencies in a subdirectory because
4482 # it helps to detect inapplicable dependency modes. For instance
4483 # both Tru64's cc and ICC support -MD to output dependencies as a
4484 # side effect of compilation, but ICC will put the dependencies in
4485 # the current directory while Tru64 will put them in the object
4489 am_cv_CC_dependencies_compiler_type=none
4490 if test "$am_compiler_list" = ""; then
4491 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4494 case " $depcc " in #(
4495 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4498 for depmode in $am_compiler_list; do
4499 # Setup a source with many dependencies, because some compilers
4500 # like to wrap large dependency lists on column 80 (with \), and
4501 # we should not choose a depcomp mode which is confused by this.
4503 # We need to recreate these files for each test, as the compiler may
4504 # overwrite some of them when testing with obscure command lines.
4505 # This happens at least with the AIX C compiler.
4507 for i in 1 2 3 4 5 6; do
4508 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4509 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4510 # Solaris 10 /bin/sh.
4511 echo '/* dummy */' > sub/conftst$i.h
4513 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4515 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4516 # mode. It turns out that the SunPro C++ compiler does not properly
4517 # handle '-M -o', and we need to detect this. Also, some Intel
4518 # versions had trouble with output in subdirs.
4519 am__obj=sub/conftest.${OBJEXT-o}
4520 am__minus_obj="-o $am__obj"
4523 # This depmode causes a compiler race in universal mode.
4524 test "$am__universal" = false || continue
4527 # After this tag, mechanisms are not by side-effect, so they'll
4528 # only be used when explicitly requested.
4529 if test "x$enable_dependency_tracking" = xyes; then
4535 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4536 # This compiler won't grok '-c -o', but also, the minuso test has
4537 # not run yet. These depmodes are late enough in the game, and
4538 # so weak that their functioning should not be impacted.
4539 am__obj=conftest.${OBJEXT-o}
4544 if depmode=$depmode \
4545 source=sub/conftest.c object=$am__obj \
4546 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4547 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4548 >/dev/null 2>conftest.err &&
4549 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4550 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4551 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4552 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4553 # icc doesn't choke on unknown options, it will just issue warnings
4554 # or remarks (even with -Werror). So we grep stderr for any message
4555 # that says an option was ignored or not supported.
4556 # When given -MP, icc 7.0 and 7.1 complain thusly:
4557 # icc: Command line warning: ignoring option '-M'; no argument required
4558 # The diagnosis changed in icc 8.0:
4559 # icc: Command line remark: option '-MP' not supported
4560 if (grep 'ignoring option' conftest.err ||
4561 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4562 am_cv_CC_dependencies_compiler_type=$depmode
4571 am_cv_CC_dependencies_compiler_type=none
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4576 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4577 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4580 test "x$enable_dependency_tracking" != xno \
4581 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4583 am__fastdepCC_FALSE='#'
4585 am__fastdepCC_TRUE='#'
4586 am__fastdepCC_FALSE=
4594 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4595 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4596 # in both places for now and restore CFLAGS at the end of config.
4597 save_CFLAGS="$CFLAGS"
4599 # Check whether --enable-werror was given.
4600 if test "${enable_werror+set}" = set; then :
4601 enableval=$enable_werror;
4604 # Add -Wall -Werror if we are using GCC.
4605 if test "x$GCC" = "xyes"; then :
4606 XCFLAGS="$XCFLAGS -Wall"
4608 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
4609 XCFLAGS="$XCFLAGS -Werror"
4612 # Find other programs we need.
4613 if test -n "$ac_tool_prefix"; then
4614 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4615 set dummy ${ac_tool_prefix}ar; ac_word=$2
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617 $as_echo_n "checking for $ac_word... " >&6; }
4618 if ${ac_cv_prog_AR+:} false; then :
4619 $as_echo_n "(cached) " >&6
4621 if test -n "$AR"; then
4622 ac_cv_prog_AR="$AR" # Let the user override the test.
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4631 ac_cv_prog_AR="${ac_tool_prefix}ar"
4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 if test -n "$AR"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4644 $as_echo "$AR" >&6; }
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 $as_echo "no" >&6; }
4652 if test -z "$ac_cv_prog_AR"; then
4654 # Extract the first word of "ar", so it can be a program name with args.
4655 set dummy ar; ac_word=$2
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657 $as_echo_n "checking for $ac_word... " >&6; }
4658 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4659 $as_echo_n "(cached) " >&6
4661 if test -n "$ac_ct_AR"; then
4662 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4671 ac_cv_prog_ac_ct_AR="ar"
4672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4682 if test -n "$ac_ct_AR"; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4684 $as_echo "$ac_ct_AR" >&6; }
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 $as_echo "no" >&6; }
4690 if test "x$ac_ct_AR" = x; then
4693 case $cross_compiling:$ac_tool_warned in
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4697 ac_tool_warned=yes ;;
4705 if test -n "$ac_tool_prefix"; then
4706 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4707 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 $as_echo_n "checking for $ac_word... " >&6; }
4710 if ${ac_cv_prog_RANLIB+:} false; then :
4711 $as_echo_n "(cached) " >&6
4713 if test -n "$RANLIB"; then
4714 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 RANLIB=$ac_cv_prog_RANLIB
4734 if test -n "$RANLIB"; then
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4736 $as_echo "$RANLIB" >&6; }
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 $as_echo "no" >&6; }
4744 if test -z "$ac_cv_prog_RANLIB"; then
4745 ac_ct_RANLIB=$RANLIB
4746 # Extract the first word of "ranlib", so it can be a program name with args.
4747 set dummy ranlib; ac_word=$2
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 $as_echo_n "checking for $ac_word... " >&6; }
4750 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4751 $as_echo_n "(cached) " >&6
4753 if test -n "$ac_ct_RANLIB"; then
4754 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4763 ac_cv_prog_ac_ct_RANLIB="ranlib"
4764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4774 if test -n "$ac_ct_RANLIB"; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4776 $as_echo "$ac_ct_RANLIB" >&6; }
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 $as_echo "no" >&6; }
4782 if test "x$ac_ct_RANLIB" = x; then
4783 RANLIB="ranlib-not-found-in-path-error"
4785 case $cross_compiling:$ac_tool_warned in
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4789 ac_tool_warned=yes ;;
4791 RANLIB=$ac_ct_RANLIB
4794 RANLIB="$ac_cv_prog_RANLIB"
4797 # Extract the first word of "perl", so it can be a program name with args.
4798 set dummy perl; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if ${ac_cv_path_PERL+:} false; then :
4802 $as_echo_n "(cached) " >&6
4806 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4828 PERL=$ac_cv_path_PERL
4829 if test -n "$PERL"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4831 $as_echo "$PERL" >&6; }
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4839 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4841 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4842 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4843 $as_echo_n "(cached) " >&6
4845 cat >conftest.make <<\_ACEOF
4848 @echo '@@@%%%=$(MAKE)=@@@%%%'
4850 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4851 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
4853 eval ac_cv_prog_make_${ac_make}_set=yes;;
4855 eval ac_cv_prog_make_${ac_make}_set=no;;
4859 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4861 $as_echo "yes" >&6; }
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4866 SET_MAKE="MAKE=${MAKE-make}"
4871 # See if makeinfo has been installed and is modern enough
4872 # that we can use it.
4874 # Extract the first word of "makeinfo", so it can be a program name with args.
4875 set dummy makeinfo; ac_word=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if ${ac_cv_prog_MAKEINFO+:} false; then :
4879 $as_echo_n "(cached) " >&6
4881 if test -n "$MAKEINFO"; then
4882 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891 ac_cv_prog_MAKEINFO="makeinfo"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 MAKEINFO=$ac_cv_prog_MAKEINFO
4902 if test -n "$MAKEINFO"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4904 $as_echo "$MAKEINFO" >&6; }
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4911 if test -n "$MAKEINFO"; then
4912 # Found it, now check the version.
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4914 $as_echo_n "checking for modern makeinfo... " >&6; }
4915 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4916 $as_echo_n "(cached) " >&6
4918 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4919 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4921 case $ac_prog_version in
4922 '') gcc_cv_prog_makeinfo_modern=no;;
4923 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4924 *) gcc_cv_prog_makeinfo_modern=no;;
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4929 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4931 gcc_cv_prog_makeinfo_modern=no
4933 if test $gcc_cv_prog_makeinfo_modern = no; then
4934 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4937 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4939 BUILD_INFO_FALSE='#'
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4951 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4956 macro_version='2.2.7a'
4957 macro_revision='1.3134'
4971 ltmain="$ac_aux_dir/ltmain.sh"
4973 # Backslashify metacharacters that are still active within
4974 # double-quoted strings.
4975 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4977 # Same as above, but do not quote variable references.
4978 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4980 # Sed substitution to delay expansion of an escaped shell variable in a
4981 # double_quote_subst'ed string.
4982 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4984 # Sed substitution to delay expansion of an escaped single quote.
4985 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4987 # Sed substitution to avoid accidental globbing in evaled expressions
4988 no_glob_subst='s/\*/\\\*/g'
4990 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4991 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4992 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
4995 $as_echo_n "checking how to print
strings...
" >&6; }
4996 # Test print first, because it will be a builtin if present.
4997 if test "X
`print -r -- -n 2>/dev/null`" = X-n && \
4998 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
5000 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
5003 # Use this function as a fallback that always works.
5004 func_fallback_echo ()
5006 eval 'cat <<_LTECHO_EOF
5010 ECHO='func_fallback_echo'
5013 # func_echo_all arg...
5014 # Invoke $ECHO with all args, space-separated.
5021 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
5022 $as_echo "printf" >&6; } ;;
5023 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
5024 $as_echo "print
-r" >&6; } ;;
5025 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
5026 $as_echo "cat" >&6; } ;;
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
5043 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
5044 if ${ac_cv_path_SED+:} false; then :
5045 $as_echo_n "(cached
) " >&6
5047 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5048 for ac_i in 1 2 3 4 5 6 7; do
5049 ac_script="$ac_script$as_nl$ac_script"
5051 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5052 { ac_script=; unset ac_script;}
5053 if test -z "$SED"; then
5054 ac_path_SED_found=false
5055 # Loop through the user's path and test for each of PROGNAME-LIST
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir=.
5061 for ac_prog in sed gsed; do
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5064 as_fn_executable_p "$ac_path_SED" || continue
5065 # Check for GNU ac_path_SED and select it if it is found.
5066 # Check for GNU $ac_path_SED
5067 case `"$ac_path_SED" --version 2>&1` in
5069 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5072 $as_echo_n 0123456789 >"conftest.
in"
5075 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5076 mv "conftest.tmp
" "conftest.
in"
5077 cp "conftest.
in" "conftest.
nl"
5078 $as_echo '' >> "conftest.
nl"
5079 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5080 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5081 as_fn_arith $ac_count + 1 && ac_count=$as_val
5082 if test $ac_count -gt ${ac_path_SED_max-0}; then
5083 # Best one so far, save it but keep looking for a better one
5084 ac_cv_path_SED="$ac_path_SED"
5085 ac_path_SED_max=$ac_count
5087 # 10*(2^10) chars as input seems more than enough
5088 test $ac_count -gt 10 && break
5090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5093 $ac_path_SED_found && break 3
5098 if test -z "$ac_cv_path_SED"; then
5099 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
5107 $as_echo "$ac_cv_path_SED" >&6; }
5108 SED="$ac_cv_path_SED"
5111 test -z "$SED" && SED=sed
5112 Xsed="$SED -e 1s
/^X
//"
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
5125 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
5126 if ${ac_cv_path_GREP+:} false; then :
5127 $as_echo_n "(cached
) " >&6
5129 if test -z "$GREP"; then
5130 ac_path_GREP_found=false
5131 # Loop through the user's path and test for each of PROGNAME-LIST
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5136 test -z "$as_dir" && as_dir=.
5137 for ac_prog in grep ggrep; do
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5140 as_fn_executable_p "$ac_path_GREP" || continue
5141 # Check for GNU ac_path_GREP and select it if it is found.
5142 # Check for GNU $ac_path_GREP
5143 case `"$ac_path_GREP" --version 2>&1` in
5145 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5148 $as_echo_n 0123456789 >"conftest.
in"
5151 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5152 mv "conftest.tmp
" "conftest.
in"
5153 cp "conftest.
in" "conftest.
nl"
5154 $as_echo 'GREP' >> "conftest.
nl"
5155 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5156 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5157 as_fn_arith $ac_count + 1 && ac_count=$as_val
5158 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5159 # Best one so far, save it but keep looking for a better one
5160 ac_cv_path_GREP="$ac_path_GREP"
5161 ac_path_GREP_max=$ac_count
5163 # 10*(2^10) chars as input seems more than enough
5164 test $ac_count -gt 10 && break
5166 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5169 $ac_path_GREP_found && break 3
5174 if test -z "$ac_cv_path_GREP"; then
5175 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5178 ac_cv_path_GREP=$GREP
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
5183 $as_echo "$ac_cv_path_GREP" >&6; }
5184 GREP="$ac_cv_path_GREP"
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
5188 $as_echo_n "checking
for egrep...
" >&6; }
5189 if ${ac_cv_path_EGREP+:} false; then :
5190 $as_echo_n "(cached
) " >&6
5192 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5193 then ac_cv_path_EGREP="$GREP -E"
5195 if test -z "$EGREP"; then
5196 ac_path_EGREP_found=false
5197 # Loop through the user's path and test for each of PROGNAME-LIST
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5202 test -z "$as_dir" && as_dir=.
5203 for ac_prog in egrep; do
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5206 as_fn_executable_p "$ac_path_EGREP" || continue
5207 # Check for GNU ac_path_EGREP and select it if it is found.
5208 # Check for GNU $ac_path_EGREP
5209 case `"$ac_path_EGREP" --version 2>&1` in
5211 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5214 $as_echo_n 0123456789 >"conftest.
in"
5217 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5218 mv "conftest.tmp
" "conftest.
in"
5219 cp "conftest.
in" "conftest.
nl"
5220 $as_echo 'EGREP' >> "conftest.
nl"
5221 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5222 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5223 as_fn_arith $ac_count + 1 && ac_count=$as_val
5224 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5225 # Best one so far, save it but keep looking for a better one
5226 ac_cv_path_EGREP="$ac_path_EGREP"
5227 ac_path_EGREP_max=$ac_count
5229 # 10*(2^10) chars as input seems more than enough
5230 test $ac_count -gt 10 && break
5232 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5235 $ac_path_EGREP_found && break 3
5240 if test -z "$ac_cv_path_EGREP"; then
5241 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5244 ac_cv_path_EGREP=$EGREP
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
5250 $as_echo "$ac_cv_path_EGREP" >&6; }
5251 EGREP="$ac_cv_path_EGREP"
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
5255 $as_echo_n "checking
for fgrep...
" >&6; }
5256 if ${ac_cv_path_FGREP+:} false; then :
5257 $as_echo_n "(cached
) " >&6
5259 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5260 then ac_cv_path_FGREP="$GREP -F"
5262 if test -z "$FGREP"; then
5263 ac_path_FGREP_found=false
5264 # Loop through the user's path and test for each of PROGNAME-LIST
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5269 test -z "$as_dir" && as_dir=.
5270 for ac_prog in fgrep; do
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5273 as_fn_executable_p "$ac_path_FGREP" || continue
5274 # Check for GNU ac_path_FGREP and select it if it is found.
5275 # Check for GNU $ac_path_FGREP
5276 case `"$ac_path_FGREP" --version 2>&1` in
5278 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5281 $as_echo_n 0123456789 >"conftest.
in"
5284 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5285 mv "conftest.tmp
" "conftest.
in"
5286 cp "conftest.
in" "conftest.
nl"
5287 $as_echo 'FGREP' >> "conftest.
nl"
5288 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5289 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5290 as_fn_arith $ac_count + 1 && ac_count=$as_val
5291 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5292 # Best one so far, save it but keep looking for a better one
5293 ac_cv_path_FGREP="$ac_path_FGREP"
5294 ac_path_FGREP_max=$ac_count
5296 # 10*(2^10) chars as input seems more than enough
5297 test $ac_count -gt 10 && break
5299 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5302 $ac_path_FGREP_found && break 3
5307 if test -z "$ac_cv_path_FGREP"; then
5308 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5311 ac_cv_path_FGREP=$FGREP
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
5317 $as_echo "$ac_cv_path_FGREP" >&6; }
5318 FGREP="$ac_cv_path_FGREP"
5321 test -z "$GREP" && GREP=grep
5341 # Check whether --with-gnu-ld was given.
5342 if test "${with_gnu_ld+set}" = set; then :
5343 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5349 if test "$GCC" = yes; then
5350 # Check if gcc -print-prog-name=ld gives a path.
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
5352 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
5355 # gcc leaves a trailing carriage return which upsets mingw
5356 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5358 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5361 # Accept absolute paths.
5363 re_direlt='/[^/][^/]*/\.\./'
5364 # Canonicalize the pathname of ld
5365 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5366 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5367 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
5369 test -z "$LD" && LD="$ac_prog"
5372 # If it fails, then pretend we aren't using GCC.
5376 # If it is relative, then search for the first ld in PATH.
5380 elif test "$with_gnu_ld" = yes; then
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
5382 $as_echo_n "checking
for GNU ld...
" >&6; }
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
5385 $as_echo_n "checking
for non-GNU ld...
" >&6; }
5387 if ${lt_cv_path_LD+:} false; then :
5388 $as_echo_n "(cached
) " >&6
5390 if test -z "$LD"; then
5391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5392 for ac_dir in $PATH; do
5394 test -z "$ac_dir" && ac_dir=.
5395 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5396 lt_cv_path_LD="$ac_dir/$ac_prog"
5397 # Check to see if the program is GNU ld. I'd rather use --version,
5398 # but apparently some variants of GNU ld only accept -v.
5399 # Break only if it was the GNU/non-GNU ld that we prefer.
5400 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5401 *GNU* | *'with BFD'*)
5402 test "$with_gnu_ld" != no && break
5405 test "$with_gnu_ld" != yes && break
5412 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5417 if test -n "$LD"; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
5419 $as_echo "$LD" >&6; }
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5422 $as_echo "no
" >&6; }
5424 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
5426 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
5427 if ${lt_cv_prog_gnu_ld+:} false; then :
5428 $as_echo_n "(cached
) " >&6
5430 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5431 case `$LD -v 2>&1 </dev/null` in
5432 *GNU* | *'with BFD'*)
5433 lt_cv_prog_gnu_ld=yes
5436 lt_cv_prog_gnu_ld=no
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
5441 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5442 with_gnu_ld=$lt_cv_prog_gnu_ld
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
5453 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
5454 if ${lt_cv_path_NM+:} false; then :
5455 $as_echo_n "(cached
) " >&6
5457 if test -n "$NM"; then
5458 # Let the user override the test.
5461 lt_nm_to_check="${ac_tool_prefix}nm
"
5462 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5463 lt_nm_to_check="$lt_nm_to_check nm
"
5465 for lt_tmp_nm in $lt_nm_to_check; do
5466 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5467 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5469 test -z "$ac_dir" && ac_dir=.
5470 tmp_nm="$ac_dir/$lt_tmp_nm"
5471 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5472 # Check to see if the nm accepts a BSD-compat flag.
5473 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5474 # nm: unknown option "B
" ignored
5475 # Tru64's nm complains that /dev/null is an invalid object file
5476 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5477 */dev/null* | *'Invalid file or object type'*)
5478 lt_cv_path_NM="$tmp_nm -B"
5482 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5484 lt_cv_path_NM="$tmp_nm -p"
5488 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5489 continue # so that we can try to find one that supports BSD flags
5498 : ${lt_cv_path_NM=no}
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
5502 $as_echo "$lt_cv_path_NM" >&6; }
5503 if test "$lt_cv_path_NM" != "no
"; then
5506 # Didn't find any BSD compatible name lister, look for dumpbin.
5507 if test -n "$DUMPBIN"; then :
5508 # Let the user override the test.
5510 if test -n "$ac_tool_prefix"; then
5511 for ac_prog in dumpbin "link
-dump"
5513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5516 $as_echo_n "checking
for $ac_word...
" >&6; }
5517 if ${ac_cv_prog_DUMPBIN+:} false; then :
5518 $as_echo_n "(cached
) " >&6
5520 if test -n "$DUMPBIN"; then
5521 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5540 DUMPBIN=$ac_cv_prog_DUMPBIN
5541 if test -n "$DUMPBIN"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
5543 $as_echo "$DUMPBIN" >&6; }
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5546 $as_echo "no
" >&6; }
5550 test -n "$DUMPBIN" && break
5553 if test -z "$DUMPBIN"; then
5554 ac_ct_DUMPBIN=$DUMPBIN
5555 for ac_prog in dumpbin "link
-dump"
5557 # Extract the first word of "$ac_prog", so it can be a program name with args.
5558 set dummy $ac_prog; ac_word=$2
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5560 $as_echo_n "checking
for $ac_word...
" >&6; }
5561 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5562 $as_echo_n "(cached
) " >&6
5564 if test -n "$ac_ct_DUMPBIN"; then
5565 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5574 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5575 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5584 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5585 if test -n "$ac_ct_DUMPBIN"; then
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
5587 $as_echo "$ac_ct_DUMPBIN" >&6; }
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5590 $as_echo "no
" >&6; }
5594 test -n "$ac_ct_DUMPBIN" && break
5597 if test "x
$ac_ct_DUMPBIN" = x; then
5600 case $cross_compiling:$ac_tool_warned in
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5603 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5604 ac_tool_warned=yes ;;
5606 DUMPBIN=$ac_ct_DUMPBIN
5610 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5612 DUMPBIN="$DUMPBIN -symbols"
5620 if test "$DUMPBIN" != ":"; then
5624 test -z "$NM" && NM=nm
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5632 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5633 if ${lt_cv_nm_interface+:} false; then :
5634 $as_echo_n "(cached
) " >&6
5636 lt_cv_nm_interface="BSD nm
"
5637 echo "int some_variable
= 0;" > conftest.$ac_ext
5638 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5639 (eval "$ac_compile" 2>conftest.err)
5640 cat conftest.err >&5
5641 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5642 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5643 cat conftest.err >&5
5644 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5645 cat conftest.out >&5
5646 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5647 lt_cv_nm_interface="MS dumpbin
"
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5652 $as_echo "$lt_cv_nm_interface" >&6; }
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5655 $as_echo_n "checking whether
ln -s works...
" >&6; }
5657 if test "$LN_S" = "ln -s"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5659 $as_echo "yes" >&6; }
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5662 $as_echo "no
, using
$LN_S" >&6; }
5665 # find the maximum length of command line arguments
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5667 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5668 if ${lt_cv_sys_max_cmd_len+:} false; then :
5669 $as_echo_n "(cached
) " >&6
5676 # On DJGPP, this test can blow up pretty badly due to problems in libc
5677 # (any single argument exceeding 2000 bytes causes a buffer overrun
5678 # during glob expansion). Even if it were fixed, the result of this
5679 # check would be larger than it should be.
5680 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5684 # Under GNU Hurd, this test is not required because there is
5685 # no limit to the length of command line arguments.
5686 # Libtool will interpret -1 as no limit whatsoever
5687 lt_cv_sys_max_cmd_len=-1;
5690 cygwin* | mingw* | cegcc*)
5691 # On Win9x/ME, this test blows up -- it succeeds, but takes
5692 # about 5 minutes as the teststring grows exponentially.
5693 # Worse, since 9x/ME are not pre-emptively multitasking,
5694 # you end up with a "frozen
" computer, even though with patience
5695 # the test eventually succeeds (with a max line length of 256k).
5696 # Instead, let's just punt: use the minimum linelength reported by
5697 # all of the supported platforms: 8192 (on NT/2K/XP).
5698 lt_cv_sys_max_cmd_len=8192;
5702 # On MiNT this can take a long time and run out of memory.
5703 lt_cv_sys_max_cmd_len=8192;
5707 # On AmigaOS with pdksh, this test takes hours, literally.
5708 # So we just punt and use a minimum line length of 8192.
5709 lt_cv_sys_max_cmd_len=8192;
5712 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5713 # This has been around since 386BSD, at least. Likely further.
5714 if test -x /sbin/sysctl; then
5715 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5716 elif test -x /usr/sbin/sysctl; then
5717 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5719 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5721 # And add a safety zone
5722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5727 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5728 lt_cv_sys_max_cmd_len=196608
5732 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5733 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5734 # nice to cause kernel panics so lets avoid the loop below.
5735 # First set a reasonable default.
5736 lt_cv_sys_max_cmd_len=16384
5738 if test -x /sbin/sysconfig; then
5739 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5740 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5745 lt_cv_sys_max_cmd_len=102400
5747 sysv5* | sco5v6* | sysv4.2uw2*)
5748 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5749 if test -n "$kargmax"; then
5750 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5752 lt_cv_sys_max_cmd_len=32768
5756 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5757 if test -n "$lt_cv_sys_max_cmd_len"; then
5758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5761 # Make teststring a little bigger before we do anything with it.
5762 # a 1K string should be a reasonable start.
5763 for i in 1 2 3 4 5 6 7 8 ; do
5764 teststring=$teststring$teststring
5766 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5767 # If test is not a shell built-in, we'll probably end up computing a
5768 # maximum length that is only half of the actual maximum length, but
5770 while { test "X
"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5771 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5772 test $i != 17 # 1/2 MB should be enough
5775 teststring=$teststring$teststring
5777 # Only check the string length outside the loop.
5778 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5780 # Add a significant safety factor because C++ compilers can tack on
5781 # massive amounts of additional arguments before passing them to the
5782 # linker. It appears as though 1/2 is a usable value.
5783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5790 if test -n $lt_cv_sys_max_cmd_len ; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5792 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5795 $as_echo "none
" >&6; }
5797 max_cmd_len=$lt_cv_sys_max_cmd_len
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs
" >&5
5809 $as_echo_n "checking whether the shell understands some XSI constructs...
" >&6; }
5810 # Try some XSI features
5813 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5815 && eval 'test $(( 1 + 1 )) -eq 2 \
5816 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5819 $as_echo "$xsi_shell" >&6; }
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5823 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5825 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
5827 && lt_shell_append
=yes
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5829 $as_echo "$lt_shell_append" >&6; }
5832 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5842 # test EBCDIC or ASCII
5843 case `echo X|tr X '\101'` in
5844 A
) # ASCII based system
5845 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5846 lt_SP2NL
='tr \040 \012'
5847 lt_NL2SP
='tr \015\012 \040\040'
5849 *) # EBCDIC based system
5850 lt_SP2NL
='tr \100 \n'
5851 lt_NL2SP
='tr \r\n \100\100'
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5864 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5865 if ${lt_cv_ld_reload_flag+:} false
; then :
5866 $as_echo_n "(cached) " >&6
5868 lt_cv_ld_reload_flag
='-r'
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5871 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5872 reload_flag
=$lt_cv_ld_reload_flag
5873 case $reload_flag in
5875 *) reload_flag
=" $reload_flag" ;;
5877 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5880 if test "$GCC" = yes; then
5881 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5883 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5896 if test -n "$ac_tool_prefix"; then
5897 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5898 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if ${ac_cv_prog_OBJDUMP+:} false
; then :
5902 $as_echo_n "(cached) " >&6
5904 if test -n "$OBJDUMP"; then
5905 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
5907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5911 test -z "$as_dir" && as_dir
=.
5912 for ac_exec_ext
in '' $ac_executable_extensions; do
5913 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 OBJDUMP
=$ac_cv_prog_OBJDUMP
5925 if test -n "$OBJDUMP"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5927 $as_echo "$OBJDUMP" >&6; }
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5935 if test -z "$ac_cv_prog_OBJDUMP"; then
5936 ac_ct_OBJDUMP
=$OBJDUMP
5937 # Extract the first word of "objdump", so it can be a program name with args.
5938 set dummy objdump
; ac_word
=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
5942 $as_echo_n "(cached) " >&6
5944 if test -n "$ac_ct_OBJDUMP"; then
5945 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
5947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5951 test -z "$as_dir" && as_dir
=.
5952 for ac_exec_ext
in '' $ac_executable_extensions; do
5953 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5954 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
5965 if test -n "$ac_ct_OBJDUMP"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5967 $as_echo "$ac_ct_OBJDUMP" >&6; }
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5973 if test "x$ac_ct_OBJDUMP" = x
; then
5976 case $cross_compiling:$ac_tool_warned in
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5980 ac_tool_warned
=yes ;;
5982 OBJDUMP
=$ac_ct_OBJDUMP
5985 OBJDUMP
="$ac_cv_prog_OBJDUMP"
5988 test -z "$OBJDUMP" && OBJDUMP
=objdump
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5999 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6000 if ${lt_cv_deplibs_check_method+:} false
; then :
6001 $as_echo_n "(cached) " >&6
6003 lt_cv_file_magic_cmd
='$MAGIC_CMD'
6004 lt_cv_file_magic_test_file
=
6005 lt_cv_deplibs_check_method
='unknown'
6006 # Need to set the preceding variable on all platforms that support
6007 # interlibrary dependencies.
6008 # 'none' -- dependencies not supported.
6009 # `unknown' -- same as none, but documents that we really don't know.
6010 # 'pass_all' -- all dependencies passed with no checks.
6011 # 'test_compile' -- check by making test program.
6012 # 'file_magic [[regex]]' -- check by looking for files in library path
6013 # which responds to the $file_magic_cmd with a given extended regex.
6014 # If you have `file' or equivalent on your system and you're not sure
6015 # whether `pass_all' will *always* work, you probably want this one.
6019 lt_cv_deplibs_check_method
=pass_all
6023 lt_cv_deplibs_check_method
=pass_all
6027 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6028 lt_cv_file_magic_cmd
='/usr/bin/file -L'
6029 lt_cv_file_magic_test_file
=/shlib
/libc.so
6033 # func_win32_libid is a shell function defined in ltmain.sh
6034 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6035 lt_cv_file_magic_cmd
='func_win32_libid'
6039 # Base MSYS/MinGW do not provide the 'file' command needed by
6040 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6041 # unless we find 'file', for example because we are cross-compiling.
6042 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6043 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
6044 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6045 lt_cv_file_magic_cmd
='func_win32_libid'
6047 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
6048 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6053 # use the weaker test based on 'objdump'. See mingw*.
6054 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6055 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6058 darwin
* | rhapsody
*)
6059 lt_cv_deplibs_check_method
=pass_all
6062 freebsd
* | dragonfly
*)
6063 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6066 # Not sure whether the presence of OpenBSD here was a mistake.
6067 # Let's accept both of them until this is cleared up.
6068 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6069 lt_cv_file_magic_cmd
=/usr
/bin
/file
6070 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6074 lt_cv_deplibs_check_method
=pass_all
6079 lt_cv_deplibs_check_method
=pass_all
6083 lt_cv_deplibs_check_method
=pass_all
6086 hpux10.20
* | hpux11
*)
6087 lt_cv_file_magic_cmd
=/usr
/bin
/file
6090 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6091 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
6094 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]'
6095 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
6098 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6099 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6105 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6106 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6109 irix5
* | irix6
* | nonstopux
*)
6111 *-32|
*"-32 ") libmagic
=32-bit;;
6112 *-n32|
*"-n32 ") libmagic
=N32
;;
6113 *-64|
*"-64 ") libmagic
=64-bit;;
6114 *) libmagic
=never-match
;;
6116 lt_cv_deplibs_check_method
=pass_all
6119 # This must be Linux ELF.
6120 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
6121 lt_cv_deplibs_check_method
=pass_all
6125 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6126 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6128 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6133 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6134 lt_cv_file_magic_cmd
=/usr
/bin
/file
6135 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6139 lt_cv_deplibs_check_method
=pass_all
6143 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6144 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6146 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6150 osf3
* | osf4
* | osf5
*)
6151 lt_cv_deplibs_check_method
=pass_all
6155 lt_cv_deplibs_check_method
=pass_all
6159 lt_cv_deplibs_check_method
=pass_all
6162 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6163 lt_cv_deplibs_check_method
=pass_all
6167 case $host_vendor in
6169 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]'
6170 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6173 lt_cv_deplibs_check_method
=pass_all
6176 lt_cv_file_magic_cmd
='/bin/file'
6177 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6180 lt_cv_file_magic_cmd
='/bin/file'
6181 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6182 lt_cv_file_magic_test_file
=/lib
/libc.so
6185 lt_cv_deplibs_check_method
=pass_all
6188 lt_cv_deplibs_check_method
=pass_all
6194 lt_cv_deplibs_check_method
=pass_all
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6200 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6201 file_magic_cmd
=$lt_cv_file_magic_cmd
6202 deplibs_check_method
=$lt_cv_deplibs_check_method
6203 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6216 if test -n "$ac_tool_prefix"; then
6217 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6218 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220 $as_echo_n "checking for $ac_word... " >&6; }
6221 if ${ac_cv_prog_AR+:} false
; then :
6222 $as_echo_n "(cached) " >&6
6224 if test -n "$AR"; then
6225 ac_cv_prog_AR
="$AR" # Let the user override the test.
6227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6231 test -z "$as_dir" && as_dir
=.
6232 for ac_exec_ext
in '' $ac_executable_extensions; do
6233 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6234 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6245 if test -n "$AR"; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6247 $as_echo "$AR" >&6; }
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250 $as_echo "no" >&6; }
6255 if test -z "$ac_cv_prog_AR"; then
6257 # Extract the first word of "ar", so it can be a program name with args.
6258 set dummy
ar; ac_word
=$2
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6262 $as_echo_n "(cached) " >&6
6264 if test -n "$ac_ct_AR"; then
6265 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6271 test -z "$as_dir" && as_dir
=.
6272 for ac_exec_ext
in '' $ac_executable_extensions; do
6273 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6274 ac_cv_prog_ac_ct_AR
="ar"
6275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6285 if test -n "$ac_ct_AR"; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6287 $as_echo "$ac_ct_AR" >&6; }
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6293 if test "x$ac_ct_AR" = x
; then
6296 case $cross_compiling:$ac_tool_warned in
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6300 ac_tool_warned
=yes ;;
6308 test -z "$AR" && AR
=ar
6309 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6321 if test -n "$ac_tool_prefix"; then
6322 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6323 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if ${ac_cv_prog_STRIP+:} false
; then :
6327 $as_echo_n "(cached) " >&6
6329 if test -n "$STRIP"; then
6330 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6336 test -z "$as_dir" && as_dir
=.
6337 for ac_exec_ext
in '' $ac_executable_extensions; do
6338 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6339 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 STRIP
=$ac_cv_prog_STRIP
6350 if test -n "$STRIP"; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6352 $as_echo "$STRIP" >&6; }
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6360 if test -z "$ac_cv_prog_STRIP"; then
6362 # Extract the first word of "strip", so it can be a program name with args.
6363 set dummy strip
; ac_word
=$2
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
6367 $as_echo_n "(cached) " >&6
6369 if test -n "$ac_ct_STRIP"; then
6370 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6376 test -z "$as_dir" && as_dir
=.
6377 for ac_exec_ext
in '' $ac_executable_extensions; do
6378 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6379 ac_cv_prog_ac_ct_STRIP
="strip"
6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6390 if test -n "$ac_ct_STRIP"; then
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6392 $as_echo "$ac_ct_STRIP" >&6; }
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6398 if test "x$ac_ct_STRIP" = x
; then
6401 case $cross_compiling:$ac_tool_warned in
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6405 ac_tool_warned
=yes ;;
6410 STRIP
="$ac_cv_prog_STRIP"
6413 test -z "$STRIP" && STRIP
=:
6420 if test -n "$ac_tool_prefix"; then
6421 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6422 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if ${ac_cv_prog_RANLIB+:} false
; then :
6426 $as_echo_n "(cached) " >&6
6428 if test -n "$RANLIB"; then
6429 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6435 test -z "$as_dir" && as_dir
=.
6436 for ac_exec_ext
in '' $ac_executable_extensions; do
6437 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6438 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 RANLIB
=$ac_cv_prog_RANLIB
6449 if test -n "$RANLIB"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6451 $as_echo "$RANLIB" >&6; }
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6459 if test -z "$ac_cv_prog_RANLIB"; then
6460 ac_ct_RANLIB
=$RANLIB
6461 # Extract the first word of "ranlib", so it can be a program name with args.
6462 set dummy ranlib
; ac_word
=$2
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 $as_echo_n "checking for $ac_word... " >&6; }
6465 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6466 $as_echo_n "(cached) " >&6
6468 if test -n "$ac_ct_RANLIB"; then
6469 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6475 test -z "$as_dir" && as_dir
=.
6476 for ac_exec_ext
in '' $ac_executable_extensions; do
6477 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6478 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6489 if test -n "$ac_ct_RANLIB"; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6491 $as_echo "$ac_ct_RANLIB" >&6; }
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494 $as_echo "no" >&6; }
6497 if test "x$ac_ct_RANLIB" = x
; then
6500 case $cross_compiling:$ac_tool_warned in
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504 ac_tool_warned
=yes ;;
6506 RANLIB
=$ac_ct_RANLIB
6509 RANLIB
="$ac_cv_prog_RANLIB"
6512 test -z "$RANLIB" && RANLIB
=:
6519 # Determine commands to create old-style static archives.
6520 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6521 old_postinstall_cmds
='chmod 644 $oldlib'
6522 old_postuninstall_cmds
=
6524 if test -n "$RANLIB"; then
6527 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6530 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6533 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6538 lock_old_archive_extraction
=yes ;;
6540 lock_old_archive_extraction
=no
;;
6581 # If no C compiler was specified, use CC.
6584 # If no C compiler flags were specified, use CFLAGS.
6585 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6587 # Allow CC to be a program name with arguments.
6591 # Check for command to grab the raw symbol name followed by C symbol from nm.
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6593 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6594 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
6595 $as_echo_n "(cached) " >&6
6598 # These are sane defaults that work on at least a few old systems.
6599 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6601 # Character class describing NM global symbol codes.
6602 symcode
='[BCDEGRST]'
6604 # Regexp to match symbols that can be accessed directly from C.
6605 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6607 # Define system-specific variables.
6612 cygwin
* | mingw
* | pw32
* | cegcc
*)
6613 symcode
='[ABCDGISTW]'
6616 if test "$host_cpu" = ia64
; then
6617 symcode
='[ABCDEGRST]'
6621 symcode
='[BCDEGRST]'
6624 symcode
='[BCDEGQRST]'
6635 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6643 # If we're using GNU nm, then use its standard symbol codes.
6644 case `$NM -V 2>&1` in
6645 *GNU
* |
*'with BFD'*)
6646 symcode
='[ABCDGIRSTW]' ;;
6649 # Transform an extracted symbol line into a proper C declaration.
6650 # Some systems (esp. on ia64) link data and code symbols differently,
6651 # so use this general approach.
6652 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6654 # Transform an extracted symbol line into symbol name and symbol address
6655 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6656 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'"
6658 # Handle CRLF in mingw tool chain
6662 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6666 # Try without a prefix underscore, then with it.
6667 for ac_symprfx
in "" "_"; do
6669 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6670 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6672 # Write the raw and C identifiers.
6673 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6674 # Fake it for dumpbin and say T for any non-static function
6675 # and D for any global variable.
6676 # Also find C++ and __fastcall symbols from MSVC++,
6677 # which start with @ or ?.
6678 lt_cv_sys_global_symbol_pipe
="$AWK '"\
6679 " {last_section=section; section=\$ 3};"\
6680 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6681 " \$ 0!~/External *\|/{next};"\
6682 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6683 " {if(hide[section]) next};"\
6684 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6685 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6686 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6687 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6688 " ' prfx=^$ac_symprfx"
6690 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6693 # Check to see that the pipe works correctly.
6697 cat > conftest.
$ac_ext <<_LT_EOF
6702 void nm_test_func(void);
6703 void nm_test_func(void){}
6707 int main(){nm_test_var='a';nm_test_func();return(0);}
6710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6711 (eval $ac_compile) 2>&5
6713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6714 test $ac_status = 0; }; then
6715 # Now try to grab the symbols.
6717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6718 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
6720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6721 test $ac_status = 0; } && test -s "$nlist"; then
6722 # Try sorting and uniquifying the output.
6723 if sort "$nlist" |
uniq > "$nlist"T
; then
6724 mv -f "$nlist"T
"$nlist"
6729 # Make sure that we snagged all the symbols we need.
6730 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
6731 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
6732 cat <<_LT_EOF > conftest.$ac_ext
6738 # Now generate the symbol file.
6739 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6741 cat <<_LT_EOF >> conftest.$ac_ext
6743 /* The mapping between symbol names and symbols. */
6748 lt__PROGRAM__LTX_preloaded_symbols[] =
6750 { "@PROGRAM@", (void *) 0 },
6752 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
6753 cat <<\_LT_EOF
>> conftest.
$ac_ext
6757 /* This works around a problem
in FreeBSD linker
*/
6758 #ifdef FREEBSD_WORKAROUND
6759 static const void
*lt_preloaded_setup
() {
6760 return lt__PROGRAM__LTX_preloaded_symbols
;
6768 # Now try linking the two files.
6769 mv conftest.
$ac_objext conftstm.
$ac_objext
6770 lt_save_LIBS
="$LIBS"
6771 lt_save_CFLAGS
="$CFLAGS"
6772 LIBS
="conftstm.$ac_objext"
6773 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6775 (eval $ac_link) 2>&5
6777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6778 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
6781 LIBS
="$lt_save_LIBS"
6782 CFLAGS
="$lt_save_CFLAGS"
6784 echo "cannot find nm_test_func in $nlist" >&5
6787 echo "cannot find nm_test_var in $nlist" >&5
6790 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6793 echo "$progname: failed program was:" >&5
6794 cat conftest.
$ac_ext >&5
6796 rm -rf conftest
* conftst
*
6798 # Do not use the global_symbol_pipe unless it works.
6799 if test "$pipe_works" = yes; then
6802 lt_cv_sys_global_symbol_pipe
=
6808 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6809 lt_cv_sys_global_symbol_to_cdecl
=
6811 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6813 $as_echo "failed" >&6; }
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6816 $as_echo "ok" >&6; }
6841 # Check whether --enable-libtool-lock was given.
6842 if test "${enable_libtool_lock+set}" = set; then :
6843 enableval
=$enable_libtool_lock;
6846 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6848 # Some flags need to be propagated to the compiler or linker for good
6852 # Find out which ABI we are using.
6853 echo 'int i;' > conftest.
$ac_ext
6854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6855 (eval $ac_compile) 2>&5
6857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6858 test $ac_status = 0; }; then
6859 case `/usr/bin/file conftest.$ac_objext` in
6871 # Find out which ABI we are using.
6872 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
6873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6874 (eval $ac_compile) 2>&5
6876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6877 test $ac_status = 0; }; then
6878 if test "$lt_cv_prog_gnu_ld" = yes; then
6879 case `/usr/bin/file conftest.$ac_objext` in
6881 LD
="${LD-ld} -melf32bsmip"
6884 LD
="${LD-ld} -melf32bmipn32"
6887 LD
="${LD-ld} -melf64bmip"
6891 case `/usr/bin/file conftest.$ac_objext` in
6907 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
6908 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
6909 # Find out which ABI we are using.
6910 echo 'int i;' > conftest.
$ac_ext
6911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6912 (eval $ac_compile) 2>&5
6914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6915 test $ac_status = 0; }; then
6916 case `/usr/bin/file conftest.o` in
6919 x86_64-
*kfreebsd
*-gnu)
6920 LD
="${LD-ld} -m elf_i386_fbsd"
6923 case `/usr/bin/file conftest.o` in
6925 LD
="${LD-ld} -m elf32_x86_64"
6928 LD
="${LD-ld} -m elf_i386"
6932 powerpc64le-
*linux
*)
6933 LD
="${LD-ld} -m elf32lppclinux"
6936 LD
="${LD-ld} -m elf32ppclinux"
6939 LD
="${LD-ld} -m elf_s390"
6942 LD
="${LD-ld} -m elf32_sparc"
6948 x86_64-
*kfreebsd
*-gnu)
6949 LD
="${LD-ld} -m elf_x86_64_fbsd"
6952 LD
="${LD-ld} -m elf_x86_64"
6955 LD
="${LD-ld} -m elf64lppc"
6958 LD
="${LD-ld} -m elf64ppc"
6960 s390
*-*linux
*|s390
*-*tpf
*)
6961 LD
="${LD-ld} -m elf64_s390"
6964 LD
="${LD-ld} -m elf64_sparc"
6974 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6975 SAVE_CFLAGS
="$CFLAGS"
6976 CFLAGS
="$CFLAGS -belf"
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6978 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6979 if ${lt_cv_cc_needs_belf+:} false
; then :
6980 $as_echo_n "(cached) " >&6
6983 ac_cpp
='$CPP $CPPFLAGS'
6984 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6985 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6986 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6989 /* end confdefs.h. */
6999 if ac_fn_c_try_link
"$LINENO"; then :
7000 lt_cv_cc_needs_belf
=yes
7002 lt_cv_cc_needs_belf
=no
7004 rm -f core conftest.err conftest.
$ac_objext \
7005 conftest
$ac_exeext conftest.
$ac_ext
7007 ac_cpp
='$CPP $CPPFLAGS'
7008 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7009 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7010 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7014 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7015 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
7016 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7017 CFLAGS
="$SAVE_CFLAGS"
7021 # Find out which ABI we are using.
7022 echo 'int i;' > conftest.
$ac_ext
7023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7024 (eval $ac_compile) 2>&5
7026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7027 test $ac_status = 0; }; then
7028 case `/usr/bin/file conftest.o` in
7030 case $lt_cv_prog_gnu_ld in
7031 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
7033 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
7045 need_locks
="$enable_libtool_lock"
7049 rhapsody
* | darwin
*)
7050 if test -n "$ac_tool_prefix"; then
7051 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7052 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7054 $as_echo_n "checking for $ac_word... " >&6; }
7055 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
7056 $as_echo_n "(cached) " >&6
7058 if test -n "$DSYMUTIL"; then
7059 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
7061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7065 test -z "$as_dir" && as_dir
=.
7066 for ac_exec_ext
in '' $ac_executable_extensions; do
7067 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7068 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
7069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
7079 if test -n "$DSYMUTIL"; then
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7081 $as_echo "$DSYMUTIL" >&6; }
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084 $as_echo "no" >&6; }
7089 if test -z "$ac_cv_prog_DSYMUTIL"; then
7090 ac_ct_DSYMUTIL
=$DSYMUTIL
7091 # Extract the first word of "dsymutil", so it can be a program name with args.
7092 set dummy dsymutil
; ac_word
=$2
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7094 $as_echo_n "checking for $ac_word... " >&6; }
7095 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
7096 $as_echo_n "(cached) " >&6
7098 if test -n "$ac_ct_DSYMUTIL"; then
7099 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
7101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7105 test -z "$as_dir" && as_dir
=.
7106 for ac_exec_ext
in '' $ac_executable_extensions; do
7107 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7108 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
7109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
7119 if test -n "$ac_ct_DSYMUTIL"; then
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7121 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124 $as_echo "no" >&6; }
7127 if test "x$ac_ct_DSYMUTIL" = x
; then
7130 case $cross_compiling:$ac_tool_warned in
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7134 ac_tool_warned
=yes ;;
7136 DSYMUTIL
=$ac_ct_DSYMUTIL
7139 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
7142 if test -n "$ac_tool_prefix"; then
7143 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7144 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146 $as_echo_n "checking for $ac_word... " >&6; }
7147 if ${ac_cv_prog_NMEDIT+:} false
; then :
7148 $as_echo_n "(cached) " >&6
7150 if test -n "$NMEDIT"; then
7151 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
7153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7157 test -z "$as_dir" && as_dir
=.
7158 for ac_exec_ext
in '' $ac_executable_extensions; do
7159 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7160 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
7161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 NMEDIT
=$ac_cv_prog_NMEDIT
7171 if test -n "$NMEDIT"; then
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7173 $as_echo "$NMEDIT" >&6; }
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176 $as_echo "no" >&6; }
7181 if test -z "$ac_cv_prog_NMEDIT"; then
7182 ac_ct_NMEDIT
=$NMEDIT
7183 # Extract the first word of "nmedit", so it can be a program name with args.
7184 set dummy nmedit
; ac_word
=$2
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186 $as_echo_n "checking for $ac_word... " >&6; }
7187 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
7188 $as_echo_n "(cached) " >&6
7190 if test -n "$ac_ct_NMEDIT"; then
7191 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
7193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7197 test -z "$as_dir" && as_dir
=.
7198 for ac_exec_ext
in '' $ac_executable_extensions; do
7199 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7200 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
7201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
7211 if test -n "$ac_ct_NMEDIT"; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7213 $as_echo "$ac_ct_NMEDIT" >&6; }
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216 $as_echo "no" >&6; }
7219 if test "x$ac_ct_NMEDIT" = x
; then
7222 case $cross_compiling:$ac_tool_warned in
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7226 ac_tool_warned
=yes ;;
7228 NMEDIT
=$ac_ct_NMEDIT
7231 NMEDIT
="$ac_cv_prog_NMEDIT"
7234 if test -n "$ac_tool_prefix"; then
7235 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7236 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if ${ac_cv_prog_LIPO+:} false
; then :
7240 $as_echo_n "(cached) " >&6
7242 if test -n "$LIPO"; then
7243 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
7245 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7249 test -z "$as_dir" && as_dir
=.
7250 for ac_exec_ext
in '' $ac_executable_extensions; do
7251 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7252 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 LIPO
=$ac_cv_prog_LIPO
7263 if test -n "$LIPO"; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7265 $as_echo "$LIPO" >&6; }
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7273 if test -z "$ac_cv_prog_LIPO"; then
7275 # Extract the first word of "lipo", so it can be a program name with args.
7276 set dummy lipo
; ac_word
=$2
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278 $as_echo_n "checking for $ac_word... " >&6; }
7279 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
7280 $as_echo_n "(cached) " >&6
7282 if test -n "$ac_ct_LIPO"; then
7283 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
7285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7289 test -z "$as_dir" && as_dir
=.
7290 for ac_exec_ext
in '' $ac_executable_extensions; do
7291 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7292 ac_cv_prog_ac_ct_LIPO
="lipo"
7293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
7303 if test -n "$ac_ct_LIPO"; then
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7305 $as_echo "$ac_ct_LIPO" >&6; }
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308 $as_echo "no" >&6; }
7311 if test "x$ac_ct_LIPO" = x
; then
7314 case $cross_compiling:$ac_tool_warned in
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7318 ac_tool_warned
=yes ;;
7323 LIPO
="$ac_cv_prog_LIPO"
7326 if test -n "$ac_tool_prefix"; then
7327 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7328 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if ${ac_cv_prog_OTOOL+:} false
; then :
7332 $as_echo_n "(cached) " >&6
7334 if test -n "$OTOOL"; then
7335 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
7337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7341 test -z "$as_dir" && as_dir
=.
7342 for ac_exec_ext
in '' $ac_executable_extensions; do
7343 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7344 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 OTOOL
=$ac_cv_prog_OTOOL
7355 if test -n "$OTOOL"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7357 $as_echo "$OTOOL" >&6; }
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7365 if test -z "$ac_cv_prog_OTOOL"; then
7367 # Extract the first word of "otool", so it can be a program name with args.
7368 set dummy otool
; ac_word
=$2
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
7372 $as_echo_n "(cached) " >&6
7374 if test -n "$ac_ct_OTOOL"; then
7375 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
7377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7381 test -z "$as_dir" && as_dir
=.
7382 for ac_exec_ext
in '' $ac_executable_extensions; do
7383 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7384 ac_cv_prog_ac_ct_OTOOL
="otool"
7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
7395 if test -n "$ac_ct_OTOOL"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7397 $as_echo "$ac_ct_OTOOL" >&6; }
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400 $as_echo "no" >&6; }
7403 if test "x$ac_ct_OTOOL" = x
; then
7406 case $cross_compiling:$ac_tool_warned in
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7410 ac_tool_warned
=yes ;;
7415 OTOOL
="$ac_cv_prog_OTOOL"
7418 if test -n "$ac_tool_prefix"; then
7419 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7420 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if ${ac_cv_prog_OTOOL64+:} false
; then :
7424 $as_echo_n "(cached) " >&6
7426 if test -n "$OTOOL64"; then
7427 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
7429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7433 test -z "$as_dir" && as_dir
=.
7434 for ac_exec_ext
in '' $ac_executable_extensions; do
7435 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7436 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 OTOOL64
=$ac_cv_prog_OTOOL64
7447 if test -n "$OTOOL64"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7449 $as_echo "$OTOOL64" >&6; }
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7457 if test -z "$ac_cv_prog_OTOOL64"; then
7458 ac_ct_OTOOL64
=$OTOOL64
7459 # Extract the first word of "otool64", so it can be a program name with args.
7460 set dummy otool64
; ac_word
=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
7464 $as_echo_n "(cached) " >&6
7466 if test -n "$ac_ct_OTOOL64"; then
7467 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
7469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7473 test -z "$as_dir" && as_dir
=.
7474 for ac_exec_ext
in '' $ac_executable_extensions; do
7475 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7476 ac_cv_prog_ac_ct_OTOOL64
="otool64"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
7487 if test -n "$ac_ct_OTOOL64"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7489 $as_echo "$ac_ct_OTOOL64" >&6; }
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7495 if test "x$ac_ct_OTOOL64" = x
; then
7498 case $cross_compiling:$ac_tool_warned in
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7502 ac_tool_warned
=yes ;;
7504 OTOOL64
=$ac_ct_OTOOL64
7507 OTOOL64
="$ac_cv_prog_OTOOL64"
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7537 $as_echo_n "checking for -single_module linker flag... " >&6; }
7538 if ${lt_cv_apple_cc_single_mod+:} false
; then :
7539 $as_echo_n "(cached) " >&6
7541 lt_cv_apple_cc_single_mod
=no
7542 if test -z "${LT_MULTI_MODULE}"; then
7543 # By default we will add the -single_module flag. You can override
7544 # by either setting the environment variable LT_MULTI_MODULE
7545 # non-empty at configure time, or by adding -multi_module to the
7547 rm -rf libconftest.dylib
*
7548 echo "int foo(void){return 1;}" > conftest.c
7549 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7550 -dynamiclib -Wl,-single_module conftest.c" >&5
7551 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7552 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
7554 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
7555 lt_cv_apple_cc_single_mod
=yes
7557 cat conftest.err
>&5
7559 rm -rf libconftest.dylib
*
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7564 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7566 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7567 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
7568 $as_echo_n "(cached) " >&6
7570 lt_cv_ld_exported_symbols_list
=no
7571 save_LDFLAGS
=$LDFLAGS
7572 echo "_main" > conftest.sym
7573 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7585 if ac_fn_c_try_link
"$LINENO"; then :
7586 lt_cv_ld_exported_symbols_list
=yes
7588 lt_cv_ld_exported_symbols_list
=no
7590 rm -f core conftest.err conftest.
$ac_objext \
7591 conftest
$ac_exeext conftest.
$ac_ext
7592 LDFLAGS
="$save_LDFLAGS"
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7596 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7598 $as_echo_n "checking for -force_load linker flag... " >&6; }
7599 if ${lt_cv_ld_force_load+:} false
; then :
7600 $as_echo_n "(cached) " >&6
7602 lt_cv_ld_force_load
=no
7603 cat > conftest.c
<< _LT_EOF
7604 int forced_loaded() { return 2;}
7606 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7607 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
7608 echo "$AR cru libconftest.a conftest.o" >&5
7609 $AR cru libconftest.a conftest.o
2>&5
7610 cat > conftest.c
<< _LT_EOF
7611 int main() { return 0;}
7613 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7614 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
7616 if test -f conftest
&& test ! -s conftest.err
&& test $_lt_result = 0 && $GREP forced_load conftest
2>&1 >/dev
/null
; then
7617 lt_cv_ld_force_load
=yes
7619 cat conftest.err
>&5
7621 rm -f conftest.err libconftest.a conftest conftest.c
7622 rm -rf conftest.dSYM
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7626 $as_echo "$lt_cv_ld_force_load" >&6; }
7627 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7628 # build without first building modern cctools / linker.
7629 case $host_cpu-$host_os in
7630 *-rhapsody* |
*-darwin1.
[012])
7631 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
7633 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7635 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7636 # deployment target is forced to an earlier version.
7637 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7638 UNSET
,*-darwin[89]*|UNSET
,*-darwin[12][0123456789]*)
7641 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7648 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7649 _lt_dar_single_mod
='$single_module'
7651 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7652 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7654 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7656 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7657 _lt_dsymutil
='~$DSYMUTIL $lib || :'
7665 ac_cpp
='$CPP $CPPFLAGS'
7666 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7667 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7668 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7670 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7671 # On Suns, sometimes $CPP names a directory.
7672 if test -n "$CPP" && test -d "$CPP"; then
7675 if test -z "$CPP"; then
7676 if ${ac_cv_prog_CPP+:} false
; then :
7677 $as_echo_n "(cached) " >&6
7679 # Double quotes because CPP needs to be expanded
7680 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7683 for ac_c_preproc_warn_flag
in '' yes
7685 # Use a header file that comes with gcc, so configuring glibc
7686 # with a fresh cross-compiler works.
7687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7688 # <limits.h> exists even on freestanding compilers.
7689 # On the NeXT, cc -E runs the code through the compiler's parser,
7690 # not just through cpp. "Syntax error" is here to catch this case.
7691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7694 # include <limits.h>
7696 # include <assert.h>
7700 if ac_fn_c_try_cpp
"$LINENO"; then :
7703 # Broken: fails on valid input.
7706 rm -f conftest.err conftest.i conftest.
$ac_ext
7708 # OK, works on sane cases. Now check whether nonexistent headers
7709 # can be detected and how.
7710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7712 #include <ac_nonexistent.h>
7714 if ac_fn_c_try_cpp
"$LINENO"; then :
7715 # Broken: success on invalid input.
7718 # Passes both tests.
7722 rm -f conftest.err conftest.i conftest.
$ac_ext
7725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7726 rm -f conftest.i conftest.err conftest.
$ac_ext
7727 if $ac_preproc_ok; then :
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7740 $as_echo "$CPP" >&6; }
7742 for ac_c_preproc_warn_flag
in '' yes
7744 # Use a header file that comes with gcc, so configuring glibc
7745 # with a fresh cross-compiler works.
7746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7747 # <limits.h> exists even on freestanding compilers.
7748 # On the NeXT, cc -E runs the code through the compiler's parser,
7749 # not just through cpp. "Syntax error" is here to catch this case.
7750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7753 # include <limits.h>
7755 # include <assert.h>
7759 if ac_fn_c_try_cpp
"$LINENO"; then :
7762 # Broken: fails on valid input.
7765 rm -f conftest.err conftest.i conftest.
$ac_ext
7767 # OK, works on sane cases. Now check whether nonexistent headers
7768 # can be detected and how.
7769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7770 /* end confdefs.h. */
7771 #include <ac_nonexistent.h>
7773 if ac_fn_c_try_cpp
"$LINENO"; then :
7774 # Broken: success on invalid input.
7777 # Passes both tests.
7781 rm -f conftest.err conftest.i conftest.
$ac_ext
7784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7785 rm -f conftest.i conftest.err conftest.
$ac_ext
7786 if $ac_preproc_ok; then :
7789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7791 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7792 See \`config.log' for more details" "$LINENO" 5; }
7796 ac_cpp
='$CPP $CPPFLAGS'
7797 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7798 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7799 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7803 $as_echo_n "checking for ANSI C header files... " >&6; }
7804 if ${ac_cv_header_stdc+:} false
; then :
7805 $as_echo_n "(cached) " >&6
7807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7822 if ac_fn_c_try_compile
"$LINENO"; then :
7823 ac_cv_header_stdc
=yes
7825 ac_cv_header_stdc
=no
7827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7829 if test $ac_cv_header_stdc = yes; then
7830 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7837 $EGREP "memchr" >/dev
/null
2>&1; then :
7840 ac_cv_header_stdc
=no
7846 if test $ac_cv_header_stdc = yes; then
7847 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7854 $EGREP "free" >/dev
/null
2>&1; then :
7857 ac_cv_header_stdc
=no
7863 if test $ac_cv_header_stdc = yes; then
7864 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7865 if test "$cross_compiling" = yes; then :
7868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h. */
7872 #if ((' ' & 0x0FF) == 0x020)
7873 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7874 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7876 # define ISLOWER(c) \
7877 (('a' <= (c) && (c) <= 'i') \
7878 || ('j' <= (c) && (c) <= 'r') \
7879 || ('s' <= (c) && (c) <= 'z'))
7880 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7883 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7888 for (i = 0; i < 256; i++)
7889 if (XOR (islower (i), ISLOWER (i))
7890 || toupper (i) != TOUPPER (i))
7895 if ac_fn_c_try_run
"$LINENO"; then :
7898 ac_cv_header_stdc
=no
7900 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7901 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7907 $as_echo "$ac_cv_header_stdc" >&6; }
7908 if test $ac_cv_header_stdc = yes; then
7910 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7914 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7915 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7916 inttypes.h stdint.h unistd.h
7918 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7919 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7921 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7922 cat >>confdefs.h
<<_ACEOF
7923 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7931 for ac_header
in dlfcn.h
7933 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7935 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7936 cat >>confdefs.h
<<_ACEOF
7937 #define HAVE_DLFCN_H 1
7958 # Check whether --enable-shared was given.
7959 if test "${enable_shared+set}" = set; then :
7960 enableval
=$enable_shared; p
=${PACKAGE-default}
7962 yes) enable_shared
=yes ;;
7963 no
) enable_shared
=no
;;
7966 # Look at the argument we got. We use all the common list separators.
7967 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7968 for pkg
in $enableval; do
7970 if test "X$pkg" = "X$p"; then
7989 # Check whether --enable-static was given.
7990 if test "${enable_static+set}" = set; then :
7991 enableval
=$enable_static; p
=${PACKAGE-default}
7993 yes) enable_static
=yes ;;
7994 no
) enable_static
=no
;;
7997 # Look at the argument we got. We use all the common list separators.
7998 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7999 for pkg
in $enableval; do
8001 if test "X$pkg" = "X$p"; then
8021 # Check whether --with-pic was given.
8022 if test "${with_pic+set}" = set; then :
8023 withval
=$with_pic; pic_mode
="$withval"
8029 test -z "$pic_mode" && pic_mode
=default
8037 # Check whether --enable-fast-install was given.
8038 if test "${enable_fast_install+set}" = set; then :
8039 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8041 yes) enable_fast_install
=yes ;;
8042 no
) enable_fast_install
=no
;;
8044 enable_fast_install
=no
8045 # Look at the argument we got. We use all the common list separators.
8046 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8047 for pkg
in $enableval; do
8049 if test "X$pkg" = "X$p"; then
8050 enable_fast_install
=yes
8057 enable_fast_install
=yes
8070 # This can be used to rebuild libtool when needed
8071 LIBTOOL_DEPS
="$ltmain"
8073 # Always use our own libtool.
8074 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8101 test -z "$LN_S" && LN_S
="ln -s"
8116 if test -n "${ZSH_VERSION+set}" ; then
8117 setopt NO_GLOB_SUBST
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8121 $as_echo_n "checking for objdir... " >&6; }
8122 if ${lt_cv_objdir+:} false
; then :
8123 $as_echo_n "(cached) " >&6
8125 rm -f .libs
2>/dev
/null
8126 mkdir .libs
2>/dev
/null
8127 if test -d .libs
; then
8130 # MS-DOS does not allow filenames that begin with a dot.
8133 rmdir .libs
2>/dev
/null
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8136 $as_echo "$lt_cv_objdir" >&6; }
8137 objdir
=$lt_cv_objdir
8143 cat >>confdefs.h
<<_ACEOF
8144 #define LT_OBJDIR "$lt_cv_objdir/"
8152 # AIX sometimes has problems with the GCC collect2 program. For some
8153 # reason, if we set the COLLECT_NAMES environment variable, the problems
8154 # vanish in a puff of smoke.
8155 if test "X${COLLECT_NAMES+set}" != Xset
; then
8157 export COLLECT_NAMES
8164 can_build_shared
=yes
8166 # All known linkers require a `.a' archive for static linking (except MSVC,
8167 # which needs '.lib').
8170 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8173 old_CFLAGS
="$CFLAGS"
8175 # Set sane defaults for various variables
8176 test -z "$CC" && CC
=cc
8177 test -z "$LTCC" && LTCC
=$CC
8178 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8179 test -z "$LD" && LD
=ld
8180 test -z "$ac_objext" && ac_objext
=o
8182 for cc_temp
in $compiler""; do
8184 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8185 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8190 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8193 # Only perform the check for file, if the check method requires it
8194 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8195 case $deplibs_check_method in
8197 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8199 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8200 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8201 $as_echo_n "(cached) " >&6
8205 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8208 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8209 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8210 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8211 for ac_dir
in $ac_dummy; do
8213 test -z "$ac_dir" && ac_dir
=.
8214 if test -f $ac_dir/${ac_tool_prefix}file; then
8215 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8216 if test -n "$file_magic_test_file"; then
8217 case $deplibs_check_method in
8219 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8220 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8221 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8222 $EGREP "$file_magic_regex" > /dev
/null
; then
8227 *** Warning: the command libtool uses to detect shared libraries,
8228 *** $file_magic_cmd, produces output that libtool cannot recognize.
8229 *** The result is that libtool may fail to recognize shared libraries
8230 *** as such. This will affect the creation of libtool libraries that
8231 *** depend on shared libraries, but programs linked with such libtool
8232 *** libraries will work regardless of this problem. Nevertheless, you
8233 *** may want to report the problem to your system manager and/or to
8234 *** bug-libtool@gnu.org
8244 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8249 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8250 if test -n "$MAGIC_CMD"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8252 $as_echo "$MAGIC_CMD" >&6; }
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 $as_echo "no" >&6; }
8262 if test -z "$lt_cv_path_MAGIC_CMD"; then
8263 if test -n "$ac_tool_prefix"; then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8265 $as_echo_n "checking for file... " >&6; }
8266 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8267 $as_echo_n "(cached) " >&6
8271 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8274 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8275 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8276 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8277 for ac_dir
in $ac_dummy; do
8279 test -z "$ac_dir" && ac_dir
=.
8280 if test -f $ac_dir/file; then
8281 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8282 if test -n "$file_magic_test_file"; then
8283 case $deplibs_check_method in
8285 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8286 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8287 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8288 $EGREP "$file_magic_regex" > /dev
/null
; then
8293 *** Warning: the command libtool uses to detect shared libraries,
8294 *** $file_magic_cmd, produces output that libtool cannot recognize.
8295 *** The result is that libtool may fail to recognize shared libraries
8296 *** as such. This will affect the creation of libtool libraries that
8297 *** depend on shared libraries, but programs linked with such libtool
8298 *** libraries will work regardless of this problem. Nevertheless, you
8299 *** may want to report the problem to your system manager and/or to
8300 *** bug-libtool@gnu.org
8310 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8315 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8316 if test -n "$MAGIC_CMD"; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8318 $as_echo "$MAGIC_CMD" >&6; }
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8321 $as_echo "no" >&6; }
8334 # Use C for the default configuration in the libtool script
8338 ac_cpp
='$CPP $CPPFLAGS'
8339 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8340 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8341 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8344 # Source file extension for C test sources.
8347 # Object file extension for compiled C test sources.
8351 # Code to be used in simple compile tests
8352 lt_simple_compile_test_code
="int some_variable = 0;"
8354 # Code to be used in simple link tests
8355 lt_simple_link_test_code
='int main(){return(0);}'
8363 # If no C compiler was specified, use CC.
8366 # If no C compiler flags were specified, use CFLAGS.
8367 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8369 # Allow CC to be a program name with arguments.
8372 # Save the default compiler, since it gets overwritten when the other
8373 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8374 compiler_DEFAULT
=$CC
8376 # save warnings/boilerplate of simple test code
8377 ac_outfile
=conftest.
$ac_objext
8378 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8379 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8380 _lt_compiler_boilerplate
=`cat conftest.err`
8383 ac_outfile
=conftest.
$ac_objext
8384 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8385 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8386 _lt_linker_boilerplate
=`cat conftest.err`
8391 ## There is no encapsulation within the following macros, do not change
8392 ## the running order or otherwise move them around unless you know exactly
8393 ## what you are doing...
8394 if test -n "$compiler"; then
8396 lt_prog_compiler_no_builtin_flag
=
8398 if test "$GCC" = yes; then
8399 case $cc_basename in
8401 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8403 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8407 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8408 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8409 $as_echo_n "(cached) " >&6
8411 lt_cv_prog_compiler_rtti_exceptions
=no
8412 ac_outfile
=conftest.
$ac_objext
8413 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8414 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8415 # Insert the option either (1) after the last *FLAGS variable, or
8416 # (2) before a word containing "conftest.", or (3) at the end.
8417 # Note that $ac_compile itself does not contain backslashes and begins
8418 # with a dollar sign (not a hyphen), so the echo should work correctly.
8419 # The option is referenced via a variable to avoid confusing sed.
8420 lt_compile
=`echo "$ac_compile" | $SED \
8421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8423 -e 's:$: $lt_compiler_flag:'`
8424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8425 (eval "$lt_compile" 2>conftest.err
)
8427 cat conftest.err
>&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 if (exit $ac_status) && test -s "$ac_outfile"; then
8430 # The compiler can only warn and ignore the option if not recognized
8431 # So say no if there are warnings other than the usual output.
8432 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8433 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8434 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8435 lt_cv_prog_compiler_rtti_exceptions
=yes
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8442 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8444 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8445 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8457 lt_prog_compiler_wl
=
8458 lt_prog_compiler_pic
=
8459 lt_prog_compiler_static
=
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8462 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8464 if test "$GCC" = yes; then
8465 lt_prog_compiler_wl
='-Wl,'
8466 lt_prog_compiler_static
='-static'
8470 # All AIX code is PIC.
8471 if test "$host_cpu" = ia64
; then
8472 # AIX 5 now supports IA64 processor
8473 lt_prog_compiler_static
='-Bstatic'
8475 lt_prog_compiler_pic
='-fPIC'
8481 # see comment about AmigaOS4 .so support
8482 lt_prog_compiler_pic
='-fPIC'
8485 # FIXME: we need at least 68020 code to build shared libraries, but
8486 # adding the `-m68020' flag to GCC prevents building anything better,
8488 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8493 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8494 # PIC is the default for these OSes.
8497 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8498 # This hack is so that the source file can tell whether it is being
8499 # built for inclusion in a dll (and should export symbols for example).
8500 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8501 # (--disable-auto-import) libraries
8502 lt_prog_compiler_pic
='-DDLL_EXPORT'
8505 darwin
* | rhapsody
*)
8506 # PIC is the default on this platform
8507 # Common symbols not allowed in MH_DYLIB files
8508 lt_prog_compiler_pic
='-fno-common'
8512 # PIC is the default for Haiku.
8513 # The "-static" flag exists, but is broken.
8514 lt_prog_compiler_static
=
8518 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8519 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8520 # sets the default TLS model and affects inlining.
8526 lt_prog_compiler_pic
='-fPIC'
8532 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8533 # Instead, we relocate shared libraries at runtime.
8537 # Just because we use GCC doesn't mean we suddenly get shared libraries
8538 # on systems that don't support them.
8539 lt_prog_compiler_can_build_shared
=no
8544 # QNX uses GNU C++, but need to define -shared option too, otherwise
8546 lt_prog_compiler_pic
='-fPIC -shared'
8550 if test -d /usr
/nec
; then
8551 lt_prog_compiler_pic
=-Kconform_pic
8556 lt_prog_compiler_pic
='-fPIC'
8560 case $cc_basename in
8561 nvcc
*) # Cuda Compiler Driver 2.2
8562 lt_prog_compiler_wl
='-Xlinker '
8563 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8567 # PORTME Check for flag to pass linker flags through the system compiler.
8570 lt_prog_compiler_wl
='-Wl,'
8571 if test "$host_cpu" = ia64
; then
8572 # AIX 5 now supports IA64 processor
8573 lt_prog_compiler_static
='-Bstatic'
8575 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8579 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8580 # This hack is so that the source file can tell whether it is being
8581 # built for inclusion in a dll (and should export symbols for example).
8582 lt_prog_compiler_pic
='-DDLL_EXPORT'
8585 hpux9
* | hpux10
* | hpux11
*)
8586 lt_prog_compiler_wl
='-Wl,'
8587 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8594 lt_prog_compiler_pic
='+Z'
8597 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8598 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8601 irix5
* | irix6
* | nonstopux
*)
8602 lt_prog_compiler_wl
='-Wl,'
8603 # PIC (with -KPIC) is the default.
8604 lt_prog_compiler_static
='-non_shared'
8607 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8608 case $cc_basename in
8609 # old Intel for x86_64 which still supported -KPIC.
8611 lt_prog_compiler_wl
='-Wl,'
8612 lt_prog_compiler_pic
='-KPIC'
8613 lt_prog_compiler_static
='-static'
8615 # icc used to be incompatible with GCC.
8616 # ICC 10 doesn't accept -KPIC any more.
8618 lt_prog_compiler_wl
='-Wl,'
8619 lt_prog_compiler_pic
='-fPIC'
8620 lt_prog_compiler_static
='-static'
8622 # Lahey Fortran 8.1.
8624 lt_prog_compiler_wl
='-Wl,'
8625 lt_prog_compiler_pic
='--shared'
8626 lt_prog_compiler_static
='--static'
8628 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8629 # Portland Group compilers (*not* the Pentium gcc compiler,
8630 # which looks to be a dead project)
8631 lt_prog_compiler_wl
='-Wl,'
8632 lt_prog_compiler_pic
='-fpic'
8633 lt_prog_compiler_static
='-Bstatic'
8636 lt_prog_compiler_wl
='-Wl,'
8637 # All Alpha code is PIC.
8638 lt_prog_compiler_static
='-non_shared'
8640 xl
* | bgxl
* | bgf
* | mpixl
*)
8641 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8642 lt_prog_compiler_wl
='-Wl,'
8643 lt_prog_compiler_pic
='-qpic'
8644 lt_prog_compiler_static
='-qstaticlink'
8647 case `$CC -V 2>&1 | sed 5q` in
8648 *Sun\ F
* |
*Sun
*Fortran
*)
8649 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8650 lt_prog_compiler_pic
='-KPIC'
8651 lt_prog_compiler_static
='-Bstatic'
8652 lt_prog_compiler_wl
=''
8656 lt_prog_compiler_pic
='-KPIC'
8657 lt_prog_compiler_static
='-Bstatic'
8658 lt_prog_compiler_wl
='-Wl,'
8666 lt_prog_compiler_pic
='-KPIC'
8667 lt_prog_compiler_static
='-Bstatic'
8671 # QNX uses GNU C++, but need to define -shared option too, otherwise
8673 lt_prog_compiler_pic
='-fPIC -shared'
8676 osf3
* | osf4
* | osf5
*)
8677 lt_prog_compiler_wl
='-Wl,'
8678 # All OSF/1 code is PIC.
8679 lt_prog_compiler_static
='-non_shared'
8683 lt_prog_compiler_static
='-non_shared'
8687 lt_prog_compiler_pic
='-KPIC'
8688 lt_prog_compiler_static
='-Bstatic'
8689 case $cc_basename in
8691 lt_prog_compiler_wl
='-Qoption ld ';;
8693 lt_prog_compiler_wl
='-Wl,';;
8698 lt_prog_compiler_wl
='-Qoption ld '
8699 lt_prog_compiler_pic
='-PIC'
8700 lt_prog_compiler_static
='-Bstatic'
8703 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8704 lt_prog_compiler_wl
='-Wl,'
8705 lt_prog_compiler_pic
='-KPIC'
8706 lt_prog_compiler_static
='-Bstatic'
8710 if test -d /usr
/nec
;then
8711 lt_prog_compiler_pic
='-Kconform_pic'
8712 lt_prog_compiler_static
='-Bstatic'
8716 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8717 lt_prog_compiler_wl
='-Wl,'
8718 lt_prog_compiler_pic
='-KPIC'
8719 lt_prog_compiler_static
='-Bstatic'
8723 lt_prog_compiler_wl
='-Wl,'
8724 lt_prog_compiler_can_build_shared
=no
8728 lt_prog_compiler_pic
='-pic'
8729 lt_prog_compiler_static
='-Bstatic'
8733 lt_prog_compiler_can_build_shared
=no
8739 # For platforms which do not support PIC, -DPIC is meaningless:
8741 lt_prog_compiler_pic
=
8744 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8748 $as_echo "$lt_prog_compiler_pic" >&6; }
8756 # Check to make sure the PIC flag actually works.
8758 if test -n "$lt_prog_compiler_pic"; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8760 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8761 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8762 $as_echo_n "(cached) " >&6
8764 lt_cv_prog_compiler_pic_works
=no
8765 ac_outfile
=conftest.
$ac_objext
8766 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8767 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8768 # Insert the option either (1) after the last *FLAGS variable, or
8769 # (2) before a word containing "conftest.", or (3) at the end.
8770 # Note that $ac_compile itself does not contain backslashes and begins
8771 # with a dollar sign (not a hyphen), so the echo should work correctly.
8772 # The option is referenced via a variable to avoid confusing sed.
8773 lt_compile
=`echo "$ac_compile" | $SED \
8774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8776 -e 's:$: $lt_compiler_flag:'`
8777 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8778 (eval "$lt_compile" 2>conftest.err
)
8780 cat conftest.err
>&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 if (exit $ac_status) && test -s "$ac_outfile"; then
8783 # The compiler can only warn and ignore the option if not recognized
8784 # So say no if there are warnings other than the usual output.
8785 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8786 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8787 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8788 lt_cv_prog_compiler_pic_works
=yes
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8795 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8797 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8798 case $lt_prog_compiler_pic in
8800 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8803 lt_prog_compiler_pic
=
8804 lt_prog_compiler_can_build_shared
=no
8815 # Check to make sure the static flag actually works.
8817 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8819 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8820 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8821 $as_echo_n "(cached) " >&6
8823 lt_cv_prog_compiler_static_works
=no
8824 save_LDFLAGS
="$LDFLAGS"
8825 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8826 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8827 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8828 # The linker can only warn and ignore the option if not recognized
8829 # So say no if there are warnings
8830 if test -s conftest.err
; then
8831 # Append any errors to the config.log.
8832 cat conftest.err
1>&5
8833 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8834 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8835 if diff conftest.exp conftest.er2
>/dev
/null
; then
8836 lt_cv_prog_compiler_static_works
=yes
8839 lt_cv_prog_compiler_static_works
=yes
8843 LDFLAGS
="$save_LDFLAGS"
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8847 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8849 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8852 lt_prog_compiler_static
=
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8862 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8863 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8864 $as_echo_n "(cached) " >&6
8866 lt_cv_prog_compiler_c_o
=no
8867 $RM -r conftest
2>/dev
/null
8871 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8873 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8874 # Insert the option either (1) after the last *FLAGS variable, or
8875 # (2) before a word containing "conftest.", or (3) at the end.
8876 # Note that $ac_compile itself does not contain backslashes and begins
8877 # with a dollar sign (not a hyphen), so the echo should work correctly.
8878 lt_compile
=`echo "$ac_compile" | $SED \
8879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8881 -e 's:$: $lt_compiler_flag:'`
8882 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8883 (eval "$lt_compile" 2>out
/conftest.err
)
8885 cat out
/conftest.err
>&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8889 # The compiler can only warn and ignore the option if not recognized
8890 # So say no if there are warnings
8891 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8892 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8893 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8894 lt_cv_prog_compiler_c_o
=yes
8899 # SGI C++ compiler will create directory out/ii_files/ for
8900 # template instantiation
8901 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8902 $RM out
/* && rmdir out
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8909 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8917 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8918 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8919 $as_echo_n "(cached) " >&6
8921 lt_cv_prog_compiler_c_o
=no
8922 $RM -r conftest
2>/dev
/null
8926 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8928 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8929 # Insert the option either (1) after the last *FLAGS variable, or
8930 # (2) before a word containing "conftest.", or (3) at the end.
8931 # Note that $ac_compile itself does not contain backslashes and begins
8932 # with a dollar sign (not a hyphen), so the echo should work correctly.
8933 lt_compile
=`echo "$ac_compile" | $SED \
8934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8936 -e 's:$: $lt_compiler_flag:'`
8937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8938 (eval "$lt_compile" 2>out
/conftest.err
)
8940 cat out
/conftest.err
>&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8944 # The compiler can only warn and ignore the option if not recognized
8945 # So say no if there are warnings
8946 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8947 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8948 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8949 lt_cv_prog_compiler_c_o
=yes
8954 # SGI C++ compiler will create directory out/ii_files/ for
8955 # template instantiation
8956 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8957 $RM out
/* && rmdir out
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8964 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8969 hard_links
="nottested"
8970 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8971 # do not overwrite the value of need_locks provided by the user
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8973 $as_echo_n "checking if we can lock with hard links... " >&6; }
8976 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8978 ln conftest.a conftest.b
2>&5 || hard_links
=no
8979 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8981 $as_echo "$hard_links" >&6; }
8982 if test "$hard_links" = no
; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8984 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8997 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9000 allow_undefined_flag
=
9001 always_export_symbols
=no
9003 archive_expsym_cmds
=
9004 compiler_needs_object
=no
9005 enable_shared_with_static_runtimes
=no
9006 export_dynamic_flag_spec
=
9007 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9008 hardcode_automatic
=no
9010 hardcode_direct_absolute
=no
9011 hardcode_libdir_flag_spec
=
9012 hardcode_libdir_flag_spec_ld
=
9013 hardcode_libdir_separator
=
9015 hardcode_shlibpath_var
=unsupported
9017 link_all_deplibs
=unknown
9020 old_archive_from_new_cmds
=
9021 old_archive_from_expsyms_cmds
=
9022 thread_safe_flag_spec
=
9023 whole_archive_flag_spec
=
9024 # include_expsyms should be a list of space-separated symbols to be *always*
9025 # included in the symbol list
9027 # exclude_expsyms can be an extended regexp of symbols to exclude
9028 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9029 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9030 # as well as any symbol that contains `d'.
9031 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9032 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9033 # platforms (ab)use it in PIC code, but their linkers get confused if
9034 # the symbol is explicitly referenced. Since portable code cannot
9035 # rely on this symbol name, it's probably fine to never include it in
9036 # preloaded symbol tables.
9037 # Exclude shared library initialization/finalization symbols.
9038 extract_expsyms_cmds
=
9041 cygwin
* | mingw
* | pw32
* | cegcc
*)
9042 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9043 # When not using gcc, we currently assume that we are using
9044 # Microsoft Visual C++.
9045 if test "$GCC" != yes; then
9050 # we just hope/assume this is gcc and not c89 (= MSVC++)
9060 # On some targets, GNU ld is compatible enough with the native linker
9061 # that we're better off using the native interface for both.
9062 lt_use_gnu_ld_interface
=no
9063 if test "$with_gnu_ld" = yes; then
9066 # The AIX port of GNU ld has always aspired to compatibility
9067 # with the native linker. However, as the warning in the GNU ld
9068 # block says, versions before 2.19.5* couldn't really create working
9069 # shared libraries, regardless of the interface used.
9070 case `$LD -v 2>&1` in
9071 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9072 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9073 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9075 lt_use_gnu_ld_interface
=yes
9080 lt_use_gnu_ld_interface
=yes
9085 if test "$lt_use_gnu_ld_interface" = yes; then
9086 # If archive_cmds runs LD, not CC, wlarc should be empty
9089 # Set some defaults for GNU ld with shared library support. These
9090 # are reset later if shared libraries are not supported. Putting them
9091 # here allows them to be overridden if necessary.
9092 runpath_var
=LD_RUN_PATH
9093 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9094 export_dynamic_flag_spec
='${wl}--export-dynamic'
9095 # ancient GNU ld didn't support --whole-archive et. al.
9096 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9097 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9099 whole_archive_flag_spec
=
9101 supports_anon_versioning
=no
9102 case `$LD -v 2>&1` in
9103 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9104 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9105 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9106 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9107 *\
2.11.
*) ;; # other 2.11 versions
9108 *) supports_anon_versioning
=yes ;;
9111 # See if GNU ld supports shared libraries.
9114 # On AIX/PPC, the GNU linker is very broken
9115 if test "$host_cpu" != ia64
; then
9119 *** Warning: the GNU linker, at least up to release 2.19, is reported
9120 *** to be unable to reliably create shared libraries on AIX.
9121 *** Therefore, libtool is disabling shared libraries support. If you
9122 *** really care for shared libraries, you may want to install binutils
9123 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9124 *** You will then need to restart the configuration process.
9133 # see comment about AmigaOS4 .so support
9134 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9135 archive_expsym_cmds
=''
9138 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)'
9139 hardcode_libdir_flag_spec
='-L$libdir'
9140 hardcode_minus_L
=yes
9146 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9147 allow_undefined_flag
=unsupported
9148 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9149 # support --undefined. This deserves some investigation. FIXME
9150 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9156 cygwin
* | mingw
* | pw32
* | cegcc
*)
9157 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9158 # as there is no search path for DLLs.
9159 hardcode_libdir_flag_spec
='-L$libdir'
9160 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9161 allow_undefined_flag
=unsupported
9162 always_export_symbols
=no
9163 enable_shared_with_static_runtimes
=yes
9164 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9166 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9167 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9168 # If the export-symbols file already is a .def file (1st line
9169 # is EXPORTS), use it as is; otherwise, prepend...
9170 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9171 cp $export_symbols $output_objdir/$soname.def;
9173 echo EXPORTS > $output_objdir/$soname.def;
9174 cat $export_symbols >> $output_objdir/$soname.def;
9176 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9183 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9184 link_all_deplibs
=yes
9189 hardcode_shlibpath_var
=no
9190 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9191 export_dynamic_flag_spec
='${wl}-E'
9192 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9193 # Instead, shared libraries are loaded at an image base (0x10000000 by
9194 # default) and relocated if they conflict, which is a slow very memory
9195 # consuming and fragmenting process. To avoid this, we pick a random,
9196 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9197 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9198 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9199 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'
9202 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9204 if test "$host_os" = linux-dietlibc
; then
9205 case $cc_basename in
9206 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9209 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9210 && test "$tmp_diet" = no
9212 tmp_addflag
=' $pic_flag'
9213 tmp_sharedflag
='-shared'
9214 case $cc_basename,$host_cpu in
9215 pgcc
*) # Portland Group C compiler
9216 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'
9217 tmp_addflag
=' $pic_flag'
9219 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9220 # Portland Group f77 and f90 compilers
9221 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'
9222 tmp_addflag
=' $pic_flag -Mnomain' ;;
9223 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9224 tmp_addflag
=' -i_dynamic' ;;
9225 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9226 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9227 ifc
* | ifort
*) # Intel Fortran compiler
9228 tmp_addflag
=' -nofor_main' ;;
9229 lf95
*) # Lahey Fortran 8.1
9230 whole_archive_flag_spec
=
9231 tmp_sharedflag
='--shared' ;;
9232 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9233 tmp_sharedflag
='-qmkshrobj'
9235 nvcc
*) # Cuda Compiler Driver 2.2
9236 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'
9237 compiler_needs_object
=yes
9240 case `$CC -V 2>&1 | sed 5q` in
9241 *Sun\ C
*) # Sun C 5.9
9242 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'
9243 compiler_needs_object
=yes
9244 tmp_sharedflag
='-G' ;;
9245 *Sun\ F
*) # Sun Fortran 8.3
9246 tmp_sharedflag
='-G' ;;
9248 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9250 if test "x$supports_anon_versioning" = xyes
; then
9251 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9252 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9253 echo "local: *; };" >> $output_objdir/$libname.ver~
9254 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9257 case $cc_basename in
9258 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9259 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9260 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9261 hardcode_libdir_flag_spec
=
9262 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9263 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9264 if test "x$supports_anon_versioning" = xyes
; then
9265 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9266 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9267 echo "local: *; };" >> $output_objdir/$libname.ver~
9268 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9278 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9279 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9282 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9283 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9288 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9292 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9293 *** create shared libraries on Solaris systems. Therefore, libtool
9294 *** is disabling shared libraries support. We urge you to upgrade GNU
9295 *** binutils to release 2.9.1 or newer. Another option is to modify
9296 *** your PATH or compiler configuration so that the native linker is
9297 *** used, and then restart.
9300 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9301 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9302 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9308 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9309 case `$LD -v 2>&1` in
9310 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9314 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9315 *** reliably create shared libraries on SCO systems. Therefore, libtool
9316 *** is disabling shared libraries support. We urge you to upgrade GNU
9317 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9318 *** your PATH or compiler configuration so that the native linker is
9319 *** used, and then restart.
9324 # For security reasons, it is highly recommended that you always
9325 # use absolute paths for naming shared libraries, and exclude the
9326 # DT_RUNPATH tag from executables and libraries. But doing so
9327 # requires that you compile everything twice, which is a pain.
9328 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9329 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9330 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9331 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9340 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9343 hardcode_shlibpath_var
=no
9347 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9348 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9349 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9356 if test "$ld_shlibs" = no
; then
9358 hardcode_libdir_flag_spec
=
9359 export_dynamic_flag_spec
=
9360 whole_archive_flag_spec
=
9363 # PORTME fill in a description of your system's linker (not GNU ld)
9366 allow_undefined_flag
=unsupported
9367 always_export_symbols
=yes
9368 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'
9369 # Note: this linker hardcodes the directories in LIBPATH if there
9370 # are no directories specified by -L.
9371 hardcode_minus_L
=yes
9372 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9373 # Neither direct hardcoding nor static linking is supported with a
9375 hardcode_direct
=unsupported
9380 if test "$host_cpu" = ia64
; then
9381 # On IA64, the linker does run time linking by default, so we don't
9382 # have to do anything special.
9383 aix_use_runtimelinking
=no
9384 exp_sym_flag
='-Bexport'
9387 # If we're using GNU nm, then we don't want the "-C" option.
9388 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9389 # Also, AIX nm treats weak defined symbols like other global
9390 # defined symbols, whereas GNU nm marks them as "W".
9391 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9392 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'
9394 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'
9396 aix_use_runtimelinking
=no
9398 # Test if we are trying to use run time linking or normal
9399 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9400 # need to do runtime linking.
9401 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9402 for ld_flag
in $LDFLAGS; do
9403 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9404 aix_use_runtimelinking
=yes
9411 exp_sym_flag
='-bexport'
9412 no_entry_flag
='-bnoentry'
9415 # When large executables or shared objects are built, AIX ld can
9416 # have problems creating the table of contents. If linking a library
9417 # or program results in "error TOC overflow" add -mminimal-toc to
9418 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9419 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9423 hardcode_direct_absolute
=yes
9424 hardcode_libdir_separator
=':'
9425 link_all_deplibs
=yes
9426 file_list_spec
='${wl}-f,'
9428 if test "$GCC" = yes; then
9429 case $host_os in aix4.
[012]|aix4.
[012].
*)
9430 # We only want to do this on AIX 4.2 and lower, the check
9431 # below for broken collect2 doesn't work under 4.3+
9432 collect2name
=`${CC} -print-prog-name=collect2`
9433 if test -f "$collect2name" &&
9434 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9436 # We have reworked collect2
9439 # We have old collect2
9440 hardcode_direct
=unsupported
9441 # It fails to find uninstalled libraries when the uninstalled
9442 # path is not listed in the libpath. Setting hardcode_minus_L
9443 # to unsupported forces relinking
9444 hardcode_minus_L
=yes
9445 hardcode_libdir_flag_spec
='-L$libdir'
9446 hardcode_libdir_separator
=
9450 shared_flag
='-shared'
9451 if test "$aix_use_runtimelinking" = yes; then
9452 shared_flag
="$shared_flag "'${wl}-G'
9456 if test "$host_cpu" = ia64
; then
9457 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9458 # chokes on -Wl,-G. The following line is correct:
9461 if test "$aix_use_runtimelinking" = yes; then
9462 shared_flag
='${wl}-G'
9464 shared_flag
='${wl}-bM:SRE'
9469 export_dynamic_flag_spec
='${wl}-bexpall'
9470 # It seems that -bexpall does not export symbols beginning with
9471 # underscore (_), so it is better to generate a list of symbols to export.
9472 always_export_symbols
=yes
9473 if test "$aix_use_runtimelinking" = yes; then
9474 # Warning - without using the other runtime loading flags (-brtl),
9475 # -berok will link without error, but may produce a broken library.
9476 allow_undefined_flag
='-berok'
9477 # Determine the default libpath from the value encoded in an
9479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9490 if ac_fn_c_try_link
"$LINENO"; then :
9492 lt_aix_libpath_sed
='
9493 /Import File Strings/,/^$/ {
9499 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9500 # Check for a 64-bit object if we didn't find anything.
9501 if test -z "$aix_libpath"; then
9502 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9505 rm -f core conftest.err conftest.
$ac_objext \
9506 conftest
$ac_exeext conftest.
$ac_ext
9507 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9509 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9510 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"
9512 if test "$host_cpu" = ia64
; then
9513 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9514 allow_undefined_flag
="-z nodefs"
9515 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"
9517 # Determine the default libpath from the value encoded in an
9519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9520 /* end confdefs.h. */
9530 if ac_fn_c_try_link
"$LINENO"; then :
9532 lt_aix_libpath_sed
='
9533 /Import File Strings/,/^$/ {
9539 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9540 # Check for a 64-bit object if we didn't find anything.
9541 if test -z "$aix_libpath"; then
9542 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9545 rm -f core conftest.err conftest.
$ac_objext \
9546 conftest
$ac_exeext conftest.
$ac_ext
9547 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9549 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9550 # Warning - without using the other run time loading flags,
9551 # -berok will link without error, but may produce a broken library.
9552 no_undefined_flag
=' ${wl}-bernotok'
9553 allow_undefined_flag
=' ${wl}-berok'
9554 if test "$with_gnu_ld" = yes; then
9555 # We only use this code for GNU lds that support --whole-archive.
9556 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9558 # Exported symbols can be pulled into shared objects from archives
9559 whole_archive_flag_spec
='$convenience'
9561 archive_cmds_need_lc
=yes
9562 # This is similar to how AIX traditionally builds its shared libraries.
9563 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'
9571 # see comment about AmigaOS4 .so support
9572 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9573 archive_expsym_cmds
=''
9576 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)'
9577 hardcode_libdir_flag_spec
='-L$libdir'
9578 hardcode_minus_L
=yes
9584 export_dynamic_flag_spec
=-rdynamic
9587 cygwin
* | mingw
* | pw32
* | cegcc
*)
9588 # When not using gcc, we currently assume that we are using
9589 # Microsoft Visual C++.
9590 # hardcode_libdir_flag_spec is actually meaningless, as there is
9591 # no search path for DLLs.
9592 hardcode_libdir_flag_spec
=' '
9593 allow_undefined_flag
=unsupported
9594 # Tell ltmain to make .lib files, not .a files.
9596 # Tell ltmain to make .dll files, not .so files.
9598 # FIXME: Setting linknames here is a bad hack.
9599 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9600 # The linker will automatically build a .lib file if we build a DLL.
9601 old_archive_from_new_cmds
='true'
9602 # FIXME: Should let the user specify the lib program.
9603 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9604 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9605 enable_shared_with_static_runtimes
=yes
9608 darwin
* | rhapsody
*)
9611 archive_cmds_need_lc
=no
9613 hardcode_automatic
=yes
9614 hardcode_shlibpath_var
=unsupported
9615 if test "$lt_cv_ld_force_load" = "yes"; then
9616 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\"`'
9618 whole_archive_flag_spec
=''
9620 link_all_deplibs
=yes
9621 allow_undefined_flag
="$_lt_dar_allow_undefined"
9622 case $cc_basename in
9623 ifort
*) _lt_dar_can_shared
=yes ;;
9624 *) _lt_dar_can_shared
=$GCC ;;
9626 if test "$_lt_dar_can_shared" = "yes"; then
9627 output_verbose_link_cmd
=func_echo_all
9628 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9629 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9630 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}"
9631 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}"
9640 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641 hardcode_libdir_flag_spec
='-L$libdir'
9642 hardcode_shlibpath_var
=no
9645 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9646 # support. Future versions do this automatically, but an explicit c++rt0.o
9647 # does not break anything, and helps significantly (at the cost of a little
9650 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9651 hardcode_libdir_flag_spec
='-R$libdir'
9653 hardcode_shlibpath_var
=no
9656 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9658 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9660 hardcode_minus_L
=yes
9661 hardcode_shlibpath_var
=no
9664 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9665 freebsd
* | dragonfly
*)
9666 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9667 hardcode_libdir_flag_spec
='-R$libdir'
9669 hardcode_shlibpath_var
=no
9673 if test "$GCC" = yes; then
9674 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'
9676 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'
9678 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9679 hardcode_libdir_separator
=:
9682 # hardcode_minus_L: Not really in the search PATH,
9683 # but as the default location of the library.
9684 hardcode_minus_L
=yes
9685 export_dynamic_flag_spec
='${wl}-E'
9689 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9690 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9692 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9694 if test "$with_gnu_ld" = no
; then
9695 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9696 hardcode_libdir_flag_spec_ld
='+b $libdir'
9697 hardcode_libdir_separator
=:
9699 hardcode_direct_absolute
=yes
9700 export_dynamic_flag_spec
='${wl}-E'
9701 # hardcode_minus_L: Not really in the search PATH,
9702 # but as the default location of the library.
9703 hardcode_minus_L
=yes
9708 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9711 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9714 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9717 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9723 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9726 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9730 # Older versions of the 11.00 compiler do not understand -b yet
9731 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9733 $as_echo_n "checking if $CC understands -b... " >&6; }
9734 if ${lt_cv_prog_compiler__b+:} false
; then :
9735 $as_echo_n "(cached) " >&6
9737 lt_cv_prog_compiler__b
=no
9738 save_LDFLAGS
="$LDFLAGS"
9739 LDFLAGS
="$LDFLAGS -b"
9740 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9741 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9742 # The linker can only warn and ignore the option if not recognized
9743 # So say no if there are warnings
9744 if test -s conftest.err
; then
9745 # Append any errors to the config.log.
9746 cat conftest.err
1>&5
9747 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9748 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9749 if diff conftest.exp conftest.er2
>/dev
/null
; then
9750 lt_cv_prog_compiler__b
=yes
9753 lt_cv_prog_compiler__b
=yes
9757 LDFLAGS
="$save_LDFLAGS"
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9761 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9763 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9764 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9766 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9772 if test "$with_gnu_ld" = no
; then
9773 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9774 hardcode_libdir_separator
=:
9779 hardcode_shlibpath_var
=no
9783 hardcode_direct_absolute
=yes
9784 export_dynamic_flag_spec
='${wl}-E'
9786 # hardcode_minus_L: Not really in the search PATH,
9787 # but as the default location of the library.
9788 hardcode_minus_L
=yes
9794 irix5
* | irix6
* | nonstopux
*)
9795 if test "$GCC" = yes; then
9796 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'
9797 # Try to use the -exported_symbol ld option, if it does not
9798 # work, assume that -exports_file does not work either and
9799 # implicitly export all symbols.
9800 save_LDFLAGS
="$LDFLAGS"
9801 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9806 if ac_fn_c_try_link
"$LINENO"; then :
9807 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'
9810 rm -f core conftest.err conftest.
$ac_objext \
9811 conftest
$ac_exeext conftest.
$ac_ext
9812 LDFLAGS
="$save_LDFLAGS"
9814 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'
9815 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'
9817 archive_cmds_need_lc
='no'
9818 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9819 hardcode_libdir_separator
=:
9821 link_all_deplibs
=yes
9825 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9826 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9828 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9830 hardcode_libdir_flag_spec
='-R$libdir'
9832 hardcode_shlibpath_var
=no
9836 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9838 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9839 hardcode_libdir_separator
=:
9840 hardcode_shlibpath_var
=no
9847 if test -f /usr
/libexec
/ld.so
; then
9849 hardcode_shlibpath_var
=no
9850 hardcode_direct_absolute
=yes
9851 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9852 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9853 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9854 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9855 export_dynamic_flag_spec
='${wl}-E'
9858 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9859 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9860 hardcode_libdir_flag_spec
='-R$libdir'
9863 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9864 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9874 hardcode_libdir_flag_spec
='-L$libdir'
9875 hardcode_minus_L
=yes
9876 allow_undefined_flag
=unsupported
9877 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'
9878 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9882 if test "$GCC" = yes; then
9883 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9884 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'
9886 allow_undefined_flag
=' -expect_unresolved \*'
9887 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'
9889 archive_cmds_need_lc
='no'
9890 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9891 hardcode_libdir_separator
=:
9894 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9895 if test "$GCC" = yes; then
9896 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9897 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'
9898 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9900 allow_undefined_flag
=' -expect_unresolved \*'
9901 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'
9902 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~
9903 $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'
9905 # Both c and cxx compiler support -rpath directly
9906 hardcode_libdir_flag_spec
='-rpath $libdir'
9908 archive_cmds_need_lc
='no'
9909 hardcode_libdir_separator
=:
9913 no_undefined_flag
=' -z defs'
9914 if test "$GCC" = yes; then
9916 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9917 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9918 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9920 case `$CC -V 2>&1` in
9923 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9924 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9925 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9929 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9930 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9931 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9935 hardcode_libdir_flag_spec
='-R$libdir'
9936 hardcode_shlibpath_var
=no
9938 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9940 # The compiler driver will combine and reorder linker options,
9941 # but understands `-z linker_flag'. GCC discards it without `$wl',
9942 # but is careful enough not to reorder.
9943 # Supported since Solaris 2.6 (maybe 2.5.1?)
9944 if test "$GCC" = yes; then
9945 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9947 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9951 link_all_deplibs
=yes
9955 if test "x$host_vendor" = xsequent
; then
9956 # Use $CC to link under sequent, because it throws in some extra .o
9957 # files that make .init and .fini sections work.
9958 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9960 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9962 hardcode_libdir_flag_spec
='-L$libdir'
9964 hardcode_minus_L
=yes
9965 hardcode_shlibpath_var
=no
9969 case $host_vendor in
9971 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972 hardcode_direct
=yes # is this really true???
9975 ## LD is ld it makes a PLAMLIB
9976 ## CC just makes a GrossModule.
9977 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9978 reload_cmds
='$CC -r -o $output$reload_objs'
9982 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9983 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9986 runpath_var
='LD_RUN_PATH'
9987 hardcode_shlibpath_var
=no
9991 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9992 hardcode_shlibpath_var
=no
9993 export_dynamic_flag_spec
='-Bexport'
9997 if test -d /usr
/nec
; then
9998 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9999 hardcode_shlibpath_var
=no
10000 runpath_var
=LD_RUN_PATH
10001 hardcode_runpath_var
=yes
10006 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10007 no_undefined_flag
='${wl}-z,text'
10008 archive_cmds_need_lc
=no
10009 hardcode_shlibpath_var
=no
10010 runpath_var
='LD_RUN_PATH'
10012 if test "$GCC" = yes; then
10013 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10014 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10016 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10017 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10021 sysv5
* | sco3.2v5
* | sco5v6
*)
10022 # Note: We can NOT use -z defs as we might desire, because we do not
10023 # link with -lc, and that would cause any symbols used from libc to
10024 # always be unresolved, which means just about no library would
10025 # ever link correctly. If we're not using GNU ld we use -z text
10026 # though, which does catch some bad symbols but isn't as heavy-handed
10028 no_undefined_flag
='${wl}-z,text'
10029 allow_undefined_flag
='${wl}-z,nodefs'
10030 archive_cmds_need_lc
=no
10031 hardcode_shlibpath_var
=no
10032 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10033 hardcode_libdir_separator
=':'
10034 link_all_deplibs
=yes
10035 export_dynamic_flag_spec
='${wl}-Bexport'
10036 runpath_var
='LD_RUN_PATH'
10038 if test "$GCC" = yes; then
10039 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10040 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10042 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10043 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10048 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10049 hardcode_libdir_flag_spec
='-L$libdir'
10050 hardcode_shlibpath_var
=no
10058 if test x
$host_vendor = xsni
; then
10060 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10061 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10068 $as_echo "$ld_shlibs" >&6; }
10069 test "$ld_shlibs" = no
&& can_build_shared
=no
10071 with_gnu_ld
=$with_gnu_ld
10088 # Do we need to explicitly link libc?
10090 case "x$archive_cmds_need_lc" in
10092 # Assume -lc should be added
10093 archive_cmds_need_lc
=yes
10095 if test "$enable_shared" = yes && test "$GCC" = yes; then
10096 case $archive_cmds in
10098 # FIXME: we may have to deal with multi-command sequences.
10101 # Test whether the compiler implicitly links with -lc since on some
10102 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10103 # to ld, don't add -lc before -lgcc.
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10105 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10106 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10107 $as_echo_n "(cached) " >&6
10110 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10113 (eval $ac_compile) 2>&5
10115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10116 test $ac_status = 0; } 2>conftest.err
; then
10119 libobjs
=conftest.
$ac_objext
10121 wl
=$lt_prog_compiler_wl
10122 pic_flag
=$lt_prog_compiler_pic
10128 lt_save_allow_undefined_flag
=$allow_undefined_flag
10129 allow_undefined_flag
=
10130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10131 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10134 test $ac_status = 0; }
10136 lt_cv_archive_cmds_need_lc
=no
10138 lt_cv_archive_cmds_need_lc
=yes
10140 allow_undefined_flag
=$lt_save_allow_undefined_flag
10142 cat conftest.err
1>&5
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10148 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10149 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10313 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10315 if test "$GCC" = yes; then
10317 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10318 *) lt_awk_arg
="/^libraries:/" ;;
10321 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10322 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10324 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10325 case $lt_search_path_spec in
10327 # if the path contains ";" then we assume it to be the separator
10328 # otherwise default to the standard path separator (i.e. ":") - it is
10329 # assumed that no part of a normal pathname contains ";" but that should
10330 # okay in the real world where ";" in dirpaths is itself problematic.
10331 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10334 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10337 # Ok, now we have the path, separated by spaces, we can step through it
10338 # and add multilib dir if necessary.
10339 lt_tmp_lt_search_path_spec
=
10340 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10341 for lt_sys_path
in $lt_search_path_spec; do
10342 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10343 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10345 test -d "$lt_sys_path" && \
10346 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10349 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10350 BEGIN {RS=" "; FS="/|\n";} {
10353 for (lt_i = NF; lt_i > 0; lt_i--) {
10354 if ($lt_i != "" && $lt_i != ".") {
10355 if ($lt_i == "..") {
10358 if (lt_count == 0) {
10359 lt_foo="/" $lt_i lt_foo;
10366 if (lt_foo != "") { lt_freq[lt_foo]++; }
10367 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10369 # AWK program above erroneously prepends '/' to C:/dos/paths
10372 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10373 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10375 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10377 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10379 library_names_spec
=
10380 libname_spec
='lib$name'
10384 postuninstall_cmds
=
10388 shlibpath_overrides_runpath
=unknown
10390 dynamic_linker
="$host_os ld.so"
10391 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10392 need_lib_prefix
=unknown
10393 hardcode_into_libs
=no
10395 # when you set need_version to no, make sure it does not cause -set_version
10396 # flags to be left without arguments
10397 need_version
=unknown
10402 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10403 shlibpath_var
=LIBPATH
10405 # AIX 3 has no versioning support, so we append a major version to the name.
10406 soname_spec
='${libname}${release}${shared_ext}$major'
10413 hardcode_into_libs
=yes
10414 if test "$host_cpu" = ia64
; then
10415 # AIX 5 supports IA64
10416 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10417 shlibpath_var
=LD_LIBRARY_PATH
10419 # With GCC up to 2.95.x, collect2 would create an import file
10420 # for dependence libraries. The import file would start with
10421 # the line `#! .'. This would cause the generated library to
10422 # depend on `.', always an invalid library. This was fixed in
10423 # development snapshots of GCC prior to 3.0.
10425 aix4 | aix4.
[01] | aix4.
[01].
*)
10426 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10428 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10431 can_build_shared
=no
10435 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10436 # soname into executable. Probably we can add versioning support to
10437 # collect2, so additional links can be useful in future.
10438 if test "$aix_use_runtimelinking" = yes; then
10439 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10440 # instead of lib<name>.a to let people know that these are not
10441 # typical AIX shared libraries.
10442 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444 # We preserve .a as extension for shared libraries through AIX4.2
10445 # and later when we are not doing run time linking.
10446 library_names_spec
='${libname}${release}.a $libname.a'
10447 soname_spec
='${libname}${release}${shared_ext}$major'
10449 shlibpath_var
=LIBPATH
10456 # Since July 2007 AmigaOS4 officially supports .so libraries.
10457 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10458 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461 library_names_spec
='$libname.ixlibrary $libname.a'
10462 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10463 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'
10469 library_names_spec
='${libname}${shared_ext}'
10470 dynamic_linker
="$host_os ld.so"
10471 shlibpath_var
=LIBRARY_PATH
10477 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10478 soname_spec
='${libname}${release}${shared_ext}$major'
10479 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10480 shlibpath_var
=LD_LIBRARY_PATH
10481 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10482 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10483 # the default ld.so.conf also contains /usr/contrib/lib and
10484 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10485 # libtool to hard-code these into programs
10488 cygwin
* | mingw
* | pw32
* | cegcc
*)
10489 version_type
=windows
10494 case $GCC,$host_os in
10495 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10496 library_names_spec
='$libname.dll.a'
10497 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10498 postinstall_cmds
='base_file=`basename \${file}`~
10499 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10500 dldir=$destdir/`dirname \$dlpath`~
10501 test -d \$dldir || mkdir -p \$dldir~
10502 $install_prog $dir/$dlname \$dldir/$dlname~
10503 chmod a+x \$dldir/$dlname~
10504 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10505 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10507 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10508 dlpath=$dir/\$dldll~
10510 shlibpath_overrides_runpath
=yes
10514 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10515 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10517 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10520 # MinGW DLLs use traditional 'lib' prefix
10521 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10524 # pw32 DLLs use 'pw' prefix rather than 'lib'
10525 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10531 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10534 dynamic_linker
='Win32 ld.exe'
10535 # FIXME: first we should search . and the directory the executable is in
10539 darwin
* | rhapsody
*)
10540 dynamic_linker
="$host_os dyld"
10541 version_type
=darwin
10544 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10545 soname_spec
='${libname}${release}${major}$shared_ext'
10546 shlibpath_overrides_runpath
=yes
10547 shlibpath_var
=DYLD_LIBRARY_PATH
10548 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10550 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10551 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10558 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10559 soname_spec
='${libname}${release}${shared_ext}$major'
10560 shlibpath_var
=LD_LIBRARY_PATH
10563 freebsd
* | dragonfly
*)
10564 # DragonFly does not have aout. When/if they implement a new
10565 # versioning mechanism, adjust this.
10566 if test -x /usr
/bin
/objformat
; then
10567 objformat
=`/usr/bin/objformat`
10570 freebsd
[23].
*) objformat
=aout
;;
10571 *) objformat
=elf
;;
10574 version_type
=freebsd-
$objformat
10575 case $version_type in
10577 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10582 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10586 shlibpath_var
=LD_LIBRARY_PATH
10589 shlibpath_overrides_runpath
=yes
10591 freebsd3.
[01]* | freebsdelf3.
[01]*)
10592 shlibpath_overrides_runpath
=yes
10593 hardcode_into_libs
=yes
10595 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10596 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10597 shlibpath_overrides_runpath
=no
10598 hardcode_into_libs
=yes
10600 *) # from 4.6 on, and DragonFly
10601 shlibpath_overrides_runpath
=yes
10602 hardcode_into_libs
=yes
10611 dynamic_linker
="$host_os runtime_loader"
10612 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10613 soname_spec
='${libname}${release}${shared_ext}$major'
10614 shlibpath_var
=LIBRARY_PATH
10615 shlibpath_overrides_runpath
=yes
10616 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10617 hardcode_into_libs
=yes
10620 hpux9
* | hpux10
* | hpux11
*)
10621 # Give a soname corresponding to the major version so that dld.sl refuses to
10622 # link against other versions.
10629 hardcode_into_libs
=yes
10630 dynamic_linker
="$host_os dld.so"
10631 shlibpath_var
=LD_LIBRARY_PATH
10632 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10633 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10634 soname_spec
='${libname}${release}${shared_ext}$major'
10635 if test "X$HPUX_IA64_MODE" = X32
; then
10636 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10638 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10640 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10644 hardcode_into_libs
=yes
10645 dynamic_linker
="$host_os dld.sl"
10646 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10647 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10648 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10649 soname_spec
='${libname}${release}${shared_ext}$major'
10650 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10651 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10655 dynamic_linker
="$host_os dld.sl"
10656 shlibpath_var
=SHLIB_PATH
10657 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10658 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659 soname_spec
='${libname}${release}${shared_ext}$major'
10662 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10663 postinstall_cmds
='chmod 555 $lib'
10664 # or fails outright, so override atomically:
10665 install_override_mode
=555
10672 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10673 soname_spec
='${libname}${release}${shared_ext}$major'
10674 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10675 shlibpath_var
=LD_LIBRARY_PATH
10676 shlibpath_overrides_runpath
=no
10677 hardcode_into_libs
=yes
10680 irix5
* | irix6
* | nonstopux
*)
10682 nonstopux
*) version_type
=nonstopux
;;
10684 if test "$lt_cv_prog_gnu_ld" = yes; then
10692 soname_spec
='${libname}${release}${shared_ext}$major'
10693 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10695 irix5
* | nonstopux
*)
10696 libsuff
= shlibsuff
=
10699 case $LD in # libtool.m4 will add one of these switches to LD
10700 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10701 libsuff
= shlibsuff
= libmagic
=32-bit;;
10702 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10703 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10704 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10705 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10706 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10710 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10711 shlibpath_overrides_runpath
=no
10712 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10713 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10714 hardcode_into_libs
=yes
10717 # No shared lib support for Linux oldld, aout, or coff.
10718 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10722 # This must be Linux ELF.
10724 # uclinux* changes (here and below) have been submitted to the libtool
10725 # project, but have not yet been accepted: they are GCC-local changes
10726 # for the time being. (See
10727 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10728 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
10732 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10733 soname_spec
='${libname}${release}${shared_ext}$major'
10734 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10735 shlibpath_var
=LD_LIBRARY_PATH
10736 shlibpath_overrides_runpath
=no
10738 # Some binutils ld are patched to set DT_RUNPATH
10739 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10740 $as_echo_n "(cached) " >&6
10742 lt_cv_shlibpath_overrides_runpath
=no
10743 save_LDFLAGS
=$LDFLAGS
10744 save_libdir
=$libdir
10745 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10746 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h. */
10758 if ac_fn_c_try_link
"$LINENO"; then :
10759 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10760 lt_cv_shlibpath_overrides_runpath
=yes
10763 rm -f core conftest.err conftest.
$ac_objext \
10764 conftest
$ac_exeext conftest.
$ac_ext
10765 LDFLAGS
=$save_LDFLAGS
10766 libdir
=$save_libdir
10770 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10772 # This implies no fast_install, which is unacceptable.
10773 # Some rework will be needed to allow for fast_install
10774 # before this can be enabled.
10775 hardcode_into_libs
=yes
10777 # Append ld.so.conf contents to the search path
10778 if test -f /etc
/ld.so.conf
; then
10779 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' ' '`
10780 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10783 # We used to test for /lib/ld.so.1 and disable shared libraries on
10784 # powerpc, because MkLinux only supported shared libraries with the
10785 # GNU dynamic linker. Since this was broken with cross compilers,
10786 # most powerpc-linux boxes support dynamic linking these days and
10787 # people can always --disable-shared, the test was removed, and we
10788 # assume the GNU/Linux dynamic linker is in use.
10789 dynamic_linker
='GNU/Linux ld.so'
10796 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10797 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10798 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10799 dynamic_linker
='NetBSD (a.out) ld.so'
10801 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10802 soname_spec
='${libname}${release}${shared_ext}$major'
10803 dynamic_linker
='NetBSD ld.elf_so'
10805 shlibpath_var
=LD_LIBRARY_PATH
10806 shlibpath_overrides_runpath
=yes
10807 hardcode_into_libs
=yes
10812 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10813 shlibpath_var
=LD_LIBRARY_PATH
10814 shlibpath_overrides_runpath
=yes
10821 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10822 soname_spec
='${libname}${release}${shared_ext}$major'
10823 shlibpath_var
=LD_LIBRARY_PATH
10824 shlibpath_overrides_runpath
=no
10825 hardcode_into_libs
=yes
10826 dynamic_linker
='ldqnx.so'
10831 sys_lib_dlsearch_path_spec
="/usr/lib"
10833 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10835 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10836 *) need_version
=no
;;
10838 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10839 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10840 shlibpath_var
=LD_LIBRARY_PATH
10841 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10843 openbsd2.
[89] | openbsd2.
[89].
*)
10844 shlibpath_overrides_runpath
=no
10847 shlibpath_overrides_runpath
=yes
10851 shlibpath_overrides_runpath
=yes
10856 libname_spec
='$name'
10859 library_names_spec
='$libname${shared_ext} $libname.a'
10860 dynamic_linker
='OS/2 ld.exe'
10861 shlibpath_var
=LIBPATH
10864 osf3
* | osf4
* | osf5
*)
10868 soname_spec
='${libname}${release}${shared_ext}$major'
10869 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10870 shlibpath_var
=LD_LIBRARY_PATH
10871 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10872 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10883 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884 soname_spec
='${libname}${release}${shared_ext}$major'
10885 shlibpath_var
=LD_LIBRARY_PATH
10886 shlibpath_overrides_runpath
=yes
10887 hardcode_into_libs
=yes
10888 # ldd complains unless libraries are executable
10889 postinstall_cmds
='chmod +x $lib'
10894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10895 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10896 shlibpath_var
=LD_LIBRARY_PATH
10897 shlibpath_overrides_runpath
=yes
10898 if test "$with_gnu_ld" = yes; then
10906 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907 soname_spec
='${libname}${release}${shared_ext}$major'
10908 shlibpath_var
=LD_LIBRARY_PATH
10909 case $host_vendor in
10911 shlibpath_overrides_runpath
=no
10913 runpath_var
=LD_RUN_PATH
10921 shlibpath_overrides_runpath
=no
10922 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10928 if test -d /usr
/nec
;then
10930 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10931 soname_spec
='$libname${shared_ext}.$major'
10932 shlibpath_var
=LD_LIBRARY_PATH
10936 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10937 version_type
=freebsd-elf
10940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10941 soname_spec
='${libname}${release}${shared_ext}$major'
10942 shlibpath_var
=LD_LIBRARY_PATH
10943 shlibpath_overrides_runpath
=yes
10944 hardcode_into_libs
=yes
10945 if test "$with_gnu_ld" = yes; then
10946 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10948 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10951 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10955 sys_lib_dlsearch_path_spec
='/usr/lib'
10959 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10963 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964 shlibpath_var
=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath
=no
10966 hardcode_into_libs
=yes
10971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10972 soname_spec
='${libname}${release}${shared_ext}$major'
10973 shlibpath_var
=LD_LIBRARY_PATH
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10981 $as_echo "$dynamic_linker" >&6; }
10982 test "$dynamic_linker" = no
&& can_build_shared
=no
10984 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10985 if test "$GCC" = yes; then
10986 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10989 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10990 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10992 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10993 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11088 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11090 if test -n "$hardcode_libdir_flag_spec" ||
11091 test -n "$runpath_var" ||
11092 test "X$hardcode_automatic" = "Xyes" ; then
11094 # We can hardcode non-existent directories.
11095 if test "$hardcode_direct" != no
&&
11096 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11097 # have to relink, otherwise we might link with an installed library
11098 # when we should be linking with a yet-to-be-installed one
11099 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11100 test "$hardcode_minus_L" != no
; then
11101 # Linking always hardcodes the temporary library directory.
11102 hardcode_action
=relink
11104 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11105 hardcode_action
=immediate
11108 # We cannot hardcode anything, or else we can only hardcode existing
11110 hardcode_action
=unsupported
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11113 $as_echo "$hardcode_action" >&6; }
11115 if test "$hardcode_action" = relink ||
11116 test "$inherit_rpath" = yes; then
11117 # Fast installation is not supported
11118 enable_fast_install
=no
11119 elif test "$shlibpath_overrides_runpath" = yes ||
11120 test "$enable_shared" = no
; then
11121 # Fast installation is not necessary
11122 enable_fast_install
=needless
11130 if test "x$enable_dlopen" != xyes
; then
11131 enable_dlopen
=unknown
11132 enable_dlopen_self
=unknown
11133 enable_dlopen_self_static
=unknown
11140 lt_cv_dlopen
="load_add_on"
11142 lt_cv_dlopen_self
=yes
11145 mingw
* | pw32
* | cegcc
*)
11146 lt_cv_dlopen
="LoadLibrary"
11151 lt_cv_dlopen
="dlopen"
11156 # if libdl is installed we need to link against it
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11158 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11159 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11160 $as_echo_n "(cached) " >&6
11162 ac_check_lib_save_LIBS
=$LIBS
11164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11165 /* end confdefs.h. */
11167 /* Override any GCC internal prototype to avoid an error.
11168 Use char because int might match the return type of a GCC
11169 builtin and then its argument prototype would still apply. */
11182 if ac_fn_c_try_link
"$LINENO"; then :
11183 ac_cv_lib_dl_dlopen
=yes
11185 ac_cv_lib_dl_dlopen
=no
11187 rm -f core conftest.err conftest.
$ac_objext \
11188 conftest
$ac_exeext conftest.
$ac_ext
11189 LIBS
=$ac_check_lib_save_LIBS
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11192 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11193 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11194 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11197 lt_cv_dlopen
="dyld"
11199 lt_cv_dlopen_self
=yes
11206 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11207 if test "x$ac_cv_func_shl_load" = xyes
; then :
11208 lt_cv_dlopen
="shl_load"
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11211 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11212 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11213 $as_echo_n "(cached) " >&6
11215 ac_check_lib_save_LIBS
=$LIBS
11217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11220 /* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11230 return shl_load ();
11235 if ac_fn_c_try_link
"$LINENO"; then :
11236 ac_cv_lib_dld_shl_load
=yes
11238 ac_cv_lib_dld_shl_load
=no
11240 rm -f core conftest.err conftest.
$ac_objext \
11241 conftest
$ac_exeext conftest.
$ac_ext
11242 LIBS
=$ac_check_lib_save_LIBS
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11245 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11246 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11247 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11249 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11250 if test "x$ac_cv_func_dlopen" = xyes
; then :
11251 lt_cv_dlopen
="dlopen"
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11254 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11255 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11256 $as_echo_n "(cached) " >&6
11258 ac_check_lib_save_LIBS
=$LIBS
11260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11263 /* Override any GCC internal prototype to avoid an error.
11264 Use char because int might match the return type of a GCC
11265 builtin and then its argument prototype would still apply. */
11278 if ac_fn_c_try_link
"$LINENO"; then :
11279 ac_cv_lib_dl_dlopen
=yes
11281 ac_cv_lib_dl_dlopen
=no
11283 rm -f core conftest.err conftest.
$ac_objext \
11284 conftest
$ac_exeext conftest.
$ac_ext
11285 LIBS
=$ac_check_lib_save_LIBS
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11288 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11289 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11290 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11293 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11294 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11295 $as_echo_n "(cached) " >&6
11297 ac_check_lib_save_LIBS
=$LIBS
11298 LIBS
="-lsvld $LIBS"
11299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11302 /* Override any GCC internal prototype to avoid an error.
11303 Use char because int might match the return type of a GCC
11304 builtin and then its argument prototype would still apply. */
11317 if ac_fn_c_try_link
"$LINENO"; then :
11318 ac_cv_lib_svld_dlopen
=yes
11320 ac_cv_lib_svld_dlopen
=no
11322 rm -f core conftest.err conftest.
$ac_objext \
11323 conftest
$ac_exeext conftest.
$ac_ext
11324 LIBS
=$ac_check_lib_save_LIBS
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11327 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11328 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11329 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11332 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11333 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11334 $as_echo_n "(cached) " >&6
11336 ac_check_lib_save_LIBS
=$LIBS
11338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h. */
11341 /* Override any GCC internal prototype to avoid an error.
11342 Use char because int might match the return type of a GCC
11343 builtin and then its argument prototype would still apply. */
11351 return dld_link ();
11356 if ac_fn_c_try_link
"$LINENO"; then :
11357 ac_cv_lib_dld_dld_link
=yes
11359 ac_cv_lib_dld_dld_link
=no
11361 rm -f core conftest.err conftest.
$ac_objext \
11362 conftest
$ac_exeext conftest.
$ac_ext
11363 LIBS
=$ac_check_lib_save_LIBS
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11366 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11367 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11368 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11389 if test "x$lt_cv_dlopen" != xno
; then
11395 case $lt_cv_dlopen in
11397 save_CPPFLAGS
="$CPPFLAGS"
11398 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11400 save_LDFLAGS
="$LDFLAGS"
11401 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11404 LIBS
="$lt_cv_dlopen_libs $LIBS"
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11407 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11408 if ${lt_cv_dlopen_self+:} false
; then :
11409 $as_echo_n "(cached) " >&6
11411 if test "$cross_compiling" = yes; then :
11412 lt_cv_dlopen_self
=cross
11414 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11415 lt_status
=$lt_dlunknown
11416 cat > conftest.
$ac_ext <<_LT_EOF
11417 #line 11417 "configure"
11418 #include "confdefs.h"
11427 # define LT_DLGLOBAL RTLD_GLOBAL
11430 # define LT_DLGLOBAL DL_GLOBAL
11432 # define LT_DLGLOBAL 0
11436 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11437 find out it does not work in some platform. */
11438 #ifndef LT_DLLAZY_OR_NOW
11440 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11443 # define LT_DLLAZY_OR_NOW DL_LAZY
11446 # define LT_DLLAZY_OR_NOW RTLD_NOW
11449 # define LT_DLLAZY_OR_NOW DL_NOW
11451 # define LT_DLLAZY_OR_NOW 0
11458 /* When -fvisbility=hidden is used, assume the code has been annotated
11459 correspondingly for the symbols needed. */
11460 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11461 void fnord () __attribute__((visibility("default")));
11464 void fnord () { int i=42; }
11467 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11468 int status = $lt_dlunknown;
11472 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11475 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11476 else puts (dlerror ());
11478 /* dlclose (self); */
11486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11487 (eval $ac_link) 2>&5
11489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11490 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11491 (.
/conftest
; exit; ) >&5 2>/dev
/null
11493 case x
$lt_status in
11494 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11495 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11496 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11499 # compilation failed
11500 lt_cv_dlopen_self
=no
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11508 $as_echo "$lt_cv_dlopen_self" >&6; }
11510 if test "x$lt_cv_dlopen_self" = xyes
; then
11511 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11513 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11514 if ${lt_cv_dlopen_self_static+:} false
; then :
11515 $as_echo_n "(cached) " >&6
11517 if test "$cross_compiling" = yes; then :
11518 lt_cv_dlopen_self_static
=cross
11520 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11521 lt_status
=$lt_dlunknown
11522 cat > conftest.
$ac_ext <<_LT_EOF
11523 #line 11523 "configure"
11524 #include "confdefs.h"
11533 # define LT_DLGLOBAL RTLD_GLOBAL
11536 # define LT_DLGLOBAL DL_GLOBAL
11538 # define LT_DLGLOBAL 0
11542 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11543 find out it does not work in some platform. */
11544 #ifndef LT_DLLAZY_OR_NOW
11546 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11549 # define LT_DLLAZY_OR_NOW DL_LAZY
11552 # define LT_DLLAZY_OR_NOW RTLD_NOW
11555 # define LT_DLLAZY_OR_NOW DL_NOW
11557 # define LT_DLLAZY_OR_NOW 0
11564 /* When -fvisbility=hidden is used, assume the code has been annotated
11565 correspondingly for the symbols needed. */
11566 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11567 void fnord () __attribute__((visibility("default")));
11570 void fnord () { int i=42; }
11573 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11574 int status = $lt_dlunknown;
11578 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11581 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11582 else puts (dlerror ());
11584 /* dlclose (self); */
11592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11593 (eval $ac_link) 2>&5
11595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11596 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11597 (.
/conftest
; exit; ) >&5 2>/dev
/null
11599 case x
$lt_status in
11600 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11601 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11602 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11605 # compilation failed
11606 lt_cv_dlopen_self_static
=no
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11614 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11617 CPPFLAGS
="$save_CPPFLAGS"
11618 LDFLAGS
="$save_LDFLAGS"
11623 case $lt_cv_dlopen_self in
11624 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11625 *) enable_dlopen_self
=unknown
;;
11628 case $lt_cv_dlopen_self_static in
11629 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11630 *) enable_dlopen_self_static
=unknown
;;
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11653 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11654 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11655 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11656 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11658 $as_echo "yes" >&6; }
11660 # FIXME - insert some real tests, host_os isn't really good enough
11663 if test -n "$STRIP" ; then
11664 striplib
="$STRIP -x"
11665 old_striplib
="$STRIP -S"
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11667 $as_echo "yes" >&6; }
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670 $as_echo "no" >&6; }
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675 $as_echo "no" >&6; }
11691 # Report which library types will actually be built
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11693 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11695 $as_echo "$can_build_shared" >&6; }
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11698 $as_echo_n "checking whether to build shared libraries... " >&6; }
11699 test "$can_build_shared" = "no" && enable_shared
=no
11701 # On AIX, shared libraries and static libraries use the same namespace, and
11702 # are all built from PIC.
11705 test "$enable_shared" = yes && enable_static
=no
11706 if test -n "$RANLIB"; then
11707 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11708 postinstall_cmds
='$RANLIB $lib'
11713 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11714 test "$enable_shared" = yes && enable_static
=no
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11719 $as_echo "$enable_shared" >&6; }
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11722 $as_echo_n "checking whether to build static libraries... " >&6; }
11723 # Make sure either enable_shared or enable_static is yes.
11724 test "$enable_shared" = yes || enable_static
=yes
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11726 $as_echo "$enable_static" >&6; }
11733 ac_cpp
='$CPP $CPPFLAGS'
11734 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11735 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11736 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11752 ac_config_commands
="$ac_config_commands libtool"
11757 # Only expand once:
11764 *-cygwin* |
*-mingw*)
11765 # 'host' will be top-level target in the case of a target lib,
11766 # we must compare to with_cross_host to decide if this is a native
11767 # or cross-compiler and select where to install dlls appropriately.
11768 if test -n "$with_cross_host" &&
11769 test x
"$with_cross_host" != x
"no"; then
11770 lt_host_flags
='-no-undefined -bindir "$(toolexeclibdir)"';
11772 lt_host_flags
='-no-undefined -bindir "$(bindir)"';
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11787 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11788 # Check whether --enable-maintainer-mode was given.
11789 if test "${enable_maintainer_mode+set}" = set; then :
11790 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
11792 USE_MAINTAINER_MODE
=no
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11796 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11797 if test $USE_MAINTAINER_MODE = yes; then
11798 MAINTAINER_MODE_TRUE
=
11799 MAINTAINER_MODE_FALSE
='#'
11801 MAINTAINER_MODE_TRUE
='#'
11802 MAINTAINER_MODE_FALSE
=
11805 MAINT
=$MAINTAINER_MODE_TRUE
11809 # Create a spec file, so that compile/link tests don't fail
11810 test -f libgfortran.spec ||
touch libgfortran.spec
11811 FCFLAGS
="$FCFLAGS -L."
11813 # We need gfortran to compile parts of the library
11814 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11815 #AC_PROG_FC(gfortran)
11816 case `echo $GFORTRAN` in
11820 set dummy
$GFORTRAN; ac_word
=$2
11821 if test -x "$ac_word"; then
11827 ac_ext
=${ac_fc_srcext-f}
11828 ac_compile
='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11829 ac_link
='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11830 ac_compiler_gnu
=$ac_cv_fc_compiler_gnu
11831 if test -n "$ac_tool_prefix"; then
11832 for ac_prog
in gfortran
11834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11835 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837 $as_echo_n "checking for $ac_word... " >&6; }
11838 if ${ac_cv_prog_FC+:} false
; then :
11839 $as_echo_n "(cached) " >&6
11841 if test -n "$FC"; then
11842 ac_cv_prog_FC
="$FC" # Let the user override the test.
11844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11845 for as_dir
in $PATH
11848 test -z "$as_dir" && as_dir
=.
11849 for ac_exec_ext
in '' $ac_executable_extensions; do
11850 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11851 ac_cv_prog_FC
="$ac_tool_prefix$ac_prog"
11852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11862 if test -n "$FC"; then
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11864 $as_echo "$FC" >&6; }
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 $as_echo "no" >&6; }
11871 test -n "$FC" && break
11874 if test -z "$FC"; then
11876 for ac_prog
in gfortran
11878 # Extract the first word of "$ac_prog", so it can be a program name with args.
11879 set dummy
$ac_prog; ac_word
=$2
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11881 $as_echo_n "checking for $ac_word... " >&6; }
11882 if ${ac_cv_prog_ac_ct_FC+:} false
; then :
11883 $as_echo_n "(cached) " >&6
11885 if test -n "$ac_ct_FC"; then
11886 ac_cv_prog_ac_ct_FC
="$ac_ct_FC" # Let the user override the test.
11888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11889 for as_dir
in $PATH
11892 test -z "$as_dir" && as_dir
=.
11893 for ac_exec_ext
in '' $ac_executable_extensions; do
11894 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11895 ac_cv_prog_ac_ct_FC
="$ac_prog"
11896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11905 ac_ct_FC
=$ac_cv_prog_ac_ct_FC
11906 if test -n "$ac_ct_FC"; then
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11908 $as_echo "$ac_ct_FC" >&6; }
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911 $as_echo "no" >&6; }
11915 test -n "$ac_ct_FC" && break
11918 if test "x$ac_ct_FC" = x
; then
11921 case $cross_compiling:$ac_tool_warned in
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11925 ac_tool_warned
=yes ;;
11932 # Provide some information about the compiler.
11933 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11936 for ac_option
in --version -v -V -qversion; do
11937 { { ac_try
="$ac_compiler $ac_option >&5"
11938 case "(($ac_try" in
11939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11940 *) ac_try_echo=$ac_try;;
11942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11943 $as_echo "$ac_try_echo"; } >&5
11944 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11946 if test -s conftest.err; then
11948 ... rest of stderr output deleted ...
11949 10q' conftest.err >conftest.er1
11950 cat conftest.er1 >&5
11952 rm -f conftest.er1 conftest.err
11953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11954 test $ac_status = 0; }
11958 # If we don't use `.F
' as extension, the preprocessor is not run on the
11959 # input file. (Note that this only needs to work for GNU compilers.)
11960 ac_save_ext=$ac_ext
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11963 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11964 if ${ac_cv_fc_compiler_gnu+:} false; then :
11965 $as_echo_n "(cached) " >&6
11967 cat > conftest.$ac_ext <<_ACEOF
11975 if ac_fn_fc_try_compile "$LINENO"; then :
11976 ac_compiler_gnu=yes
11980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11981 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11985 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11986 ac_ext=$ac_save_ext
11987 ac_test_FCFLAGS=${FCFLAGS+set}
11988 ac_save_FCFLAGS=$FCFLAGS
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11991 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11992 if ${ac_cv_prog_fc_g+:} false; then :
11993 $as_echo_n "(cached) " >&6
11996 cat > conftest.$ac_ext <<_ACEOF
12001 if ac_fn_fc_try_compile "$LINENO"; then :
12002 ac_cv_prog_fc_g=yes
12006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12010 $as_echo "$ac_cv_prog_fc_g" >&6; }
12011 if test "$ac_test_FCFLAGS" = set; then
12012 FCFLAGS=$ac_save_FCFLAGS
12013 elif test $ac_cv_prog_fc_g = yes; then
12014 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12020 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12027 if test $ac_compiler_gnu = yes; then
12033 ac_cpp='$CPP $CPPFLAGS'
12034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
12035 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
12036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12038 ac_ext=${ac_fc_srcext-f}
12039 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.
$ac_ext >&5'
12040 ac_link='$FC -o conftest
$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.
$ac_ext $LIBS >&5'
12041 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12044 if test -z "$FC" || test "X$FC" = "Xno"; then
12048 archive_cmds_need_lc_FC=no
12049 allow_undefined_flag_FC=
12050 always_export_symbols_FC=no
12051 archive_expsym_cmds_FC=
12052 export_dynamic_flag_spec_FC=
12053 hardcode_direct_FC=no
12054 hardcode_direct_absolute_FC=no
12055 hardcode_libdir_flag_spec_FC=
12056 hardcode_libdir_flag_spec_ld_FC=
12057 hardcode_libdir_separator_FC=
12058 hardcode_minus_L_FC=no
12059 hardcode_automatic_FC=no
12060 inherit_rpath_FC=no
12062 module_expsym_cmds_FC=
12063 link_all_deplibs_FC=unknown
12064 old_archive_cmds_FC=$old_archive_cmds
12065 reload_flag_FC=$reload_flag
12066 reload_cmds_FC=$reload_cmds
12067 no_undefined_flag_FC=
12068 whole_archive_flag_spec_FC=
12069 enable_shared_with_static_runtimes_FC=no
12071 # Source file extension for fc test sources.
12072 ac_ext=${ac_fc_srcext-f}
12074 # Object file extension for compiled fc test sources.
12078 # No sense in running all these tests if we already determined that
12079 # the FC compiler isn't working. Some variables
(like enable_shared
)
12080 # are currently assumed to apply to all compilers on this platform,
12081 # and will be corrupted by setting them based on a non-working compiler.
12082 if test "$_lt_disable_FC" != yes; then
12083 # Code to be used in simple compile tests
12084 lt_simple_compile_test_code
="\
12090 # Code to be used in simple link tests
12091 lt_simple_link_test_code
="\
12096 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12103 # If no C compiler was specified, use CC.
12106 # If no C compiler flags were specified, use CFLAGS.
12107 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12109 # Allow CC to be a program name with arguments.
12113 # save warnings/boilerplate of simple test code
12114 ac_outfile
=conftest.
$ac_objext
12115 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12116 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12117 _lt_compiler_boilerplate
=`cat conftest.err`
12120 ac_outfile
=conftest.
$ac_objext
12121 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12122 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12123 _lt_linker_boilerplate
=`cat conftest.err`
12127 # Allow CC to be a program name with arguments.
12132 GCC
=$ac_cv_fc_compiler_gnu
12135 for cc_temp
in $compiler""; do
12137 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12138 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12143 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12146 if test -n "$compiler"; then
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12148 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12150 $as_echo "$can_build_shared" >&6; }
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12153 $as_echo_n "checking whether to build shared libraries... " >&6; }
12154 test "$can_build_shared" = "no" && enable_shared
=no
12156 # On AIX, shared libraries and static libraries use the same namespace, and
12157 # are all built from PIC.
12160 test "$enable_shared" = yes && enable_static
=no
12161 if test -n "$RANLIB"; then
12162 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12163 postinstall_cmds
='$RANLIB $lib'
12167 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12168 test "$enable_shared" = yes && enable_static
=no
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12173 $as_echo "$enable_shared" >&6; }
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12176 $as_echo_n "checking whether to build static libraries... " >&6; }
12177 # Make sure either enable_shared or enable_static is yes.
12178 test "$enable_shared" = yes || enable_static
=yes
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12180 $as_echo "$enable_static" >&6; }
12182 GCC_FC
="$ac_cv_fc_compiler_gnu"
12186 ## There is no encapsulation within the following macros, do not change
12187 ## the running order or otherwise move them around unless you know exactly
12188 ## what you are doing...
12189 # Dependencies to place before and after the object being linked:
12191 postdep_objects_FC
=
12194 compiler_lib_search_path_FC
=
12196 cat > conftest.
$ac_ext <<_LT_EOF
12205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12206 (eval $ac_compile) 2>&5
12208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12209 test $ac_status = 0; }; then
12210 # Parse the compiler output and extract the necessary
12211 # objects, libraries and library flags.
12213 # Sentinel used to keep track of whether or not we are before
12214 # the conftest object file.
12215 pre_test_object_deps_done
=no
12217 for p
in `eval "$output_verbose_link_cmd"`; do
12221 # Some compilers place space between "-{L,R}" and the path.
12222 # Remove the space.
12223 if test $p = "-L" ||
12224 test $p = "-R"; then
12231 if test "$pre_test_object_deps_done" = no
; then
12234 # Internal compiler library paths should come after those
12235 # provided the user. The postdeps already come after the
12236 # user supplied libs so there is no need to process them.
12237 if test -z "$compiler_lib_search_path_FC"; then
12238 compiler_lib_search_path_FC
="${prev}${p}"
12240 compiler_lib_search_path_FC
="${compiler_lib_search_path_FC} ${prev}${p}"
12243 # The "-l" case would never come before the object being
12244 # linked, so don't bother handling this case.
12247 if test -z "$postdeps_FC"; then
12248 postdeps_FC
="${prev}${p}"
12250 postdeps_FC
="${postdeps_FC} ${prev}${p}"
12256 # This assumes that the test object file only shows up
12257 # once in the compiler output.
12258 if test "$p" = "conftest.$objext"; then
12259 pre_test_object_deps_done
=yes
12263 if test "$pre_test_object_deps_done" = no
; then
12264 if test -z "$predep_objects_FC"; then
12265 predep_objects_FC
="$p"
12267 predep_objects_FC
="$predep_objects_FC $p"
12270 if test -z "$postdep_objects_FC"; then
12271 postdep_objects_FC
="$p"
12273 postdep_objects_FC
="$postdep_objects_FC $p"
12278 *) ;; # Ignore the rest.
12286 echo "libtool.m4: error: problem compiling FC test program"
12289 $RM -f confest.
$objext
12291 # PORTME: override above test on systems where it is broken
12294 case " $postdeps_FC " in
12295 *" -lc "*) archive_cmds_need_lc_FC
=no
;;
12297 compiler_lib_search_dirs_FC
=
12298 if test -n "${compiler_lib_search_path_FC}"; then
12299 compiler_lib_search_dirs_FC
=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12332 lt_prog_compiler_wl_FC
=
12333 lt_prog_compiler_pic_FC
=
12334 lt_prog_compiler_static_FC
=
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12337 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12339 if test "$GCC" = yes; then
12340 lt_prog_compiler_wl_FC
='-Wl,'
12341 lt_prog_compiler_static_FC
='-static'
12345 # All AIX code is PIC.
12346 if test "$host_cpu" = ia64
; then
12347 # AIX 5 now supports IA64 processor
12348 lt_prog_compiler_static_FC
='-Bstatic'
12350 lt_prog_compiler_pic_FC
='-fPIC'
12356 # see comment about AmigaOS4 .so support
12357 lt_prog_compiler_pic_FC
='-fPIC'
12360 # FIXME: we need at least 68020 code to build shared libraries, but
12361 # adding the `-m68020' flag to GCC prevents building anything better,
12363 lt_prog_compiler_pic_FC
='-m68020 -resident32 -malways-restore-a4'
12368 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12369 # PIC is the default for these OSes.
12372 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12373 # This hack is so that the source file can tell whether it is being
12374 # built for inclusion in a dll (and should export symbols for example).
12375 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12376 # (--disable-auto-import) libraries
12377 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12380 darwin
* | rhapsody
*)
12381 # PIC is the default on this platform
12382 # Common symbols not allowed in MH_DYLIB files
12383 lt_prog_compiler_pic_FC
='-fno-common'
12387 # PIC is the default for Haiku.
12388 # The "-static" flag exists, but is broken.
12389 lt_prog_compiler_static_FC
=
12393 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12394 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12395 # sets the default TLS model and affects inlining.
12401 lt_prog_compiler_pic_FC
='-fPIC'
12407 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12408 # Instead, we relocate shared libraries at runtime.
12412 # Just because we use GCC doesn't mean we suddenly get shared libraries
12413 # on systems that don't support them.
12414 lt_prog_compiler_can_build_shared_FC
=no
12419 # QNX uses GNU C++, but need to define -shared option too, otherwise
12420 # it will coredump.
12421 lt_prog_compiler_pic_FC
='-fPIC -shared'
12425 if test -d /usr
/nec
; then
12426 lt_prog_compiler_pic_FC
=-Kconform_pic
12431 lt_prog_compiler_pic_FC
='-fPIC'
12435 case $cc_basename in
12436 nvcc
*) # Cuda Compiler Driver 2.2
12437 lt_prog_compiler_wl_FC
='-Xlinker '
12438 lt_prog_compiler_pic_FC
='-Xcompiler -fPIC'
12442 # PORTME Check for flag to pass linker flags through the system compiler.
12445 lt_prog_compiler_wl_FC
='-Wl,'
12446 if test "$host_cpu" = ia64
; then
12447 # AIX 5 now supports IA64 processor
12448 lt_prog_compiler_static_FC
='-Bstatic'
12450 lt_prog_compiler_static_FC
='-bnso -bI:/lib/syscalls.exp'
12454 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12455 # This hack is so that the source file can tell whether it is being
12456 # built for inclusion in a dll (and should export symbols for example).
12457 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12460 hpux9
* | hpux10
* | hpux11
*)
12461 lt_prog_compiler_wl_FC
='-Wl,'
12462 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12463 # not for PA HP-UX.
12469 lt_prog_compiler_pic_FC
='+Z'
12472 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12473 lt_prog_compiler_static_FC
='${wl}-a ${wl}archive'
12476 irix5
* | irix6
* | nonstopux
*)
12477 lt_prog_compiler_wl_FC
='-Wl,'
12478 # PIC (with -KPIC) is the default.
12479 lt_prog_compiler_static_FC
='-non_shared'
12482 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12483 case $cc_basename in
12484 # old Intel for x86_64 which still supported -KPIC.
12486 lt_prog_compiler_wl_FC
='-Wl,'
12487 lt_prog_compiler_pic_FC
='-KPIC'
12488 lt_prog_compiler_static_FC
='-static'
12490 # icc used to be incompatible with GCC.
12491 # ICC 10 doesn't accept -KPIC any more.
12493 lt_prog_compiler_wl_FC
='-Wl,'
12494 lt_prog_compiler_pic_FC
='-fPIC'
12495 lt_prog_compiler_static_FC
='-static'
12497 # Lahey Fortran 8.1.
12499 lt_prog_compiler_wl_FC
='-Wl,'
12500 lt_prog_compiler_pic_FC
='--shared'
12501 lt_prog_compiler_static_FC
='--static'
12503 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12504 # Portland Group compilers (*not* the Pentium gcc compiler,
12505 # which looks to be a dead project)
12506 lt_prog_compiler_wl_FC
='-Wl,'
12507 lt_prog_compiler_pic_FC
='-fpic'
12508 lt_prog_compiler_static_FC
='-Bstatic'
12511 lt_prog_compiler_wl_FC
='-Wl,'
12512 # All Alpha code is PIC.
12513 lt_prog_compiler_static_FC
='-non_shared'
12515 xl
* | bgxl
* | bgf
* | mpixl
*)
12516 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12517 lt_prog_compiler_wl_FC
='-Wl,'
12518 lt_prog_compiler_pic_FC
='-qpic'
12519 lt_prog_compiler_static_FC
='-qstaticlink'
12522 case `$CC -V 2>&1 | sed 5q` in
12523 *Sun\ F
* |
*Sun
*Fortran
*)
12524 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12525 lt_prog_compiler_pic_FC
='-KPIC'
12526 lt_prog_compiler_static_FC
='-Bstatic'
12527 lt_prog_compiler_wl_FC
=''
12531 lt_prog_compiler_pic_FC
='-KPIC'
12532 lt_prog_compiler_static_FC
='-Bstatic'
12533 lt_prog_compiler_wl_FC
='-Wl,'
12541 lt_prog_compiler_pic_FC
='-KPIC'
12542 lt_prog_compiler_static_FC
='-Bstatic'
12546 # QNX uses GNU C++, but need to define -shared option too, otherwise
12547 # it will coredump.
12548 lt_prog_compiler_pic_FC
='-fPIC -shared'
12551 osf3
* | osf4
* | osf5
*)
12552 lt_prog_compiler_wl_FC
='-Wl,'
12553 # All OSF/1 code is PIC.
12554 lt_prog_compiler_static_FC
='-non_shared'
12558 lt_prog_compiler_static_FC
='-non_shared'
12562 lt_prog_compiler_pic_FC
='-KPIC'
12563 lt_prog_compiler_static_FC
='-Bstatic'
12564 case $cc_basename in
12565 f77
* | f90
* | f95
*)
12566 lt_prog_compiler_wl_FC
='-Qoption ld ';;
12568 lt_prog_compiler_wl_FC
='-Wl,';;
12573 lt_prog_compiler_wl_FC
='-Qoption ld '
12574 lt_prog_compiler_pic_FC
='-PIC'
12575 lt_prog_compiler_static_FC
='-Bstatic'
12578 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12579 lt_prog_compiler_wl_FC
='-Wl,'
12580 lt_prog_compiler_pic_FC
='-KPIC'
12581 lt_prog_compiler_static_FC
='-Bstatic'
12585 if test -d /usr
/nec
;then
12586 lt_prog_compiler_pic_FC
='-Kconform_pic'
12587 lt_prog_compiler_static_FC
='-Bstatic'
12591 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12592 lt_prog_compiler_wl_FC
='-Wl,'
12593 lt_prog_compiler_pic_FC
='-KPIC'
12594 lt_prog_compiler_static_FC
='-Bstatic'
12598 lt_prog_compiler_wl_FC
='-Wl,'
12599 lt_prog_compiler_can_build_shared_FC
=no
12603 lt_prog_compiler_pic_FC
='-pic'
12604 lt_prog_compiler_static_FC
='-Bstatic'
12608 lt_prog_compiler_can_build_shared_FC
=no
12614 # For platforms which do not support PIC, -DPIC is meaningless:
12616 lt_prog_compiler_pic_FC
=
12619 lt_prog_compiler_pic_FC
="$lt_prog_compiler_pic_FC"
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12623 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12628 # Check to make sure the PIC flag actually works.
12630 if test -n "$lt_prog_compiler_pic_FC"; then
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12632 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12633 if ${lt_cv_prog_compiler_pic_works_FC+:} false
; then :
12634 $as_echo_n "(cached) " >&6
12636 lt_cv_prog_compiler_pic_works_FC
=no
12637 ac_outfile
=conftest.
$ac_objext
12638 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12639 lt_compiler_flag
="$lt_prog_compiler_pic_FC"
12640 # Insert the option either (1) after the last *FLAGS variable, or
12641 # (2) before a word containing "conftest.", or (3) at the end.
12642 # Note that $ac_compile itself does not contain backslashes and begins
12643 # with a dollar sign (not a hyphen), so the echo should work correctly.
12644 # The option is referenced via a variable to avoid confusing sed.
12645 lt_compile
=`echo "$ac_compile" | $SED \
12646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12648 -e 's:$: $lt_compiler_flag:'`
12649 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12650 (eval "$lt_compile" 2>conftest.err
)
12652 cat conftest.err
>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 if (exit $ac_status) && test -s "$ac_outfile"; then
12655 # The compiler can only warn and ignore the option if not recognized
12656 # So say no if there are warnings other than the usual output.
12657 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12658 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12659 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12660 lt_cv_prog_compiler_pic_works_FC
=yes
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12667 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12669 if test x
"$lt_cv_prog_compiler_pic_works_FC" = xyes
; then
12670 case $lt_prog_compiler_pic_FC in
12672 *) lt_prog_compiler_pic_FC
=" $lt_prog_compiler_pic_FC" ;;
12675 lt_prog_compiler_pic_FC
=
12676 lt_prog_compiler_can_build_shared_FC
=no
12684 # Check to make sure the static flag actually works.
12686 wl
=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_FC\"
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12688 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12689 if ${lt_cv_prog_compiler_static_works_FC+:} false
; then :
12690 $as_echo_n "(cached) " >&6
12692 lt_cv_prog_compiler_static_works_FC
=no
12693 save_LDFLAGS
="$LDFLAGS"
12694 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12695 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12696 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12697 # The linker can only warn and ignore the option if not recognized
12698 # So say no if there are warnings
12699 if test -s conftest.err
; then
12700 # Append any errors to the config.log.
12701 cat conftest.err
1>&5
12702 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12703 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12704 if diff conftest.exp conftest.er2
>/dev
/null
; then
12705 lt_cv_prog_compiler_static_works_FC
=yes
12708 lt_cv_prog_compiler_static_works_FC
=yes
12712 LDFLAGS
="$save_LDFLAGS"
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12716 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12718 if test x
"$lt_cv_prog_compiler_static_works_FC" = xyes
; then
12721 lt_prog_compiler_static_FC
=
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12728 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12729 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12730 $as_echo_n "(cached) " >&6
12732 lt_cv_prog_compiler_c_o_FC
=no
12733 $RM -r conftest
2>/dev
/null
12737 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12739 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12740 # Insert the option either (1) after the last *FLAGS variable, or
12741 # (2) before a word containing "conftest.", or (3) at the end.
12742 # Note that $ac_compile itself does not contain backslashes and begins
12743 # with a dollar sign (not a hyphen), so the echo should work correctly.
12744 lt_compile
=`echo "$ac_compile" | $SED \
12745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12747 -e 's:$: $lt_compiler_flag:'`
12748 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12749 (eval "$lt_compile" 2>out
/conftest.err
)
12751 cat out
/conftest.err
>&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12755 # The compiler can only warn and ignore the option if not recognized
12756 # So say no if there are warnings
12757 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12758 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12759 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12760 lt_cv_prog_compiler_c_o_FC
=yes
12765 # SGI C++ compiler will create directory out/ii_files/ for
12766 # template instantiation
12767 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12768 $RM out
/* && rmdir out
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12775 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12780 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12781 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12782 $as_echo_n "(cached) " >&6
12784 lt_cv_prog_compiler_c_o_FC
=no
12785 $RM -r conftest
2>/dev
/null
12789 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12791 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12792 # Insert the option either (1) after the last *FLAGS variable, or
12793 # (2) before a word containing "conftest.", or (3) at the end.
12794 # Note that $ac_compile itself does not contain backslashes and begins
12795 # with a dollar sign (not a hyphen), so the echo should work correctly.
12796 lt_compile
=`echo "$ac_compile" | $SED \
12797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12799 -e 's:$: $lt_compiler_flag:'`
12800 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12801 (eval "$lt_compile" 2>out
/conftest.err
)
12803 cat out
/conftest.err
>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12807 # The compiler can only warn and ignore the option if not recognized
12808 # So say no if there are warnings
12809 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12810 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12811 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12812 lt_cv_prog_compiler_c_o_FC
=yes
12817 # SGI C++ compiler will create directory out/ii_files/ for
12818 # template instantiation
12819 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12820 $RM out
/* && rmdir out
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12827 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12832 hard_links
="nottested"
12833 if test "$lt_cv_prog_compiler_c_o_FC" = no
&& test "$need_locks" != no
; then
12834 # do not overwrite the value of need_locks provided by the user
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12836 $as_echo_n "checking if we can lock with hard links... " >&6; }
12839 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12841 ln conftest.a conftest.b
2>&5 || hard_links
=no
12842 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12844 $as_echo "$hard_links" >&6; }
12845 if test "$hard_links" = no
; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12847 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12857 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12860 allow_undefined_flag_FC
=
12861 always_export_symbols_FC
=no
12863 archive_expsym_cmds_FC
=
12864 compiler_needs_object_FC
=no
12865 enable_shared_with_static_runtimes_FC
=no
12866 export_dynamic_flag_spec_FC
=
12867 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12868 hardcode_automatic_FC
=no
12869 hardcode_direct_FC
=no
12870 hardcode_direct_absolute_FC
=no
12871 hardcode_libdir_flag_spec_FC
=
12872 hardcode_libdir_flag_spec_ld_FC
=
12873 hardcode_libdir_separator_FC
=
12874 hardcode_minus_L_FC
=no
12875 hardcode_shlibpath_var_FC
=unsupported
12876 inherit_rpath_FC
=no
12877 link_all_deplibs_FC
=unknown
12879 module_expsym_cmds_FC
=
12880 old_archive_from_new_cmds_FC
=
12881 old_archive_from_expsyms_cmds_FC
=
12882 thread_safe_flag_spec_FC
=
12883 whole_archive_flag_spec_FC
=
12884 # include_expsyms should be a list of space-separated symbols to be *always*
12885 # included in the symbol list
12886 include_expsyms_FC
=
12887 # exclude_expsyms can be an extended regexp of symbols to exclude
12888 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12889 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12890 # as well as any symbol that contains `d'.
12891 exclude_expsyms_FC
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12892 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12893 # platforms (ab)use it in PIC code, but their linkers get confused if
12894 # the symbol is explicitly referenced. Since portable code cannot
12895 # rely on this symbol name, it's probably fine to never include it in
12896 # preloaded symbol tables.
12897 # Exclude shared library initialization/finalization symbols.
12898 extract_expsyms_cmds
=
12901 cygwin
* | mingw
* | pw32
* | cegcc
*)
12902 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12903 # When not using gcc, we currently assume that we are using
12904 # Microsoft Visual C++.
12905 if test "$GCC" != yes; then
12910 # we just hope/assume this is gcc and not c89 (= MSVC++)
12920 # On some targets, GNU ld is compatible enough with the native linker
12921 # that we're better off using the native interface for both.
12922 lt_use_gnu_ld_interface
=no
12923 if test "$with_gnu_ld" = yes; then
12926 # The AIX port of GNU ld has always aspired to compatibility
12927 # with the native linker. However, as the warning in the GNU ld
12928 # block says, versions before 2.19.5* couldn't really create working
12929 # shared libraries, regardless of the interface used.
12930 case `$LD -v 2>&1` in
12931 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12932 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12933 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12935 lt_use_gnu_ld_interface
=yes
12940 lt_use_gnu_ld_interface
=yes
12945 if test "$lt_use_gnu_ld_interface" = yes; then
12946 # If archive_cmds runs LD, not CC, wlarc should be empty
12949 # Set some defaults for GNU ld with shared library support. These
12950 # are reset later if shared libraries are not supported. Putting them
12951 # here allows them to be overridden if necessary.
12952 runpath_var
=LD_RUN_PATH
12953 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12954 export_dynamic_flag_spec_FC
='${wl}--export-dynamic'
12955 # ancient GNU ld didn't support --whole-archive et. al.
12956 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12957 whole_archive_flag_spec_FC
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12959 whole_archive_flag_spec_FC
=
12961 supports_anon_versioning
=no
12962 case `$LD -v 2>&1` in
12963 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12964 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12965 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12966 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12967 *\
2.11.
*) ;; # other 2.11 versions
12968 *) supports_anon_versioning
=yes ;;
12971 # See if GNU ld supports shared libraries.
12974 # On AIX/PPC, the GNU linker is very broken
12975 if test "$host_cpu" != ia64
; then
12979 *** Warning: the GNU linker, at least up to release 2.19, is reported
12980 *** to be unable to reliably create shared libraries on AIX.
12981 *** Therefore, libtool is disabling shared libraries support. If you
12982 *** really care for shared libraries, you may want to install binutils
12983 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12984 *** You will then need to restart the configuration process.
12993 # see comment about AmigaOS4 .so support
12994 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12995 archive_expsym_cmds_FC
=''
12998 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)'
12999 hardcode_libdir_flag_spec_FC
='-L$libdir'
13000 hardcode_minus_L_FC
=yes
13006 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13007 allow_undefined_flag_FC
=unsupported
13008 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13009 # support --undefined. This deserves some investigation. FIXME
13010 archive_cmds_FC
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13016 cygwin
* | mingw
* | pw32
* | cegcc
*)
13017 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13018 # as there is no search path for DLLs.
13019 hardcode_libdir_flag_spec_FC
='-L$libdir'
13020 export_dynamic_flag_spec_FC
='${wl}--export-all-symbols'
13021 allow_undefined_flag_FC
=unsupported
13022 always_export_symbols_FC
=no
13023 enable_shared_with_static_runtimes_FC
=yes
13024 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13026 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
13027 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13028 # If the export-symbols file already is a .def file (1st line
13029 # is EXPORTS), use it as is; otherwise, prepend...
13030 archive_expsym_cmds_FC
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13031 cp $export_symbols $output_objdir/$soname.def;
13033 echo EXPORTS > $output_objdir/$soname.def;
13034 cat $export_symbols >> $output_objdir/$soname.def;
13036 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13043 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13044 link_all_deplibs_FC
=yes
13048 hardcode_direct_FC
=no
13049 hardcode_shlibpath_var_FC
=no
13050 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13051 export_dynamic_flag_spec_FC
='${wl}-E'
13052 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13053 # Instead, shared libraries are loaded at an image base (0x10000000 by
13054 # default) and relocated if they conflict, which is a slow very memory
13055 # consuming and fragmenting process. To avoid this, we pick a random,
13056 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13057 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13058 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'
13059 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'
13062 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
13064 if test "$host_os" = linux-dietlibc
; then
13065 case $cc_basename in
13066 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
13069 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
13070 && test "$tmp_diet" = no
13072 tmp_addflag
=' $pic_flag'
13073 tmp_sharedflag
='-shared'
13074 case $cc_basename,$host_cpu in
13075 pgcc
*) # Portland Group C compiler
13076 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'
13077 tmp_addflag
=' $pic_flag'
13079 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
13080 # Portland Group f77 and f90 compilers
13081 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'
13082 tmp_addflag
=' $pic_flag -Mnomain' ;;
13083 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
13084 tmp_addflag
=' -i_dynamic' ;;
13085 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
13086 tmp_addflag
=' -i_dynamic -nofor_main' ;;
13087 ifc
* | ifort
*) # Intel Fortran compiler
13088 tmp_addflag
=' -nofor_main' ;;
13089 lf95
*) # Lahey Fortran 8.1
13090 whole_archive_flag_spec_FC
=
13091 tmp_sharedflag
='--shared' ;;
13092 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13093 tmp_sharedflag
='-qmkshrobj'
13095 nvcc
*) # Cuda Compiler Driver 2.2
13096 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'
13097 compiler_needs_object_FC
=yes
13100 case `$CC -V 2>&1 | sed 5q` in
13101 *Sun\ C
*) # Sun C 5.9
13102 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'
13103 compiler_needs_object_FC
=yes
13104 tmp_sharedflag
='-G' ;;
13105 *Sun\ F
*) # Sun Fortran 8.3
13106 tmp_sharedflag
='-G' ;;
13108 archive_cmds_FC
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13110 if test "x$supports_anon_versioning" = xyes
; then
13111 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13112 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13113 echo "local: *; };" >> $output_objdir/$libname.ver~
13114 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13117 case $cc_basename in
13118 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
13119 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13120 whole_archive_flag_spec_FC
='--whole-archive$convenience --no-whole-archive'
13121 hardcode_libdir_flag_spec_FC
=
13122 hardcode_libdir_flag_spec_ld_FC
='-rpath $libdir'
13123 archive_cmds_FC
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13124 if test "x$supports_anon_versioning" = xyes
; then
13125 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13126 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13127 echo "local: *; };" >> $output_objdir/$libname.ver~
13128 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13138 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13139 archive_cmds_FC
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13142 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13143 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13148 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
13152 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13153 *** create shared libraries on Solaris systems. Therefore, libtool
13154 *** is disabling shared libraries support. We urge you to upgrade GNU
13155 *** binutils to release 2.9.1 or newer. Another option is to modify
13156 *** your PATH or compiler configuration so that the native linker is
13157 *** used, and then restart.
13160 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13161 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13162 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13168 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
13169 case `$LD -v 2>&1` in
13170 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
13174 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13175 *** reliably create shared libraries on SCO systems. Therefore, libtool
13176 *** is disabling shared libraries support. We urge you to upgrade GNU
13177 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13178 *** your PATH or compiler configuration so that the native linker is
13179 *** used, and then restart.
13184 # For security reasons, it is highly recommended that you always
13185 # use absolute paths for naming shared libraries, and exclude the
13186 # DT_RUNPATH tag from executables and libraries. But doing so
13187 # requires that you compile everything twice, which is a pain.
13188 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13189 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13190 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13191 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13200 archive_cmds_FC
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13202 hardcode_direct_FC
=yes
13203 hardcode_shlibpath_var_FC
=no
13207 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13208 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13209 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13216 if test "$ld_shlibs_FC" = no
; then
13218 hardcode_libdir_flag_spec_FC
=
13219 export_dynamic_flag_spec_FC
=
13220 whole_archive_flag_spec_FC
=
13223 # PORTME fill in a description of your system's linker (not GNU ld)
13226 allow_undefined_flag_FC
=unsupported
13227 always_export_symbols_FC
=yes
13228 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'
13229 # Note: this linker hardcodes the directories in LIBPATH if there
13230 # are no directories specified by -L.
13231 hardcode_minus_L_FC
=yes
13232 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13233 # Neither direct hardcoding nor static linking is supported with a
13235 hardcode_direct_FC
=unsupported
13240 if test "$host_cpu" = ia64
; then
13241 # On IA64, the linker does run time linking by default, so we don't
13242 # have to do anything special.
13243 aix_use_runtimelinking
=no
13244 exp_sym_flag
='-Bexport'
13247 # If we're using GNU nm, then we don't want the "-C" option.
13248 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13249 # Also, AIX nm treats weak defined symbols like other global
13250 # defined symbols, whereas GNU nm marks them as "W".
13251 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13252 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'
13254 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'
13256 aix_use_runtimelinking
=no
13258 # Test if we are trying to use run time linking or normal
13259 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13260 # need to do runtime linking.
13261 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
13262 for ld_flag
in $LDFLAGS; do
13263 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13264 aix_use_runtimelinking
=yes
13271 exp_sym_flag
='-bexport'
13272 no_entry_flag
='-bnoentry'
13275 # When large executables or shared objects are built, AIX ld can
13276 # have problems creating the table of contents. If linking a library
13277 # or program results in "error TOC overflow" add -mminimal-toc to
13278 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13279 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13282 hardcode_direct_FC
=yes
13283 hardcode_direct_absolute_FC
=yes
13284 hardcode_libdir_separator_FC
=':'
13285 link_all_deplibs_FC
=yes
13286 file_list_spec_FC
='${wl}-f,'
13288 if test "$GCC" = yes; then
13289 case $host_os in aix4.
[012]|aix4.
[012].
*)
13290 # We only want to do this on AIX 4.2 and lower, the check
13291 # below for broken collect2 doesn't work under 4.3+
13292 collect2name
=`${CC} -print-prog-name=collect2`
13293 if test -f "$collect2name" &&
13294 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13296 # We have reworked collect2
13299 # We have old collect2
13300 hardcode_direct_FC
=unsupported
13301 # It fails to find uninstalled libraries when the uninstalled
13302 # path is not listed in the libpath. Setting hardcode_minus_L
13303 # to unsupported forces relinking
13304 hardcode_minus_L_FC
=yes
13305 hardcode_libdir_flag_spec_FC
='-L$libdir'
13306 hardcode_libdir_separator_FC
=
13310 shared_flag
='-shared'
13311 if test "$aix_use_runtimelinking" = yes; then
13312 shared_flag
="$shared_flag "'${wl}-G'
13316 if test "$host_cpu" = ia64
; then
13317 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13318 # chokes on -Wl,-G. The following line is correct:
13321 if test "$aix_use_runtimelinking" = yes; then
13322 shared_flag
='${wl}-G'
13324 shared_flag
='${wl}-bM:SRE'
13329 export_dynamic_flag_spec_FC
='${wl}-bexpall'
13330 # It seems that -bexpall does not export symbols beginning with
13331 # underscore (_), so it is better to generate a list of symbols to export.
13332 always_export_symbols_FC
=yes
13333 if test "$aix_use_runtimelinking" = yes; then
13334 # Warning - without using the other runtime loading flags (-brtl),
13335 # -berok will link without error, but may produce a broken library.
13336 allow_undefined_flag_FC
='-berok'
13337 # Determine the default libpath from the value encoded in an
13338 # empty executable.
13339 cat > conftest.
$ac_ext <<_ACEOF
13344 if ac_fn_fc_try_link
"$LINENO"; then :
13346 lt_aix_libpath_sed
='
13347 /Import File Strings/,/^$/ {
13353 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13354 # Check for a 64-bit object if we didn't find anything.
13355 if test -z "$aix_libpath"; then
13356 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13359 rm -f core conftest.err conftest.
$ac_objext \
13360 conftest
$ac_exeext conftest.
$ac_ext
13361 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13363 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13364 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"
13366 if test "$host_cpu" = ia64
; then
13367 hardcode_libdir_flag_spec_FC
='${wl}-R $libdir:/usr/lib:/lib'
13368 allow_undefined_flag_FC
="-z nodefs"
13369 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"
13371 # Determine the default libpath from the value encoded in an
13372 # empty executable.
13373 cat > conftest.
$ac_ext <<_ACEOF
13378 if ac_fn_fc_try_link
"$LINENO"; then :
13380 lt_aix_libpath_sed
='
13381 /Import File Strings/,/^$/ {
13387 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13388 # Check for a 64-bit object if we didn't find anything.
13389 if test -z "$aix_libpath"; then
13390 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13393 rm -f core conftest.err conftest.
$ac_objext \
13394 conftest
$ac_exeext conftest.
$ac_ext
13395 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13397 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13398 # Warning - without using the other run time loading flags,
13399 # -berok will link without error, but may produce a broken library.
13400 no_undefined_flag_FC
=' ${wl}-bernotok'
13401 allow_undefined_flag_FC
=' ${wl}-berok'
13402 if test "$with_gnu_ld" = yes; then
13403 # We only use this code for GNU lds that support --whole-archive.
13404 whole_archive_flag_spec_FC
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13406 # Exported symbols can be pulled into shared objects from archives
13407 whole_archive_flag_spec_FC
='$convenience'
13409 archive_cmds_need_lc_FC
=yes
13410 # This is similar to how AIX traditionally builds its shared libraries.
13411 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'
13419 # see comment about AmigaOS4 .so support
13420 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13421 archive_expsym_cmds_FC
=''
13424 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)'
13425 hardcode_libdir_flag_spec_FC
='-L$libdir'
13426 hardcode_minus_L_FC
=yes
13432 export_dynamic_flag_spec_FC
=-rdynamic
13435 cygwin
* | mingw
* | pw32
* | cegcc
*)
13436 # When not using gcc, we currently assume that we are using
13437 # Microsoft Visual C++.
13438 # hardcode_libdir_flag_spec is actually meaningless, as there is
13439 # no search path for DLLs.
13440 hardcode_libdir_flag_spec_FC
=' '
13441 allow_undefined_flag_FC
=unsupported
13442 # Tell ltmain to make .lib files, not .a files.
13444 # Tell ltmain to make .dll files, not .so files.
13446 # FIXME: Setting linknames here is a bad hack.
13447 archive_cmds_FC
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13448 # The linker will automatically build a .lib file if we build a DLL.
13449 old_archive_from_new_cmds_FC
='true'
13450 # FIXME: Should let the user specify the lib program.
13451 old_archive_cmds_FC
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13452 fix_srcfile_path_FC
='`cygpath -w "$srcfile"`'
13453 enable_shared_with_static_runtimes_FC
=yes
13456 darwin
* | rhapsody
*)
13459 archive_cmds_need_lc_FC
=no
13460 hardcode_direct_FC
=no
13461 hardcode_automatic_FC
=yes
13462 hardcode_shlibpath_var_FC
=unsupported
13463 if test "$lt_cv_ld_force_load" = "yes"; then
13464 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\"`'
13466 whole_archive_flag_spec_FC
=''
13468 link_all_deplibs_FC
=yes
13469 allow_undefined_flag_FC
="$_lt_dar_allow_undefined"
13470 case $cc_basename in
13471 ifort
*) _lt_dar_can_shared
=yes ;;
13472 *) _lt_dar_can_shared
=$GCC ;;
13474 if test "$_lt_dar_can_shared" = "yes"; then
13475 output_verbose_link_cmd
=func_echo_all
13476 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}"
13477 module_cmds_FC
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13478 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}"
13479 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}"
13488 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13489 hardcode_libdir_flag_spec_FC
='-L$libdir'
13490 hardcode_shlibpath_var_FC
=no
13493 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13494 # support. Future versions do this automatically, but an explicit c++rt0.o
13495 # does not break anything, and helps significantly (at the cost of a little
13498 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13499 hardcode_libdir_flag_spec_FC
='-R$libdir'
13500 hardcode_direct_FC
=yes
13501 hardcode_shlibpath_var_FC
=no
13504 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13506 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13507 hardcode_direct_FC
=yes
13508 hardcode_minus_L_FC
=yes
13509 hardcode_shlibpath_var_FC
=no
13512 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13513 freebsd
* | dragonfly
*)
13514 archive_cmds_FC
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13515 hardcode_libdir_flag_spec_FC
='-R$libdir'
13516 hardcode_direct_FC
=yes
13517 hardcode_shlibpath_var_FC
=no
13521 if test "$GCC" = yes; then
13522 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'
13524 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'
13526 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13527 hardcode_libdir_separator_FC
=:
13528 hardcode_direct_FC
=yes
13530 # hardcode_minus_L: Not really in the search PATH,
13531 # but as the default location of the library.
13532 hardcode_minus_L_FC
=yes
13533 export_dynamic_flag_spec_FC
='${wl}-E'
13537 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13538 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13540 archive_cmds_FC
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13542 if test "$with_gnu_ld" = no
; then
13543 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13544 hardcode_libdir_flag_spec_ld_FC
='+b $libdir'
13545 hardcode_libdir_separator_FC
=:
13546 hardcode_direct_FC
=yes
13547 hardcode_direct_absolute_FC
=yes
13548 export_dynamic_flag_spec_FC
='${wl}-E'
13549 # hardcode_minus_L: Not really in the search PATH,
13550 # but as the default location of the library.
13551 hardcode_minus_L_FC
=yes
13556 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13559 archive_cmds_FC
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13562 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13565 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13571 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13574 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13577 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13581 if test "$with_gnu_ld" = no
; then
13582 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13583 hardcode_libdir_separator_FC
=:
13587 hardcode_direct_FC
=no
13588 hardcode_shlibpath_var_FC
=no
13591 hardcode_direct_FC
=yes
13592 hardcode_direct_absolute_FC
=yes
13593 export_dynamic_flag_spec_FC
='${wl}-E'
13595 # hardcode_minus_L: Not really in the search PATH,
13596 # but as the default location of the library.
13597 hardcode_minus_L_FC
=yes
13603 irix5
* | irix6
* | nonstopux
*)
13604 if test "$GCC" = yes; then
13605 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'
13606 # Try to use the -exported_symbol ld option, if it does not
13607 # work, assume that -exports_file does not work either and
13608 # implicitly export all symbols.
13609 save_LDFLAGS
="$LDFLAGS"
13610 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13611 cat > conftest.
$ac_ext <<_ACEOF
13614 if ac_fn_fc_try_link
"$LINENO"; then :
13615 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'
13618 rm -f core conftest.err conftest.
$ac_objext \
13619 conftest
$ac_exeext conftest.
$ac_ext
13620 LDFLAGS
="$save_LDFLAGS"
13622 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'
13623 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'
13625 archive_cmds_need_lc_FC
='no'
13626 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13627 hardcode_libdir_separator_FC
=:
13628 inherit_rpath_FC
=yes
13629 link_all_deplibs_FC
=yes
13633 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13634 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13636 archive_cmds_FC
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13638 hardcode_libdir_flag_spec_FC
='-R$libdir'
13639 hardcode_direct_FC
=yes
13640 hardcode_shlibpath_var_FC
=no
13644 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13645 hardcode_direct_FC
=yes
13646 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13647 hardcode_libdir_separator_FC
=:
13648 hardcode_shlibpath_var_FC
=no
13655 if test -f /usr
/libexec
/ld.so
; then
13656 hardcode_direct_FC
=yes
13657 hardcode_shlibpath_var_FC
=no
13658 hardcode_direct_absolute_FC
=yes
13659 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13660 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13661 archive_expsym_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13662 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13663 export_dynamic_flag_spec_FC
='${wl}-E'
13666 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13667 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13668 hardcode_libdir_flag_spec_FC
='-R$libdir'
13671 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13672 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13682 hardcode_libdir_flag_spec_FC
='-L$libdir'
13683 hardcode_minus_L_FC
=yes
13684 allow_undefined_flag_FC
=unsupported
13685 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'
13686 old_archive_from_new_cmds_FC
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13690 if test "$GCC" = yes; then
13691 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13692 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'
13694 allow_undefined_flag_FC
=' -expect_unresolved \*'
13695 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'
13697 archive_cmds_need_lc_FC
='no'
13698 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13699 hardcode_libdir_separator_FC
=:
13702 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13703 if test "$GCC" = yes; then
13704 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13705 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'
13706 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13708 allow_undefined_flag_FC
=' -expect_unresolved \*'
13709 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'
13710 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~
13711 $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'
13713 # Both c and cxx compiler support -rpath directly
13714 hardcode_libdir_flag_spec_FC
='-rpath $libdir'
13716 archive_cmds_need_lc_FC
='no'
13717 hardcode_libdir_separator_FC
=:
13721 no_undefined_flag_FC
=' -z defs'
13722 if test "$GCC" = yes; then
13724 archive_cmds_FC
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13725 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13726 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13728 case `$CC -V 2>&1` in
13731 archive_cmds_FC
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13732 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13733 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13737 archive_cmds_FC
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13738 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13739 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13743 hardcode_libdir_flag_spec_FC
='-R$libdir'
13744 hardcode_shlibpath_var_FC
=no
13746 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13748 # The compiler driver will combine and reorder linker options,
13749 # but understands `-z linker_flag'. GCC discards it without `$wl',
13750 # but is careful enough not to reorder.
13751 # Supported since Solaris 2.6 (maybe 2.5.1?)
13752 if test "$GCC" = yes; then
13753 whole_archive_flag_spec_FC
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13755 whole_archive_flag_spec_FC
='-z allextract$convenience -z defaultextract'
13759 link_all_deplibs_FC
=yes
13763 if test "x$host_vendor" = xsequent
; then
13764 # Use $CC to link under sequent, because it throws in some extra .o
13765 # files that make .init and .fini sections work.
13766 archive_cmds_FC
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13768 archive_cmds_FC
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13770 hardcode_libdir_flag_spec_FC
='-L$libdir'
13771 hardcode_direct_FC
=yes
13772 hardcode_minus_L_FC
=yes
13773 hardcode_shlibpath_var_FC
=no
13777 case $host_vendor in
13779 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13780 hardcode_direct_FC
=yes # is this really true???
13783 ## LD is ld it makes a PLAMLIB
13784 ## CC just makes a GrossModule.
13785 archive_cmds_FC
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13786 reload_cmds_FC
='$CC -r -o $output$reload_objs'
13787 hardcode_direct_FC
=no
13790 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13791 hardcode_direct_FC
=no
#Motorola manual says yes, but my tests say they lie
13794 runpath_var
='LD_RUN_PATH'
13795 hardcode_shlibpath_var_FC
=no
13799 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13800 hardcode_shlibpath_var_FC
=no
13801 export_dynamic_flag_spec_FC
='-Bexport'
13805 if test -d /usr
/nec
; then
13806 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13807 hardcode_shlibpath_var_FC
=no
13808 runpath_var
=LD_RUN_PATH
13809 hardcode_runpath_var
=yes
13814 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13815 no_undefined_flag_FC
='${wl}-z,text'
13816 archive_cmds_need_lc_FC
=no
13817 hardcode_shlibpath_var_FC
=no
13818 runpath_var
='LD_RUN_PATH'
13820 if test "$GCC" = yes; then
13821 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13822 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13824 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13825 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13829 sysv5
* | sco3.2v5
* | sco5v6
*)
13830 # Note: We can NOT use -z defs as we might desire, because we do not
13831 # link with -lc, and that would cause any symbols used from libc to
13832 # always be unresolved, which means just about no library would
13833 # ever link correctly. If we're not using GNU ld we use -z text
13834 # though, which does catch some bad symbols but isn't as heavy-handed
13836 no_undefined_flag_FC
='${wl}-z,text'
13837 allow_undefined_flag_FC
='${wl}-z,nodefs'
13838 archive_cmds_need_lc_FC
=no
13839 hardcode_shlibpath_var_FC
=no
13840 hardcode_libdir_flag_spec_FC
='${wl}-R,$libdir'
13841 hardcode_libdir_separator_FC
=':'
13842 link_all_deplibs_FC
=yes
13843 export_dynamic_flag_spec_FC
='${wl}-Bexport'
13844 runpath_var
='LD_RUN_PATH'
13846 if test "$GCC" = yes; then
13847 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13848 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13850 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13851 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13856 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13857 hardcode_libdir_flag_spec_FC
='-L$libdir'
13858 hardcode_shlibpath_var_FC
=no
13866 if test x
$host_vendor = xsni
; then
13868 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13869 export_dynamic_flag_spec_FC
='${wl}-Blargedynsym'
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13876 $as_echo "$ld_shlibs_FC" >&6; }
13877 test "$ld_shlibs_FC" = no
&& can_build_shared
=no
13879 with_gnu_ld_FC
=$with_gnu_ld
13887 # Do we need to explicitly link libc?
13889 case "x$archive_cmds_need_lc_FC" in
13891 # Assume -lc should be added
13892 archive_cmds_need_lc_FC
=yes
13894 if test "$enable_shared" = yes && test "$GCC" = yes; then
13895 case $archive_cmds_FC in
13897 # FIXME: we may have to deal with multi-command sequences.
13900 # Test whether the compiler implicitly links with -lc since on some
13901 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13902 # to ld, don't add -lc before -lgcc.
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13904 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13905 if ${lt_cv_archive_cmds_need_lc_FC+:} false
; then :
13906 $as_echo_n "(cached) " >&6
13909 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13912 (eval $ac_compile) 2>&5
13914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13915 test $ac_status = 0; } 2>conftest.err
; then
13918 libobjs
=conftest.
$ac_objext
13920 wl
=$lt_prog_compiler_wl_FC
13921 pic_flag
=$lt_prog_compiler_pic_FC
13927 lt_save_allow_undefined_flag
=$allow_undefined_flag_FC
13928 allow_undefined_flag_FC
=
13929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13930 (eval $archive_cmds_FC 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13933 test $ac_status = 0; }
13935 lt_cv_archive_cmds_need_lc_FC
=no
13937 lt_cv_archive_cmds_need_lc_FC
=yes
13939 allow_undefined_flag_FC
=$lt_save_allow_undefined_flag
13941 cat conftest.err
1>&5
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13947 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13948 archive_cmds_need_lc_FC
=$lt_cv_archive_cmds_need_lc_FC
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14019 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14021 library_names_spec
=
14022 libname_spec
='lib$name'
14026 postuninstall_cmds
=
14030 shlibpath_overrides_runpath
=unknown
14032 dynamic_linker
="$host_os ld.so"
14033 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14034 need_lib_prefix
=unknown
14035 hardcode_into_libs
=no
14037 # when you set need_version to no, make sure it does not cause -set_version
14038 # flags to be left without arguments
14039 need_version
=unknown
14044 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14045 shlibpath_var
=LIBPATH
14047 # AIX 3 has no versioning support, so we append a major version to the name.
14048 soname_spec
='${libname}${release}${shared_ext}$major'
14055 hardcode_into_libs
=yes
14056 if test "$host_cpu" = ia64
; then
14057 # AIX 5 supports IA64
14058 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14059 shlibpath_var
=LD_LIBRARY_PATH
14061 # With GCC up to 2.95.x, collect2 would create an import file
14062 # for dependence libraries. The import file would start with
14063 # the line `#! .'. This would cause the generated library to
14064 # depend on `.', always an invalid library. This was fixed in
14065 # development snapshots of GCC prior to 3.0.
14067 aix4 | aix4.
[01] | aix4.
[01].
*)
14068 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14070 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14073 can_build_shared
=no
14077 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14078 # soname into executable. Probably we can add versioning support to
14079 # collect2, so additional links can be useful in future.
14080 if test "$aix_use_runtimelinking" = yes; then
14081 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14082 # instead of lib<name>.a to let people know that these are not
14083 # typical AIX shared libraries.
14084 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14086 # We preserve .a as extension for shared libraries through AIX4.2
14087 # and later when we are not doing run time linking.
14088 library_names_spec
='${libname}${release}.a $libname.a'
14089 soname_spec
='${libname}${release}${shared_ext}$major'
14091 shlibpath_var
=LIBPATH
14098 # Since July 2007 AmigaOS4 officially supports .so libraries.
14099 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14100 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14103 library_names_spec
='$libname.ixlibrary $libname.a'
14104 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14105 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'
14111 library_names_spec
='${libname}${shared_ext}'
14112 dynamic_linker
="$host_os ld.so"
14113 shlibpath_var
=LIBRARY_PATH
14119 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14120 soname_spec
='${libname}${release}${shared_ext}$major'
14121 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14122 shlibpath_var
=LD_LIBRARY_PATH
14123 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14124 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14125 # the default ld.so.conf also contains /usr/contrib/lib and
14126 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14127 # libtool to hard-code these into programs
14130 cygwin
* | mingw
* | pw32
* | cegcc
*)
14131 version_type
=windows
14136 case $GCC,$host_os in
14137 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14138 library_names_spec
='$libname.dll.a'
14139 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14140 postinstall_cmds
='base_file=`basename \${file}`~
14141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14142 dldir=$destdir/`dirname \$dlpath`~
14143 test -d \$dldir || mkdir -p \$dldir~
14144 $install_prog $dir/$dlname \$dldir/$dlname~
14145 chmod a+x \$dldir/$dlname~
14146 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14147 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14149 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14150 dlpath=$dir/\$dldll~
14152 shlibpath_overrides_runpath
=yes
14156 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14157 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14161 # MinGW DLLs use traditional 'lib' prefix
14162 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14165 # pw32 DLLs use 'pw' prefix rather than 'lib'
14166 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14172 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14175 dynamic_linker
='Win32 ld.exe'
14176 # FIXME: first we should search . and the directory the executable is in
14180 darwin
* | rhapsody
*)
14181 dynamic_linker
="$host_os dyld"
14182 version_type
=darwin
14185 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14186 soname_spec
='${libname}${release}${major}$shared_ext'
14187 shlibpath_overrides_runpath
=yes
14188 shlibpath_var
=DYLD_LIBRARY_PATH
14189 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14191 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14198 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14199 soname_spec
='${libname}${release}${shared_ext}$major'
14200 shlibpath_var
=LD_LIBRARY_PATH
14203 freebsd
* | dragonfly
*)
14204 # DragonFly does not have aout. When/if they implement a new
14205 # versioning mechanism, adjust this.
14206 if test -x /usr
/bin
/objformat
; then
14207 objformat
=`/usr/bin/objformat`
14210 freebsd
[23].
*) objformat
=aout
;;
14211 *) objformat
=elf
;;
14214 version_type
=freebsd-
$objformat
14215 case $version_type in
14217 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14222 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14226 shlibpath_var
=LD_LIBRARY_PATH
14229 shlibpath_overrides_runpath
=yes
14231 freebsd3.
[01]* | freebsdelf3.
[01]*)
14232 shlibpath_overrides_runpath
=yes
14233 hardcode_into_libs
=yes
14235 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14236 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14237 shlibpath_overrides_runpath
=no
14238 hardcode_into_libs
=yes
14240 *) # from 4.6 on, and DragonFly
14241 shlibpath_overrides_runpath
=yes
14242 hardcode_into_libs
=yes
14251 dynamic_linker
="$host_os runtime_loader"
14252 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14253 soname_spec
='${libname}${release}${shared_ext}$major'
14254 shlibpath_var
=LIBRARY_PATH
14255 shlibpath_overrides_runpath
=yes
14256 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14257 hardcode_into_libs
=yes
14260 hpux9
* | hpux10
* | hpux11
*)
14261 # Give a soname corresponding to the major version so that dld.sl refuses to
14262 # link against other versions.
14269 hardcode_into_libs
=yes
14270 dynamic_linker
="$host_os dld.so"
14271 shlibpath_var
=LD_LIBRARY_PATH
14272 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14273 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14274 soname_spec
='${libname}${release}${shared_ext}$major'
14275 if test "X$HPUX_IA64_MODE" = X32
; then
14276 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14278 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14280 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14284 hardcode_into_libs
=yes
14285 dynamic_linker
="$host_os dld.sl"
14286 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14287 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14288 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14289 soname_spec
='${libname}${release}${shared_ext}$major'
14290 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14291 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14295 dynamic_linker
="$host_os dld.sl"
14296 shlibpath_var
=SHLIB_PATH
14297 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14299 soname_spec
='${libname}${release}${shared_ext}$major'
14302 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14303 postinstall_cmds
='chmod 555 $lib'
14304 # or fails outright, so override atomically:
14305 install_override_mode
=555
14312 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14313 soname_spec
='${libname}${release}${shared_ext}$major'
14314 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14315 shlibpath_var
=LD_LIBRARY_PATH
14316 shlibpath_overrides_runpath
=no
14317 hardcode_into_libs
=yes
14320 irix5
* | irix6
* | nonstopux
*)
14322 nonstopux
*) version_type
=nonstopux
;;
14324 if test "$lt_cv_prog_gnu_ld" = yes; then
14332 soname_spec
='${libname}${release}${shared_ext}$major'
14333 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14335 irix5
* | nonstopux
*)
14336 libsuff
= shlibsuff
=
14339 case $LD in # libtool.m4 will add one of these switches to LD
14340 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14341 libsuff
= shlibsuff
= libmagic
=32-bit;;
14342 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14343 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14344 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14345 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14346 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14350 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14351 shlibpath_overrides_runpath
=no
14352 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14353 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14354 hardcode_into_libs
=yes
14357 # No shared lib support for Linux oldld, aout, or coff.
14358 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14362 # This must be Linux ELF.
14364 # uclinux* changes (here and below) have been submitted to the libtool
14365 # project, but have not yet been accepted: they are GCC-local changes
14366 # for the time being. (See
14367 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14368 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
14372 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14373 soname_spec
='${libname}${release}${shared_ext}$major'
14374 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14375 shlibpath_var
=LD_LIBRARY_PATH
14376 shlibpath_overrides_runpath
=no
14378 # Some binutils ld are patched to set DT_RUNPATH
14379 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
14380 $as_echo_n "(cached) " >&6
14382 lt_cv_shlibpath_overrides_runpath
=no
14383 save_LDFLAGS
=$LDFLAGS
14384 save_libdir
=$libdir
14385 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14386 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14387 cat > conftest.
$ac_ext <<_ACEOF
14392 if ac_fn_fc_try_link
"$LINENO"; then :
14393 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14394 lt_cv_shlibpath_overrides_runpath
=yes
14397 rm -f core conftest.err conftest.
$ac_objext \
14398 conftest
$ac_exeext conftest.
$ac_ext
14399 LDFLAGS
=$save_LDFLAGS
14400 libdir
=$save_libdir
14404 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14406 # This implies no fast_install, which is unacceptable.
14407 # Some rework will be needed to allow for fast_install
14408 # before this can be enabled.
14409 hardcode_into_libs
=yes
14411 # Append ld.so.conf contents to the search path
14412 if test -f /etc
/ld.so.conf
; then
14413 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' ' '`
14414 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14417 # We used to test for /lib/ld.so.1 and disable shared libraries on
14418 # powerpc, because MkLinux only supported shared libraries with the
14419 # GNU dynamic linker. Since this was broken with cross compilers,
14420 # most powerpc-linux boxes support dynamic linking these days and
14421 # people can always --disable-shared, the test was removed, and we
14422 # assume the GNU/Linux dynamic linker is in use.
14423 dynamic_linker
='GNU/Linux ld.so'
14430 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14431 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14432 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14433 dynamic_linker
='NetBSD (a.out) ld.so'
14435 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14436 soname_spec
='${libname}${release}${shared_ext}$major'
14437 dynamic_linker
='NetBSD ld.elf_so'
14439 shlibpath_var
=LD_LIBRARY_PATH
14440 shlibpath_overrides_runpath
=yes
14441 hardcode_into_libs
=yes
14446 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14447 shlibpath_var
=LD_LIBRARY_PATH
14448 shlibpath_overrides_runpath
=yes
14455 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14456 soname_spec
='${libname}${release}${shared_ext}$major'
14457 shlibpath_var
=LD_LIBRARY_PATH
14458 shlibpath_overrides_runpath
=no
14459 hardcode_into_libs
=yes
14460 dynamic_linker
='ldqnx.so'
14465 sys_lib_dlsearch_path_spec
="/usr/lib"
14467 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14469 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14470 *) need_version
=no
;;
14472 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14473 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14474 shlibpath_var
=LD_LIBRARY_PATH
14475 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14477 openbsd2.
[89] | openbsd2.
[89].
*)
14478 shlibpath_overrides_runpath
=no
14481 shlibpath_overrides_runpath
=yes
14485 shlibpath_overrides_runpath
=yes
14490 libname_spec
='$name'
14493 library_names_spec
='$libname${shared_ext} $libname.a'
14494 dynamic_linker
='OS/2 ld.exe'
14495 shlibpath_var
=LIBPATH
14498 osf3
* | osf4
* | osf5
*)
14502 soname_spec
='${libname}${release}${shared_ext}$major'
14503 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14504 shlibpath_var
=LD_LIBRARY_PATH
14505 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14506 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14517 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518 soname_spec
='${libname}${release}${shared_ext}$major'
14519 shlibpath_var
=LD_LIBRARY_PATH
14520 shlibpath_overrides_runpath
=yes
14521 hardcode_into_libs
=yes
14522 # ldd complains unless libraries are executable
14523 postinstall_cmds
='chmod +x $lib'
14528 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14529 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14530 shlibpath_var
=LD_LIBRARY_PATH
14531 shlibpath_overrides_runpath
=yes
14532 if test "$with_gnu_ld" = yes; then
14540 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14541 soname_spec
='${libname}${release}${shared_ext}$major'
14542 shlibpath_var
=LD_LIBRARY_PATH
14543 case $host_vendor in
14545 shlibpath_overrides_runpath
=no
14547 runpath_var
=LD_RUN_PATH
14555 shlibpath_overrides_runpath
=no
14556 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14562 if test -d /usr
/nec
;then
14564 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14565 soname_spec
='$libname${shared_ext}.$major'
14566 shlibpath_var
=LD_LIBRARY_PATH
14570 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14571 version_type
=freebsd-elf
14574 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14575 soname_spec
='${libname}${release}${shared_ext}$major'
14576 shlibpath_var
=LD_LIBRARY_PATH
14577 shlibpath_overrides_runpath
=yes
14578 hardcode_into_libs
=yes
14579 if test "$with_gnu_ld" = yes; then
14580 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14582 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14585 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14589 sys_lib_dlsearch_path_spec
='/usr/lib'
14593 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14597 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14598 shlibpath_var
=LD_LIBRARY_PATH
14599 shlibpath_overrides_runpath
=no
14600 hardcode_into_libs
=yes
14605 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14606 soname_spec
='${libname}${release}${shared_ext}$major'
14607 shlibpath_var
=LD_LIBRARY_PATH
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14615 $as_echo "$dynamic_linker" >&6; }
14616 test "$dynamic_linker" = no
&& can_build_shared
=no
14618 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14619 if test "$GCC" = yes; then
14620 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14623 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14624 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14626 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14627 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14668 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14669 hardcode_action_FC
=
14670 if test -n "$hardcode_libdir_flag_spec_FC" ||
14671 test -n "$runpath_var_FC" ||
14672 test "X$hardcode_automatic_FC" = "Xyes" ; then
14674 # We can hardcode non-existent directories.
14675 if test "$hardcode_direct_FC" != no
&&
14676 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14677 # have to relink, otherwise we might link with an installed library
14678 # when we should be linking with a yet-to-be-installed one
14679 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14680 test "$hardcode_minus_L_FC" != no
; then
14681 # Linking always hardcodes the temporary library directory.
14682 hardcode_action_FC
=relink
14684 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14685 hardcode_action_FC
=immediate
14688 # We cannot hardcode anything, or else we can only hardcode existing
14690 hardcode_action_FC
=unsupported
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14693 $as_echo "$hardcode_action_FC" >&6; }
14695 if test "$hardcode_action_FC" = relink ||
14696 test "$inherit_rpath_FC" = yes; then
14697 # Fast installation is not supported
14698 enable_fast_install
=no
14699 elif test "$shlibpath_overrides_runpath" = yes ||
14700 test "$enable_shared" = no
; then
14701 # Fast installation is not necessary
14702 enable_fast_install
=needless
14711 fi # test -n "$compiler"
14715 fi # test "$_lt_disable_FC" != yes
14718 ac_cpp
='$CPP $CPPFLAGS'
14719 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14720 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14721 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14724 FCFLAGS
="$FCFLAGS -Wall -L../libgfortran"
14726 # For libtool versioning info, format is CURRENT:REVISION:AGE
14727 libtool_VERSION
=1:0:0
14730 # Check header files.
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14732 $as_echo_n "checking for ANSI C header files... " >&6; }
14733 if ${ac_cv_header_stdc+:} false
; then :
14734 $as_echo_n "(cached) " >&6
14736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14737 /* end confdefs.h. */
14738 #include <stdlib.h>
14739 #include <stdarg.h>
14740 #include <string.h>
14751 if ac_fn_c_try_compile
"$LINENO"; then :
14752 ac_cv_header_stdc
=yes
14754 ac_cv_header_stdc
=no
14756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14758 if test $ac_cv_header_stdc = yes; then
14759 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14761 /* end confdefs.h. */
14762 #include <string.h>
14765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14766 $EGREP "memchr" >/dev
/null
2>&1; then :
14769 ac_cv_header_stdc
=no
14775 if test $ac_cv_header_stdc = yes; then
14776 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14778 /* end confdefs.h. */
14779 #include <stdlib.h>
14782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14783 $EGREP "free" >/dev
/null
2>&1; then :
14786 ac_cv_header_stdc
=no
14792 if test $ac_cv_header_stdc = yes; then
14793 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14794 if test "$cross_compiling" = yes; then :
14797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14798 /* end confdefs.h. */
14800 #include <stdlib.h>
14801 #if ((' ' & 0x0FF) == 0x020)
14802 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14803 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14805 # define ISLOWER(c) \
14806 (('a' <= (c) && (c) <= 'i') \
14807 || ('j' <= (c) && (c) <= 'r') \
14808 || ('s' <= (c) && (c) <= 'z'))
14809 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14812 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14817 for (i = 0; i < 256; i++)
14818 if (XOR (islower (i), ISLOWER (i))
14819 || toupper (i) != TOUPPER (i))
14824 if ac_fn_c_try_run
"$LINENO"; then :
14827 ac_cv_header_stdc
=no
14829 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14830 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14836 $as_echo "$ac_cv_header_stdc" >&6; }
14837 if test $ac_cv_header_stdc = yes; then
14839 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14844 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14845 if ${ac_cv_header_time+:} false
; then :
14846 $as_echo_n "(cached) " >&6
14848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14849 /* end confdefs.h. */
14850 #include <sys/types.h>
14851 #include <sys/time.h>
14857 if ((struct tm *) 0)
14863 if ac_fn_c_try_compile
"$LINENO"; then :
14864 ac_cv_header_time
=yes
14866 ac_cv_header_time
=no
14868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14871 $as_echo "$ac_cv_header_time" >&6; }
14872 if test $ac_cv_header_time = yes; then
14874 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14879 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14880 if ${gcc_cv_header_string+:} false
; then :
14881 $as_echo_n "(cached) " >&6
14883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14884 /* end confdefs.h. */
14885 #include <string.h>
14886 #include <strings.h>
14895 if ac_fn_c_try_compile
"$LINENO"; then :
14896 gcc_cv_header_string
=yes
14898 gcc_cv_header_string
=no
14900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14903 $as_echo "$gcc_cv_header_string" >&6; }
14904 if test $gcc_cv_header_string = yes; then
14906 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14910 for ac_header
in pthread.h unistd.h semaphore.h sys
/loadavg.h sys
/sysctl.h sys
/time.h
14912 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14913 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14914 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14915 cat >>confdefs.h
<<_ACEOF
14916 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14927 # RTEMS supports Pthreads, but the library is not available at GCC build time.
14929 nvptx
*-*-* | amdgcn
*-*-*)
14930 # NVPTX does not support Pthreads, has its own code replacement.
14931 libgomp_use_pthreads
=no
14932 # NVPTX is an accelerator-only target
14933 libgomp_offloaded_only
=yes
14936 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14937 # In case the pthread.h system header is not found, this test will fail.
14938 CFLAGS
="$CFLAGS -pthread"
14939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14940 /* end confdefs.h. */
14941 #include <pthread.h>
14942 void *g(void *d) { return NULL; }
14946 pthread_t t; pthread_create(&t,NULL,g,NULL);
14951 if ac_fn_c_try_link
"$LINENO"; then :
14952 XPCFLAGS
=" -Wc,-pthread"
14954 CFLAGS
="$save_CFLAGS" LIBS
="-lpthread $LIBS"
14955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14957 #include <pthread.h>
14958 void *g(void *d) { return NULL; }
14962 pthread_t t; pthread_create(&t,NULL,g,NULL);
14967 if ac_fn_c_try_link
"$LINENO"; then :
14970 as_fn_error $?
"Pthreads are required to build libgomp" "$LINENO" 5
14972 rm -f core conftest.err conftest.
$ac_objext \
14973 conftest
$ac_exeext conftest.
$ac_ext
14975 rm -f core conftest.err conftest.
$ac_objext \
14976 conftest
$ac_exeext conftest.
$ac_ext
14979 if test x
$libgomp_use_pthreads != xno
; then
14981 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
14985 if test x
$libgomp_offloaded_only = xyes
; then
14987 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
14991 if test "x$enable_offload_defaulted" = xyes
; then
14993 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
14997 # The cast to long int works around a bug in the HP C Compiler
14998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15000 # This bug is HP SR number 8606223364.
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15002 $as_echo_n "checking size of void *... " >&6; }
15003 if ${ac_cv_sizeof_void_p+:} false
; then :
15004 $as_echo_n "(cached) " >&6
15006 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15009 if test "$ac_cv_type_void_p" = yes; then
15010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15012 as_fn_error
77 "cannot compute sizeof (void *)
15013 See \`config.log' for more details" "$LINENO" 5; }
15015 ac_cv_sizeof_void_p
=0
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15021 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15025 cat >>confdefs.h
<<_ACEOF
15026 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15031 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15033 # Copyright (C) 2014-2022 Free Software Foundation, Inc.
15035 # Contributed by Mentor Embedded.
15037 # This file is part of the GNU Offloading and Multi Processing Library
15040 # Libgomp is free software; you can redistribute it and/or modify it
15041 # under the terms of the GNU General Public License as published by
15042 # the Free Software Foundation; either version 3, or (at your option)
15043 # any later version.
15045 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15046 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15047 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15050 # Under Section 7 of GPL version 3, you are granted additional
15051 # permissions described in the GCC Runtime Library Exception, version
15052 # 3.1, as published by the Free Software Foundation.
15054 # You should have received a copy of the GNU General Public License and
15055 # a copy of the GCC Runtime Library Exception along with this program;
15056 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15057 # <http://www.gnu.org/licenses/>.
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15063 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15064 if ${ac_cv_lib_dl_dlsym+:} false
; then :
15065 $as_echo_n "(cached) " >&6
15067 ac_check_lib_save_LIBS
=$LIBS
15069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15070 /* end confdefs.h. */
15072 /* Override any GCC internal prototype to avoid an error.
15073 Use char because int might match the return type of a GCC
15074 builtin and then its argument prototype would still apply. */
15087 if ac_fn_c_try_link
"$LINENO"; then :
15088 ac_cv_lib_dl_dlsym
=yes
15090 ac_cv_lib_dl_dlsym
=no
15092 rm -f core conftest.err conftest.
$ac_objext \
15093 conftest
$ac_exeext conftest.
$ac_ext
15094 LIBS
=$ac_check_lib_save_LIBS
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15097 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15098 if test "x$ac_cv_lib_dl_dlsym" = xyes
; then :
15104 if test x
"$plugin_support" = xyes
; then
15106 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15108 elif test "x${enable_offload_targets-no}" != xno
; then
15109 as_fn_error $?
"Can't support offloading without support for plugins" "$LINENO" 5
15114 for ac_header
in $ac_header_list
15116 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15117 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15119 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15120 cat >>confdefs.h
<<_ACEOF
15121 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15134 for ac_func
in $ac_func_list
15136 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15137 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15138 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15139 cat >>confdefs.h
<<_ACEOF
15140 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15161 # Look for the CUDA driver package.
15162 CUDA_DRIVER_INCLUDE
=
15166 CUDA_DRIVER_CPPFLAGS
=
15167 CUDA_DRIVER_LDFLAGS
=
15169 # Check whether --with-cuda-driver was given.
15170 if test "${with_cuda_driver+set}" = set; then :
15171 withval
=$with_cuda_driver;
15175 # Check whether --with-cuda-driver-include was given.
15176 if test "${with_cuda_driver_include+set}" = set; then :
15177 withval
=$with_cuda_driver_include;
15181 # Check whether --with-cuda-driver-lib was given.
15182 if test "${with_cuda_driver_lib+set}" = set; then :
15183 withval
=$with_cuda_driver_lib;
15186 case "x$with_cuda_driver" in
15189 CUDA_DRIVER_INCLUDE
=no
15192 *) CUDA_DRIVER_INCLUDE
=$with_cuda_driver/include
15193 CUDA_DRIVER_LIB
=$with_cuda_driver/lib
15196 if test "x$with_cuda_driver_include" != x
; then
15197 CUDA_DRIVER_INCLUDE
=$with_cuda_driver_include
15199 if test "x$with_cuda_driver_lib" != x
; then
15200 CUDA_DRIVER_LIB
=$with_cuda_driver_lib
15202 if test "x$CUDA_DRIVER_INCLUDE" != x \
15203 && test "x$CUDA_DRIVER_INCLUDE" != xno
; then
15204 CUDA_DRIVER_CPPFLAGS
=-I$CUDA_DRIVER_INCLUDE
15206 if test "x$CUDA_DRIVER_LIB" != x \
15207 && test "x$CUDA_DRIVER_LIB" != xno
; then
15208 CUDA_DRIVER_LDFLAGS
=-L$CUDA_DRIVER_LIB
15212 PLUGIN_NVPTX_CPPFLAGS
=
15213 PLUGIN_NVPTX_LDFLAGS
=
15215 PLUGIN_NVPTX_DYNAMIC
=0
15222 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15223 # plugins, and configure to find the corresponding offload compilers.
15224 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15229 offload_additional_options
=
15230 offload_additional_lib_paths
=
15233 if test x
"$enable_offload_targets" != x
; then
15234 for tgt
in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15235 tgt_dir
=`echo $tgt | grep '=' | sed 's/.*=//'`
15236 tgt
=`echo $tgt | sed 's/=.*//'`
15239 *-intelmic-* |
*-intelmicemul-*)
15240 tgt_plugin
=intelmic
15243 case "${target}" in
15244 aarch64
*-*-* | powerpc64le-
*-* | x86_64-
*-*)
15245 case "$ac_cv_sizeof_void_p" in
15247 # PR libgomp/65099: Currently, we only support offloading in
15248 # 64-bit configurations.
15254 if test "x$CUDA_DRIVER_LIB" != xno \
15255 && test "x$CUDA_DRIVER_LIB" != xno
; then
15256 PLUGIN_NVPTX_CPPFLAGS
=$CUDA_DRIVER_CPPFLAGS
15257 PLUGIN_NVPTX_LDFLAGS
=$CUDA_DRIVER_LDFLAGS
15258 PLUGIN_NVPTX_LIBS
='-lcuda'
15260 PLUGIN_NVPTX_save_CPPFLAGS
=$CPPFLAGS
15261 CPPFLAGS
="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15262 PLUGIN_NVPTX_save_LDFLAGS
=$LDFLAGS
15263 LDFLAGS
="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15264 PLUGIN_NVPTX_save_LIBS
=$LIBS
15265 LIBS
="$PLUGIN_NVPTX_LIBS $LIBS"
15266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15267 /* end confdefs.h. */
15272 CUresult r = cuCtxPushCurrent (NULL);
15277 if ac_fn_c_try_link
"$LINENO"; then :
15280 rm -f core conftest.err conftest.
$ac_objext \
15281 conftest
$ac_exeext conftest.
$ac_ext
15282 CPPFLAGS
=$PLUGIN_NVPTX_save_CPPFLAGS
15283 LDFLAGS
=$PLUGIN_NVPTX_save_LDFLAGS
15284 LIBS
=$PLUGIN_NVPTX_save_LIBS
15286 case $PLUGIN_NVPTX in
15288 if (test "x$CUDA_DRIVER_INCLUDE" = x \
15289 ||
test "x$CUDA_DRIVER_INCLUDE" = xno
) \
15290 && (test "x$CUDA_DRIVER_LIB" = x \
15291 ||
test "x$CUDA_DRIVER_LIB" = xno
); then
15293 PLUGIN_NVPTX_DYNAMIC
=1
15296 as_fn_error $?
"CUDA driver package required for nvptx support" "$LINENO" 5
15304 # Target architecture not supported.
15310 case "${target}" in
15312 case "$ac_cv_sizeof_void_p" in
15328 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
15331 if test x
"$tgt_plugin" = x
; then
15332 # Not configuring libgomp for this offload target if we're not building
15333 # the corresponding offload plugin.
15335 elif test x
"$offload_plugins" = x
; then
15336 offload_plugins
=$tgt_plugin
15337 offload_targets
=$tgt
15339 offload_plugins
=$offload_plugins,$tgt_plugin
15340 offload_targets
=$offload_targets,$tgt
15342 # Configure additional search paths.
15343 if test x
"$tgt_dir" != x
; then
15344 offload_additional_options
="$offload_additional_options -B$tgt_dir/\$(libexecdir:\$(exec_prefix)/%=%)/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15345 offload_additional_lib_paths
="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15347 offload_additional_options
="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15348 offload_additional_lib_paths
="$offload_additional_lib_paths:$toolexeclibdir"
15353 cat >>confdefs.h
<<_ACEOF
15354 #define OFFLOAD_PLUGINS "$offload_plugins"
15357 if test $PLUGIN_NVPTX = 1; then
15359 PLUGIN_NVPTX_FALSE
='#'
15361 PLUGIN_NVPTX_TRUE
='#'
15362 PLUGIN_NVPTX_FALSE
=
15365 if test $PLUGIN_NVPTX_DYNAMIC = 1; then
15366 PLUGIN_NVPTX_DYNAMIC_TRUE
=
15367 PLUGIN_NVPTX_DYNAMIC_FALSE
='#'
15369 PLUGIN_NVPTX_DYNAMIC_TRUE
='#'
15370 PLUGIN_NVPTX_DYNAMIC_FALSE
=
15373 if test $PLUGIN_GCN = 1; then
15375 PLUGIN_GCN_FALSE
='#'
15377 PLUGIN_GCN_TRUE
='#'
15383 # Check for functions needed.
15384 for ac_func
in getloadavg clock_gettime strtoull
15386 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15387 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15388 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15389 cat >>confdefs.h
<<_ACEOF
15390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15396 for ac_func
in aligned_alloc posix_memalign memalign _aligned_malloc
15398 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15399 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15400 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15401 cat >>confdefs.h
<<_ACEOF
15402 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15409 # Check for broken semaphore implementation on darwin.
15410 # sem_init returns: sem_init error: Function not implemented.
15414 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15419 # RTEMS specific checks
15422 ac_fn_c_check_type
"$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15424 if test "x$ac_cv_type_struct__Mutex_Control" = xyes
; then :
15426 cat >>confdefs.h
<<_ACEOF
15427 #define HAVE_STRUCT__MUTEX_CONTROL 1
15436 # Check whether --enable-linux-futex was given.
15437 if test "${enable_linux_futex+set}" = set; then :
15438 enableval
=$enable_linux_futex;
15439 case "$enableval" in
15441 *) as_fn_error $?
"Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15445 enable_linux_futex
=default
15450 *-linux* |
*-uclinux*)
15451 case "$enable_linux_futex" in
15453 # If headers don't have gettid/futex syscalls definition, then
15454 # default to no, otherwise there will be compile time failures.
15455 # Otherwise, default to yes. If we don't detect we are
15456 # compiled/linked against NPTL and not cross-compiling, check
15457 # if programs are run by default against NPTL and if not, issue
15459 enable_linux_futex
=no
15460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15461 /* end confdefs.h. */
15462 #include <sys/syscall.h>
15463 #include <unistd.h>
15468 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15473 if ac_fn_c_try_link
"$LINENO"; then :
15475 LIBS
="-lpthread $LIBS"
15476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15477 /* end confdefs.h. */
15478 #ifndef _GNU_SOURCE
15479 #define _GNU_SOURCE 1
15481 #include <pthread.h>
15482 pthread_t th; void *status;
15486 pthread_tryjoin_np (th, &status);
15491 if ac_fn_c_try_link
"$LINENO"; then :
15492 enable_linux_futex
=yes
15494 if test x
$cross_compiling = xno
; then
15495 if getconf GNU_LIBPTHREAD_VERSION
2>/dev
/null \
15496 | LC_ALL
=C
grep -i NPTL
> /dev
/null
2>/dev
/null
; then :; else
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15498 If so, please configure with --disable-linux-futex" >&5
15499 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15500 If so, please configure with --disable-linux-futex" >&2;}
15503 enable_linux_futex
=yes
15505 rm -f core conftest.err conftest.
$ac_objext \
15506 conftest
$ac_exeext conftest.
$ac_ext
15509 rm -f core conftest.err conftest.
$ac_objext \
15510 conftest
$ac_exeext conftest.
$ac_ext
15513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h. */
15515 #include <sys/syscall.h>
15516 #include <unistd.h>
15521 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15526 if ac_fn_c_try_link
"$LINENO"; then :
15529 as_fn_error $?
"SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15531 rm -f core conftest.err conftest.
$ac_objext \
15532 conftest
$ac_exeext conftest.
$ac_ext
15537 enable_linux_futex
=no
15540 if test x
$enable_linux_futex = xyes
; then
15545 # Check for pthread_{,attr_}[sg]etaffinity_np.
15546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15547 /* end confdefs.h. */
15548 #define _GNU_SOURCE
15549 #include <pthread.h>
15554 pthread_attr_t attr;
15555 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15556 if (CPU_ISSET (0, &cpuset))
15557 CPU_SET (1, &cpuset);
15559 CPU_ZERO (&cpuset);
15560 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15561 pthread_attr_init (&attr);
15562 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15563 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15568 if ac_fn_c_try_link
"$LINENO"; then :
15570 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15573 rm -f core conftest.err conftest.
$ac_objext \
15574 conftest
$ac_exeext conftest.
$ac_ext
15576 # At least for glibc, clock_gettime is in librt. But don't pull that
15577 # in if it still doesn't give us the function we want.
15578 if test $ac_cv_func_clock_gettime = no
; then
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15580 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15581 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
15582 $as_echo_n "(cached) " >&6
15584 ac_check_lib_save_LIBS
=$LIBS
15586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h. */
15589 /* Override any GCC internal prototype to avoid an error.
15590 Use char because int might match the return type of a GCC
15591 builtin and then its argument prototype would still apply. */
15595 char clock_gettime ();
15599 return clock_gettime ();
15604 if ac_fn_c_try_link
"$LINENO"; then :
15605 ac_cv_lib_rt_clock_gettime
=yes
15607 ac_cv_lib_rt_clock_gettime
=no
15609 rm -f core conftest.err conftest.
$ac_objext \
15610 conftest
$ac_exeext conftest.
$ac_ext
15611 LIBS
=$ac_check_lib_save_LIBS
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15614 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15615 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
15618 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h. */
15627 #include <string.h>
15628 #include <stdlib.h>
15629 #include <sys/utsname.h>
15633 struct utsname buf;
15634 volatile size_t len = 0;
15636 len = strlen (buf.nodename);
15641 if ac_fn_c_try_compile
"$LINENO"; then :
15643 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
15646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15648 # Check for gethostname.
15649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15650 /* end confdefs.h. */
15651 #include <unistd.h>
15657 if (gethostname (buf, sizeof (buf) - 1) == 0)
15664 if ac_fn_c_try_compile
"$LINENO"; then :
15666 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
15669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15671 # Check for getpid.
15672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15673 /* end confdefs.h. */
15674 #include <unistd.h>
15678 int pid = getpid ();
15683 if ac_fn_c_try_compile
"$LINENO"; then :
15685 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
15688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15690 # See if we support thread-local storage.
15693 # Check whether --enable-tls was given.
15694 if test "${enable_tls+set}" = set; then :
15695 enableval
=$enable_tls;
15696 case "$enableval" in
15698 *) as_fn_error $?
"Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15707 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15708 if ${gcc_cv_have_tls+:} false
; then :
15709 $as_echo_n "(cached) " >&6
15712 if test "$cross_compiling" = yes; then :
15713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15714 /* end confdefs.h. */
15715 __thread int a; int b; int main() { return a = b; }
15717 if ac_fn_c_try_link
"$LINENO"; then :
15718 chktls_save_LDFLAGS
="$LDFLAGS"
15720 *-*-linux* |
-*-uclinuxfdpic*)
15721 LDFLAGS
="-shared -Wl,--no-undefined $LDFLAGS"
15724 chktls_save_CFLAGS
="$CFLAGS"
15725 CFLAGS
="-fPIC $CFLAGS"
15726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15727 /* end confdefs.h. */
15728 int f() { return 0; }
15730 if ac_fn_c_try_link
"$LINENO"; then :
15731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15732 /* end confdefs.h. */
15733 __thread int a; int b; int f() { return a = b; }
15735 if ac_fn_c_try_link
"$LINENO"; then :
15736 gcc_cv_have_tls
=yes
15740 rm -f core conftest.err conftest.
$ac_objext \
15741 conftest
$ac_exeext conftest.
$ac_ext
15743 gcc_cv_have_tls
=yes
15745 rm -f core conftest.err conftest.
$ac_objext \
15746 conftest
$ac_exeext conftest.
$ac_ext
15747 CFLAGS
="$chktls_save_CFLAGS"
15748 LDFLAGS
="$chktls_save_LDFLAGS"
15752 rm -f core conftest.err conftest.
$ac_objext \
15753 conftest
$ac_exeext conftest.
$ac_ext
15757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15758 /* end confdefs.h. */
15759 __thread int a; int b; int main() { return a = b; }
15761 if ac_fn_c_try_run
"$LINENO"; then :
15762 chktls_save_LDFLAGS
="$LDFLAGS"
15763 LDFLAGS
="-static $LDFLAGS"
15764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15765 /* end confdefs.h. */
15766 int main() { return 0; }
15768 if ac_fn_c_try_link
"$LINENO"; then :
15769 if test "$cross_compiling" = yes; then :
15770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15772 as_fn_error $?
"cannot run test program while cross compiling
15773 See \`config.log' for more details" "$LINENO" 5; }
15775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15776 /* end confdefs.h. */
15777 __thread int a; int b; int main() { return a = b; }
15779 if ac_fn_c_try_run
"$LINENO"; then :
15780 gcc_cv_have_tls
=yes
15784 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15785 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15789 gcc_cv_have_tls
=yes
15791 rm -f core conftest.err conftest.
$ac_objext \
15792 conftest
$ac_exeext conftest.
$ac_ext
15793 LDFLAGS
="$chktls_save_LDFLAGS"
15794 if test $gcc_cv_have_tls = yes; then
15795 chktls_save_CFLAGS
="$CFLAGS"
15796 thread_CFLAGS
=failed
15797 for flag
in '' '-pthread' '-lpthread'; do
15798 CFLAGS
="$flag $chktls_save_CFLAGS"
15799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15800 /* end confdefs.h. */
15801 #include <pthread.h>
15802 void *g(void *d) { return NULL; }
15806 pthread_t t; pthread_create(&t,NULL,g,NULL);
15811 if ac_fn_c_try_link
"$LINENO"; then :
15812 thread_CFLAGS
="$flag"
15814 rm -f core conftest.err conftest.
$ac_objext \
15815 conftest
$ac_exeext conftest.
$ac_ext
15816 if test "X$thread_CFLAGS" != Xfailed
; then
15820 CFLAGS
="$chktls_save_CFLAGS"
15821 if test "X$thread_CFLAGS" != Xfailed
; then
15822 CFLAGS
="$thread_CFLAGS $chktls_save_CFLAGS"
15823 if test "$cross_compiling" = yes; then :
15824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15826 as_fn_error $?
"cannot run test program while cross compiling
15827 See \`config.log' for more details" "$LINENO" 5; }
15829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15830 /* end confdefs.h. */
15831 #include <pthread.h>
15833 static int *volatile a_in_other_thread;
15835 thread_func (void *arg)
15837 a_in_other_thread = &a;
15844 void *thread_retval;
15845 int *volatile a_in_main_thread;
15846 a_in_main_thread = &a;
15847 if (pthread_create (&thread, (pthread_attr_t *)0,
15848 thread_func, (void *)0))
15850 if (pthread_join (thread, &thread_retval))
15852 return (a_in_other_thread == a_in_main_thread);
15857 if ac_fn_c_try_run
"$LINENO"; then :
15858 gcc_cv_have_tls
=yes
15862 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15863 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15866 CFLAGS
="$chktls_save_CFLAGS"
15872 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15873 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15878 $as_echo "$gcc_cv_have_tls" >&6; }
15879 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15881 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15885 # See if we have emulated thread-local storage.
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15888 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15889 if ${gcc_cv_use_emutls+:} false
; then :
15890 $as_echo_n "(cached) " >&6
15893 gcc_cv_use_emutls
=no
15894 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15895 if { ac_try
='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15897 (eval $ac_try) 2>&5
15899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15900 test $ac_status = 0; }; }; then
15901 if grep __emutls_get_address conftest.s
> /dev
/null
; then
15902 gcc_cv_use_emutls
=yes
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15909 $as_echo "$gcc_cv_use_emutls" >&6; }
15910 if test "$gcc_cv_use_emutls" = "yes" ; then
15912 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
15916 # See what sort of export controls are available.
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15919 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15920 if ${libgomp_cv_have_attribute_visibility+:} false
; then :
15921 $as_echo_n "(cached) " >&6
15924 save_CFLAGS
="$CFLAGS"
15925 CFLAGS
="$CFLAGS -Werror"
15926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15927 /* end confdefs.h. */
15928 void __attribute__((visibility("hidden"))) foo(void) { }
15937 if ac_fn_c_try_compile
"$LINENO"; then :
15938 libgomp_cv_have_attribute_visibility
=yes
15940 libgomp_cv_have_attribute_visibility
=no
15942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15943 CFLAGS
="$save_CFLAGS"
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15946 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15947 if test $libgomp_cv_have_attribute_visibility = yes; then
15949 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15954 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15955 if ${libgomp_cv_have_attribute_dllexport+:} false
; then :
15956 $as_echo_n "(cached) " >&6
15959 save_CFLAGS
="$CFLAGS"
15960 CFLAGS
="$CFLAGS -Werror"
15961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15962 /* end confdefs.h. */
15963 void __attribute__((dllexport)) foo(void) { }
15972 if ac_fn_c_try_compile
"$LINENO"; then :
15973 libgomp_cv_have_attribute_dllexport
=yes
15975 libgomp_cv_have_attribute_dllexport
=no
15977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15978 CFLAGS
="$save_CFLAGS"
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15981 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15982 if test $libgomp_cv_have_attribute_dllexport = yes; then
15984 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15989 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15990 if ${libgomp_cv_have_attribute_alias+:} false
; then :
15991 $as_echo_n "(cached) " >&6
15994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15995 /* end confdefs.h. */
15998 extern void bar(void) __attribute__((alias("foo")));
16007 if ac_fn_c_try_link
"$LINENO"; then :
16008 libgomp_cv_have_attribute_alias
=yes
16010 libgomp_cv_have_attribute_alias
=no
16012 rm -f core conftest.err conftest.
$ac_objext \
16013 conftest
$ac_exeext conftest.
$ac_ext
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16016 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16017 if test $libgomp_cv_have_attribute_alias = yes; then
16019 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16024 # Check whether --with-gnu-ld was given.
16025 if test "${with_gnu_ld+set}" = set; then :
16026 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
16032 if test "$GCC" = yes; then
16033 # Check if gcc -print-prog-name=ld gives a path.
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16035 $as_echo_n "checking for ld used by $CC... " >&6; }
16038 # gcc leaves a trailing carriage return which upsets mingw
16039 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16041 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16044 # Accept absolute paths.
16046 re_direlt
='/[^/][^/]*/\.\./'
16047 # Canonicalize the pathname of ld
16048 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16049 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
16050 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16052 test -z "$LD" && LD
="$ac_prog"
16055 # If it fails, then pretend we aren't using GCC.
16059 # If it is relative, then search for the first ld in PATH.
16060 with_gnu_ld
=unknown
16063 elif test "$with_gnu_ld" = yes; then
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16065 $as_echo_n "checking for GNU ld... " >&6; }
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16068 $as_echo_n "checking for non-GNU ld... " >&6; }
16070 if ${lt_cv_path_LD+:} false
; then :
16071 $as_echo_n "(cached) " >&6
16073 if test -z "$LD"; then
16074 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16075 for ac_dir
in $PATH; do
16077 test -z "$ac_dir" && ac_dir
=.
16078 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16079 lt_cv_path_LD
="$ac_dir/$ac_prog"
16080 # Check to see if the program is GNU ld. I'd rather use --version,
16081 # but apparently some variants of GNU ld only accept -v.
16082 # Break only if it was the GNU/non-GNU ld that we prefer.
16083 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16084 *GNU
* |
*'with BFD'*)
16085 test "$with_gnu_ld" != no
&& break
16088 test "$with_gnu_ld" != yes && break
16095 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
16099 LD
="$lt_cv_path_LD"
16100 if test -n "$LD"; then
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16102 $as_echo "$LD" >&6; }
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16105 $as_echo "no" >&6; }
16107 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16109 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16110 if ${lt_cv_prog_gnu_ld+:} false
; then :
16111 $as_echo_n "(cached) " >&6
16113 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16114 case `$LD -v 2>&1 </dev/null` in
16115 *GNU
* |
*'with BFD'*)
16116 lt_cv_prog_gnu_ld
=yes
16119 lt_cv_prog_gnu_ld
=no
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16124 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16125 with_gnu_ld
=$lt_cv_prog_gnu_ld
16133 # If we're not using GNU ld, then there's no point in even trying these
16134 # tests. Check for that first. We should have already tested for gld
16135 # by now (in libtool), but require it now just to be safe...
16136 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
16137 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
16141 # The name set by libtool depends on the version of libtool. Shame on us
16142 # for depending on an impl detail, but c'est la vie. Older versions used
16143 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16144 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16145 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16146 # set (hence we're using an older libtool), then set it.
16147 if test x
${with_gnu_ld+set} != xset
; then
16148 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
16149 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16152 with_gnu_ld
=$ac_cv_prog_gnu_ld
16156 # Start by getting the version number. I think the libtool test already
16157 # does some of this, but throws away the result.
16158 libgomp_ld_is_gold
=no
16159 libgomp_ld_is_mold
=no
16160 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
16161 libgomp_ld_is_gold
=yes
16162 elif $LD --version 2>/dev
/null |
grep 'mold'> /dev
/null
2>&1; then
16163 libat_ld_is_mold
=yes
16166 ldver
=`$LD --version 2>/dev/null |
16167 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16169 libgomp_gnu_ld_version
=`echo $ldver | \
16170 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16172 # Set --gc-sections.
16173 if test "$with_gnu_ld" = "notbroken"; then
16174 # GNU ld it is! Joy and bunny rabbits!
16176 # All these tests are for C++; save the language and the compiler flags.
16177 # Need to do this so that g++ won't try to link in libstdc++
16178 ac_test_CFLAGS
="${CFLAGS+set}"
16179 ac_save_CFLAGS
="$CFLAGS"
16180 CFLAGS
='-x c++ -Wl,--gc-sections'
16182 # Check for -Wl,--gc-sections
16183 # XXX This test is broken at the moment, as symbols required for linking
16184 # are now in libsupc++ (not built yet). In addition, this test has
16185 # cored on solaris in the past. In addition, --gc-sections doesn't
16186 # really work at the moment (keeps on discarding used sections, first
16187 # .eh_frame and now some of the glibc sections for iconv).
16188 # Bzzzzt. Thanks for playing, maybe next time.
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16190 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16191 if test "$cross_compiling" = yes; then :
16192 ac_sectionLDflags
=yes
16194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16195 /* end confdefs.h. */
16205 if ac_fn_c_try_run
"$LINENO"; then :
16206 ac_sectionLDflags
=yes
16208 ac_sectionLDflags
=no
16210 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16211 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16214 if test "$ac_test_CFLAGS" = set; then
16215 CFLAGS
="$ac_save_CFLAGS"
16217 # this is the suspicious part
16220 if test "$ac_sectionLDflags" = "yes"; then
16221 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16224 $as_echo "$ac_sectionLDflags" >&6; }
16227 # Set linker optimization flags.
16228 if test x
"$with_gnu_ld" = x
"yes"; then
16229 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
16237 # Check whether --enable-symvers was given.
16238 if test "${enable_symvers+set}" = set; then :
16239 enableval
=$enable_symvers;
16240 case "$enableval" in
16241 yes|no|gnu
*|sun
) ;;
16242 *) as_fn_error $?
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16251 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16252 # don't know enough about $LD to do tricks...
16255 # Turn a 'yes' into a suitable default.
16256 if test x
$enable_symvers = xyes
; then
16257 # FIXME The following test is too strict, in theory.
16258 if test $enable_shared = no ||
test "x$LD" = x
; then
16261 if test $with_gnu_ld = yes ; then
16264 case ${target_os} in
16265 # Sun symbol versioning exists since Solaris 2.5.
16266 solaris2.
[5-9]* | solaris2.1
[0-9]*)
16267 enable_symvers
=sun
;;
16269 enable_symvers
=no
;;
16275 # Check if 'sun' was requested on non-Solaris 2 platforms.
16276 if test x
$enable_symvers = xsun
; then
16277 case ${target_os} in
16282 # Unlikely to work.
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16284 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16286 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16288 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16294 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16295 if test $enable_symvers != no
; then
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16297 $as_echo_n "checking for shared libgcc... " >&6; }
16298 ac_save_CFLAGS
="$CFLAGS"
16300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16301 /* end confdefs.h. */
16311 if ac_fn_c_try_link
"$LINENO"; then :
16312 libgomp_shared_libgcc
=yes
16314 libgomp_shared_libgcc
=no
16316 rm -f core conftest.err conftest.
$ac_objext \
16317 conftest
$ac_exeext conftest.
$ac_ext
16318 CFLAGS
="$ac_save_CFLAGS"
16319 if test $libgomp_shared_libgcc = no
; then
16320 cat > conftest.c
<<EOF
16321 int main (void) { return 0; }
16323 libgomp_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16324 -shared -shared-libgcc -o conftest.so \
16325 conftest.c -v 2>&1 >/dev/null \
16326 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16327 rm -f conftest.c conftest.so
16328 if test x
${libgomp_libgcc_s_suffix+set} = xset
; then
16329 CFLAGS
=" -lgcc_s$libgomp_libgcc_s_suffix"
16330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16331 /* end confdefs.h. */
16341 if ac_fn_c_try_link
"$LINENO"; then :
16342 libgomp_shared_libgcc
=yes
16344 rm -f core conftest.err conftest.
$ac_objext \
16345 conftest
$ac_exeext conftest.
$ac_ext
16346 CFLAGS
="$ac_save_CFLAGS"
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16350 $as_echo "$libgomp_shared_libgcc" >&6; }
16353 # For GNU ld, we need at least this version. The format is described in
16354 # LIBGOMP_CHECK_LINKER_FEATURES above.
16355 libgomp_min_gnu_ld_version
=21400
16356 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16358 # Check to see if unspecified "yes" value can win, given results above.
16359 # Change "yes" into either "no" or a style name.
16360 if test $enable_symvers != no
&& test $libgomp_shared_libgcc = yes; then
16361 if test $with_gnu_ld = yes; then
16362 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16364 elif test $libgomp_ld_is_gold = yes ; then
16366 elif test $libgomp_ld_is_mold = yes ; then
16369 # The right tools, the right setup, but too old. Fallbacks?
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16371 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16373 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16375 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16377 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16378 if test $libgomp_gnu_ld_version -ge 21200 ; then
16379 # Globbing fix is present, proper block support is not.
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16381 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16386 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16390 elif test $enable_symvers = sun
; then
16391 : All interesting versions of Sun ld support sun style symbol versioning.
16393 # just fail for now
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16395 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16397 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16399 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16401 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16407 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16408 if ${libgomp_cv_have_as_symver_directive+:} false
; then :
16409 $as_echo_n "(cached) " >&6
16412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16413 /* end confdefs.h. */
16414 void foo (void); __asm (".symver foo, bar@SYMVER");
16423 if ac_fn_c_try_compile
"$LINENO"; then :
16424 libgomp_cv_have_as_symver_directive
=yes
16426 libgomp_cv_have_as_symver_directive
=no
16428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16431 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16432 if test $libgomp_cv_have_as_symver_directive = yes; then
16434 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16438 if test $enable_symvers != no
; then
16439 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
=
16440 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
='#'
16442 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
='#'
16443 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
=
16446 if test $enable_symvers = gnu
; then
16447 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
16448 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
16450 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
16451 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
16454 if test $enable_symvers = sun
; then
16455 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
16456 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
16458 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
16459 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16463 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16465 if test $enable_symvers != no
; then
16466 case ${target_os} in
16467 # The Solaris 2 runtime linker doesn't support the GNU extension of
16468 # binding the same symbol to different versions
16471 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16474 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16481 if test $enable_symvers = gnu
; then
16483 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16487 # Determine cpu count to limit testsuite parallelism.
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16489 $as_echo_n "checking the number of available CPUs... " >&6; }
16492 # Try generic methods
16494 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16495 # 'NPROCESSORS_ONLN' are platform-specific
16496 command -v getconf
>/dev
/null
2>&1 && \
16497 CPU_COUNT
=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT
="0"
16498 if test "$CPU_COUNT" -gt "0" 2>/dev
/null ||
! command -v nproc
>/dev
/null
2>&1; then :
16501 # 'nproc' is part of GNU Coreutils and is widely available
16502 CPU_COUNT
=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT
=`nproc 2>/dev/null` || CPU_COUNT
="0"
16505 if test "$CPU_COUNT" -gt "0" 2>/dev
/null
; then :
16508 # Try platform-specific preferred methods
16509 case $host_os in #(
16511 CPU_COUNT
=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT
="0" ;; #(
16513 CPU_COUNT
=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT
="0" ;; #(
16515 command -v sysctl
>/dev
/null
2>&1 && CPU_COUNT
=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT
="0" ;; #(
16517 command -v sysctl
>/dev
/null
2>&1 && CPU_COUNT
=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT
="0" ;; #(
16519 command -v psrinfo
>/dev
/null
2>&1 && CPU_COUNT
=`psrinfo 2>/dev/null | $EGREP -e '^[0-9].*on-line' -c 2>/dev/null` || CPU_COUNT
="0" ;; #(
16521 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16523 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16525 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16530 if test "$CPU_COUNT" -gt "0" 2>/dev
/null ||
! command -v sysctl
>/dev
/null
2>&1; then :
16533 # Try less preferred generic method
16534 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16535 CPU_COUNT
=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT
="0"
16538 if test "$CPU_COUNT" -gt "0" 2>/dev
/null
; then :
16541 # Try platform-specific fallback methods
16542 # They can be less accurate and slower then preferred methods
16543 case $host_os in #(
16545 CPU_COUNT
=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT
="0" ;; #(
16547 CPU_COUNT
=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT
="0" ;; #(
16549 CPU_COUNT
=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT
="0" ;; #(
16551 CPU_COUNT
=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16552 CPU_COUNT
=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT
="0" ;; #(
16554 command -v kstat
>/dev
/null
2>&1 && CPU_COUNT
=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16555 CPU_COUNT
=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT
="0" ;; #(
16557 if CPU_COUNT
=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16560 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS"
16563 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS" ;; #(
16565 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS" ;; #(
16570 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev
/null
; then :
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
16572 $as_echo "$CPU_COUNT" >&6; }
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
16577 $as_echo "unable to detect (assuming 1)" >&6; }
16582 # Get target configury.
16583 .
${srcdir}/configure.tgt
16584 CFLAGS
="$save_CFLAGS $XCFLAGS"
16586 # Check for __sync_val_compare_and_swap, but only after the target has
16587 # had a chance to set XCFLAGS.
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16590 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16591 if ${libgomp_cv_have_sync_builtins+:} false
; then :
16592 $as_echo_n "(cached) " >&6
16595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16596 /* end confdefs.h. */
16601 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16606 if ac_fn_c_try_link
"$LINENO"; then :
16607 libgomp_cv_have_sync_builtins
=yes
16609 libgomp_cv_have_sync_builtins
=no
16611 rm -f core conftest.err conftest.
$ac_objext \
16612 conftest
$ac_exeext conftest.
$ac_ext
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16615 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16616 if test $libgomp_cv_have_sync_builtins = yes; then
16618 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16622 XCFLAGS
="$XCFLAGS$XPCFLAGS"
16624 # Add CET specific flags if CET is enabled
16625 # Check whether --enable-cet was given.
16626 if test "${enable_cet+set}" = set; then :
16627 enableval
=$enable_cet;
16628 case "$enableval" in
16630 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16639 $as_echo_n "checking for CET support... " >&6; }
16641 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
16643 i
[34567]86-*-linux* | x86_64-
*-linux*)
16644 case "$enable_cet" in
16646 # Check if target supports multi-byte NOPs
16647 # and if compiler and assembler support CET insn.
16648 cet_save_CFLAGS
="$CFLAGS"
16649 CFLAGS
="$CFLAGS -fcf-protection"
16650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16651 /* end confdefs.h. */
16657 #if !defined(__SSE2__)
16658 #error target does not support multi-byte NOPs
16667 if ac_fn_c_try_compile
"$LINENO"; then :
16672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16673 CFLAGS
="$cet_save_CFLAGS"
16676 # Check if assembler supports CET.
16677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16678 /* end confdefs.h. */
16688 if ac_fn_c_try_compile
"$LINENO"; then :
16691 as_fn_error $?
"assembler with CET support is required for --enable-cet" "$LINENO" 5
16693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16701 if test x
$enable_cet = xyes
; then
16702 CET_FLAGS
="-fcf-protection -mshstk"
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16704 $as_echo "yes" >&6; }
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16707 $as_echo "no" >&6; }
16710 XCFLAGS
="$XCFLAGS $CET_FLAGS"
16711 FCFLAGS
="$FCFLAGS $CET_FLAGS"
16717 # Conditionalize the makefile for this target machine.
16719 for f
in ${tmake_file}
16721 if test -f ${srcdir}/config
/$f
16723 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
16726 tmake_file
="${tmake_file_}"
16729 # Cleanup and exit.
16730 CFLAGS
="$save_CFLAGS"
16731 cat >confcache
<<\_ACEOF
16732 # This file is a shell script that caches the results of configure
16733 # tests run on this system so they can be shared between configure
16734 # scripts and configure runs, see configure's option --config-cache.
16735 # It is not useful on other systems. If it contains results you don't
16736 # want to keep, you may remove or edit it.
16738 # config.status only pays attention to the cache file if you give it
16739 # the --recheck option to rerun configure.
16741 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16742 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16743 # following values.
16747 # The following way of writing the cache mishandles newlines in values,
16748 # but we know of no workaround that is simple, portable, and efficient.
16749 # So, we kill variables containing newlines.
16750 # Ultrix sh set writes to stderr and can't be redirected directly,
16751 # and sets the high bit in the cache file unless we assign to the vars.
16753 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16754 eval ac_val
=\$
$ac_var
16758 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16759 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16762 _ | IFS | as_nl
) ;; #(
16763 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16764 *) { eval $ac_var=; unset $ac_var;} ;;
16770 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16771 *${as_nl}ac_space
=\
*)
16772 # `set' does not quote correctly, so add quotes: double-quote
16773 # substitution turns \\\\ into \\, and sed turns \\ into \.
16776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16779 # `set' quotes correctly as required by POSIX, so do not add quotes.
16780 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16789 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16791 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16793 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16794 if test -w "$cache_file"; then
16795 if test "x$cache_file" != "x/dev/null"; then
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16797 $as_echo "$as_me: updating cache $cache_file" >&6;}
16798 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16799 cat confcache
>"$cache_file"
16801 case $cache_file in #(
16803 mv -f confcache
"$cache_file"$$
&&
16804 mv -f "$cache_file"$$
"$cache_file" ;; #(
16806 mv -f 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 if test ${multilib} = yes; then
16818 multilib_arg
="--enable-multilib"
16823 # Set up the set of libraries that we need to link against for libgomp.
16824 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16825 # which will force linkage against -lpthread (or equivalent for the system).
16826 # That's not 100% ideal, but about the best we can do easily.
16827 if test $enable_shared = yes; then
16828 link_gomp
="-lgomp %{static: $LIBS}"
16830 link_gomp
="-lgomp $LIBS"
16834 if test "$ac_cv_fc_compiler_gnu" = yes; then
16836 USE_FORTRAN_FALSE
='#'
16838 USE_FORTRAN_TRUE
='#'
16843 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16844 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16845 # the underscore here and update the PREREQ. If it doesn't, then we'll
16846 # need to copy this macro to our acinclude.m4.
16847 save_CFLAGS
="$CFLAGS"
16848 for i
in $config_path; do
16849 if test -f $srcdir/config
/$i/omp-lock.h
; then
16850 CFLAGS
="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16855 if ac_fn_c_compute_int
"$LINENO" "sizeof (__INTPTR_TYPE__)" "INTPTR_T_KIND" ""; then :
16860 if ac_fn_c_compute_int
"$LINENO" "sizeof (__int128)" "OMP_INT128_SIZE" ""; then :
16867 if ac_fn_c_compute_int
"$LINENO" "2*sizeof (__INTPTR_TYPE__)" "OMP_DEPEND_KIND" ""; then :
16874 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16877 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16881 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16886 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16891 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16896 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16899 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16903 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16908 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16913 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16919 # If the lock fits in an integer, then arrange for Fortran to use that
16920 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16921 # Except that we don't have a way at present to multi-lib the installed
16922 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16924 OMP_LOCK_KIND
=$OMP_LOCK_SIZE
16925 OMP_NEST_LOCK_KIND
=$OMP_NEST_LOCK_SIZE
16926 if test $OMP_LOCK_SIZE -gt 8 ||
test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16929 if test $OMP_NEST_LOCK_SIZE -gt 8 ||
test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16930 OMP_NEST_LOCK_KIND
=8
16932 OMP_LOCK_25_KIND
=$OMP_LOCK_25_SIZE
16933 OMP_NEST_LOCK_25_KIND
=$OMP_NEST_LOCK_25_SIZE
16934 if test $OMP_LOCK_25_SIZE -gt 8 ||
test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16937 if test $OMP_NEST_LOCK_25_SIZE -gt 8 ||
test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16938 OMP_NEST_LOCK_25_KIND
=8
16940 if test "$ac_cv_fc_compiler_gnu" = yes; then
16941 if test $OMP_DEPEND_KIND -eq 16; then
16942 if test $OMP_INT128_SIZE -ne 16; then
16943 as_fn_error $?
"unsupported system, cannot find Fortran int kind=16, needed for omp_depend_kind" "$LINENO" 5
16946 if test $OMP_DEPEND_KIND -ne 8; then
16947 as_fn_error $?
"unsupported system, cannot find Fortran integer kind for omp_depend_kind" "$LINENO" 5
16966 CFLAGS
="$save_CFLAGS"
16968 # Determine what GCC version number to use in filesystem paths.
16970 get_gcc_base_ver
="cat"
16972 # Check whether --with-gcc-major-version-only was given.
16973 if test "${with_gcc_major_version_only+set}" = set; then :
16974 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
16975 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
16983 ac_config_files
="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16985 ac_config_files
="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16987 ac_config_files
="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16989 ac_config_files
="$ac_config_files testsuite/libgomp-site-extra.exp"
16991 cat >confcache
<<\_ACEOF
16992 # This file is a shell script that caches the results of configure
16993 # tests run on this system so they can be shared between configure
16994 # scripts and configure runs, see configure's option --config-cache.
16995 # It is not useful on other systems. If it contains results you don't
16996 # want to keep, you may remove or edit it.
16998 # config.status only pays attention to the cache file if you give it
16999 # the --recheck option to rerun configure.
17001 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17002 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17003 # following values.
17007 # The following way of writing the cache mishandles newlines in values,
17008 # but we know of no workaround that is simple, portable, and efficient.
17009 # So, we kill variables containing newlines.
17010 # Ultrix sh set writes to stderr and can't be redirected directly,
17011 # and sets the high bit in the cache file unless we assign to the vars.
17013 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17014 eval ac_val
=\$
$ac_var
17018 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17019 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17022 _ | IFS | as_nl
) ;; #(
17023 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17024 *) { eval $ac_var=; unset $ac_var;} ;;
17030 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17031 *${as_nl}ac_space
=\
*)
17032 # `set' does not quote correctly, so add quotes: double-quote
17033 # substitution turns \\\\ into \\, and sed turns \\ into \.
17036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17039 # `set' quotes correctly as required by POSIX, so do not add quotes.
17040 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17049 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17051 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17053 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17054 if test -w "$cache_file"; then
17055 if test "x$cache_file" != "x/dev/null"; then
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17057 $as_echo "$as_me: updating cache $cache_file" >&6;}
17058 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17059 cat confcache
>"$cache_file"
17061 case $cache_file in #(
17063 mv -f confcache
"$cache_file"$$
&&
17064 mv -f "$cache_file"$$
"$cache_file" ;; #(
17066 mv -f confcache
"$cache_file" ;;
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17072 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17077 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17078 # Let make expand exec_prefix.
17079 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17081 DEFS
=-DHAVE_CONFIG_H
17086 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17087 # 1. Remove the extension, and $U if already installed.
17088 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17089 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17090 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17091 # will be set to the directory where LIBOBJS objects are built.
17092 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17093 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17095 LIBOBJS
=$ac_libobjs
17097 LTLIBOBJS
=$ac_ltlibobjs
17100 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17101 as_fn_error $?
"conditional \"GENINSRC\" was never defined.
17102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17105 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17106 if test -n "$am_sleep_pid"; then
17107 # Hide warnings about reused PIDs.
17108 wait $am_sleep_pid 2>/dev
/null
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17111 $as_echo "done" >&6; }
17112 if test -n "$EXEEXT"; then
17114 am__EXEEXT_FALSE
='#'
17116 am__EXEEXT_TRUE
='#'
17120 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17121 as_fn_error $?
"conditional \"AMDEP\" was never defined.
17122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17124 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17125 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
17126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17128 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17129 as_fn_error $?
"conditional \"BUILD_INFO\" was never defined.
17130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17132 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17133 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17136 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17137 as_fn_error $?
"conditional \"PLUGIN_NVPTX\" was never defined.
17138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17140 if test -z "${PLUGIN_NVPTX_DYNAMIC_TRUE}" && test -z "${PLUGIN_NVPTX_DYNAMIC_FALSE}"; then
17141 as_fn_error $?
"conditional \"PLUGIN_NVPTX_DYNAMIC\" was never defined.
17142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17144 if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then
17145 as_fn_error $?
"conditional \"PLUGIN_GCN\" was never defined.
17146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17148 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17149 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17152 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17153 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17156 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17157 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17160 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17161 as_fn_error $?
"conditional \"USE_FORTRAN\" was never defined.
17162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17165 : "${CONFIG_STATUS=./config.status}"
17167 ac_clean_files_save
=$ac_clean_files
17168 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17170 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17172 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17174 # Generated by $as_me.
17175 # Run this file to recreate the current configuration.
17176 # Compiler output produced by configure, useful for debugging
17177 # configure, is in config.log if it exists.
17180 ac_cs_recheck=false
17183 SHELL=\${CONFIG_SHELL-$SHELL}
17186 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17187 ## -------------------- ##
17188 ## M4sh Initialization. ##
17189 ## -------------------- ##
17191 # Be more Bourne compatible
17192 DUALCASE
=1; export DUALCASE
# for MKS sh
17193 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17196 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17197 # is contrary to our usage. Disable this feature.
17198 alias -g '${1+"$@"}'='"$@"'
17199 setopt NO_GLOB_SUBST
17201 case `(set -o) 2>/dev/null` in #(
17213 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17214 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17215 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17216 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17217 # Prefer a ksh shell builtin over an external printf program on Solaris,
17218 # but without wasting forks for bash or zsh.
17219 if test -z "$BASH_VERSION$ZSH_VERSION" \
17220 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17221 as_echo='print
-r --'
17222 as_echo_n='print
-rn --'
17223 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17224 as_echo='printf %s
\n'
17225 as_echo_n='printf %s
'
17227 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17228 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17229 as_echo_n='/usr
/ucb
/echo -n'
17231 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17232 as_echo_n_body='eval
17236 expr "X$arg" : "X\\(.*\\)$as_nl";
17237 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17239 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17241 export as_echo_n_body
17242 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17244 export as_echo_body
17245 as_echo='sh
-c $as_echo_body as_echo
'
17248 # The user is always right.
17249 if test "${PATH_SEPARATOR+set}" != set; then
17251 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17252 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17259 # We need space, tab and new line, in precisely that order. Quoting is
17260 # there to prevent editors from complaining about space-tab.
17261 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17262 # splitting by setting IFS to empty value.)
17265 # Find who we are. Look in the path if we contain no directory separator.
17268 *[\\/]* ) as_myself=$0 ;;
17269 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17270 for as_dir in $PATH
17273 test -z "$as_dir" && as_dir=.
17274 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17280 # We did not find ourselves, most probably we were run as `sh COMMAND'
17281 # in which case we are not to be found in the path.
17282 if test "x$as_myself" = x
; then
17285 if test ! -f "$as_myself"; then
17286 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17290 # Unset variables that we do not need and which cause bugs (e.g. in
17291 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17292 # suppresses any "Segmentation fault" message there. '((' could
17293 # trigger a bug in pdksh 5.2.14.
17294 for as_var
in BASH_ENV ENV MAIL MAILPATH
17295 do eval test x\
${$as_var+set} = xset \
17296 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17309 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17312 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17313 # ----------------------------------------
17314 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17315 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17316 # script with STATUS, using 1 if that was 0.
17319 as_status
=$1; test $as_status -eq 0 && as_status
=1
17321 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17322 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17324 $as_echo "$as_me: error: $2" >&2
17325 as_fn_exit
$as_status
17329 # as_fn_set_status STATUS
17330 # -----------------------
17331 # Set $? to STATUS, without forking.
17332 as_fn_set_status
()
17335 } # as_fn_set_status
17337 # as_fn_exit STATUS
17338 # -----------------
17339 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17343 as_fn_set_status
$1
17349 # Portably unset VAR.
17352 { eval $1=; unset $1;}
17354 as_unset
=as_fn_unset
17355 # as_fn_append VAR VALUE
17356 # ----------------------
17357 # Append the text in VALUE to the end of the definition contained in VAR. Take
17358 # advantage of any shell optimizations that allow amortized linear growth over
17359 # repeated appends, instead of the typical quadratic growth present in naive
17361 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17362 eval 'as_fn_append ()
17373 # as_fn_arith ARG...
17374 # ------------------
17375 # Perform arithmetic evaluation on the ARGs, and store the result in the
17376 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17377 # must be portable across $(()) and expr.
17378 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17379 eval 'as_fn_arith ()
17386 as_val
=`expr "$@" || test $? -eq 1`
17391 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17392 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17398 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17399 as_basename
=basename
17404 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17410 as_me
=`$as_basename -- "$0" ||
17411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17412 X"$0" : 'X\(//\)$' \| \
17413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17415 sed '/^.*\/\([^/][^/]*\)\/*$/{
17429 # Avoid depending upon Character Ranges.
17430 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17431 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17432 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17433 as_cr_digits
='0123456789'
17434 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17436 ECHO_C
= ECHO_N
= ECHO_T
=
17437 case `echo -n x` in #(((((
17439 case `echo 'xy\c'` in
17440 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17442 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17449 rm -f conf$$ conf$$.exe conf$$.
file
17450 if test -d conf$$.dir
; then
17451 rm -f conf$$.dir
/conf$$.
file
17454 mkdir conf$$.dir
2>/dev
/null
17456 if (echo >conf$$.
file) 2>/dev
/null
; then
17457 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17459 # ... but there are two gotchas:
17460 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17461 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17462 # In both cases, we have to default to `cp -pR'.
17463 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17465 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17473 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17474 rmdir conf$$.dir
2>/dev
/null
17479 # Create "$as_dir" as a directory, including parents if necessary.
17484 -*) as_dir
=.
/$as_dir;;
17486 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17490 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17491 *) as_qdir
=$as_dir;;
17493 as_dirs
="'$as_qdir' $as_dirs"
17494 as_dir
=`$as_dirname -- "$as_dir" ||
17495 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17496 X"$as_dir" : 'X\(//\)[^/]' \| \
17497 X"$as_dir" : 'X\(//\)$' \| \
17498 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17499 $as_echo X"$as_dir" |
17500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17504 /^X\(\/\/\)[^/].*/{
17517 test -d "$as_dir" && break
17519 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17520 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17524 if mkdir
-p .
2>/dev
/null
; then
17525 as_mkdir_p
='mkdir -p "$as_dir"'
17527 test -d .
/-p && rmdir .
/-p
17532 # as_fn_executable_p FILE
17533 # -----------------------
17534 # Test if FILE is an executable regular file.
17535 as_fn_executable_p
()
17537 test -f "$1" && test -x "$1"
17538 } # as_fn_executable_p
17539 as_test_x
='test -x'
17540 as_executable_p
=as_fn_executable_p
17542 # Sed expression to map a string onto a valid CPP name.
17543 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17545 # Sed expression to map a string onto a valid variable name.
17546 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17550 ## ----------------------------------- ##
17551 ## Main body of $CONFIG_STATUS script. ##
17552 ## ----------------------------------- ##
17554 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17557 # Save the log message, to keep $0 and so on meaningful, and to
17558 # report actual input values of CONFIG_FILES etc. instead of their
17559 # values after options handling.
17561 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17562 generated by GNU Autoconf 2.69. Invocation command line was
17564 CONFIG_FILES = $CONFIG_FILES
17565 CONFIG_HEADERS = $CONFIG_HEADERS
17566 CONFIG_LINKS = $CONFIG_LINKS
17567 CONFIG_COMMANDS = $CONFIG_COMMANDS
17570 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17575 case $ac_config_files in *"
17576 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17579 case $ac_config_headers in *"
17580 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17585 # Files that config.status was made for.
17586 config_files="$ac_config_files"
17587 config_headers="$ac_config_headers"
17588 config_commands="$ac_config_commands"
17592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17594 \`$as_me' instantiates files and other configuration actions
17595 from templates according to the current configuration. Unless the files
17596 and actions are specified as TAGs, all are instantiated by default.
17598 Usage: $0 [OPTION]... [TAG]...
17600 -h, --help print this help, then exit
17601 -V, --version print version number and configuration settings, then exit
17602 --config print configuration, then exit
17603 -q, --quiet, --silent
17604 do not print progress messages
17605 -d, --debug don't remove temporary files
17606 --recheck update $as_me by reconfiguring in the same conditions
17607 --file=FILE[:TEMPLATE]
17608 instantiate the configuration file FILE
17609 --header=FILE[:TEMPLATE]
17610 instantiate the configuration header FILE
17612 Configuration files:
17615 Configuration headers:
17618 Configuration commands:
17621 Report bugs to the package provider.
17622 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17623 General help using GNU software: <http://www.gnu.org/gethelp/>."
17626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17627 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17629 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17630 configured by $0, generated by GNU Autoconf 2.69,
17631 with options \\"\$ac_cs_config\\"
17633 Copyright (C) 2012 Free Software Foundation, Inc.
17634 This config.status script is free software; the Free Software Foundation
17635 gives unlimited permission to copy, distribute and modify it."
17642 test -n "\$AWK" || AWK=awk
17645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17646 # The default lists apply if the user does not specify any file.
17652 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17653 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17657 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17669 # Handling of the options.
17670 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17672 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17673 $as_echo "$ac_cs_version"; exit ;;
17674 --config |
--confi |
--conf |
--con |
--co |
--c )
17675 $as_echo "$ac_cs_config"; exit ;;
17676 --debug |
--debu |
--deb |
--de |
--d |
-d )
17678 --file |
--fil |
--fi |
--f )
17681 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17682 '') as_fn_error $?
"missing file argument" ;;
17684 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17685 ac_need_defaults
=false
;;
17686 --header |
--heade |
--head |
--hea )
17689 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17691 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17692 ac_need_defaults
=false
;;
17694 # Conflict between --help and --header
17695 as_fn_error $?
"ambiguous option: \`$1'
17696 Try \`$0 --help' for more information.";;
17697 --help |
--hel |
-h )
17698 $as_echo "$ac_cs_usage"; exit ;;
17699 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17700 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17703 # This is an error.
17704 -*) as_fn_error $?
"unrecognized option: \`$1'
17705 Try \`$0 --help' for more information." ;;
17707 *) as_fn_append ac_config_targets
" $1"
17708 ac_need_defaults
=false
;;
17714 ac_configure_extra_args
=
17716 if $ac_cs_silent; then
17718 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17723 if \$ac_cs_recheck; then
17724 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17726 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17727 CONFIG_SHELL='$SHELL'
17728 export CONFIG_SHELL
17733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17737 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17738 ## Running $as_me. ##
17744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17752 with_multisubdir="$with_multisubdir"
17753 with_multisrctop="$with_multisrctop"
17754 with_target_subdir="$with_target_subdir"
17755 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17756 multi_basedir="$multi_basedir"
17757 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17760 GFORTRAN="$GFORTRAN"
17762 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17765 # The HP-UX ksh and POSIX shell print the target directory to stdout
17766 # if CDPATH is set.
17767 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17769 sed_quote_subst='$sed_quote_subst'
17770 double_quote_subst='$double_quote_subst'
17771 delay_variable_subst='$delay_variable_subst'
17772 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17773 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17774 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17775 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17776 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17777 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17778 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17779 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17780 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17781 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17782 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17783 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17784 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17785 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17786 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17787 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17788 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17789 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17790 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17791 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17792 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17793 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17794 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17795 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17796 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17797 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17798 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17799 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17800 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17801 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17802 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17803 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17804 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17805 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17806 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17807 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17808 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17809 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17810 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17811 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17812 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17813 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17814 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17815 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17816 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17817 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17818 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17819 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17820 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"`'
17821 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17822 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17823 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17824 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17825 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17826 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17827 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17828 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17829 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17830 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17831 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17832 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17833 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17834 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17835 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17836 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17837 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17838 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17839 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17840 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17841 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17842 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17843 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17844 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17845 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17846 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17847 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17848 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17849 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17850 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17851 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17852 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17853 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17854 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17855 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17856 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17857 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17858 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17859 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17860 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17861 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17862 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17863 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17864 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17865 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17866 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17867 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17868 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17869 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17870 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17871 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17872 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17873 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17874 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17875 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17876 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17877 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17878 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17879 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17880 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17881 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17882 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17883 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17884 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17885 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17886 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17887 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17888 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17889 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17890 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17891 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17892 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17893 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17894 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17895 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17896 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17897 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17898 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17899 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17900 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17901 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17902 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17903 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17904 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17905 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17906 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17907 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17908 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17909 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17910 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17911 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17912 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17913 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17914 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17915 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17916 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17917 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17918 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17919 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17920 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17921 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17922 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17923 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17924 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17925 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17926 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17927 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17928 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17929 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17930 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17931 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17932 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17933 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17934 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17935 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17936 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17937 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17938 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17939 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17940 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17941 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17942 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17943 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17944 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17945 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17946 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17949 LTCFLAGS='$LTCFLAGS'
17950 compiler='$compiler_DEFAULT'
17952 # A function that is used when there is no print builtin or printf.
17953 func_fallback_echo ()
17955 eval 'cat <<_LTECHO_EOF
17960 # Quote evaled strings.
17974 deplibs_check_method \
17983 lt_cv_sys_global_symbol_pipe \
17984 lt_cv_sys_global_symbol_to_cdecl \
17985 lt_cv_sys_global_symbol_to_c_name_address \
17986 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17987 lt_prog_compiler_no_builtin_flag \
17988 lt_prog_compiler_wl \
17989 lt_prog_compiler_pic \
17990 lt_prog_compiler_static \
17991 lt_cv_prog_compiler_c_o \
17999 export_dynamic_flag_spec \
18000 whole_archive_flag_spec \
18001 compiler_needs_object \
18003 allow_undefined_flag \
18004 no_undefined_flag \
18005 hardcode_libdir_flag_spec \
18006 hardcode_libdir_flag_spec_ld \
18007 hardcode_libdir_separator \
18012 variables_saved_for_relink \
18014 library_names_spec \
18016 install_override_mode \
18020 compiler_lib_search_dirs \
18025 compiler_lib_search_path \
18029 lt_prog_compiler_no_builtin_flag_FC \
18030 lt_prog_compiler_wl_FC \
18031 lt_prog_compiler_pic_FC \
18032 lt_prog_compiler_static_FC \
18033 lt_cv_prog_compiler_c_o_FC \
18034 export_dynamic_flag_spec_FC \
18035 whole_archive_flag_spec_FC \
18036 compiler_needs_object_FC \
18038 allow_undefined_flag_FC \
18039 no_undefined_flag_FC \
18040 hardcode_libdir_flag_spec_FC \
18041 hardcode_libdir_flag_spec_ld_FC \
18042 hardcode_libdir_separator_FC \
18043 fix_srcfile_path_FC \
18044 exclude_expsyms_FC \
18045 include_expsyms_FC \
18046 file_list_spec_FC \
18047 compiler_lib_search_dirs_FC \
18048 predep_objects_FC \
18049 postdep_objects_FC \
18052 compiler_lib_search_path_FC; do
18053 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18054 *[\\\\\\\`\\"\\\$]*)
18055 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18058 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18063 # Double-quote double-evaled strings.
18064 for var in reload_cmds \
18065 old_postinstall_cmds \
18066 old_postuninstall_cmds \
18068 extract_expsyms_cmds \
18069 old_archive_from_new_cmds \
18070 old_archive_from_expsyms_cmds \
18072 archive_expsym_cmds \
18074 module_expsym_cmds \
18075 export_symbols_cmds \
18078 postuninstall_cmds \
18080 sys_lib_search_path_spec \
18081 sys_lib_dlsearch_path_spec \
18083 old_archive_cmds_FC \
18084 old_archive_from_new_cmds_FC \
18085 old_archive_from_expsyms_cmds_FC \
18087 archive_expsym_cmds_FC \
18089 module_expsym_cmds_FC \
18090 export_symbols_cmds_FC \
18091 prelink_cmds_FC; do
18092 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18093 *[\\\\\\\`\\"\\\$]*)
18094 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18097 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18102 ac_aux_dir='$ac_aux_dir'
18103 xsi_shell='$xsi_shell'
18104 lt_shell_append='$lt_shell_append'
18106 # See if we are running on zsh, and set the options which allow our
18107 # commands through without removal of \ escapes INIT.
18108 if test -n "\${ZSH_VERSION+set}" ; then
18109 setopt NO_GLOB_SUBST
18115 TIMESTAMP='$TIMESTAMP'
18126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18128 # Handling of arguments.
18129 for ac_config_target
in $ac_config_targets
18131 case $ac_config_target in
18132 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
18133 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
18134 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18135 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
18136 "omp.h") CONFIG_FILES
="$CONFIG_FILES omp.h" ;;
18137 "omp_lib.h") CONFIG_FILES
="$CONFIG_FILES omp_lib.h" ;;
18138 "omp_lib.f90") CONFIG_FILES
="$CONFIG_FILES omp_lib.f90" ;;
18139 "libgomp_f.h") CONFIG_FILES
="$CONFIG_FILES libgomp_f.h" ;;
18140 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18141 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
18142 "libgomp.spec") CONFIG_FILES
="$CONFIG_FILES libgomp.spec" ;;
18143 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18144 "testsuite/libgomp-site-extra.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;;
18146 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18151 # If the user did not use the arguments to specify the items to instantiate,
18152 # then the envvar interface is used. Set only those that are not.
18153 # We use the long form for the default assignment because of an extremely
18154 # bizarre bug on SunOS 4.1.3.
18155 if $ac_need_defaults; then
18156 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18157 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18158 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18161 # Have a temporary directory for convenience. Make it in the build tree
18162 # simply because there is no reason against having it here, and in addition,
18163 # creating and moving files from /tmp can sometimes cause problems.
18164 # Hook for its removal unless debugging.
18165 # Note that there is a small window in which the directory will not be cleaned:
18166 # after its creation but before its name has been assigned to `$tmp'.
18170 trap 'exit_status=$?
18171 : "${ac_tmp:=$tmp}"
18172 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18174 trap 'as_fn_exit 1' 1 2 13 15
18176 # Create a (secure) tmp directory for tmp files.
18179 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18183 tmp
=.
/conf$$
-$RANDOM
18184 (umask 077 && mkdir
"$tmp")
18185 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18188 # Set up the scripts for CONFIG_FILES section.
18189 # No need to generate them if there are no CONFIG_FILES.
18190 # This happens for instance with `./config.status config.h'.
18191 if test -n "$CONFIG_FILES"; then
18194 ac_cr
=`echo X | tr X '\015'`
18195 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18196 # But we know of no other shell where ac_cr would be empty at this
18197 # point, so we can use a bashism as a fallback.
18198 if test "x$ac_cr" = x
; then
18199 eval ac_cr
=\$
\'\\r
\'
18201 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18202 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18205 ac_cs_awk_cr
=$ac_cr
18208 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18213 echo "cat >conf$$subs.awk <<_ACEOF" &&
18214 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18216 } >conf$$subs.sh ||
18217 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18218 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18220 for ac_last_try in false false false false false :; do
18221 . ./conf$$subs.sh ||
18222 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18224 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18225 if test $ac_delim_n = $ac_delim_num; then
18227 elif $ac_last_try; then
18228 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18230 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18233 rm -f conf$$subs.sh
18235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18236 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18240 s/^/S["/; s
/!.
*/"]=/
18250 s/\(.\{148\}\)..*/\1/
18252 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18257 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18264 s/\(.\{148\}\)..*/\1/
18266 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18270 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18275 ' <conf$$subs.awk | sed '
18280 ' >>$CONFIG_STATUS || ac_write_fail=1
18281 rm -f conf$$subs.awk
18282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18284 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18285 for (key in S) S_is_set[key] = 1
18291 nfields = split(line, field, "@
")
18293 len = length(field[1])
18294 for (i = 2; i < nfields; i++) {
18296 keylen = length(key)
18297 if (S_is_set[key]) {
18299 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18300 len += length(value) + length(field[++i])
18311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18312 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18313 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18316 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18317 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18320 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18321 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18322 # trailing colons and then remove the whole line if VPATH becomes empty
18323 # (actually we leave an empty line to preserve line numbers).
18324 if test "x
$srcdir" = x.; then
18325 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18344 fi # test -n "$CONFIG_FILES"
18346 # Set up the scripts for CONFIG_HEADERS section.
18347 # No need to generate them if there are no CONFIG_HEADERS.
18348 # This happens for instance with `./config.status Makefile'.
18349 if test -n "$CONFIG_HEADERS"; then
18350 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18354 # Transform confdefs.h into an awk script `defines.awk', embedded as
18355 # here-document in config.status, that substitutes the proper values into
18356 # config.h.in to produce config.h.
18358 # Create a delimiter string that does not exist in confdefs.h, to ease
18359 # handling of long lines.
18361 for ac_last_try in false false :; do
18362 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18363 if test -z "$ac_tt"; then
18365 elif $ac_last_try; then
18366 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18368 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18372 # For the awk script, D is an array of macro values keyed by name,
18373 # likewise P contains macro parameters if any. Preserve backslash
18374 # newline sequences.
18376 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18378 s/.\{148\}/&'"$ac_delim"'/g
18381 s/^[ ]*#[ ]*define[ ][ ]*/ /
18388 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18390 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18394 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18395 D["\
1"]=" \
3\\\\\\n
"\\/p
18397 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18402 s/.\{148\}/&'"$ac_delim"'/g
18407 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18410 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18412 ' <confdefs.h | sed '
18413 s/'"$ac_delim"'/"\\\
18414 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18417 for (key in D) D_is_set[key] = 1
18420 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18422 split(line, arg, " ")
18423 if (arg[1] == "#") {
18427 defundef
= substr
(arg
[1], 2)
18430 split(mac1
, mac2
, "(") #)
18432 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18433 if (D_is_set
[macro
]) {
18434 # Preserve the white space surrounding the "#".
18435 print prefix
"define", macro P
[macro
] D
[macro
]
18438 # Replace #undef with comments. This is necessary, for example,
18439 # in the case of _POSIX_SOURCE, which is predefined and required
18440 # on some systems where configure will not decide to define it.
18441 if (defundef
== "undef") {
18442 print
"/*", prefix defundef
, macro
, "*/"
18450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18451 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18452 fi # test -n "$CONFIG_HEADERS"
18455 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18460 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18462 case $ac_mode$ac_tag in
18464 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18465 :[FH
]-) ac_tag
=-:-;;
18466 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18483 -) ac_f
="$ac_tmp/stdin";;
18484 *) # Look for the file first in the build tree, then in the source tree
18485 # (if the path is not absolute). The absolute path cannot be DOS-style,
18486 # because $ac_f cannot contain `:'.
18490 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18492 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18494 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18495 as_fn_append ac_file_inputs
" '$ac_f'"
18498 # Let's still pretend it is `configure' which instantiates (i.e., don't
18499 # use $as_me), people would be surprised to read:
18500 # /* config.h. Generated by config.status. */
18501 configure_input
='Generated from '`
18502 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18504 if test x
"$ac_file" != x-
; then
18505 configure_input
="$ac_file. $configure_input"
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18507 $as_echo "$as_me: creating $ac_file" >&6;}
18509 # Neutralize special characters interpreted by sed in replacement strings.
18510 case $configure_input in #(
18511 *\
&* |
*\|
* |
*\\* )
18512 ac_sed_conf_input
=`$as_echo "$configure_input" |
18513 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18514 *) ac_sed_conf_input
=$configure_input;;
18518 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18519 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18524 ac_dir
=`$as_dirname -- "$ac_file" ||
18525 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18526 X"$ac_file" : 'X\(//\)[^/]' \| \
18527 X"$ac_file" : 'X\(//\)$' \| \
18528 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18529 $as_echo X"$ac_file" |
18530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18534 /^X\(\/\/\)[^/].*/{
18547 as_dir
="$ac_dir"; as_fn_mkdir_p
18551 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18553 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18554 # A ".." for each directory in $ac_dir_suffix.
18555 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18556 case $ac_top_builddir_sub in
18557 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18558 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18561 ac_abs_top_builddir
=$ac_pwd
18562 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18563 # for backward compatibility:
18564 ac_top_builddir
=$ac_top_build_prefix
18567 .
) # We are building in place.
18569 ac_top_srcdir
=$ac_top_builddir_sub
18570 ac_abs_top_srcdir
=$ac_pwd ;;
18571 [\\/]* | ?
:[\\/]* ) # Absolute name.
18572 ac_srcdir
=$srcdir$ac_dir_suffix;
18573 ac_top_srcdir
=$srcdir
18574 ac_abs_top_srcdir
=$srcdir ;;
18575 *) # Relative name.
18576 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18577 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18578 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18580 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18590 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18591 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18593 ac_MKDIR_P
=$MKDIR_P
18595 [\\/$
]* | ?
:[\\/]* ) ;;
18596 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18601 # If the template does not know about datarootdir, expand it.
18602 # FIXME: This hack should be removed a few years after 2.60.
18603 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18614 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18615 *datarootdir
*) ac_datarootdir_seen
=yes;;
18616 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18618 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18621 ac_datarootdir_hack='
18622 s&@datadir@&$datadir&g
18623 s&@docdir@&$docdir&g
18624 s&@infodir@&$infodir&g
18625 s&@localedir@&$localedir&g
18626 s&@mandir@&$mandir&g
18627 s&\\\${datarootdir}&$datarootdir&g' ;;
18631 # Neutralize VPATH when `$srcdir' = `.'.
18632 # Shell code in configure.ac might set extrasub.
18633 # FIXME: do we really want to maintain this feature?
18634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18635 ac_sed_extra="$ac_vpsub
18638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18640 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18641 s|@configure_input@|
$ac_sed_conf_input|
;t t
18642 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18643 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18644 s
&@srcdir@
&$ac_srcdir&;t t
18645 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18646 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18647 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18648 s
&@builddir@
&$ac_builddir&;t t
18649 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18650 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18651 s
&@INSTALL@
&$ac_INSTALL&;t t
18652 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18653 $ac_datarootdir_hack
18655 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
18656 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18658 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18659 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18660 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18661 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18663 which seems to be undefined. Please make sure it is defined" >&5
18664 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18665 which seems to be undefined. Please make sure it is defined" >&2;}
18667 rm -f "$ac_tmp/stdin"
18669 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18670 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18672 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18678 if test x"$ac_file" != x-; then
18680 $as_echo "/* $configure_input */" \
18681 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18682 } >"$ac_tmp/config.h" \
18683 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18684 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18686 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18689 mv "$ac_tmp/config.h" "$ac_file" \
18690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18693 $as_echo "/* $configure_input */" \
18694 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18695 || as_fn_error $? "could not create -" "$LINENO" 5
18697 # Compute "$ac_file"'s index
in $config_headers.
18700 for _am_header
in $config_headers :; do
18701 case $_am_header in
18702 $_am_arg |
$_am_arg:* )
18705 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18708 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18709 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18710 X"$_am_arg" : 'X\(//\)[^/]' \| \
18711 X"$_am_arg" : 'X\(//\)$' \| \
18712 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18713 $as_echo X"$_am_arg" |
18714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18718 /^X\(\/\/\)[^/].*/{
18730 s/.*/./; q'`/stamp-h
$_am_stamp_count
18733 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18734 $as_echo "$as_me: executing $ac_file commands" >&6;}
18739 case $ac_file$ac_mode in
18741 # Only add multilib support code if we just rebuilt the top-level
18743 case " $CONFIG_FILES " in
18745 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18748 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18749 # Older Autoconf quotes --file arguments for eval, but not when files
18750 # are listed without --file. Let's play safe and only enable the eval
18751 # if we detect the quoting.
18752 case $CONFIG_FILES in
18753 *\'*) eval set x
"$CONFIG_FILES" ;;
18754 *) set x
$CONFIG_FILES ;;
18759 # Strip MF so we end up with the name of the file.
18760 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18761 # Check whether this is an Automake generated Makefile or not.
18762 # We used to match only the files named 'Makefile.in', but
18763 # some people rename them; so instead we look at the file content.
18764 # Grep'ing the first line is not enough: some people post-process
18765 # each Makefile.in and add a new line on top of each file to say so.
18766 # Grep'ing the whole file is not good either: AIX grep has a line
18767 # limit of 2048, but all sed's we know have understand at least 4000.
18768 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18769 dirpart
=`$as_dirname -- "$mf" ||
18770 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18771 X"$mf" : 'X\(//\)[^/]' \| \
18772 X"$mf" : 'X\(//\)$' \| \
18773 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18779 /^X\(\/\/\)[^/].*/{
18795 # Extract the definition of DEPDIR, am__include, and am__quote
18796 # from the Makefile without running 'make'.
18797 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18798 test -z "$DEPDIR" && continue
18799 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18800 test -z "$am__include" && continue
18801 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18802 # Find all dependency output files, they are included files with
18803 # $(DEPDIR) in their names. We invoke sed twice because it is the
18804 # simplest approach to changing $(DEPDIR) to its actual value in the
18806 for file in `sed -n "
18807 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18808 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18809 # Make sure the directory exists.
18810 test -f "$dirpart/$file" && continue
18811 fdir
=`$as_dirname -- "$file" ||
18812 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18813 X"$file" : 'X\(//\)[^/]' \| \
18814 X"$file" : 'X\(//\)$' \| \
18815 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18816 $as_echo X"$file" |
18817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18821 /^X\(\/\/\)[^/].*/{
18834 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18835 # echo "creating $dirpart/$file"
18836 echo '# dummy' > "$dirpart/$file"
18843 # See if we are running on zsh, and set the options which allow our
18844 # commands through without removal of \ escapes.
18845 if test -n "${ZSH_VERSION+set}" ; then
18846 setopt NO_GLOB_SUBST
18849 cfgfile
="${ofile}T"
18850 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18853 cat <<_LT_EOF >> "$cfgfile"
18856 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18857 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18858 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18859 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18861 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18862 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18863 # Written by Gordon Matzigkeit, 1996
18865 # This file is part of GNU Libtool.
18867 # GNU Libtool is free software; you can redistribute it and/or
18868 # modify it under the terms of the GNU General Public License as
18869 # published by the Free Software Foundation; either version 2 of
18870 # the License, or (at your option) any later version.
18872 # As a special exception to the GNU General Public License,
18873 # if you distribute this file as part of a program or library that
18874 # is built using GNU Libtool, you may include this file under the
18875 # same distribution terms that you use for the rest of that program.
18877 # GNU Libtool is distributed in the hope that it will be useful,
18878 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18879 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18880 # GNU General Public License for more details.
18882 # You should have received a copy of the GNU General Public License
18883 # along with GNU Libtool; see the file COPYING. If not, a copy
18884 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18885 # obtained by writing to the Free Software Foundation, Inc.,
18886 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18889 # The names of the tagged configurations supported by this script.
18890 available_tags="FC "
18892 # ### BEGIN LIBTOOL CONFIG
18894 # Which release of libtool.m4 was used?
18895 macro_version=$macro_version
18896 macro_revision=$macro_revision
18898 # Whether or not to build shared libraries.
18899 build_libtool_libs=$enable_shared
18901 # Whether or not to build static libraries.
18902 build_old_libs=$enable_static
18904 # What type of objects to build.
18907 # Whether or not to optimize for fast installation.
18908 fast_install=$enable_fast_install
18910 # Shell to use when invoking shell scripts.
18913 # An echo program that protects backslashes.
18917 host_alias=$host_alias
18921 # The build system.
18922 build_alias=$build_alias
18926 # A sed program that does not truncate output.
18929 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18930 Xsed="\$SED -e 1s/^X//"
18932 # A grep program that handles long lines.
18938 # A literal string matcher.
18941 # A BSD- or MS-compatible name lister.
18944 # Whether we need soft or hard links.
18947 # What is the maximum length of a command?
18948 max_cmd_len=$max_cmd_len
18950 # Object file suffix (normally "o").
18953 # Executable file suffix (normally "").
18956 # whether the shell understands "unset".
18959 # turn spaces into newlines.
18962 # turn newlines into spaces.
18965 # An object symbol dumper.
18966 OBJDUMP=$lt_OBJDUMP
18968 # Method to check whether dependent libraries are shared objects.
18969 deplibs_check_method=$lt_deplibs_check_method
18971 # Command to use when deplibs_check_method == "file_magic".
18972 file_magic_cmd=$lt_file_magic_cmd
18976 AR_FLAGS=$lt_AR_FLAGS
18978 # A symbol stripping program.
18981 # Commands used to install an old-style archive.
18983 old_postinstall_cmds=$lt_old_postinstall_cmds
18984 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18986 # Whether to use a lock for old archive extraction.
18987 lock_old_archive_extraction=$lock_old_archive_extraction
18992 # LTCC compiler flags.
18993 LTCFLAGS=$lt_CFLAGS
18995 # Take the output of nm and produce a listing of raw symbols and C names.
18996 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18998 # Transform the output of nm in a proper C declaration.
18999 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19001 # Transform the output of nm in a C name address pair.
19002 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19004 # Transform the output of nm in a C name address pair when lib prefix is needed.
19005 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19007 # The name of the directory that contains temporary libtool files.
19010 # Used to examine libraries when file_magic_cmd begins with "file".
19011 MAGIC_CMD=$MAGIC_CMD
19013 # Must we lock files when doing compilation?
19014 need_locks=$lt_need_locks
19016 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19017 DSYMUTIL=$lt_DSYMUTIL
19019 # Tool to change global to local symbols on Mac OS X.
19022 # Tool to manipulate fat objects and archives on Mac OS X.
19025 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19028 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19029 OTOOL64=$lt_OTOOL64
19031 # Old archive suffix (normally "a").
19034 # Shared library suffix (normally ".so").
19035 shrext_cmds=$lt_shrext_cmds
19037 # The commands to extract the exported symbol list from a shared archive.
19038 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19040 # Variables whose values should be saved in libtool wrapper scripts and
19041 # restored at link time.
19042 variables_saved_for_relink=$lt_variables_saved_for_relink
19044 # Do we need the "lib" prefix for modules?
19045 need_lib_prefix=$need_lib_prefix
19047 # Do we need a version for libraries?
19048 need_version=$need_version
19050 # Library versioning type.
19051 version_type=$version_type
19053 # Shared library runtime path variable.
19054 runpath_var=$runpath_var
19056 # Shared library path variable.
19057 shlibpath_var=$shlibpath_var
19059 # Is shlibpath searched before the hard-coded library search path?
19060 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19062 # Format of library name prefix.
19063 libname_spec=$lt_libname_spec
19065 # List of archive names. First name is the real one, the rest are links.
19066 # The last name is the one that the linker finds with -lNAME
19067 library_names_spec=$lt_library_names_spec
19069 # The coded name of the library, if different from the real name.
19070 soname_spec=$lt_soname_spec
19072 # Permission mode override for installation of shared libraries.
19073 install_override_mode=$lt_install_override_mode
19075 # Command to use after installation of a shared archive.
19076 postinstall_cmds=$lt_postinstall_cmds
19078 # Command to use after uninstallation of a shared archive.
19079 postuninstall_cmds=$lt_postuninstall_cmds
19081 # Commands used to finish a libtool library installation in a directory.
19082 finish_cmds=$lt_finish_cmds
19084 # As "finish_cmds", except a single script fragment to be evaled but
19086 finish_eval=$lt_finish_eval
19088 # Whether we should hardcode library paths into libraries.
19089 hardcode_into_libs=$hardcode_into_libs
19091 # Compile-time system search path for libraries.
19092 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19094 # Run-time system search path for libraries.
19095 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19097 # Whether dlopen is supported.
19098 dlopen_support=$enable_dlopen
19100 # Whether dlopen of programs is supported.
19101 dlopen_self=$enable_dlopen_self
19103 # Whether dlopen of statically linked programs is supported.
19104 dlopen_self_static=$enable_dlopen_self_static
19106 # Commands to strip libraries.
19107 old_striplib=$lt_old_striplib
19108 striplib=$lt_striplib
19111 # The linker used to build libraries.
19114 # How to create reloadable object files.
19115 reload_flag=$lt_reload_flag
19116 reload_cmds=$lt_reload_cmds
19118 # Commands used to build an old-style archive.
19119 old_archive_cmds=$lt_old_archive_cmds
19121 # A language specific compiler.
19124 # Is the compiler the GNU compiler?
19127 # Compiler flag to turn off builtin functions.
19128 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19130 # How to pass a linker flag through the compiler.
19131 wl=$lt_lt_prog_compiler_wl
19133 # Additional compiler flags for building library objects.
19134 pic_flag=$lt_lt_prog_compiler_pic
19136 # Compiler flag to prevent dynamic linking.
19137 link_static_flag=$lt_lt_prog_compiler_static
19139 # Does compiler simultaneously support -c and -o options?
19140 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19142 # Whether or not to add -lc for building shared libraries.
19143 build_libtool_need_lc=$archive_cmds_need_lc
19145 # Whether or not to disallow shared libs when runtime libs are static.
19146 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19148 # Compiler flag to allow reflexive dlopens.
19149 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19151 # Compiler flag to generate shared objects directly from archives.
19152 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19154 # Whether the compiler copes with passing no objects directly.
19155 compiler_needs_object=$lt_compiler_needs_object
19157 # Create an old-style archive from a shared archive.
19158 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19160 # Create a temporary old-style archive to link instead of a shared archive.
19161 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19163 # Commands used to build a shared archive.
19164 archive_cmds=$lt_archive_cmds
19165 archive_expsym_cmds=$lt_archive_expsym_cmds
19167 # Commands used to build a loadable module if different from building
19168 # a shared archive.
19169 module_cmds=$lt_module_cmds
19170 module_expsym_cmds=$lt_module_expsym_cmds
19172 # Whether we are building with GNU ld or not.
19173 with_gnu_ld=$lt_with_gnu_ld
19175 # Flag that allows shared libraries with undefined symbols to be built.
19176 allow_undefined_flag=$lt_allow_undefined_flag
19178 # Flag that enforces no undefined symbols.
19179 no_undefined_flag=$lt_no_undefined_flag
19181 # Flag to hardcode \$libdir into a binary during linking.
19182 # This must work even if \$libdir does not exist
19183 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19185 # If ld is used when linking, flag to hardcode \$libdir into a binary
19186 # during linking. This must work even if \$libdir does not exist.
19187 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19189 # Whether we need a single "-rpath" flag with a separated argument.
19190 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19192 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19193 # DIR into the resulting binary.
19194 hardcode_direct=$hardcode_direct
19196 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19197 # DIR into the resulting binary and the resulting library dependency is
19198 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19199 # library is relocated.
19200 hardcode_direct_absolute=$hardcode_direct_absolute
19202 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19203 # into the resulting binary.
19204 hardcode_minus_L=$hardcode_minus_L
19206 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19207 # into the resulting binary.
19208 hardcode_shlibpath_var=$hardcode_shlibpath_var
19210 # Set to "yes" if building a shared library automatically hardcodes DIR
19211 # into the library and all subsequent libraries and executables linked
19213 hardcode_automatic=$hardcode_automatic
19215 # Set to yes if linker adds runtime paths of dependent libraries
19216 # to runtime path list.
19217 inherit_rpath=$inherit_rpath
19219 # Whether libtool must link a program against all its dependency libraries.
19220 link_all_deplibs=$link_all_deplibs
19222 # Fix the shell variable \$srcfile for the compiler.
19223 fix_srcfile_path=$lt_fix_srcfile_path
19225 # Set to "yes" if exported symbols are required.
19226 always_export_symbols=$always_export_symbols
19228 # The commands to list exported symbols.
19229 export_symbols_cmds=$lt_export_symbols_cmds
19231 # Symbols that should not be listed in the preloaded symbols.
19232 exclude_expsyms=$lt_exclude_expsyms
19234 # Symbols that must always be exported.
19235 include_expsyms=$lt_include_expsyms
19237 # Commands necessary for linking programs (against libraries) with templates.
19238 prelink_cmds=$lt_prelink_cmds
19240 # Specify filename containing input files.
19241 file_list_spec=$lt_file_list_spec
19243 # How to hardcode a shared library path into an executable.
19244 hardcode_action=$hardcode_action
19246 # The directories searched by this compiler when creating a shared library.
19247 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19249 # Dependencies to place before and after the objects being linked to
19250 # create a shared library.
19251 predep_objects=$lt_predep_objects
19252 postdep_objects=$lt_postdep_objects
19253 predeps=$lt_predeps
19254 postdeps=$lt_postdeps
19256 # The library search path used internally by the compiler when linking
19257 # a shared library.
19258 compiler_lib_search_path=$lt_compiler_lib_search_path
19260 # ### END LIBTOOL CONFIG
19266 cat <<\_LT_EOF
>> "$cfgfile"
19267 # AIX sometimes has problems with the GCC collect2 program. For some
19268 # reason, if we set the COLLECT_NAMES environment variable, the problems
19269 # vanish in a puff of smoke.
19270 if test "X${COLLECT_NAMES+set}" != Xset
; then
19272 export COLLECT_NAMES
19279 ltmain
="$ac_aux_dir/ltmain.sh"
19282 # We use sed instead of cat because bash on DJGPP gets confused if
19283 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19284 # text mode, it properly converts lines to CR/LF. This bash problem
19285 # is reportedly fixed, but why not run on old versions too?
19286 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19287 ||
(rm -f "$cfgfile"; exit 1)
19291 cat << \_LT_EOF
>> "$cfgfile"
19293 # func_dirname file append nondir_replacement
19294 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19295 # otherwise set result to NONDIR_REPLACEMENT.
19299 */*) func_dirname_result
="${1%/*}${2}" ;;
19300 * ) func_dirname_result
="${3}" ;;
19304 # func_basename file
19307 func_basename_result
="${1##*/}"
19310 # func_dirname_and_basename file append nondir_replacement
19311 # perform func_basename and func_dirname in a single function
19313 # dirname: Compute the dirname of FILE. If nonempty,
19314 # add APPEND to the result, otherwise set result
19315 # to NONDIR_REPLACEMENT.
19316 # value returned in "$func_dirname_result"
19317 # basename: Compute filename of FILE.
19318 # value retuned in "$func_basename_result"
19319 # Implementation must be kept synchronized with func_dirname
19320 # and func_basename. For efficiency, we do not delegate to
19321 # those functions but instead duplicate the functionality here.
19322 func_dirname_and_basename
()
19325 */*) func_dirname_result
="${1%/*}${2}" ;;
19326 * ) func_dirname_result
="${3}" ;;
19328 func_basename_result
="${1##*/}"
19331 # func_stripname prefix suffix name
19332 # strip PREFIX and SUFFIX off of NAME.
19333 # PREFIX and SUFFIX must not contain globbing or regex special
19334 # characters, hashes, percent signs, but SUFFIX may contain a leading
19335 # dot (in which case that matches only a dot).
19338 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19339 # positional parameters, so assign one to ordinary parameter first.
19340 func_stripname_result
=${3}
19341 func_stripname_result
=${func_stripname_result#"${1}"}
19342 func_stripname_result
=${func_stripname_result%"${2}"}
19348 func_opt_split_opt
=${1%%=*}
19349 func_opt_split_arg
=${1#*=}
19356 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19357 *) func_lo2o_result
=${1} ;;
19361 # func_xform libobj-or-source
19364 func_xform_result
=${1%.*}.lo
19367 # func_arith arithmetic-term...
19370 func_arith_result
=$
(( $
* ))
19374 # STRING may not start with a hyphen.
19377 func_len_result
=${#1}
19382 *) # Bourne compatible functions.
19383 cat << \_LT_EOF
>> "$cfgfile"
19385 # func_dirname file append nondir_replacement
19386 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19387 # otherwise set result to NONDIR_REPLACEMENT.
19390 # Extract subdirectory from the argument.
19391 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19392 if test "X$func_dirname_result" = "X${1}"; then
19393 func_dirname_result
="${3}"
19395 func_dirname_result
="$func_dirname_result${2}"
19399 # func_basename file
19402 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19406 # func_stripname prefix suffix name
19407 # strip PREFIX and SUFFIX off of NAME.
19408 # PREFIX and SUFFIX must not contain globbing or regex special
19409 # characters, hashes, percent signs, but SUFFIX may contain a leading
19410 # dot (in which case that matches only a dot).
19411 # func_strip_suffix prefix name
19415 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19416 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19421 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19422 my_sed_long_arg
='1s/^-[^=]*=//'
19427 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19428 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19434 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19437 # func_xform libobj-or-source
19440 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19443 # func_arith arithmetic-term...
19446 func_arith_result
=`expr "$@"`
19450 # STRING may not start with a hyphen.
19453 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19459 case $lt_shell_append in
19461 cat << \_LT_EOF
>> "$cfgfile"
19463 # func_append var value
19464 # Append VALUE to the end of shell variable VAR.
19472 cat << \_LT_EOF
>> "$cfgfile"
19474 # func_append var value
19475 # Append VALUE to the end of shell variable VAR.
19486 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19487 ||
(rm -f "$cfgfile"; exit 1)
19489 mv -f "$cfgfile" "$ofile" ||
19490 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19494 cat <<_LT_EOF >> "$ofile"
19496 # ### BEGIN LIBTOOL TAG CONFIG: FC
19498 # The linker used to build libraries.
19501 # How to create reloadable object files.
19502 reload_flag=$lt_reload_flag_FC
19503 reload_cmds=$lt_reload_cmds_FC
19505 # Commands used to build an old-style archive.
19506 old_archive_cmds=$lt_old_archive_cmds_FC
19508 # A language specific compiler.
19511 # Is the compiler the GNU compiler?
19514 # Compiler flag to turn off builtin functions.
19515 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19517 # How to pass a linker flag through the compiler.
19518 wl=$lt_lt_prog_compiler_wl_FC
19520 # Additional compiler flags for building library objects.
19521 pic_flag=$lt_lt_prog_compiler_pic_FC
19523 # Compiler flag to prevent dynamic linking.
19524 link_static_flag=$lt_lt_prog_compiler_static_FC
19526 # Does compiler simultaneously support -c and -o options?
19527 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19529 # Whether or not to add -lc for building shared libraries.
19530 build_libtool_need_lc=$archive_cmds_need_lc_FC
19532 # Whether or not to disallow shared libs when runtime libs are static.
19533 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19535 # Compiler flag to allow reflexive dlopens.
19536 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19538 # Compiler flag to generate shared objects directly from archives.
19539 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19541 # Whether the compiler copes with passing no objects directly.
19542 compiler_needs_object=$lt_compiler_needs_object_FC
19544 # Create an old-style archive from a shared archive.
19545 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19547 # Create a temporary old-style archive to link instead of a shared archive.
19548 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19550 # Commands used to build a shared archive.
19551 archive_cmds=$lt_archive_cmds_FC
19552 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19554 # Commands used to build a loadable module if different from building
19555 # a shared archive.
19556 module_cmds=$lt_module_cmds_FC
19557 module_expsym_cmds=$lt_module_expsym_cmds_FC
19559 # Whether we are building with GNU ld or not.
19560 with_gnu_ld=$lt_with_gnu_ld_FC
19562 # Flag that allows shared libraries with undefined symbols to be built.
19563 allow_undefined_flag=$lt_allow_undefined_flag_FC
19565 # Flag that enforces no undefined symbols.
19566 no_undefined_flag=$lt_no_undefined_flag_FC
19568 # Flag to hardcode \$libdir into a binary during linking.
19569 # This must work even if \$libdir does not exist
19570 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19572 # If ld is used when linking, flag to hardcode \$libdir into a binary
19573 # during linking. This must work even if \$libdir does not exist.
19574 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19576 # Whether we need a single "-rpath" flag with a separated argument.
19577 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19579 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19580 # DIR into the resulting binary.
19581 hardcode_direct=$hardcode_direct_FC
19583 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19584 # DIR into the resulting binary and the resulting library dependency is
19585 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19586 # library is relocated.
19587 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19589 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19590 # into the resulting binary.
19591 hardcode_minus_L=$hardcode_minus_L_FC
19593 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19594 # into the resulting binary.
19595 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19597 # Set to "yes" if building a shared library automatically hardcodes DIR
19598 # into the library and all subsequent libraries and executables linked
19600 hardcode_automatic=$hardcode_automatic_FC
19602 # Set to yes if linker adds runtime paths of dependent libraries
19603 # to runtime path list.
19604 inherit_rpath=$inherit_rpath_FC
19606 # Whether libtool must link a program against all its dependency libraries.
19607 link_all_deplibs=$link_all_deplibs_FC
19609 # Fix the shell variable \$srcfile for the compiler.
19610 fix_srcfile_path=$lt_fix_srcfile_path_FC
19612 # Set to "yes" if exported symbols are required.
19613 always_export_symbols=$always_export_symbols_FC
19615 # The commands to list exported symbols.
19616 export_symbols_cmds=$lt_export_symbols_cmds_FC
19618 # Symbols that should not be listed in the preloaded symbols.
19619 exclude_expsyms=$lt_exclude_expsyms_FC
19621 # Symbols that must always be exported.
19622 include_expsyms=$lt_include_expsyms_FC
19624 # Commands necessary for linking programs (against libraries) with templates.
19625 prelink_cmds=$lt_prelink_cmds_FC
19627 # Specify filename containing input files.
19628 file_list_spec=$lt_file_list_spec_FC
19630 # How to hardcode a shared library path into an executable.
19631 hardcode_action=$hardcode_action_FC
19633 # The directories searched by this compiler when creating a shared library.
19634 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19636 # Dependencies to place before and after the objects being linked to
19637 # create a shared library.
19638 predep_objects=$lt_predep_objects_FC
19639 postdep_objects=$lt_postdep_objects_FC
19640 predeps=$lt_predeps_FC
19641 postdeps=$lt_postdeps_FC
19643 # The library search path used internally by the compiler when linking
19644 # a shared library.
19645 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19647 # ### END LIBTOOL TAG CONFIG: FC
19658 ac_clean_files
=$ac_clean_files_save
19660 test $ac_write_fail = 0 ||
19661 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19664 # configure is writing to config.log, and then calls config.status.
19665 # config.status does its own redirection, appending to config.log.
19666 # Unfortunately, on DOS this fails, as config.log is still kept open
19667 # by configure, so config.status won't be able to write to it; its
19668 # output is simply discarded. So we exec the FD to /dev/null,
19669 # effectively closing config.log, so it can be properly (re)opened and
19670 # appended to by config.status. When coming back to configure, we
19671 # need to make the FD available again.
19672 if test "$no_create" != yes; then
19674 ac_config_status_args
=
19675 test "$silent" = yes &&
19676 ac_config_status_args
="$ac_config_status_args --quiet"
19678 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19680 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19681 # would make configure fail if this is the last instruction.
19682 $ac_cs_success || as_fn_exit
1
19684 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19686 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}