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
672 offload_additional_lib_paths
673 offload_additional_options
682 MAINTAINER_MODE_FALSE
741 INSTALL_STRIP_PROGRAM
797 program_transform_name
810 enable_option_checking
811 enable_version_specific_runtime_libs
812 enable_generated_files_in_srcdir
816 enable_dependency_tracking
824 enable_maintainer_mode
829 with_gcc_major_version_only
831 ac_precious_vars
='build_alias
842 # Initialize some variables set by options.
844 ac_init_version
=false
845 ac_unrecognized_opts
=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
856 program_transform_name
=s
,x
,x
,
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir
='${exec_prefix}/bin'
871 sbindir
='${exec_prefix}/sbin'
872 libexecdir
='${exec_prefix}/libexec'
873 datarootdir
='${prefix}/share'
874 datadir
='${datarootdir}'
875 sysconfdir
='${prefix}/etc'
876 sharedstatedir
='${prefix}/com'
877 localstatedir
='${prefix}/var'
878 includedir
='${prefix}/include'
879 oldincludedir
='/usr/include'
880 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
881 infodir
='${datarootdir}/info'
886 libdir
='${exec_prefix}/lib'
887 localedir
='${datarootdir}/locale'
888 mandir
='${datarootdir}/man'
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\
$ac_option
902 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 # Accept the important Cygnus configure options, so we can diagnose typos.
909 case $ac_dashdash$ac_option in
913 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
915 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
918 -build |
--build |
--buil |
--bui |
--bu)
919 ac_prev
=build_alias
;;
920 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
921 build_alias
=$ac_optarg ;;
923 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
924 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
925 ac_prev
=cache_file
;;
926 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
927 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
928 cache_file
=$ac_optarg ;;
931 cache_file
=config.cache
;;
933 -datadir |
--datadir |
--datadi |
--datad)
935 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
936 datadir
=$ac_optarg ;;
938 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
939 |
--dataroo |
--dataro |
--datar)
940 ac_prev
=datarootdir
;;
941 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
942 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
943 datarootdir
=$ac_optarg ;;
945 -disable-* |
--disable-*)
946 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
949 as_fn_error $?
"invalid feature name: $ac_useropt"
950 ac_useropt_orig
=$ac_useropt
951 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
956 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep
=', ';;
959 eval enable_
$ac_useropt=no
;;
961 -docdir |
--docdir |
--docdi |
--doc |
--do)
963 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
966 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
968 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
971 -enable-* |
--enable-*)
972 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
975 as_fn_error $?
"invalid feature name: $ac_useropt"
976 ac_useropt_orig
=$ac_useropt
977 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
982 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep
=', ';;
985 eval enable_
$ac_useropt=\
$ac_optarg ;;
987 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
988 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
989 |
--exec |
--exe |
--ex)
990 ac_prev
=exec_prefix
;;
991 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
992 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
993 |
--exec=* |
--exe=* |
--ex=*)
994 exec_prefix
=$ac_optarg ;;
996 -gas |
--gas |
--ga |
--g)
997 # Obsolete; use --with-gas.
1000 -help |
--help |
--hel |
--he |
-h)
1001 ac_init_help
=long
;;
1002 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1003 ac_init_help
=recursive
;;
1004 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1005 ac_init_help
=short
;;
1007 -host |
--host |
--hos |
--ho)
1008 ac_prev
=host_alias
;;
1009 -host=* |
--host=* |
--hos=* |
--ho=*)
1010 host_alias
=$ac_optarg ;;
1012 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1014 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1016 htmldir
=$ac_optarg ;;
1018 -includedir |
--includedir |
--includedi |
--included |
--include \
1019 |
--includ |
--inclu |
--incl |
--inc)
1020 ac_prev
=includedir
;;
1021 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1022 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1023 includedir
=$ac_optarg ;;
1025 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1027 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1028 infodir
=$ac_optarg ;;
1030 -libdir |
--libdir |
--libdi |
--libd)
1032 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1033 libdir
=$ac_optarg ;;
1035 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1036 |
--libexe |
--libex |
--libe)
1037 ac_prev
=libexecdir
;;
1038 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1039 |
--libexe=* |
--libex=* |
--libe=*)
1040 libexecdir
=$ac_optarg ;;
1042 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1043 ac_prev
=localedir
;;
1044 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1045 localedir
=$ac_optarg ;;
1047 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1048 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1049 ac_prev
=localstatedir
;;
1050 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1051 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1052 localstatedir
=$ac_optarg ;;
1054 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1056 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1057 mandir
=$ac_optarg ;;
1059 -nfp |
--nfp |
--nf)
1060 # Obsolete; use --without-fp.
1063 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1064 |
--no-cr |
--no-c |
-n)
1067 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1068 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1071 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1072 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1073 |
--oldin |
--oldi |
--old |
--ol |
--o)
1074 ac_prev
=oldincludedir
;;
1075 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1076 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1077 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1078 oldincludedir
=$ac_optarg ;;
1080 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1082 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1083 prefix
=$ac_optarg ;;
1085 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1086 |
--program-pre |
--program-pr |
--program-p)
1087 ac_prev
=program_prefix
;;
1088 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1089 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1090 program_prefix
=$ac_optarg ;;
1092 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1093 |
--program-suf |
--program-su |
--program-s)
1094 ac_prev
=program_suffix
;;
1095 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1096 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1097 program_suffix
=$ac_optarg ;;
1099 -program-transform-name |
--program-transform-name \
1100 |
--program-transform-nam |
--program-transform-na \
1101 |
--program-transform-n |
--program-transform- \
1102 |
--program-transform |
--program-transfor \
1103 |
--program-transfo |
--program-transf \
1104 |
--program-trans |
--program-tran \
1105 |
--progr-tra |
--program-tr |
--program-t)
1106 ac_prev
=program_transform_name
;;
1107 -program-transform-name=* |
--program-transform-name=* \
1108 |
--program-transform-nam=* |
--program-transform-na=* \
1109 |
--program-transform-n=* |
--program-transform-=* \
1110 |
--program-transform=* |
--program-transfor=* \
1111 |
--program-transfo=* |
--program-transf=* \
1112 |
--program-trans=* |
--program-tran=* \
1113 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1114 program_transform_name
=$ac_optarg ;;
1116 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1118 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1119 pdfdir
=$ac_optarg ;;
1121 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1123 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1126 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1127 |
-silent |
--silent |
--silen |
--sile |
--sil)
1130 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1132 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1134 sbindir
=$ac_optarg ;;
1136 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1137 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1138 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1140 ac_prev
=sharedstatedir
;;
1141 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1142 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1143 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1145 sharedstatedir
=$ac_optarg ;;
1147 -site |
--site |
--sit)
1149 -site=* |
--site=* |
--sit=*)
1152 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1154 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1155 srcdir
=$ac_optarg ;;
1157 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1158 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1159 ac_prev
=sysconfdir
;;
1160 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1161 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1162 sysconfdir
=$ac_optarg ;;
1164 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1165 ac_prev
=target_alias
;;
1166 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1167 target_alias
=$ac_optarg ;;
1169 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1172 -version |
--version |
--versio |
--versi |
--vers |
-V)
1173 ac_init_version
=: ;;
1176 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1179 as_fn_error $?
"invalid package name: $ac_useropt"
1180 ac_useropt_orig
=$ac_useropt
1181 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1186 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep
=', ';;
1189 eval with_
$ac_useropt=\
$ac_optarg ;;
1191 -without-* |
--without-*)
1192 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1195 as_fn_error $?
"invalid package name: $ac_useropt"
1196 ac_useropt_orig
=$ac_useropt
1197 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1202 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep
=', ';;
1205 eval with_
$ac_useropt=no
;;
1208 # Obsolete; use --with-x.
1211 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1212 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1213 ac_prev
=x_includes
;;
1214 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1215 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1216 x_includes
=$ac_optarg ;;
1218 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1219 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1220 ac_prev
=x_libraries
;;
1221 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1222 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1223 x_libraries
=$ac_optarg ;;
1225 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information"
1230 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 case $ac_envvar in #(
1233 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1234 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1236 eval $ac_envvar=\
$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1250 if test -n "$ac_prev"; then
1251 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1252 as_fn_error $?
"missing argument to $ac_option"
1255 if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1258 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 # Check all directory arguments for consistency.
1264 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
1269 eval ac_val
=\$
$ac_var
1270 # Remove trailing slashes.
1273 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\
$ac_val;;
1276 # Be sure to have absolute directory names.
1278 [\\/$
]* | ?
:[\\/]* ) continue;;
1279 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1281 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1289 target
=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x
; then
1293 if test "x$build_alias" = x
; then
1294 cross_compiling
=maybe
1295 elif test "x$build_alias" != "x$host_alias"; then
1301 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1303 test "$silent" = yes && exec 6>/dev
/null
1306 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di
=`ls -di .` &&
1308 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1309 as_fn_error $?
"working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 as_fn_error $?
"pwd does not report name of working directory"
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316 ac_srcdir_defaulted
=yes
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir
=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1346 ac_srcdir_defaulted
=no
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1350 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1352 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1364 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 for ac_var
in $ac_precious_vars; do
1367 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1368 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1369 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1370 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1374 # Report the --help message.
1376 if test "$ac_init_help" = "long"; then
1377 # Omit some internal or obsolete options to make the list less imposing.
1378 # This message is too long to be a string in the A/UX 3.1 sh.
1380 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1382 Usage: $0 [OPTION]... [VAR=VALUE]...
1384 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385 VAR=VALUE. See below for descriptions of some of the useful variables.
1387 Defaults for the options are specified in brackets.
1390 -h, --help display this help and exit
1391 --help=short display options specific to this package
1392 --help=recursive display the short help of all the included packages
1393 -V, --version display version information and exit
1394 -q, --quiet, --silent do not print \`checking ...' messages
1395 --cache-file=FILE cache test results in FILE [disabled]
1396 -C, --config-cache alias for \`--cache-file=config.cache'
1397 -n, --no-create do not create output files
1398 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1400 Installation directories:
1401 --prefix=PREFIX install architecture-independent files in PREFIX
1402 [$ac_default_prefix]
1403 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406 By default, \`make install' will install all the files in
1407 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1408 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409 for instance \`--prefix=\$HOME'.
1411 For better control, use the options below.
1413 Fine tuning of the installation directories:
1414 --bindir=DIR user executables [EPREFIX/bin]
1415 --sbindir=DIR system admin executables [EPREFIX/sbin]
1416 --libexecdir=DIR program executables [EPREFIX/libexec]
1417 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1418 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1419 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1420 --libdir=DIR object code libraries [EPREFIX/lib]
1421 --includedir=DIR C header files [PREFIX/include]
1422 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1423 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1424 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1425 --infodir=DIR info documentation [DATAROOTDIR/info]
1426 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1427 --mandir=DIR man documentation [DATAROOTDIR/man]
1428 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1429 --htmldir=DIR html documentation [DOCDIR]
1430 --dvidir=DIR dvi documentation [DOCDIR]
1431 --pdfdir=DIR pdf documentation [DOCDIR]
1432 --psdir=DIR ps documentation [DOCDIR]
1438 --program-prefix=PREFIX prepend PREFIX to installed program names
1439 --program-suffix=SUFFIX append SUFFIX to installed program names
1440 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1443 --build=BUILD configure
for building on BUILD
[guessed
]
1444 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1445 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1449 if test -n "$ac_init_help"; then
1450 case $ac_init_help in
1451 short | recursive
) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1456 --disable-option-checking ignore unrecognized
--enable/--with options
1457 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1458 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1459 --enable-version-specific-runtime-libs
1460 Specify that runtime libraries should be installed
1461 in a compiler-specific directory
[default
=no
]
1462 --enable-generated-files-in-srcdir
1463 put copies of generated files
in source dir intended
1464 for creating
source tarballs
for users without
1465 texinfo bison or flex.
[default
=no
]
1466 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1467 --disable-silent-rules verbose build output
(undo
: "make V=0")
1468 --enable-multilib build many library versions
(default
)
1469 --enable-dependency-tracking
1470 do not reject slow dependency extractors
1471 --disable-dependency-tracking
1472 speeds up one-time build
1473 --disable-werror disable building with
-Werror
1474 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1475 --enable-static[=PKGS
] build static libraries
[default
=yes]
1476 --enable-fast-install[=PKGS
]
1477 optimize
for fast installation
[default
=yes]
1478 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1479 --enable-maintainer-mode
1480 enable make rules and dependencies not useful
(and
1481 sometimes confusing
) to the casual installer
1482 --enable-linux-futex use the Linux futex system call
[default
=default
]
1483 --enable-tls Use thread-local storage
[default
=yes]
1484 --enable-symvers=STYLE enables symbol versioning of the shared library
1486 --enable-cet enable Intel CET
in target libraries
[default
=auto
]
1489 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1490 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1491 --with-toolexeclibdir=DIR
1492 install libraries built with a cross compiler within
1494 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1496 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1497 --with-gcc-major-version-only
1498 use only GCC major number
in filesystem paths
1500 Some influential environment variables
:
1501 CC C compiler
command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1504 nonstandard directory
<lib dir
>
1505 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1506 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1507 you have headers
in a nonstandard directory
<include dir
>
1509 FC Fortran compiler
command
1510 FCFLAGS Fortran compiler flags
1512 Use these variables to override the choices made by
`configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1515 Report bugs to the package provider.
1516 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1517 General help using GNU software: <http://www.gnu.org/gethelp/>.
1522 if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" ||
1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1547 .) # We are building in place.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1571 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1580 GNU Offloading and Multi Processing Runtime Library configure 1.0
1581 generated by GNU Autoconf 2.69
1583 Copyright (C) 2012 Free Software Foundation, Inc.
1584 This configure script is free software; the Free Software Foundation
1585 gives unlimited permission to copy, distribute and modify it.
1590 ## ------------------------ ##
1591 ## Autoconf initialization. ##
1592 ## ------------------------ ##
1594 # ac_fn_c_try_compile LINENO
1595 # --------------------------
1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_compile ()
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext
1601 if { { ac_try="$ac_compile"
1603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1604 *) ac_try_echo
=$ac_try;;
1606 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1610 if test -s conftest.err
; then
1611 grep -v '^ *+' conftest.err
>conftest.er1
1612 cat conftest.er1
>&5
1613 mv -f conftest.er1 conftest.err
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.
$ac_objext; then :
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.
$ac_ext >&5
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status
$ac_retval
1630 } # ac_fn_c_try_compile
1632 # ac_fn_c_try_link LINENO
1633 # -----------------------
1634 # Try to link conftest.$ac_ext, and return whether this succeeded.
1637 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1638 rm -f conftest.
$ac_objext conftest
$ac_exeext
1639 if { { ac_try
="$ac_link"
1641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_link") 2>conftest.err
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest$ac_exeext && {
1658 test "$cross_compiling" = yes ||
1659 test -x conftest$ac_exeext
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1668 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1669 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1670 # interfere with the next link command; also delete a directory that is
1671 # left behind by Apple's compiler. We do this before executing the actions.
1672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1676 } # ac_fn_c_try_link
1678 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1679 # -------------------------------------------------------
1680 # Tests whether HEADER exists and can be compiled using the include files in
1681 # INCLUDES, setting the cache variable VAR accordingly.
1682 ac_fn_c_check_header_compile ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if eval \${$3+:} false; then :
1688 $as_echo_n "(cached) " >&6
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1695 if ac_fn_c_try_compile "$LINENO"; then :
1700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 $as_echo "$ac_res" >&6; }
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 } # ac_fn_c_check_header_compile
1709 # ac_fn_c_try_cpp LINENO
1710 # ----------------------
1711 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_cpp conftest.$ac_ext"
1717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1718 *) ac_try_echo
=$ac_try;;
1720 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1724 if test -s conftest.err
; then
1725 grep -v '^ *+' conftest.err
>conftest.er1
1726 cat conftest.er1
>&5
1727 mv -f conftest.er1 conftest.err
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } > conftest.i
&& {
1731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.
$ac_ext >&5
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status
$ac_retval
1746 # ac_fn_c_try_run LINENO
1747 # ----------------------
1748 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1749 # that executables *can* be run.
1752 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1753 if { { ac_try
="$ac_link"
1755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_link") 2>&5
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1764 { { case "(($ac_try" in
1765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1766 *) ac_try_echo
=$ac_try;;
1768 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_try") 2>&5
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; }; }; then :
1776 $as_echo "$as_me: program exited with status $ac_status" >&5
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.
$ac_ext >&5
1780 ac_retval
=$ac_status
1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status
$ac_retval
1788 # ac_fn_c_check_func LINENO FUNC VAR
1789 # ----------------------------------
1790 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1791 ac_fn_c_check_func
()
1793 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \
${$3+:} false
; then :
1797 $as_echo_n "(cached) " >&6
1799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1803 #define $2 innocuous_$2
1805 /* System header to define __stub macros and hopefully few prototypes,
1806 which can conflict with char $2 (); below.
1807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1808 <limits.h> exists even on freestanding compilers. */
1811 # include <limits.h>
1813 # include <assert.h>
1818 /* Override any GCC internal prototype to avoid an error.
1819 Use char because int might match the return type of a GCC
1820 builtin and then its argument prototype would still apply. */
1825 /* The GNU C library defines this for functions which it implements
1826 to always fail with ENOSYS. Some functions are actually named
1827 something starting with __ and the normal name is an alias. */
1828 #if defined __stub_$2 || defined __stub___$2
1840 if ac_fn_c_try_link
"$LINENO"; then :
1845 rm -f core conftest.err conftest.
$ac_objext \
1846 conftest
$ac_exeext conftest.
$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 } # ac_fn_c_check_func
1855 # ac_fn_fc_try_compile LINENO
1856 # ---------------------------
1857 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_fc_try_compile
()
1860 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1861 rm -f conftest.
$ac_objext
1862 if { { ac_try
="$ac_compile"
1864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_compile") 2>conftest.err
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_fc_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest.$ac_objext; then :
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1891 } # ac_fn_fc_try_compile
1893 # ac_fn_fc_try_link LINENO
1894 # ------------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_fc_try_link ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext conftest$ac_exeext
1900 if { { ac_try="$ac_link"
1902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1903 *) ac_try_echo
=$ac_try;;
1905 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1909 if test -s conftest.err
; then
1910 grep -v '^ *+' conftest.err
>conftest.er1
1911 cat conftest.er1
>&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_fc_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest
$ac_exeext && {
1919 test "$cross_compiling" = yes ||
1920 test -x conftest
$ac_exeext
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.
$ac_ext >&5
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status
$ac_retval
1937 } # ac_fn_fc_try_link
1939 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1942 # the include files in INCLUDES and setting the cache variable VAR
1944 ac_fn_c_check_header_mongrel
()
1946 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1947 if eval \
${$3+:} false
; then :
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949 $as_echo_n "checking for $2... " >&6; }
1950 if eval \
${$3+:} false
; then :
1951 $as_echo_n "(cached) " >&6
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1957 # Is the header compilable?
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1959 $as_echo_n "checking $2 usability... " >&6; }
1960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1965 if ac_fn_c_try_compile
"$LINENO"; then :
1966 ac_header_compiler
=yes
1968 ac_header_compiler
=no
1970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1972 $as_echo "$ac_header_compiler" >&6; }
1974 # Is the header present?
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1976 $as_echo_n "checking $2 presence... " >&6; }
1977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1981 if ac_fn_c_try_cpp
"$LINENO"; then :
1982 ac_header_preproc
=yes
1984 ac_header_preproc
=no
1986 rm -f conftest.err conftest.i conftest.
$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1988 $as_echo "$ac_header_preproc" >&6; }
1990 # So? What about this header?
1991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1994 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1996 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2000 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2002 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2004 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2006 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2008 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \
${$3+:} false
; then :
2014 $as_echo_n "(cached) " >&6
2016 eval "$3=\$ac_header_compiler"
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 } # ac_fn_c_check_header_mongrel
2026 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2027 # --------------------------------------------
2028 # Tries to find the compile-time value of EXPR in a program that includes
2029 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2031 ac_fn_c_compute_int
()
2033 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2034 if test "$cross_compiling" = yes; then
2035 # Depending upon the size, compute the lo and hi bounds.
2036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2042 static int test_array [1 - 2 * !(($2) >= 0)];
2044 return test_array [0];
2050 if ac_fn_c_try_compile
"$LINENO"; then :
2053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2059 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2061 return test_array [0];
2067 if ac_fn_c_try_compile
"$LINENO"; then :
2068 ac_hi
=$ac_mid; break
2070 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2071 if test $ac_lo -le $ac_mid; then
2075 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2086 static int test_array [1 - 2 * !(($2) < 0)];
2088 return test_array [0];
2094 if ac_fn_c_try_compile
"$LINENO"; then :
2097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2103 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2105 return test_array [0];
2111 if ac_fn_c_try_compile
"$LINENO"; then :
2112 ac_lo
=$ac_mid; break
2114 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2115 if test $ac_mid -le $ac_hi; then
2119 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2129 # Binary search between lo and hi bounds.
2130 while test "x$ac_lo" != "x$ac_hi"; do
2131 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2138 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2140 return test_array [0];
2146 if ac_fn_c_try_compile
"$LINENO"; then :
2149 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2154 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2161 static long int longval () { return $2; }
2162 static unsigned long int ulongval () { return $2; }
2169 FILE *f = fopen ("conftest.val", "w");
2174 long int i = longval ();
2177 fprintf (f, "%ld", i);
2181 unsigned long int i = ulongval ();
2184 fprintf (f, "%lu", i);
2186 /* Do not output a trailing newline, as this causes \r\n confusion
2187 on some platforms. */
2188 return ferror (f) || fclose (f) != 0;
2194 if ac_fn_c_try_run
"$LINENO"; then :
2195 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2199 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2200 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205 as_fn_set_status
$ac_retval
2207 } # ac_fn_c_compute_int
2209 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2210 # -------------------------------------------
2211 # Tests whether TYPE exists after having included INCLUDES, setting cache
2212 # variable VAR accordingly.
2213 ac_fn_c_check_type
()
2215 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2217 $as_echo_n "checking for $2... " >&6; }
2218 if eval \
${$3+:} false
; then :
2219 $as_echo_n "(cached) " >&6
2222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2234 if ac_fn_c_try_compile
"$LINENO"; then :
2235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2247 if ac_fn_c_try_compile
"$LINENO"; then :
2252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261 } # ac_fn_c_check_type
2262 cat >config.log
<<_ACEOF
2263 This file contains any messages produced by compilers while
2264 running configure, to aid debugging if configure makes a mistake.
2266 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2267 generated by GNU Autoconf 2.69. Invocation command line was
2279 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2280 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2281 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2282 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2283 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2285 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2286 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2288 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2289 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2290 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2291 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2292 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2293 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2294 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2302 test -z "$as_dir" && as_dir
=.
2303 $as_echo "PATH: $as_dir"
2319 # Keep a trace of the command line.
2320 # Strip out --no-create and --no-recursion so they do not pile up.
2321 # Strip out --silent because we don't want to record it for future runs.
2322 # Also quote any args containing shell meta-characters.
2323 # Make two passes to allow for proper duplicate-argument suppression.
2327 ac_must_keep_next
=false
2333 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2334 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2335 |
-silent |
--silent |
--silen |
--sile |
--sil)
2338 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2341 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2343 as_fn_append ac_configure_args1
" '$ac_arg'"
2344 if test $ac_must_keep_next = true
; then
2345 ac_must_keep_next
=false
# Got value, back to normal.
2348 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2349 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2350 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2351 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2352 case "$ac_configure_args0 " in
2353 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2356 -* ) ac_must_keep_next
=true
;;
2359 as_fn_append ac_configure_args
" '$ac_arg'"
2364 { ac_configure_args0
=; unset ac_configure_args0
;}
2365 { ac_configure_args1
=; unset ac_configure_args1
;}
2367 # When interrupted or exit'd, cleanup temporary files, and complete
2368 # config.log. We remove comments because anyway the quotes in there
2369 # would cause problems or look ugly.
2370 # WARNING: Use '\'' to represent an apostrophe within the trap.
2371 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2372 trap 'exit_status=$?
2373 # Save into config.log some information that might help in debugging.
2377 $as_echo "## ---------------- ##
2378 ## Cache variables. ##
2379 ## ---------------- ##"
2381 # The following way of writing the cache mishandles newlines in values,
2383 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2384 eval ac_val=\$$ac_var
2388 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2389 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2392 _ | IFS | as_nl) ;; #(
2393 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2394 *) { eval $ac_var=; unset $ac_var;} ;;
2399 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2400 *${as_nl}ac_space=\ *)
2402 "s/'\''/'\''\\\\'\'''\''/g;
2403 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2406 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2413 $as_echo "## ----------------- ##
2414 ## Output variables. ##
2415 ## ----------------- ##"
2417 for ac_var in $ac_subst_vars
2419 eval ac_val=\$$ac_var
2421 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2423 $as_echo "$ac_var='\''$ac_val'\''"
2427 if test -n "$ac_subst_files"; then
2428 $as_echo "## ------------------- ##
2429 ## File substitutions. ##
2430 ## ------------------- ##"
2432 for ac_var
in $ac_subst_files
2434 eval ac_val
=\$
$ac_var
2436 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2438 $as_echo "$ac_var='\''$ac_val'\''"
2443 if test -s confdefs.h; then
2444 $as_echo "## ----------- ##
2451 test "$ac_signal" != 0 &&
2452 $as_echo "$as_me: caught signal $ac_signal"
2453 $as_echo "$as_me: exit $exit_status"
2455 rm -f core *.core core.conftest.* &&
2456 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2459 for ac_signal
in 1 2 13 15; do
2460 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2465 rm -f -r conftest
* confdefs.h
2467 $as_echo "/* confdefs.h */" > confdefs.h
2469 # Predefined preprocessor variables.
2471 cat >>confdefs.h
<<_ACEOF
2472 #define PACKAGE_NAME "$PACKAGE_NAME"
2475 cat >>confdefs.h
<<_ACEOF
2476 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2479 cat >>confdefs.h
<<_ACEOF
2480 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2483 cat >>confdefs.h
<<_ACEOF
2484 #define PACKAGE_STRING "$PACKAGE_STRING"
2487 cat >>confdefs.h
<<_ACEOF
2488 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2491 cat >>confdefs.h
<<_ACEOF
2492 #define PACKAGE_URL "$PACKAGE_URL"
2496 # Let the site file select an alternate cache file if it wants to.
2497 # Prefer an explicitly selected file to automatically selected ones.
2500 if test -n "$CONFIG_SITE"; then
2501 # We do not want a PATH search for config.site.
2502 case $CONFIG_SITE in #((
2503 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2504 */*) ac_site_file1
=$CONFIG_SITE;;
2505 *) ac_site_file1
=.
/$CONFIG_SITE;;
2507 elif test "x$prefix" != xNONE
; then
2508 ac_site_file1
=$prefix/share
/config.site
2509 ac_site_file2
=$prefix/etc
/config.site
2511 ac_site_file1
=$ac_default_prefix/share
/config.site
2512 ac_site_file2
=$ac_default_prefix/etc
/config.site
2514 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2516 test "x$ac_site_file" = xNONE
&& continue
2517 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2519 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2520 sed 's/^/| /' "$ac_site_file" >&5
2522 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2524 as_fn_error $?
"failed to load site script $ac_site_file
2525 See \`config.log' for more details" "$LINENO" 5; }
2529 if test -r "$cache_file"; then
2530 # Some versions of bash will fail to source /dev/null (special files
2531 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2532 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2534 $as_echo "$as_me: loading cache $cache_file" >&6;}
2536 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2537 *) .
"./$cache_file";;
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2542 $as_echo "$as_me: creating cache $cache_file" >&6;}
2546 as_fn_append ac_header_list
" unistd.h"
2547 as_fn_append ac_func_list
" secure_getenv"
2548 as_fn_append ac_func_list
" __secure_getenv"
2549 as_fn_append ac_func_list
" getuid"
2550 as_fn_append ac_func_list
" geteuid"
2551 as_fn_append ac_func_list
" getgid"
2552 as_fn_append ac_func_list
" getegid"
2553 # Check that the precious variables saved in the cache have kept the same
2555 ac_cache_corrupted
=false
2556 for ac_var
in $ac_precious_vars; do
2557 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2558 eval ac_new_set
=\
$ac_env_${ac_var}_set
2559 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2560 eval ac_new_val
=\
$ac_env_${ac_var}_value
2561 case $ac_old_set,$ac_new_set in
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2564 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2565 ac_cache_corrupted
=: ;;
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2568 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2569 ac_cache_corrupted
=: ;;
2572 if test "x$ac_old_val" != "x$ac_new_val"; then
2573 # differences in whitespace do not lead to failure.
2574 ac_old_val_w
=`echo x $ac_old_val`
2575 ac_new_val_w
=`echo x $ac_new_val`
2576 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2578 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2579 ac_cache_corrupted
=:
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2582 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2583 eval $ac_var=\
$ac_old_val
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2586 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2588 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2591 # Pass precious variables to config.status.
2592 if test "$ac_new_set" = set; then
2594 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2595 *) ac_arg
=$ac_var=$ac_new_val ;;
2597 case " $ac_configure_args " in
2598 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2599 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2603 if $ac_cache_corrupted; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2607 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2608 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2610 ## -------------------- ##
2611 ## Main body of script. ##
2612 ## -------------------- ##
2615 ac_cpp
='$CPP $CPPFLAGS'
2616 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2624 ac_config_headers
="$ac_config_headers config.h"
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2632 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2633 # Check whether --enable-version-specific-runtime-libs was given.
2634 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2635 enableval
=$enable_version_specific_runtime_libs;
2636 case "$enableval" in
2638 *) as_fn_error $?
"Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2642 enable_version_specific_runtime_libs
=no
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2647 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2649 # We would like our source tree to be readonly. However when releases or
2650 # pre-releases are generated, the flex/bison generated files as well as the
2651 # various formats of manuals need to be included along with the rest of the
2652 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2655 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2656 # Check whether --enable-generated-files-in-srcdir was given.
2657 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2658 enableval
=$enable_generated_files_in_srcdir;
2659 case "$enableval" in
2661 *) as_fn_error $?
"Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2665 enable_generated_files_in_srcdir
=no
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2670 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2671 if test "$enable_generated_files_in_srcdir" = yes; then
2684 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2686 # You will slowly go insane if you do not grok the following fact: when
2687 # building this library, the top-level /target/ becomes the library's /host/.
2689 # configure then causes --target to default to --host, exactly like any
2690 # other package using autoconf. Therefore, 'target' and 'host' will
2691 # always be the same. This makes sense both for native and cross compilers
2692 # just think about it for a little while. :-)
2694 # Also, if this library is being configured as part of a cross compiler, the
2695 # top-level configure script will pass the "real" host as $with_cross_host.
2697 # Do not delete or change the following two lines. For why, see
2698 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2700 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2701 if test -f "$ac_dir/install-sh"; then
2703 ac_install_sh
="$ac_aux_dir/install-sh -c"
2705 elif test -f "$ac_dir/install.sh"; then
2707 ac_install_sh
="$ac_aux_dir/install.sh -c"
2709 elif test -f "$ac_dir/shtool"; then
2711 ac_install_sh
="$ac_aux_dir/shtool install -c"
2715 if test -z "$ac_aux_dir"; then
2716 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2719 # These three variables are undocumented and unsupported,
2720 # and are intended to be withdrawn in a future Autoconf release.
2721 # They can cause serious problems if a builder's source tree is in a directory
2722 # whose full name contains unusual characters.
2723 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2724 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2725 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2728 # Make sure we can run config.sub.
2729 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2730 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2733 $as_echo_n "checking build system type... " >&6; }
2734 if ${ac_cv_build+:} false
; then :
2735 $as_echo_n "(cached) " >&6
2737 ac_build_alias
=$build_alias
2738 test "x$ac_build_alias" = x
&&
2739 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2740 test "x$ac_build_alias" = x
&&
2741 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2742 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2743 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2747 $as_echo "$ac_cv_build" >&6; }
2748 case $ac_cv_build in
2750 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2753 ac_save_IFS
=$IFS; IFS
='-'
2759 # Remember, the first character of IFS is used to create $*,
2760 # except with old shells:
2763 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2767 $as_echo_n "checking host system type... " >&6; }
2768 if ${ac_cv_host+:} false
; then :
2769 $as_echo_n "(cached) " >&6
2771 if test "x$host_alias" = x
; then
2772 ac_cv_host
=$ac_cv_build
2774 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2775 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2780 $as_echo "$ac_cv_host" >&6; }
2783 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2786 ac_save_IFS
=$IFS; IFS
='-'
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2796 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2800 $as_echo_n "checking target system type... " >&6; }
2801 if ${ac_cv_target+:} false
; then :
2802 $as_echo_n "(cached) " >&6
2804 if test "x$target_alias" = x
; then
2805 ac_cv_target
=$ac_cv_host
2807 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2808 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2813 $as_echo "$ac_cv_target" >&6; }
2814 case $ac_cv_target in
2816 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2818 target
=$ac_cv_target
2819 ac_save_IFS
=$IFS; IFS
='-'
2825 # Remember, the first character of IFS is used to create $*,
2826 # except with old shells:
2829 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2832 # The aliases save the names the user supplied, while $host etc.
2833 # will get canonicalized.
2834 test -n "$target_alias" &&
2835 test "$program_prefix$program_suffix$program_transform_name" = \
2837 program_prefix
=${target_alias}-
2839 target_alias
=${target_alias-$host_alias}
2841 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2842 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2843 # 1.9.0: minimum required version
2844 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2845 # of other PACKAGE_* variables will, however, and there's nothing
2846 # we can do about that; they come from AC_INIT).
2847 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2848 # file in the top srcdir, etc, etc), so stop complaining.
2849 # no-dist: we don't want 'dist' and related rules.
2850 # -Wall: turns on all automake warnings...
2851 # -Wno-portability: ...except this one, since GNU make is required.
2852 # -Wno-override: ... and this one, since we do want this in testsuite.
2853 am__api_version
='1.15'
2855 # Find a good install program. We prefer a C program (faster),
2856 # so one script is as good as another. But avoid the broken or
2857 # incompatible versions:
2858 # SysV /etc/install, /usr/sbin/install
2859 # SunOS /usr/etc/install
2860 # IRIX /sbin/install
2862 # AmigaOS /C/install, which installs bootblocks on floppy discs
2863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2866 # OS/2's system install, which has a completely different semantic
2867 # ./install, which can be erroneously created by make from ./install.sh.
2868 # Reject install programs that cannot install multiple files.
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2870 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2871 if test -z "$INSTALL"; then
2872 if ${ac_cv_path_install+:} false
; then :
2873 $as_echo_n "(cached) " >&6
2875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir
=.
2880 # Account for people who put trailing slashes in PATH elements.
2881 case $as_dir/ in #((
2882 .
/ | .
// |
/[cC
]/* | \
2883 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2884 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2887 # OSF1 and SCO ODT 3.0 have their own names for install.
2888 # Don't use installbsd from OSF since it installs stuff as root
2890 for ac_prog
in ginstall scoinst
install; do
2891 for ac_exec_ext
in '' $ac_executable_extensions; do
2892 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2893 if test $ac_prog = install &&
2894 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2895 # AIX install. It has an incompatible calling convention.
2897 elif test $ac_prog = install &&
2898 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2899 # program-specific install script used by HP pwplus--don't use.
2902 rm -rf conftest.one conftest.two conftest.dir
2903 echo one
> conftest.one
2904 echo two
> conftest.two
2906 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2907 test -s conftest.one
&& test -s conftest.two
&&
2908 test -s conftest.dir
/conftest.one
&&
2909 test -s conftest.dir
/conftest.two
2911 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2924 rm -rf conftest.one conftest.two conftest.dir
2927 if test "${ac_cv_path_install+set}" = set; then
2928 INSTALL
=$ac_cv_path_install
2930 # As a last resort, use the slow shell script. Don't cache a
2931 # value for INSTALL within a source directory, because that will
2932 # break other packages using the cache if that directory is
2933 # removed, or if the value is a relative name.
2934 INSTALL
=$ac_install_sh
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2938 $as_echo "$INSTALL" >&6; }
2940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2941 # It thinks the first close brace ends the variable substitution.
2942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2946 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2949 $as_echo_n "checking whether build environment is sane... " >&6; }
2950 # Reject unsafe characters in $srcdir or the absolute working directory
2951 # name. Accept space and tab only in the latter.
2955 *[\\\"\
#\$\&\'\`$am_lf]*)
2956 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2959 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2960 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2963 # Do 'set' in a subshell so we don't clobber the current shell's
2964 # arguments. Must try -L first in case configure is actually a
2965 # symlink; some systems play weird games with the mod time of symlinks
2966 # (eg FreeBSD returns the mod time of the symlink's containing
2970 for am_try
in 1 2; do
2971 echo "timestamp, slept: $am_has_slept" > conftest.
file
2972 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2973 if test "$*" = "X"; then
2975 set X
`ls -t "$srcdir/configure" conftest.file`
2977 if test "$*" != "X $srcdir/configure conftest.file" \
2978 && test "$*" != "X conftest.file $srcdir/configure"; then
2980 # If neither matched, then we have a broken ls. This can happen
2981 # if, for instance, CONFIG_SHELL is bash and it inherits a
2982 # broken ls alias from the environment. This has actually
2983 # happened. Such a system could not be considered "sane".
2984 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2985 alias in your environment" "$LINENO" 5
2987 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2994 test "$2" = conftest.
file
3000 as_fn_error $?
"newly created file is older than distributed files!
3001 Check your system clock" "$LINENO" 5
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3004 $as_echo "yes" >&6; }
3005 # If we didn't sleep, we still need to ensure time stamps of config.status and
3006 # generated files are strictly newer.
3008 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3015 test "$program_prefix" != NONE
&&
3016 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3017 # Use a double $ so make ignores it.
3018 test "$program_suffix" != NONE
&&
3019 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3020 # Double any \ or $.
3021 # By default was `s,x,x', remove it if useless.
3022 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3023 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3025 # Expand $ac_aux_dir to an absolute path.
3026 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3028 if test x
"${MISSING+set}" != xset
; then
3031 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3033 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3036 # Use eval to expand $SHELL
3037 if eval "$MISSING --is-lightweight"; then
3038 am_missing_run
="$MISSING "
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3042 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3045 if test x
"${install_sh+set}" != xset
; then
3048 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3050 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3054 # Installed binaries are usually stripped using 'strip' when the user
3055 # run "make install-strip". However 'strip' might not be the right
3056 # tool to use in cross-compilation environments, therefore Automake
3057 # will honor the 'STRIP' environment variable to overrule this program.
3058 if test "$cross_compiling" != no
; then
3059 if test -n "$ac_tool_prefix"; then
3060 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3061 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_STRIP+:} false
; then :
3065 $as_echo_n "(cached) " >&6
3067 if test -n "$STRIP"; then
3068 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3074 test -z "$as_dir" && as_dir
=.
3075 for ac_exec_ext
in '' $ac_executable_extensions; do
3076 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 STRIP
=$ac_cv_prog_STRIP
3088 if test -n "$STRIP"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3090 $as_echo "$STRIP" >&6; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3098 if test -z "$ac_cv_prog_STRIP"; then
3100 # Extract the first word of "strip", so it can be a program name with args.
3101 set dummy strip
; ac_word
=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3105 $as_echo_n "(cached) " >&6
3107 if test -n "$ac_ct_STRIP"; then
3108 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3114 test -z "$as_dir" && as_dir
=.
3115 for ac_exec_ext
in '' $ac_executable_extensions; do
3116 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_ac_ct_STRIP
="strip"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3128 if test -n "$ac_ct_STRIP"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3130 $as_echo "$ac_ct_STRIP" >&6; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3136 if test "x$ac_ct_STRIP" = x
; then
3139 case $cross_compiling:$ac_tool_warned in
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3143 ac_tool_warned
=yes ;;
3148 STRIP
="$ac_cv_prog_STRIP"
3152 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3155 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3156 if test -z "$MKDIR_P"; then
3157 if ${ac_cv_path_mkdir+:} false
; then :
3158 $as_echo_n "(cached) " >&6
3160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3161 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3164 test -z "$as_dir" && as_dir
=.
3165 for ac_prog
in mkdir gmkdir
; do
3166 for ac_exec_ext
in '' $ac_executable_extensions; do
3167 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3168 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3169 'mkdir (GNU coreutils) '* | \
3170 'mkdir (coreutils) '* | \
3171 'mkdir (fileutils) '4.1*)
3172 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3182 test -d .
/--version && rmdir .
/--version
3183 if test "${ac_cv_path_mkdir+set}" = set; then
3184 MKDIR_P
="$ac_cv_path_mkdir -p"
3186 # As a last resort, use the slow shell script. Don't cache a
3187 # value for MKDIR_P within a source directory, because that will
3188 # break other packages using the cache if that directory is
3189 # removed, or if the value is a relative name.
3190 MKDIR_P
="$ac_install_sh -d"
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3194 $as_echo "$MKDIR_P" >&6; }
3196 for ac_prog
in gawk mawk nawk
awk
3198 # Extract the first word of "$ac_prog", so it can be a program name with args.
3199 set dummy
$ac_prog; ac_word
=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if ${ac_cv_prog_AWK+:} false
; then :
3203 $as_echo_n "(cached) " >&6
3205 if test -n "$AWK"; then
3206 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3212 test -z "$as_dir" && as_dir
=.
3213 for ac_exec_ext
in '' $ac_executable_extensions; do
3214 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_AWK
="$ac_prog"
3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 if test -n "$AWK"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3228 $as_echo "$AWK" >&6; }
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3235 test -n "$AWK" && break
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3239 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3241 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3242 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3243 $as_echo_n "(cached) " >&6
3245 cat >conftest.
make <<\_ACEOF
3248 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3250 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3251 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3253 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3255 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3259 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3261 $as_echo "yes" >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 SET_MAKE
="MAKE=${MAKE-make}"
3269 rm -rf .tst
2>/dev
/null
3270 mkdir .tst
2>/dev
/null
3271 if test -d .tst
; then
3276 rmdir .tst
2>/dev
/null
3278 # Check whether --enable-silent-rules was given.
3279 if test "${enable_silent_rules+set}" = set; then :
3280 enableval
=$enable_silent_rules;
3283 case $enable_silent_rules in # (((
3284 yes) AM_DEFAULT_VERBOSITY
=0;;
3285 no
) AM_DEFAULT_VERBOSITY
=1;;
3286 *) AM_DEFAULT_VERBOSITY
=1;;
3288 am_make
=${MAKE-make}
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3290 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3291 if ${am_cv_make_support_nested_variables+:} false
; then :
3292 $as_echo_n "(cached) " >&6
3294 if $as_echo 'TRUE=$(BAR$(V))
3300 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3301 am_cv_make_support_nested_variables
=yes
3303 am_cv_make_support_nested_variables
=no
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3307 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3308 if test $am_cv_make_support_nested_variables = yes; then
3310 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3312 AM_V
=$AM_DEFAULT_VERBOSITY
3313 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3317 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3318 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3319 # is not polluted with repeated "-I."
3320 am__isrc
=' -I$(srcdir)'
3321 # test to see if srcdir already configured
3322 if test -f $srcdir/config.status
; then
3323 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3327 # test whether we have cygpath
3328 if test -z "$CYGPATH_W"; then
3329 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3330 CYGPATH_W
='cygpath -w'
3337 # Define the identity of the package.
3342 cat >>confdefs.h
<<_ACEOF
3343 #define PACKAGE "$PACKAGE"
3347 cat >>confdefs.h
<<_ACEOF
3348 #define VERSION "$VERSION"
3351 # Some tools Automake needs.
3353 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3356 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3359 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3362 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3365 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3367 # For better backward compatibility. To be removed once Automake 1.9.x
3368 # dies out for good. For more background, see:
3369 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3370 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3371 mkdir_p
='$(MKDIR_P)'
3373 # We need awk for the "check" target (and possibly the TAP driver). The
3374 # system "awk" is bad on some platforms.
3375 # Always define AMTAR for backward compatibility. Yes, it's still used
3376 # in the wild :-( We should find a proper way to deprecate it ...
3380 # We'll loop over all known methods to create a tar archive until one works.
3381 _am_tools
='gnutar pax cpio none'
3383 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3390 # POSIX will say in a future version that running "rm -f" with no argument
3391 # is OK; and we want to be able to make that assumption in our Makefile
3392 # recipes. So use an aggressive probe to check that the usage we want is
3393 # actually supported "in the wild" to an acceptable degree.
3394 # See automake bug#10828.
3395 # To make any issue more visible, cause the running configure to be aborted
3396 # by default if the 'rm' program in use doesn't match our expectations; the
3397 # user can still override this though.
3398 if rm -f && rm -fr && rm -rf; then : OK
; else
3402 Your 'rm' program seems unable to run without file operands specified
3403 on the command line, even when the '-f' option is present. This is contrary
3404 to the behaviour of most rm programs out there, and not conforming with
3405 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3407 Please tell bug-automake@gnu.org about your system, including the value
3408 of your $PATH and any error possibly output before this message. This
3409 can help us improve future automake versions.
3412 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3413 echo 'Configuration will proceed anyway, since you have set the' >&2
3414 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3418 Aborting the configuration process, to ensure you take notice of the issue.
3420 You can download and install GNU coreutils to get an 'rm' implementation
3421 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3423 If you want to complete the configuration process using your problematic
3424 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3425 to "yes", and re-run configure.
3428 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3432 # Default to --enable-multilib
3433 # Check whether --enable-multilib was given.
3434 if test "${enable_multilib+set}" = set; then :
3435 enableval
=$enable_multilib; case "$enableval" in
3436 yes) multilib
=yes ;;
3438 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
3445 # We may get other options which we leave undocumented:
3446 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3447 # See config-ml.in if you want the gory details.
3449 if test "$srcdir" = "."; then
3450 if test "$with_target_subdir" != "."; then
3451 multi_basedir
="$srcdir/$with_multisrctop../.."
3453 multi_basedir
="$srcdir/$with_multisrctop.."
3456 multi_basedir
="$srcdir/.."
3460 # Even if the default multilib is not a cross compilation,
3461 # it may be that some of the other multilibs are.
3462 if test $cross_compiling = no
&& test $multilib = yes \
3463 && test "x${with_multisubdir}" != x
; then
3464 cross_compiling
=maybe
3467 ac_config_commands
="$ac_config_commands default-1"
3471 # Check whether --with-toolexeclibdir was given.
3472 if test "${with_toolexeclibdir+set}" = set; then :
3473 withval
=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3477 with_toolexeclibdir
=`echo $with_toolexeclibdir | sed 's,/$,,'`
3481 with_toolexeclibdir
=no
3486 # Calculate toolexeclibdir
3487 # Also toolexecdir, though it's only used in toolexeclibdir
3488 case ${enable_version_specific_runtime_libs} in
3490 # Need the gcc compiler version to know where to install libraries
3491 # and header files if --enable-version-specific-runtime-libs option
3493 toolexecdir
='$(libdir)/gcc/$(target_alias)'
3494 toolexeclibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3497 if test -n "$with_cross_host" &&
3498 test x
"$with_cross_host" != x
"no"; then
3499 # Install a library built with a cross compiler in tooldir, not libdir.
3500 toolexecdir
='$(exec_prefix)/$(target_alias)'
3501 case ${with_toolexeclibdir} in
3503 toolexeclibdir
='$(toolexecdir)/lib'
3506 toolexeclibdir
=${with_toolexeclibdir}
3510 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3511 toolexeclibdir
='$(libdir)'
3513 multi_os_directory
=`$CC -print-multi-os-directory`
3514 case $multi_os_directory in
3515 .
) ;; # Avoid trailing /.
3516 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3523 # Check the compiler.
3524 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3525 # We must force CC to /not/ be precious variables; otherwise
3526 # the wrong, non-multilib-adjusted value will be used in multilibs.
3527 # As a side effect, we have to subst CFLAGS ourselves.
3532 ac_cpp
='$CPP $CPPFLAGS'
3533 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3536 if test -n "$ac_tool_prefix"; then
3537 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3538 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if ${ac_cv_prog_CC+:} false
; then :
3542 $as_echo_n "(cached) " >&6
3544 if test -n "$CC"; then
3545 ac_cv_prog_CC
="$CC" # Let the user override the test.
3547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3551 test -z "$as_dir" && as_dir
=.
3552 for ac_exec_ext
in '' $ac_executable_extensions; do
3553 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3554 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 if test -n "$CC"; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567 $as_echo "$CC" >&6; }
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3575 if test -z "$ac_cv_prog_CC"; then
3577 # Extract the first word of "gcc", so it can be a program name with args.
3578 set dummy gcc
; ac_word
=$2
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580 $as_echo_n "checking for $ac_word... " >&6; }
3581 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3582 $as_echo_n "(cached) " >&6
3584 if test -n "$ac_ct_CC"; then
3585 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3587 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3591 test -z "$as_dir" && as_dir
=.
3592 for ac_exec_ext
in '' $ac_executable_extensions; do
3593 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3594 ac_cv_prog_ac_ct_CC
="gcc"
3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3605 if test -n "$ac_ct_CC"; then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3607 $as_echo "$ac_ct_CC" >&6; }
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 $as_echo "no" >&6; }
3613 if test "x$ac_ct_CC" = x
; then
3616 case $cross_compiling:$ac_tool_warned in
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3620 ac_tool_warned
=yes ;;
3628 if test -z "$CC"; then
3629 if test -n "$ac_tool_prefix"; then
3630 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3631 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 $as_echo_n "checking for $ac_word... " >&6; }
3634 if ${ac_cv_prog_CC+:} false
; then :
3635 $as_echo_n "(cached) " >&6
3637 if test -n "$CC"; then
3638 ac_cv_prog_CC
="$CC" # Let the user override the test.
3640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3644 test -z "$as_dir" && as_dir
=.
3645 for ac_exec_ext
in '' $ac_executable_extensions; do
3646 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3647 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 if test -n "$CC"; then
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3660 $as_echo "$CC" >&6; }
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 $as_echo "no" >&6; }
3669 if test -z "$CC"; then
3670 # Extract the first word of "cc", so it can be a program name with args.
3671 set dummy cc
; ac_word
=$2
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673 $as_echo_n "checking for $ac_word... " >&6; }
3674 if ${ac_cv_prog_CC+:} false
; then :
3675 $as_echo_n "(cached) " >&6
3677 if test -n "$CC"; then
3678 ac_cv_prog_CC
="$CC" # Let the user override the test.
3681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3685 test -z "$as_dir" && as_dir
=.
3686 for ac_exec_ext
in '' $ac_executable_extensions; do
3687 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3688 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3689 ac_prog_rejected
=yes
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3700 if test $ac_prog_rejected = yes; then
3701 # We found a bogon in the path, so make sure we never use it.
3702 set dummy
$ac_cv_prog_CC
3704 if test $# != 0; then
3705 # We chose a different compiler from the bogus one.
3706 # However, it has the same basename, so the bogon will be chosen
3707 # first if we set CC to just the basename; use the full file name.
3709 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3715 if test -n "$CC"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3725 if test -z "$CC"; then
3726 if test -n "$ac_tool_prefix"; then
3727 for ac_prog
in cl.exe
3729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3730 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if ${ac_cv_prog_CC+:} false
; then :
3734 $as_echo_n "(cached) " >&6
3736 if test -n "$CC"; then
3737 ac_cv_prog_CC
="$CC" # Let the user override the test.
3739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3743 test -z "$as_dir" && as_dir
=.
3744 for ac_exec_ext
in '' $ac_executable_extensions; do
3745 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3746 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 if test -n "$CC"; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3759 $as_echo "$CC" >&6; }
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 $as_echo "no" >&6; }
3766 test -n "$CC" && break
3769 if test -z "$CC"; then
3771 for ac_prog
in cl.exe
3773 # Extract the first word of "$ac_prog", so it can be a program name with args.
3774 set dummy
$ac_prog; ac_word
=$2
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3776 $as_echo_n "checking for $ac_word... " >&6; }
3777 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3778 $as_echo_n "(cached) " >&6
3780 if test -n "$ac_ct_CC"; then
3781 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3787 test -z "$as_dir" && as_dir
=.
3788 for ac_exec_ext
in '' $ac_executable_extensions; do
3789 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3790 ac_cv_prog_ac_ct_CC
="$ac_prog"
3791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3800 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3801 if test -n "$ac_ct_CC"; then
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3803 $as_echo "$ac_ct_CC" >&6; }
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806 $as_echo "no" >&6; }
3810 test -n "$ac_ct_CC" && break
3813 if test "x$ac_ct_CC" = x
; then
3816 case $cross_compiling:$ac_tool_warned in
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3820 ac_tool_warned
=yes ;;
3829 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3831 as_fn_error $?
"no acceptable C compiler found in \$PATH
3832 See \`config.log' for more details" "$LINENO" 5; }
3834 # Provide some information about the compiler.
3835 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3838 for ac_option
in --version -v -V -qversion; do
3839 { { ac_try
="$ac_compiler $ac_option >&5"
3841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845 $as_echo "$ac_try_echo"; } >&5
3846 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3848 if test -s conftest.err; then
3850 ... rest of stderr output deleted ...
3851 10q' conftest.err >conftest.er1
3852 cat conftest.er1 >&5
3854 rm -f conftest.er1 conftest.err
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3870 ac_clean_files_save=$ac_clean_files
3871 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3872 # Try to create an executable without -o first, disregard a.out.
3873 # It will help us diagnose broken compilers, and finding out an intuition
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3876 $as_echo_n "checking whether the C compiler works... " >&6; }
3877 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3879 # The possible output files:
3880 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3883 for ac_file in $ac_files
3886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3887 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3892 if { { ac_try="$ac_link_default"
3894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3895 *) ac_try_echo
=$ac_try;;
3897 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898 $as_echo "$ac_try_echo"; } >&5
3899 (eval "$ac_link_default") 2>&5
3901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902 test $ac_status = 0; }; then :
3903 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3904 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3905 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3906 # so that the user can short-circuit this test for compilers unknown to
3908 for ac_file
in $ac_files ''
3910 test -f "$ac_file" ||
continue
3912 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3915 # We found the default executable, but exeext='' is most
3919 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3921 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3923 # We set ac_cv_exeext here because the later test for it is not
3924 # safe: cross compilers may not add the suffix if given an `-o'
3925 # argument, so we may need to know it at that point already.
3926 # Even if this section looks crufty: it has the advantage of
3933 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3938 if test -z "$ac_file"; then :
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940 $as_echo "no" >&6; }
3941 $as_echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.
$ac_ext >&5
3944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3946 as_fn_error
77 "C compiler cannot create executables
3947 See \`config.log' for more details" "$LINENO" 5; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3950 $as_echo "yes" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3953 $as_echo_n "checking for C compiler default output file name... " >&6; }
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3955 $as_echo "$ac_file" >&6; }
3956 ac_exeext
=$ac_cv_exeext
3958 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3959 ac_clean_files
=$ac_clean_files_save
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3961 $as_echo_n "checking for suffix of executables... " >&6; }
3962 if { { ac_try
="$ac_link"
3964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 $as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_link") 2>&5
3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }; then :
3973 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3974 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3975 # work properly (i.e., refer to `conftest.exe'), while it won't with
3977 for ac_file
in conftest.exe conftest conftest.
*; do
3978 test -f "$ac_file" ||
continue
3980 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3981 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3990 See \`config.log' for more details" "$LINENO" 5; }
3992 rm -f conftest conftest
$ac_cv_exeext
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3994 $as_echo "$ac_cv_exeext" >&6; }
3996 rm -f conftest.
$ac_ext
3997 EXEEXT
=$ac_cv_exeext
3999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4005 FILE *f = fopen ("conftest.out", "w");
4006 return ferror (f) || fclose (f) != 0;
4012 ac_clean_files
="$ac_clean_files conftest.out"
4013 # Check that the compiler produces executables we can run. If not, either
4014 # the compiler is broken, or we cross compile.
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4016 $as_echo_n "checking whether we are cross compiling... " >&6; }
4017 if test "$cross_compiling" != yes; then
4018 { { ac_try
="$ac_link"
4020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4024 $as_echo "$ac_try_echo"; } >&5
4025 (eval "$ac_link") 2>&5
4027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4028 test $ac_status = 0; }
4029 if { ac_try='./conftest$ac_cv_exeext'
4030 { { case "(($ac_try" in
4031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4032 *) ac_try_echo
=$ac_try;;
4034 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 $as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_try") 2>&5
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }; }; then
4042 if test "$cross_compiling" = maybe
; then
4045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047 as_fn_error $?
"cannot run C compiled programs.
4048 If you meant to cross compile, use \`--host'.
4049 See \`config.log' for more details" "$LINENO" 5; }
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4054 $as_echo "$cross_compiling" >&6; }
4056 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4057 ac_clean_files
=$ac_clean_files_save
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4059 $as_echo_n "checking for suffix of object files... " >&6; }
4060 if ${ac_cv_objext+:} false
; then :
4061 $as_echo_n "(cached) " >&6
4063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4074 rm -f conftest.o conftest.obj
4075 if { { ac_try
="$ac_compile"
4077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4081 $as_echo "$ac_try_echo"; } >&5
4082 (eval "$ac_compile") 2>&5
4084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4085 test $ac_status = 0; }; then :
4086 for ac_file in conftest.o conftest.obj conftest.*; do
4087 test -f "$ac_file" || continue;
4089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4090 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4095 $as_echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4100 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4101 See \
`config.log' for more details" "$LINENO" 5; }
4103 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4106 $as_echo "$ac_cv_objext" >&6; }
4107 OBJEXT=$ac_cv_objext
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4110 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4111 if ${ac_cv_c_compiler_gnu+:} false; then :
4112 $as_echo_n "(cached) " >&6
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4128 if ac_fn_c_try_compile "$LINENO"; then :
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4138 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4139 if test $ac_compiler_gnu = yes; then
4144 ac_test_CFLAGS=${CFLAGS+set}
4145 ac_save_CFLAGS=$CFLAGS
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4147 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4148 if ${ac_cv_prog_cc_g+:} false; then :
4149 $as_echo_n "(cached) " >&6
4151 ac_save_c_werror_flag=$ac_c_werror_flag
4152 ac_c_werror_flag=yes
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4166 if ac_fn_c_try_compile "$LINENO"; then :
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4181 if ac_fn_c_try_compile "$LINENO"; then :
4184 ac_c_werror_flag=$ac_save_c_werror_flag
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4197 if ac_fn_c_try_compile "$LINENO"; then :
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 ac_c_werror_flag=$ac_save_c_werror_flag
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4208 $as_echo "$ac_cv_prog_cc_g" >&6; }
4209 if test "$ac_test_CFLAGS" = set; then
4210 CFLAGS=$ac_save_CFLAGS
4211 elif test $ac_cv_prog_cc_g = yes; then
4212 if test "$GCC" = yes; then
4218 if test "$GCC" = yes; then
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4225 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4226 if ${ac_cv_prog_cc_c89+:} false; then :
4227 $as_echo_n "(cached) " >&6
4229 ac_cv_prog_cc_c89=no
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4236 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4237 struct buf { int x; };
4238 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4239 static char *e (p, i)
4245 static char *f (char * (*g) (char **, int), char **p, ...)
4250 s = g (p, va_arg (v,int));
4255 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4256 function prototypes and stuff, but not '\xHH' hex character constants.
4257 These don't provoke an error unfortunately, instead are silently treated
4258 as 'x'. The following induces an error, until -std is added to get
4259 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4260 array size at least. It's necessary to write '\x00'==0 to get something
4261 that's true only with -std. */
4262 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4264 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4265 inside strings and character constants. */
4267 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4269 int test (int i, double x);
4270 struct s1 {int (*f) (int a);};
4271 struct s2 {int (*f) (double a);};
4272 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4278 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4283 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4284 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4286 CC="$ac_save_CC $ac_arg"
4287 if ac_fn_c_try_compile "$LINENO"; then :
4288 ac_cv_prog_cc_c89=$ac_arg
4290 rm -f core conftest.err conftest.$ac_objext
4291 test "x$ac_cv_prog_cc_c89" != "xno" && break
4293 rm -f conftest.$ac_ext
4298 case "x$ac_cv_prog_cc_c89" in
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4301 $as_echo "none needed" >&6; } ;;
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4304 $as_echo "unsupported" >&6; } ;;
4306 CC="$CC $ac_cv_prog_cc_c89"
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4308 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4310 if test "x$ac_cv_prog_cc_c89" != xno; then :
4315 ac_cpp='$CPP $CPPFLAGS'
4316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4326 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4327 if ${am_cv_prog_cc_c_o+:} false; then :
4328 $as_echo_n "(cached) " >&6
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4341 # Make sure it works both with $CC and with simple cc.
4342 # Following AC_PROG_CC_C_O, we do the test twice because some
4343 # compilers refuse to overwrite an existing .o file with -o,
4344 # though they will create one.
4345 am_cv_prog_cc_c_o=yes
4347 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4348 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } \
4352 && test -f conftest2.$ac_objext; then
4355 am_cv_prog_cc_c_o=no
4359 rm -f core conftest*
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4363 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4364 if test "$am_cv_prog_cc_c_o" != yes; then
4365 # Losing compiler, so override with the script.
4366 # FIXME: It is wrong to rewrite CC.
4367 # But if we don't then we get into trouble of one sort or another.
4368 # A longer-term fix would be to have automake use am__CC in this case,
4369 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4370 CC="$am_aux_dir/compile $CC"
4373 ac_cpp='$CPP $CPPFLAGS'
4374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378 DEPDIR="${am__leading_dot}deps"
4380 ac_config_commands="$ac_config_commands depfiles"
4383 am_make=${MAKE-make}
4384 cat > confinc << 'END'
4386 @echo this is the am__doit target
4389 # If we don't find an include directive, just comment out the code.
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4391 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4395 # First try GNU make style include.
4396 echo "include confinc" > confmf
4397 # Ignore all kinds of additional output from 'make'.
4398 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4399 *the\ am__doit\ target*)
4405 # Now try BSD make style include.
4406 if test "$am__include" = "#"; then
4407 echo '.include "confinc"' > confmf
4408 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4409 *the\ am__doit\ target*)
4410 am__include=.include
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4419 $as_echo "$_am_result" >&6; }
4420 rm -f confinc confmf
4422 # Check whether --enable-dependency-tracking was given.
4423 if test "${enable_dependency_tracking+set}" = set; then :
4424 enableval=$enable_dependency_tracking;
4427 if test "x$enable_dependency_tracking" != xno; then
4428 am_depcomp="$ac_aux_dir/depcomp"
4432 if test "x$enable_dependency_tracking" != xno; then
4442 depcc="$CC" am_compiler_list=
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4445 $as_echo_n "checking dependency style of $depcc... " >&6; }
4446 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4447 $as_echo_n "(cached) " >&6
4449 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4450 # We make a subdir and do the tests there. Otherwise we can end up
4451 # making bogus files that we don't know about and never remove. For
4452 # instance it was reported that on HP-UX the gcc test will end up
4453 # making a dummy file named 'D' -- because '-MD' means "put the output
4457 # Copy depcomp to subdir because otherwise we won't find it if we're
4458 # using a relative directory.
4459 cp "$am_depcomp" conftest.dir
4461 # We will build objects and dependencies in a subdirectory because
4462 # it helps to detect inapplicable dependency modes. For instance
4463 # both Tru64's cc and ICC support -MD to output dependencies as a
4464 # side effect of compilation, but ICC will put the dependencies in
4465 # the current directory while Tru64 will put them in the object
4469 am_cv_CC_dependencies_compiler_type=none
4470 if test "$am_compiler_list" = ""; then
4471 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4474 case " $depcc " in #(
4475 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4478 for depmode in $am_compiler_list; do
4479 # Setup a source with many dependencies, because some compilers
4480 # like to wrap large dependency lists on column 80 (with \), and
4481 # we should not choose a depcomp mode which is confused by this.
4483 # We need to recreate these files for each test, as the compiler may
4484 # overwrite some of them when testing with obscure command lines.
4485 # This happens at least with the AIX C compiler.
4487 for i in 1 2 3 4 5 6; do
4488 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4489 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4490 # Solaris 10 /bin/sh.
4491 echo '/* dummy */' > sub/conftst$i.h
4493 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4495 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4496 # mode. It turns out that the SunPro C++ compiler does not properly
4497 # handle '-M -o', and we need to detect this. Also, some Intel
4498 # versions had trouble with output in subdirs.
4499 am__obj=sub/conftest.${OBJEXT-o}
4500 am__minus_obj="-o $am__obj"
4503 # This depmode causes a compiler race in universal mode.
4504 test "$am__universal" = false || continue
4507 # After this tag, mechanisms are not by side-effect, so they'll
4508 # only be used when explicitly requested.
4509 if test "x$enable_dependency_tracking" = xyes; then
4515 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4516 # This compiler won't grok '-c -o', but also, the minuso test has
4517 # not run yet. These depmodes are late enough in the game, and
4518 # so weak that their functioning should not be impacted.
4519 am__obj=conftest.${OBJEXT-o}
4524 if depmode=$depmode \
4525 source=sub/conftest.c object=$am__obj \
4526 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4527 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4528 >/dev/null 2>conftest.err &&
4529 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4530 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4531 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4532 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4533 # icc doesn't choke on unknown options, it will just issue warnings
4534 # or remarks (even with -Werror). So we grep stderr for any message
4535 # that says an option was ignored or not supported.
4536 # When given -MP, icc 7.0 and 7.1 complain thusly:
4537 # icc: Command line warning: ignoring option '-M'; no argument required
4538 # The diagnosis changed in icc 8.0:
4539 # icc: Command line remark: option '-MP' not supported
4540 if (grep 'ignoring option' conftest.err ||
4541 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4542 am_cv_CC_dependencies_compiler_type=$depmode
4551 am_cv_CC_dependencies_compiler_type=none
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4556 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4557 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4560 test "x$enable_dependency_tracking" != xno \
4561 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4563 am__fastdepCC_FALSE='#'
4565 am__fastdepCC_TRUE='#'
4566 am__fastdepCC_FALSE=
4574 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4575 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4576 # in both places for now and restore CFLAGS at the end of config.
4577 save_CFLAGS="$CFLAGS"
4579 # Check whether --enable-werror was given.
4580 if test "${enable_werror+set}" = set; then :
4581 enableval=$enable_werror;
4584 # Add -Wall -Werror if we are using GCC.
4585 if test "x$GCC" = "xyes"; then :
4586 XCFLAGS="$XCFLAGS -Wall"
4588 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
4589 XCFLAGS="$XCFLAGS -Werror"
4592 # Find other programs we need.
4593 if test -n "$ac_tool_prefix"; then
4594 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4595 set dummy ${ac_tool_prefix}ar; ac_word=$2
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 $as_echo_n "checking for $ac_word... " >&6; }
4598 if ${ac_cv_prog_AR+:} false; then :
4599 $as_echo_n "(cached) " >&6
4601 if test -n "$AR"; then
4602 ac_cv_prog_AR="$AR" # Let the user override the test.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611 ac_cv_prog_AR="${ac_tool_prefix}ar"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 if test -n "$AR"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4624 $as_echo "$AR" >&6; }
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4632 if test -z "$ac_cv_prog_AR"; then
4634 # Extract the first word of "ar", so it can be a program name with args.
4635 set dummy ar; ac_word=$2
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 $as_echo_n "checking for $ac_word... " >&6; }
4638 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4639 $as_echo_n "(cached) " >&6
4641 if test -n "$ac_ct_AR"; then
4642 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_ac_ct_AR="ar"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4662 if test -n "$ac_ct_AR"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4664 $as_echo "$ac_ct_AR" >&6; }
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4670 if test "x$ac_ct_AR" = x; then
4673 case $cross_compiling:$ac_tool_warned in
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4677 ac_tool_warned=yes ;;
4685 if test -n "$ac_tool_prefix"; then
4686 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4687 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if ${ac_cv_prog_RANLIB+:} false; then :
4691 $as_echo_n "(cached) " >&6
4693 if test -n "$RANLIB"; then
4694 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4703 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 RANLIB=$ac_cv_prog_RANLIB
4714 if test -n "$RANLIB"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4716 $as_echo "$RANLIB" >&6; }
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4724 if test -z "$ac_cv_prog_RANLIB"; then
4725 ac_ct_RANLIB=$RANLIB
4726 # Extract the first word of "ranlib", so it can be a program name with args.
4727 set dummy ranlib; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4731 $as_echo_n "(cached) " >&6
4733 if test -n "$ac_ct_RANLIB"; then
4734 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743 ac_cv_prog_ac_ct_RANLIB="ranlib"
4744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4754 if test -n "$ac_ct_RANLIB"; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4756 $as_echo "$ac_ct_RANLIB" >&6; }
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4762 if test "x$ac_ct_RANLIB" = x; then
4763 RANLIB="ranlib-not-found-in-path-error"
4765 case $cross_compiling:$ac_tool_warned in
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4769 ac_tool_warned=yes ;;
4771 RANLIB=$ac_ct_RANLIB
4774 RANLIB="$ac_cv_prog_RANLIB"
4777 # Extract the first word of "perl", so it can be a program name with args.
4778 set dummy perl; ac_word=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if ${ac_cv_path_PERL+:} false; then :
4782 $as_echo_n "(cached) " >&6
4786 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4808 PERL=$ac_cv_path_PERL
4809 if test -n "$PERL"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4811 $as_echo "$PERL" >&6; }
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814 $as_echo "no" >&6; }
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4819 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4821 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4822 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4823 $as_echo_n "(cached) " >&6
4825 cat >conftest.make <<\_ACEOF
4828 @echo '@@@%%%=$(MAKE)=@@@%%%'
4830 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4831 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
4833 eval ac_cv_prog_make_${ac_make}_set=yes;;
4835 eval ac_cv_prog_make_${ac_make}_set=no;;
4839 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4841 $as_echo "yes" >&6; }
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4846 SET_MAKE="MAKE=${MAKE-make}"
4851 # See if makeinfo has been installed and is modern enough
4852 # that we can use it.
4854 # Extract the first word of "makeinfo", so it can be a program name with args.
4855 set dummy makeinfo; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if ${ac_cv_prog_MAKEINFO+:} false; then :
4859 $as_echo_n "(cached) " >&6
4861 if test -n "$MAKEINFO"; then
4862 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871 ac_cv_prog_MAKEINFO="makeinfo"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 MAKEINFO=$ac_cv_prog_MAKEINFO
4882 if test -n "$MAKEINFO"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4884 $as_echo "$MAKEINFO" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4891 if test -n "$MAKEINFO"; then
4892 # Found it, now check the version.
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4894 $as_echo_n "checking for modern makeinfo... " >&6; }
4895 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4896 $as_echo_n "(cached) " >&6
4898 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4899 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4901 case $ac_prog_version in
4902 '') gcc_cv_prog_makeinfo_modern=no;;
4903 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4904 *) gcc_cv_prog_makeinfo_modern=no;;
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4909 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4911 gcc_cv_prog_makeinfo_modern=no
4913 if test $gcc_cv_prog_makeinfo_modern = no; then
4914 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4917 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4919 BUILD_INFO_FALSE='#'
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4931 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4936 macro_version='2.2.7a'
4937 macro_revision='1.3134'
4951 ltmain="$ac_aux_dir/ltmain.sh"
4953 # Backslashify metacharacters that are still active within
4954 # double-quoted strings.
4955 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4957 # Same as above, but do not quote variable references.
4958 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4960 # Sed substitution to delay expansion of an escaped shell variable in a
4961 # double_quote_subst'ed string.
4962 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4964 # Sed substitution to delay expansion of an escaped single quote.
4965 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4967 # Sed substitution to avoid accidental globbing in evaled expressions
4968 no_glob_subst='s/\*/\\\*/g'
4970 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4971 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4972 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
4975 $as_echo_n "checking how to print
strings...
" >&6; }
4976 # Test print first, because it will be a builtin if present.
4977 if test "X
`print -r -- -n 2>/dev/null`" = X-n && \
4978 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
4980 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
4983 # Use this function as a fallback that always works.
4984 func_fallback_echo ()
4986 eval 'cat <<_LTECHO_EOF
4990 ECHO='func_fallback_echo'
4993 # func_echo_all arg...
4994 # Invoke $ECHO with all args, space-separated.
5001 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
5002 $as_echo "printf" >&6; } ;;
5003 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
5004 $as_echo "print
-r" >&6; } ;;
5005 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
5006 $as_echo "cat" >&6; } ;;
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
5023 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
5024 if ${ac_cv_path_SED+:} false; then :
5025 $as_echo_n "(cached
) " >&6
5027 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5028 for ac_i in 1 2 3 4 5 6 7; do
5029 ac_script="$ac_script$as_nl$ac_script"
5031 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5032 { ac_script=; unset ac_script;}
5033 if test -z "$SED"; then
5034 ac_path_SED_found=false
5035 # Loop through the user's path and test for each of PROGNAME-LIST
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 test -z "$as_dir" && as_dir=.
5041 for ac_prog in sed gsed; do
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5044 as_fn_executable_p "$ac_path_SED" || continue
5045 # Check for GNU ac_path_SED and select it if it is found.
5046 # Check for GNU $ac_path_SED
5047 case `"$ac_path_SED" --version 2>&1` in
5049 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5052 $as_echo_n 0123456789 >"conftest.
in"
5055 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5056 mv "conftest.tmp
" "conftest.
in"
5057 cp "conftest.
in" "conftest.
nl"
5058 $as_echo '' >> "conftest.
nl"
5059 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5060 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5061 as_fn_arith $ac_count + 1 && ac_count=$as_val
5062 if test $ac_count -gt ${ac_path_SED_max-0}; then
5063 # Best one so far, save it but keep looking for a better one
5064 ac_cv_path_SED="$ac_path_SED"
5065 ac_path_SED_max=$ac_count
5067 # 10*(2^10) chars as input seems more than enough
5068 test $ac_count -gt 10 && break
5070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5073 $ac_path_SED_found && break 3
5078 if test -z "$ac_cv_path_SED"; then
5079 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
5087 $as_echo "$ac_cv_path_SED" >&6; }
5088 SED="$ac_cv_path_SED"
5091 test -z "$SED" && SED=sed
5092 Xsed="$SED -e 1s
/^X
//"
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
5105 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
5106 if ${ac_cv_path_GREP+:} false; then :
5107 $as_echo_n "(cached
) " >&6
5109 if test -z "$GREP"; then
5110 ac_path_GREP_found=false
5111 # Loop through the user's path and test for each of PROGNAME-LIST
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5116 test -z "$as_dir" && as_dir=.
5117 for ac_prog in grep ggrep; do
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5120 as_fn_executable_p "$ac_path_GREP" || continue
5121 # Check for GNU ac_path_GREP and select it if it is found.
5122 # Check for GNU $ac_path_GREP
5123 case `"$ac_path_GREP" --version 2>&1` in
5125 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5128 $as_echo_n 0123456789 >"conftest.
in"
5131 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5132 mv "conftest.tmp
" "conftest.
in"
5133 cp "conftest.
in" "conftest.
nl"
5134 $as_echo 'GREP' >> "conftest.
nl"
5135 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5136 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5137 as_fn_arith $ac_count + 1 && ac_count=$as_val
5138 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5139 # Best one so far, save it but keep looking for a better one
5140 ac_cv_path_GREP="$ac_path_GREP"
5141 ac_path_GREP_max=$ac_count
5143 # 10*(2^10) chars as input seems more than enough
5144 test $ac_count -gt 10 && break
5146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5149 $ac_path_GREP_found && break 3
5154 if test -z "$ac_cv_path_GREP"; then
5155 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5158 ac_cv_path_GREP=$GREP
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
5163 $as_echo "$ac_cv_path_GREP" >&6; }
5164 GREP="$ac_cv_path_GREP"
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
5168 $as_echo_n "checking
for egrep...
" >&6; }
5169 if ${ac_cv_path_EGREP+:} false; then :
5170 $as_echo_n "(cached
) " >&6
5172 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5173 then ac_cv_path_EGREP="$GREP -E"
5175 if test -z "$EGREP"; then
5176 ac_path_EGREP_found=false
5177 # Loop through the user's path and test for each of PROGNAME-LIST
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5182 test -z "$as_dir" && as_dir=.
5183 for ac_prog in egrep; do
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5186 as_fn_executable_p "$ac_path_EGREP" || continue
5187 # Check for GNU ac_path_EGREP and select it if it is found.
5188 # Check for GNU $ac_path_EGREP
5189 case `"$ac_path_EGREP" --version 2>&1` in
5191 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5194 $as_echo_n 0123456789 >"conftest.
in"
5197 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5198 mv "conftest.tmp
" "conftest.
in"
5199 cp "conftest.
in" "conftest.
nl"
5200 $as_echo 'EGREP' >> "conftest.
nl"
5201 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5202 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5203 as_fn_arith $ac_count + 1 && ac_count=$as_val
5204 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5205 # Best one so far, save it but keep looking for a better one
5206 ac_cv_path_EGREP="$ac_path_EGREP"
5207 ac_path_EGREP_max=$ac_count
5209 # 10*(2^10) chars as input seems more than enough
5210 test $ac_count -gt 10 && break
5212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5215 $ac_path_EGREP_found && break 3
5220 if test -z "$ac_cv_path_EGREP"; then
5221 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5224 ac_cv_path_EGREP=$EGREP
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
5230 $as_echo "$ac_cv_path_EGREP" >&6; }
5231 EGREP="$ac_cv_path_EGREP"
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
5235 $as_echo_n "checking
for fgrep...
" >&6; }
5236 if ${ac_cv_path_FGREP+:} false; then :
5237 $as_echo_n "(cached
) " >&6
5239 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5240 then ac_cv_path_FGREP="$GREP -F"
5242 if test -z "$FGREP"; then
5243 ac_path_FGREP_found=false
5244 # Loop through the user's path and test for each of PROGNAME-LIST
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5249 test -z "$as_dir" && as_dir=.
5250 for ac_prog in fgrep; do
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5253 as_fn_executable_p "$ac_path_FGREP" || continue
5254 # Check for GNU ac_path_FGREP and select it if it is found.
5255 # Check for GNU $ac_path_FGREP
5256 case `"$ac_path_FGREP" --version 2>&1` in
5258 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5261 $as_echo_n 0123456789 >"conftest.
in"
5264 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5265 mv "conftest.tmp
" "conftest.
in"
5266 cp "conftest.
in" "conftest.
nl"
5267 $as_echo 'FGREP' >> "conftest.
nl"
5268 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5269 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5270 as_fn_arith $ac_count + 1 && ac_count=$as_val
5271 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5272 # Best one so far, save it but keep looking for a better one
5273 ac_cv_path_FGREP="$ac_path_FGREP"
5274 ac_path_FGREP_max=$ac_count
5276 # 10*(2^10) chars as input seems more than enough
5277 test $ac_count -gt 10 && break
5279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5282 $ac_path_FGREP_found && break 3
5287 if test -z "$ac_cv_path_FGREP"; then
5288 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5291 ac_cv_path_FGREP=$FGREP
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
5297 $as_echo "$ac_cv_path_FGREP" >&6; }
5298 FGREP="$ac_cv_path_FGREP"
5301 test -z "$GREP" && GREP=grep
5321 # Check whether --with-gnu-ld was given.
5322 if test "${with_gnu_ld+set}" = set; then :
5323 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5329 if test "$GCC" = yes; then
5330 # Check if gcc -print-prog-name=ld gives a path.
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
5332 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
5335 # gcc leaves a trailing carriage return which upsets mingw
5336 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5338 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5341 # Accept absolute paths.
5343 re_direlt='/[^/][^/]*/\.\./'
5344 # Canonicalize the pathname of ld
5345 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5346 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5347 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
5349 test -z "$LD" && LD="$ac_prog"
5352 # If it fails, then pretend we aren't using GCC.
5356 # If it is relative, then search for the first ld in PATH.
5360 elif test "$with_gnu_ld" = yes; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
5362 $as_echo_n "checking
for GNU ld...
" >&6; }
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
5365 $as_echo_n "checking
for non-GNU ld...
" >&6; }
5367 if ${lt_cv_path_LD+:} false; then :
5368 $as_echo_n "(cached
) " >&6
5370 if test -z "$LD"; then
5371 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5372 for ac_dir in $PATH; do
5374 test -z "$ac_dir" && ac_dir=.
5375 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5376 lt_cv_path_LD="$ac_dir/$ac_prog"
5377 # Check to see if the program is GNU ld. I'd rather use --version,
5378 # but apparently some variants of GNU ld only accept -v.
5379 # Break only if it was the GNU/non-GNU ld that we prefer.
5380 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5381 *GNU* | *'with BFD'*)
5382 test "$with_gnu_ld" != no && break
5385 test "$with_gnu_ld" != yes && break
5392 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5397 if test -n "$LD"; then
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
5399 $as_echo "$LD" >&6; }
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5402 $as_echo "no
" >&6; }
5404 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
5406 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
5407 if ${lt_cv_prog_gnu_ld+:} false; then :
5408 $as_echo_n "(cached
) " >&6
5410 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5411 case `$LD -v 2>&1 </dev/null` in
5412 *GNU* | *'with BFD'*)
5413 lt_cv_prog_gnu_ld=yes
5416 lt_cv_prog_gnu_ld=no
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
5421 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5422 with_gnu_ld=$lt_cv_prog_gnu_ld
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
5433 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
5434 if ${lt_cv_path_NM+:} false; then :
5435 $as_echo_n "(cached
) " >&6
5437 if test -n "$NM"; then
5438 # Let the user override the test.
5441 lt_nm_to_check="${ac_tool_prefix}nm
"
5442 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5443 lt_nm_to_check="$lt_nm_to_check nm
"
5445 for lt_tmp_nm in $lt_nm_to_check; do
5446 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5447 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5449 test -z "$ac_dir" && ac_dir=.
5450 tmp_nm="$ac_dir/$lt_tmp_nm"
5451 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5452 # Check to see if the nm accepts a BSD-compat flag.
5453 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5454 # nm: unknown option "B
" ignored
5455 # Tru64's nm complains that /dev/null is an invalid object file
5456 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5457 */dev/null* | *'Invalid file or object type'*)
5458 lt_cv_path_NM="$tmp_nm -B"
5462 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5464 lt_cv_path_NM="$tmp_nm -p"
5468 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5469 continue # so that we can try to find one that supports BSD flags
5478 : ${lt_cv_path_NM=no}
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
5482 $as_echo "$lt_cv_path_NM" >&6; }
5483 if test "$lt_cv_path_NM" != "no
"; then
5486 # Didn't find any BSD compatible name lister, look for dumpbin.
5487 if test -n "$DUMPBIN"; then :
5488 # Let the user override the test.
5490 if test -n "$ac_tool_prefix"; then
5491 for ac_prog in dumpbin "link
-dump"
5493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5496 $as_echo_n "checking
for $ac_word...
" >&6; }
5497 if ${ac_cv_prog_DUMPBIN+:} false; then :
5498 $as_echo_n "(cached
) " >&6
5500 if test -n "$DUMPBIN"; then
5501 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5520 DUMPBIN=$ac_cv_prog_DUMPBIN
5521 if test -n "$DUMPBIN"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
5523 $as_echo "$DUMPBIN" >&6; }
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5526 $as_echo "no
" >&6; }
5530 test -n "$DUMPBIN" && break
5533 if test -z "$DUMPBIN"; then
5534 ac_ct_DUMPBIN=$DUMPBIN
5535 for ac_prog in dumpbin "link
-dump"
5537 # Extract the first word of "$ac_prog", so it can be a program name with args.
5538 set dummy $ac_prog; ac_word=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5540 $as_echo_n "checking
for $ac_word...
" >&6; }
5541 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5542 $as_echo_n "(cached
) " >&6
5544 if test -n "$ac_ct_DUMPBIN"; then
5545 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5564 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5565 if test -n "$ac_ct_DUMPBIN"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
5567 $as_echo "$ac_ct_DUMPBIN" >&6; }
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5570 $as_echo "no
" >&6; }
5574 test -n "$ac_ct_DUMPBIN" && break
5577 if test "x
$ac_ct_DUMPBIN" = x; then
5580 case $cross_compiling:$ac_tool_warned in
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5583 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5584 ac_tool_warned=yes ;;
5586 DUMPBIN=$ac_ct_DUMPBIN
5590 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5592 DUMPBIN="$DUMPBIN -symbols"
5600 if test "$DUMPBIN" != ":"; then
5604 test -z "$NM" && NM=nm
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5612 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5613 if ${lt_cv_nm_interface+:} false; then :
5614 $as_echo_n "(cached
) " >&6
5616 lt_cv_nm_interface="BSD nm
"
5617 echo "int some_variable
= 0;" > conftest.$ac_ext
5618 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5619 (eval "$ac_compile" 2>conftest.err)
5620 cat conftest.err >&5
5621 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5622 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5623 cat conftest.err >&5
5624 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5625 cat conftest.out >&5
5626 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5627 lt_cv_nm_interface="MS dumpbin
"
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5632 $as_echo "$lt_cv_nm_interface" >&6; }
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5635 $as_echo_n "checking whether
ln -s works...
" >&6; }
5637 if test "$LN_S" = "ln -s"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5639 $as_echo "yes" >&6; }
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5642 $as_echo "no
, using
$LN_S" >&6; }
5645 # find the maximum length of command line arguments
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5647 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5648 if ${lt_cv_sys_max_cmd_len+:} false; then :
5649 $as_echo_n "(cached
) " >&6
5656 # On DJGPP, this test can blow up pretty badly due to problems in libc
5657 # (any single argument exceeding 2000 bytes causes a buffer overrun
5658 # during glob expansion). Even if it were fixed, the result of this
5659 # check would be larger than it should be.
5660 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5664 # Under GNU Hurd, this test is not required because there is
5665 # no limit to the length of command line arguments.
5666 # Libtool will interpret -1 as no limit whatsoever
5667 lt_cv_sys_max_cmd_len=-1;
5670 cygwin* | mingw* | cegcc*)
5671 # On Win9x/ME, this test blows up -- it succeeds, but takes
5672 # about 5 minutes as the teststring grows exponentially.
5673 # Worse, since 9x/ME are not pre-emptively multitasking,
5674 # you end up with a "frozen
" computer, even though with patience
5675 # the test eventually succeeds (with a max line length of 256k).
5676 # Instead, let's just punt: use the minimum linelength reported by
5677 # all of the supported platforms: 8192 (on NT/2K/XP).
5678 lt_cv_sys_max_cmd_len=8192;
5682 # On MiNT this can take a long time and run out of memory.
5683 lt_cv_sys_max_cmd_len=8192;
5687 # On AmigaOS with pdksh, this test takes hours, literally.
5688 # So we just punt and use a minimum line length of 8192.
5689 lt_cv_sys_max_cmd_len=8192;
5692 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5693 # This has been around since 386BSD, at least. Likely further.
5694 if test -x /sbin/sysctl; then
5695 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5696 elif test -x /usr/sbin/sysctl; then
5697 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5699 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5701 # And add a safety zone
5702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5703 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5707 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5708 lt_cv_sys_max_cmd_len=196608
5712 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5713 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5714 # nice to cause kernel panics so lets avoid the loop below.
5715 # First set a reasonable default.
5716 lt_cv_sys_max_cmd_len=16384
5718 if test -x /sbin/sysconfig; then
5719 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5720 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5725 lt_cv_sys_max_cmd_len=102400
5727 sysv5* | sco5v6* | sysv4.2uw2*)
5728 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5729 if test -n "$kargmax"; then
5730 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5732 lt_cv_sys_max_cmd_len=32768
5736 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5737 if test -n "$lt_cv_sys_max_cmd_len"; then
5738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5741 # Make teststring a little bigger before we do anything with it.
5742 # a 1K string should be a reasonable start.
5743 for i in 1 2 3 4 5 6 7 8 ; do
5744 teststring=$teststring$teststring
5746 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5747 # If test is not a shell built-in, we'll probably end up computing a
5748 # maximum length that is only half of the actual maximum length, but
5750 while { test "X
"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5751 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5752 test $i != 17 # 1/2 MB should be enough
5755 teststring=$teststring$teststring
5757 # Only check the string length outside the loop.
5758 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5760 # Add a significant safety factor because C++ compilers can tack on
5761 # massive amounts of additional arguments before passing them to the
5762 # linker. It appears as though 1/2 is a usable value.
5763 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5770 if test -n $lt_cv_sys_max_cmd_len ; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5772 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5775 $as_echo "none
" >&6; }
5777 max_cmd_len=$lt_cv_sys_max_cmd_len
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs
" >&5
5789 $as_echo_n "checking whether the shell understands some XSI constructs...
" >&6; }
5790 # Try some XSI features
5793 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5795 && eval 'test $(( 1 + 1 )) -eq 2 \
5796 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5799 $as_echo "$xsi_shell" >&6; }
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5803 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5805 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
5807 && lt_shell_append
=yes
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5809 $as_echo "$lt_shell_append" >&6; }
5812 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5822 # test EBCDIC or ASCII
5823 case `echo X|tr X '\101'` in
5824 A
) # ASCII based system
5825 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5826 lt_SP2NL
='tr \040 \012'
5827 lt_NL2SP
='tr \015\012 \040\040'
5829 *) # EBCDIC based system
5830 lt_SP2NL
='tr \100 \n'
5831 lt_NL2SP
='tr \r\n \100\100'
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5844 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5845 if ${lt_cv_ld_reload_flag+:} false
; then :
5846 $as_echo_n "(cached) " >&6
5848 lt_cv_ld_reload_flag
='-r'
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5851 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5852 reload_flag
=$lt_cv_ld_reload_flag
5853 case $reload_flag in
5855 *) reload_flag
=" $reload_flag" ;;
5857 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5860 if test "$GCC" = yes; then
5861 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5863 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5876 if test -n "$ac_tool_prefix"; then
5877 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5878 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_prog_OBJDUMP+:} false
; then :
5882 $as_echo_n "(cached) " >&6
5884 if test -n "$OBJDUMP"; then
5885 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
5887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5891 test -z "$as_dir" && as_dir
=.
5892 for ac_exec_ext
in '' $ac_executable_extensions; do
5893 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 OBJDUMP
=$ac_cv_prog_OBJDUMP
5905 if test -n "$OBJDUMP"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5907 $as_echo "$OBJDUMP" >&6; }
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5915 if test -z "$ac_cv_prog_OBJDUMP"; then
5916 ac_ct_OBJDUMP
=$OBJDUMP
5917 # Extract the first word of "objdump", so it can be a program name with args.
5918 set dummy objdump
; ac_word
=$2
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 $as_echo_n "checking for $ac_word... " >&6; }
5921 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
5922 $as_echo_n "(cached) " >&6
5924 if test -n "$ac_ct_OBJDUMP"; then
5925 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
5927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5931 test -z "$as_dir" && as_dir
=.
5932 for ac_exec_ext
in '' $ac_executable_extensions; do
5933 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5934 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
5945 if test -n "$ac_ct_OBJDUMP"; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5947 $as_echo "$ac_ct_OBJDUMP" >&6; }
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950 $as_echo "no" >&6; }
5953 if test "x$ac_ct_OBJDUMP" = x
; then
5956 case $cross_compiling:$ac_tool_warned in
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5960 ac_tool_warned
=yes ;;
5962 OBJDUMP
=$ac_ct_OBJDUMP
5965 OBJDUMP
="$ac_cv_prog_OBJDUMP"
5968 test -z "$OBJDUMP" && OBJDUMP
=objdump
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5979 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5980 if ${lt_cv_deplibs_check_method+:} false
; then :
5981 $as_echo_n "(cached) " >&6
5983 lt_cv_file_magic_cmd
='$MAGIC_CMD'
5984 lt_cv_file_magic_test_file
=
5985 lt_cv_deplibs_check_method
='unknown'
5986 # Need to set the preceding variable on all platforms that support
5987 # interlibrary dependencies.
5988 # 'none' -- dependencies not supported.
5989 # `unknown' -- same as none, but documents that we really don't know.
5990 # 'pass_all' -- all dependencies passed with no checks.
5991 # 'test_compile' -- check by making test program.
5992 # 'file_magic [[regex]]' -- check by looking for files in library path
5993 # which responds to the $file_magic_cmd with a given extended regex.
5994 # If you have `file' or equivalent on your system and you're not sure
5995 # whether `pass_all' will *always* work, you probably want this one.
5999 lt_cv_deplibs_check_method
=pass_all
6003 lt_cv_deplibs_check_method
=pass_all
6007 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6008 lt_cv_file_magic_cmd
='/usr/bin/file -L'
6009 lt_cv_file_magic_test_file
=/shlib
/libc.so
6013 # func_win32_libid is a shell function defined in ltmain.sh
6014 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6015 lt_cv_file_magic_cmd
='func_win32_libid'
6019 # Base MSYS/MinGW do not provide the 'file' command needed by
6020 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6021 # unless we find 'file', for example because we are cross-compiling.
6022 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6023 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
6024 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6025 lt_cv_file_magic_cmd
='func_win32_libid'
6027 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
6028 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6033 # use the weaker test based on 'objdump'. See mingw*.
6034 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6035 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6038 darwin
* | rhapsody
*)
6039 lt_cv_deplibs_check_method
=pass_all
6042 freebsd
* | dragonfly
*)
6043 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6046 # Not sure whether the presence of OpenBSD here was a mistake.
6047 # Let's accept both of them until this is cleared up.
6048 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6049 lt_cv_file_magic_cmd
=/usr
/bin
/file
6050 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6054 lt_cv_deplibs_check_method
=pass_all
6059 lt_cv_deplibs_check_method
=pass_all
6063 lt_cv_deplibs_check_method
=pass_all
6066 hpux10.20
* | hpux11
*)
6067 lt_cv_file_magic_cmd
=/usr
/bin
/file
6070 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6071 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
6074 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]'
6075 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
6078 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6079 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6085 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6086 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6089 irix5
* | irix6
* | nonstopux
*)
6091 *-32|
*"-32 ") libmagic
=32-bit;;
6092 *-n32|
*"-n32 ") libmagic
=N32
;;
6093 *-64|
*"-64 ") libmagic
=64-bit;;
6094 *) libmagic
=never-match
;;
6096 lt_cv_deplibs_check_method
=pass_all
6099 # This must be Linux ELF.
6100 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
6101 lt_cv_deplibs_check_method
=pass_all
6105 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6106 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6108 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6113 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6114 lt_cv_file_magic_cmd
=/usr
/bin
/file
6115 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6119 lt_cv_deplibs_check_method
=pass_all
6123 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6124 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6126 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6130 osf3
* | osf4
* | osf5
*)
6131 lt_cv_deplibs_check_method
=pass_all
6135 lt_cv_deplibs_check_method
=pass_all
6139 lt_cv_deplibs_check_method
=pass_all
6142 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6143 lt_cv_deplibs_check_method
=pass_all
6147 case $host_vendor in
6149 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]'
6150 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6153 lt_cv_deplibs_check_method
=pass_all
6156 lt_cv_file_magic_cmd
='/bin/file'
6157 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6160 lt_cv_file_magic_cmd
='/bin/file'
6161 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6162 lt_cv_file_magic_test_file
=/lib
/libc.so
6165 lt_cv_deplibs_check_method
=pass_all
6168 lt_cv_deplibs_check_method
=pass_all
6174 lt_cv_deplibs_check_method
=pass_all
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6180 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6181 file_magic_cmd
=$lt_cv_file_magic_cmd
6182 deplibs_check_method
=$lt_cv_deplibs_check_method
6183 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6196 if test -n "$ac_tool_prefix"; then
6197 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6198 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6200 $as_echo_n "checking for $ac_word... " >&6; }
6201 if ${ac_cv_prog_AR+:} false
; then :
6202 $as_echo_n "(cached) " >&6
6204 if test -n "$AR"; then
6205 ac_cv_prog_AR
="$AR" # Let the user override the test.
6207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6211 test -z "$as_dir" && as_dir
=.
6212 for ac_exec_ext
in '' $ac_executable_extensions; do
6213 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6214 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 if test -n "$AR"; then
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6227 $as_echo "$AR" >&6; }
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6230 $as_echo "no" >&6; }
6235 if test -z "$ac_cv_prog_AR"; then
6237 # Extract the first word of "ar", so it can be a program name with args.
6238 set dummy
ar; ac_word
=$2
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 $as_echo_n "checking for $ac_word... " >&6; }
6241 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6242 $as_echo_n "(cached) " >&6
6244 if test -n "$ac_ct_AR"; then
6245 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6251 test -z "$as_dir" && as_dir
=.
6252 for ac_exec_ext
in '' $ac_executable_extensions; do
6253 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6254 ac_cv_prog_ac_ct_AR
="ar"
6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6265 if test -n "$ac_ct_AR"; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6267 $as_echo "$ac_ct_AR" >&6; }
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6273 if test "x$ac_ct_AR" = x
; then
6276 case $cross_compiling:$ac_tool_warned in
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6280 ac_tool_warned
=yes ;;
6288 test -z "$AR" && AR
=ar
6289 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6301 if test -n "$ac_tool_prefix"; then
6302 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6303 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if ${ac_cv_prog_STRIP+:} false
; then :
6307 $as_echo_n "(cached) " >&6
6309 if test -n "$STRIP"; then
6310 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6316 test -z "$as_dir" && as_dir
=.
6317 for ac_exec_ext
in '' $ac_executable_extensions; do
6318 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6319 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 STRIP
=$ac_cv_prog_STRIP
6330 if test -n "$STRIP"; then
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6332 $as_echo "$STRIP" >&6; }
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6340 if test -z "$ac_cv_prog_STRIP"; then
6342 # Extract the first word of "strip", so it can be a program name with args.
6343 set dummy strip
; ac_word
=$2
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6345 $as_echo_n "checking for $ac_word... " >&6; }
6346 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
6347 $as_echo_n "(cached) " >&6
6349 if test -n "$ac_ct_STRIP"; then
6350 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6356 test -z "$as_dir" && as_dir
=.
6357 for ac_exec_ext
in '' $ac_executable_extensions; do
6358 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6359 ac_cv_prog_ac_ct_STRIP
="strip"
6360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6370 if test -n "$ac_ct_STRIP"; then
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6372 $as_echo "$ac_ct_STRIP" >&6; }
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6378 if test "x$ac_ct_STRIP" = x
; then
6381 case $cross_compiling:$ac_tool_warned in
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6385 ac_tool_warned
=yes ;;
6390 STRIP
="$ac_cv_prog_STRIP"
6393 test -z "$STRIP" && STRIP
=:
6400 if test -n "$ac_tool_prefix"; then
6401 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6402 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6404 $as_echo_n "checking for $ac_word... " >&6; }
6405 if ${ac_cv_prog_RANLIB+:} false
; then :
6406 $as_echo_n "(cached) " >&6
6408 if test -n "$RANLIB"; then
6409 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6415 test -z "$as_dir" && as_dir
=.
6416 for ac_exec_ext
in '' $ac_executable_extensions; do
6417 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6418 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 RANLIB
=$ac_cv_prog_RANLIB
6429 if test -n "$RANLIB"; then
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6431 $as_echo "$RANLIB" >&6; }
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6439 if test -z "$ac_cv_prog_RANLIB"; then
6440 ac_ct_RANLIB
=$RANLIB
6441 # Extract the first word of "ranlib", so it can be a program name with args.
6442 set dummy ranlib
; ac_word
=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6446 $as_echo_n "(cached) " >&6
6448 if test -n "$ac_ct_RANLIB"; then
6449 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6455 test -z "$as_dir" && as_dir
=.
6456 for ac_exec_ext
in '' $ac_executable_extensions; do
6457 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6458 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6469 if test -n "$ac_ct_RANLIB"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6471 $as_echo "$ac_ct_RANLIB" >&6; }
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6477 if test "x$ac_ct_RANLIB" = x
; then
6480 case $cross_compiling:$ac_tool_warned in
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6484 ac_tool_warned
=yes ;;
6486 RANLIB
=$ac_ct_RANLIB
6489 RANLIB
="$ac_cv_prog_RANLIB"
6492 test -z "$RANLIB" && RANLIB
=:
6499 # Determine commands to create old-style static archives.
6500 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6501 old_postinstall_cmds
='chmod 644 $oldlib'
6502 old_postuninstall_cmds
=
6504 if test -n "$RANLIB"; then
6507 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6510 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6513 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6518 lock_old_archive_extraction
=yes ;;
6520 lock_old_archive_extraction
=no
;;
6561 # If no C compiler was specified, use CC.
6564 # If no C compiler flags were specified, use CFLAGS.
6565 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6567 # Allow CC to be a program name with arguments.
6571 # Check for command to grab the raw symbol name followed by C symbol from nm.
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6573 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6574 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
6575 $as_echo_n "(cached) " >&6
6578 # These are sane defaults that work on at least a few old systems.
6579 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6581 # Character class describing NM global symbol codes.
6582 symcode
='[BCDEGRST]'
6584 # Regexp to match symbols that can be accessed directly from C.
6585 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6587 # Define system-specific variables.
6592 cygwin
* | mingw
* | pw32
* | cegcc
*)
6593 symcode
='[ABCDGISTW]'
6596 if test "$host_cpu" = ia64
; then
6597 symcode
='[ABCDEGRST]'
6601 symcode
='[BCDEGRST]'
6604 symcode
='[BCDEGQRST]'
6615 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6623 # If we're using GNU nm, then use its standard symbol codes.
6624 case `$NM -V 2>&1` in
6625 *GNU
* |
*'with BFD'*)
6626 symcode
='[ABCDGIRSTW]' ;;
6629 # Transform an extracted symbol line into a proper C declaration.
6630 # Some systems (esp. on ia64) link data and code symbols differently,
6631 # so use this general approach.
6632 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6634 # Transform an extracted symbol line into symbol name and symbol address
6635 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6636 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'"
6638 # Handle CRLF in mingw tool chain
6642 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6646 # Try without a prefix underscore, then with it.
6647 for ac_symprfx
in "" "_"; do
6649 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6650 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6652 # Write the raw and C identifiers.
6653 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6654 # Fake it for dumpbin and say T for any non-static function
6655 # and D for any global variable.
6656 # Also find C++ and __fastcall symbols from MSVC++,
6657 # which start with @ or ?.
6658 lt_cv_sys_global_symbol_pipe
="$AWK '"\
6659 " {last_section=section; section=\$ 3};"\
6660 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6661 " \$ 0!~/External *\|/{next};"\
6662 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6663 " {if(hide[section]) next};"\
6664 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6665 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6666 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6667 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6668 " ' prfx=^$ac_symprfx"
6670 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6673 # Check to see that the pipe works correctly.
6677 cat > conftest.
$ac_ext <<_LT_EOF
6682 void nm_test_func(void);
6683 void nm_test_func(void){}
6687 int main(){nm_test_var='a';nm_test_func();return(0);}
6690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6691 (eval $ac_compile) 2>&5
6693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694 test $ac_status = 0; }; then
6695 # Now try to grab the symbols.
6697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6698 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
6700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6701 test $ac_status = 0; } && test -s "$nlist"; then
6702 # Try sorting and uniquifying the output.
6703 if sort "$nlist" |
uniq > "$nlist"T
; then
6704 mv -f "$nlist"T
"$nlist"
6709 # Make sure that we snagged all the symbols we need.
6710 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
6711 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
6712 cat <<_LT_EOF > conftest.$ac_ext
6718 # Now generate the symbol file.
6719 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6721 cat <<_LT_EOF >> conftest.$ac_ext
6723 /* The mapping between symbol names and symbols. */
6728 lt__PROGRAM__LTX_preloaded_symbols[] =
6730 { "@PROGRAM@", (void *) 0 },
6732 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
6733 cat <<\_LT_EOF
>> conftest.
$ac_ext
6737 /* This works around a problem
in FreeBSD linker
*/
6738 #ifdef FREEBSD_WORKAROUND
6739 static const void
*lt_preloaded_setup
() {
6740 return lt__PROGRAM__LTX_preloaded_symbols
;
6748 # Now try linking the two files.
6749 mv conftest.
$ac_objext conftstm.
$ac_objext
6750 lt_save_LIBS
="$LIBS"
6751 lt_save_CFLAGS
="$CFLAGS"
6752 LIBS
="conftstm.$ac_objext"
6753 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6755 (eval $ac_link) 2>&5
6757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6758 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
6761 LIBS
="$lt_save_LIBS"
6762 CFLAGS
="$lt_save_CFLAGS"
6764 echo "cannot find nm_test_func in $nlist" >&5
6767 echo "cannot find nm_test_var in $nlist" >&5
6770 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6773 echo "$progname: failed program was:" >&5
6774 cat conftest.
$ac_ext >&5
6776 rm -rf conftest
* conftst
*
6778 # Do not use the global_symbol_pipe unless it works.
6779 if test "$pipe_works" = yes; then
6782 lt_cv_sys_global_symbol_pipe
=
6788 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6789 lt_cv_sys_global_symbol_to_cdecl
=
6791 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6793 $as_echo "failed" >&6; }
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6796 $as_echo "ok" >&6; }
6821 # Check whether --enable-libtool-lock was given.
6822 if test "${enable_libtool_lock+set}" = set; then :
6823 enableval
=$enable_libtool_lock;
6826 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6828 # Some flags need to be propagated to the compiler or linker for good
6832 # Find out which ABI we are using.
6833 echo 'int i;' > conftest.
$ac_ext
6834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6835 (eval $ac_compile) 2>&5
6837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6838 test $ac_status = 0; }; then
6839 case `/usr/bin/file conftest.$ac_objext` in
6851 # Find out which ABI we are using.
6852 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
6853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6854 (eval $ac_compile) 2>&5
6856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6857 test $ac_status = 0; }; then
6858 if test "$lt_cv_prog_gnu_ld" = yes; then
6859 case `/usr/bin/file conftest.$ac_objext` in
6861 LD
="${LD-ld} -melf32bsmip"
6864 LD
="${LD-ld} -melf32bmipn32"
6867 LD
="${LD-ld} -melf64bmip"
6871 case `/usr/bin/file conftest.$ac_objext` in
6887 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
6888 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
6889 # Find out which ABI we are using.
6890 echo 'int i;' > conftest.
$ac_ext
6891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6892 (eval $ac_compile) 2>&5
6894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6895 test $ac_status = 0; }; then
6896 case `/usr/bin/file conftest.o` in
6899 x86_64-
*kfreebsd
*-gnu)
6900 LD
="${LD-ld} -m elf_i386_fbsd"
6903 case `/usr/bin/file conftest.o` in
6905 LD
="${LD-ld} -m elf32_x86_64"
6908 LD
="${LD-ld} -m elf_i386"
6912 powerpc64le-
*linux
*)
6913 LD
="${LD-ld} -m elf32lppclinux"
6916 LD
="${LD-ld} -m elf32ppclinux"
6919 LD
="${LD-ld} -m elf_s390"
6922 LD
="${LD-ld} -m elf32_sparc"
6928 x86_64-
*kfreebsd
*-gnu)
6929 LD
="${LD-ld} -m elf_x86_64_fbsd"
6932 LD
="${LD-ld} -m elf_x86_64"
6935 LD
="${LD-ld} -m elf64lppc"
6938 LD
="${LD-ld} -m elf64ppc"
6940 s390
*-*linux
*|s390
*-*tpf
*)
6941 LD
="${LD-ld} -m elf64_s390"
6944 LD
="${LD-ld} -m elf64_sparc"
6954 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6955 SAVE_CFLAGS
="$CFLAGS"
6956 CFLAGS
="$CFLAGS -belf"
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6958 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6959 if ${lt_cv_cc_needs_belf+:} false
; then :
6960 $as_echo_n "(cached) " >&6
6963 ac_cpp
='$CPP $CPPFLAGS'
6964 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6965 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6966 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6979 if ac_fn_c_try_link
"$LINENO"; then :
6980 lt_cv_cc_needs_belf
=yes
6982 lt_cv_cc_needs_belf
=no
6984 rm -f core conftest.err conftest.
$ac_objext \
6985 conftest
$ac_exeext conftest.
$ac_ext
6987 ac_cpp
='$CPP $CPPFLAGS'
6988 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6989 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6990 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6994 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6995 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
6996 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6997 CFLAGS
="$SAVE_CFLAGS"
7001 # Find out which ABI we are using.
7002 echo 'int i;' > conftest.
$ac_ext
7003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7004 (eval $ac_compile) 2>&5
7006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7007 test $ac_status = 0; }; then
7008 case `/usr/bin/file conftest.o` in
7010 case $lt_cv_prog_gnu_ld in
7011 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
7013 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
7025 need_locks
="$enable_libtool_lock"
7029 rhapsody
* | darwin
*)
7030 if test -n "$ac_tool_prefix"; then
7031 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7032 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
7036 $as_echo_n "(cached) " >&6
7038 if test -n "$DSYMUTIL"; then
7039 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
7041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7045 test -z "$as_dir" && as_dir
=.
7046 for ac_exec_ext
in '' $ac_executable_extensions; do
7047 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7048 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
7059 if test -n "$DSYMUTIL"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7061 $as_echo "$DSYMUTIL" >&6; }
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7069 if test -z "$ac_cv_prog_DSYMUTIL"; then
7070 ac_ct_DSYMUTIL
=$DSYMUTIL
7071 # Extract the first word of "dsymutil", so it can be a program name with args.
7072 set dummy dsymutil
; ac_word
=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
7076 $as_echo_n "(cached) " >&6
7078 if test -n "$ac_ct_DSYMUTIL"; then
7079 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
7081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7085 test -z "$as_dir" && as_dir
=.
7086 for ac_exec_ext
in '' $ac_executable_extensions; do
7087 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7088 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
7089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
7099 if test -n "$ac_ct_DSYMUTIL"; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7101 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7107 if test "x$ac_ct_DSYMUTIL" = x
; then
7110 case $cross_compiling:$ac_tool_warned in
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7114 ac_tool_warned
=yes ;;
7116 DSYMUTIL
=$ac_ct_DSYMUTIL
7119 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
7122 if test -n "$ac_tool_prefix"; then
7123 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7124 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if ${ac_cv_prog_NMEDIT+:} false
; then :
7128 $as_echo_n "(cached) " >&6
7130 if test -n "$NMEDIT"; then
7131 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
7133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7137 test -z "$as_dir" && as_dir
=.
7138 for ac_exec_ext
in '' $ac_executable_extensions; do
7139 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7140 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 NMEDIT
=$ac_cv_prog_NMEDIT
7151 if test -n "$NMEDIT"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7153 $as_echo "$NMEDIT" >&6; }
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7161 if test -z "$ac_cv_prog_NMEDIT"; then
7162 ac_ct_NMEDIT
=$NMEDIT
7163 # Extract the first word of "nmedit", so it can be a program name with args.
7164 set dummy nmedit
; ac_word
=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
7168 $as_echo_n "(cached) " >&6
7170 if test -n "$ac_ct_NMEDIT"; then
7171 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
7173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir
=.
7178 for ac_exec_ext
in '' $ac_executable_extensions; do
7179 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7180 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
7191 if test -n "$ac_ct_NMEDIT"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7193 $as_echo "$ac_ct_NMEDIT" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7199 if test "x$ac_ct_NMEDIT" = x
; then
7202 case $cross_compiling:$ac_tool_warned in
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7206 ac_tool_warned
=yes ;;
7208 NMEDIT
=$ac_ct_NMEDIT
7211 NMEDIT
="$ac_cv_prog_NMEDIT"
7214 if test -n "$ac_tool_prefix"; then
7215 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7216 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218 $as_echo_n "checking for $ac_word... " >&6; }
7219 if ${ac_cv_prog_LIPO+:} false
; then :
7220 $as_echo_n "(cached) " >&6
7222 if test -n "$LIPO"; then
7223 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
7225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7229 test -z "$as_dir" && as_dir
=.
7230 for ac_exec_ext
in '' $ac_executable_extensions; do
7231 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7232 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
7233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 LIPO
=$ac_cv_prog_LIPO
7243 if test -n "$LIPO"; then
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7245 $as_echo "$LIPO" >&6; }
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248 $as_echo "no" >&6; }
7253 if test -z "$ac_cv_prog_LIPO"; then
7255 # Extract the first word of "lipo", so it can be a program name with args.
7256 set dummy lipo
; ac_word
=$2
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258 $as_echo_n "checking for $ac_word... " >&6; }
7259 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
7260 $as_echo_n "(cached) " >&6
7262 if test -n "$ac_ct_LIPO"; then
7263 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
7265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7269 test -z "$as_dir" && as_dir
=.
7270 for ac_exec_ext
in '' $ac_executable_extensions; do
7271 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7272 ac_cv_prog_ac_ct_LIPO
="lipo"
7273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
7283 if test -n "$ac_ct_LIPO"; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7285 $as_echo "$ac_ct_LIPO" >&6; }
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288 $as_echo "no" >&6; }
7291 if test "x$ac_ct_LIPO" = x
; then
7294 case $cross_compiling:$ac_tool_warned in
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7298 ac_tool_warned
=yes ;;
7303 LIPO
="$ac_cv_prog_LIPO"
7306 if test -n "$ac_tool_prefix"; then
7307 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7308 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if ${ac_cv_prog_OTOOL+:} false
; then :
7312 $as_echo_n "(cached) " >&6
7314 if test -n "$OTOOL"; then
7315 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
7317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7321 test -z "$as_dir" && as_dir
=.
7322 for ac_exec_ext
in '' $ac_executable_extensions; do
7323 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 OTOOL
=$ac_cv_prog_OTOOL
7335 if test -n "$OTOOL"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7337 $as_echo "$OTOOL" >&6; }
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7345 if test -z "$ac_cv_prog_OTOOL"; then
7347 # Extract the first word of "otool", so it can be a program name with args.
7348 set dummy otool
; ac_word
=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
7352 $as_echo_n "(cached) " >&6
7354 if test -n "$ac_ct_OTOOL"; then
7355 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
7357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir
=.
7362 for ac_exec_ext
in '' $ac_executable_extensions; do
7363 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_ac_ct_OTOOL
="otool"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
7375 if test -n "$ac_ct_OTOOL"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7377 $as_echo "$ac_ct_OTOOL" >&6; }
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7383 if test "x$ac_ct_OTOOL" = x
; then
7386 case $cross_compiling:$ac_tool_warned in
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7390 ac_tool_warned
=yes ;;
7395 OTOOL
="$ac_cv_prog_OTOOL"
7398 if test -n "$ac_tool_prefix"; then
7399 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7400 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 $as_echo_n "checking for $ac_word... " >&6; }
7403 if ${ac_cv_prog_OTOOL64+:} false
; then :
7404 $as_echo_n "(cached) " >&6
7406 if test -n "$OTOOL64"; then
7407 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
7409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7413 test -z "$as_dir" && as_dir
=.
7414 for ac_exec_ext
in '' $ac_executable_extensions; do
7415 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7416 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
7417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 OTOOL64
=$ac_cv_prog_OTOOL64
7427 if test -n "$OTOOL64"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7429 $as_echo "$OTOOL64" >&6; }
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7437 if test -z "$ac_cv_prog_OTOOL64"; then
7438 ac_ct_OTOOL64
=$OTOOL64
7439 # Extract the first word of "otool64", so it can be a program name with args.
7440 set dummy otool64
; ac_word
=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
7444 $as_echo_n "(cached) " >&6
7446 if test -n "$ac_ct_OTOOL64"; then
7447 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
7449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7453 test -z "$as_dir" && as_dir
=.
7454 for ac_exec_ext
in '' $ac_executable_extensions; do
7455 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7456 ac_cv_prog_ac_ct_OTOOL64
="otool64"
7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
7467 if test -n "$ac_ct_OTOOL64"; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7469 $as_echo "$ac_ct_OTOOL64" >&6; }
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7475 if test "x$ac_ct_OTOOL64" = x
; then
7478 case $cross_compiling:$ac_tool_warned in
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7482 ac_tool_warned
=yes ;;
7484 OTOOL64
=$ac_ct_OTOOL64
7487 OTOOL64
="$ac_cv_prog_OTOOL64"
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7517 $as_echo_n "checking for -single_module linker flag... " >&6; }
7518 if ${lt_cv_apple_cc_single_mod+:} false
; then :
7519 $as_echo_n "(cached) " >&6
7521 lt_cv_apple_cc_single_mod
=no
7522 if test -z "${LT_MULTI_MODULE}"; then
7523 # By default we will add the -single_module flag. You can override
7524 # by either setting the environment variable LT_MULTI_MODULE
7525 # non-empty at configure time, or by adding -multi_module to the
7527 rm -rf libconftest.dylib
*
7528 echo "int foo(void){return 1;}" > conftest.c
7529 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7530 -dynamiclib -Wl,-single_module conftest.c" >&5
7531 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7532 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
7534 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
7535 lt_cv_apple_cc_single_mod
=yes
7537 cat conftest.err
>&5
7539 rm -rf libconftest.dylib
*
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7544 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7546 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7547 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
7548 $as_echo_n "(cached) " >&6
7550 lt_cv_ld_exported_symbols_list
=no
7551 save_LDFLAGS
=$LDFLAGS
7552 echo "_main" > conftest.sym
7553 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7565 if ac_fn_c_try_link
"$LINENO"; then :
7566 lt_cv_ld_exported_symbols_list
=yes
7568 lt_cv_ld_exported_symbols_list
=no
7570 rm -f core conftest.err conftest.
$ac_objext \
7571 conftest
$ac_exeext conftest.
$ac_ext
7572 LDFLAGS
="$save_LDFLAGS"
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7576 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7578 $as_echo_n "checking for -force_load linker flag... " >&6; }
7579 if ${lt_cv_ld_force_load+:} false
; then :
7580 $as_echo_n "(cached) " >&6
7582 lt_cv_ld_force_load
=no
7583 cat > conftest.c
<< _LT_EOF
7584 int forced_loaded() { return 2;}
7586 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7587 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
7588 echo "$AR cru libconftest.a conftest.o" >&5
7589 $AR cru libconftest.a conftest.o
2>&5
7590 cat > conftest.c
<< _LT_EOF
7591 int main() { return 0;}
7593 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7594 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
7596 if test -f conftest
&& test ! -s conftest.err
&& test $_lt_result = 0 && $GREP forced_load conftest
2>&1 >/dev
/null
; then
7597 lt_cv_ld_force_load
=yes
7599 cat conftest.err
>&5
7601 rm -f conftest.err libconftest.a conftest conftest.c
7602 rm -rf conftest.dSYM
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7606 $as_echo "$lt_cv_ld_force_load" >&6; }
7607 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7608 # build without first building modern cctools / linker.
7609 case $host_cpu-$host_os in
7610 *-rhapsody* |
*-darwin1.
[012])
7611 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
7613 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7615 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7616 # deployment target is forced to an earlier version.
7617 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7618 UNSET
,*-darwin[89]*|UNSET
,*-darwin[12][0123456789]*)
7621 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7628 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7629 _lt_dar_single_mod
='$single_module'
7631 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7632 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7634 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7636 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7637 _lt_dsymutil
='~$DSYMUTIL $lib || :'
7645 ac_cpp
='$CPP $CPPFLAGS'
7646 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7647 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7648 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7650 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7651 # On Suns, sometimes $CPP names a directory.
7652 if test -n "$CPP" && test -d "$CPP"; then
7655 if test -z "$CPP"; then
7656 if ${ac_cv_prog_CPP+:} false
; then :
7657 $as_echo_n "(cached) " >&6
7659 # Double quotes because CPP needs to be expanded
7660 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7663 for ac_c_preproc_warn_flag
in '' yes
7665 # Use a header file that comes with gcc, so configuring glibc
7666 # with a fresh cross-compiler works.
7667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7668 # <limits.h> exists even on freestanding compilers.
7669 # On the NeXT, cc -E runs the code through the compiler's parser,
7670 # not just through cpp. "Syntax error" is here to catch this case.
7671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7674 # include <limits.h>
7676 # include <assert.h>
7680 if ac_fn_c_try_cpp
"$LINENO"; then :
7683 # Broken: fails on valid input.
7686 rm -f conftest.err conftest.i conftest.
$ac_ext
7688 # OK, works on sane cases. Now check whether nonexistent headers
7689 # can be detected and how.
7690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h. */
7692 #include <ac_nonexistent.h>
7694 if ac_fn_c_try_cpp
"$LINENO"; then :
7695 # Broken: success on invalid input.
7698 # Passes both tests.
7702 rm -f conftest.err conftest.i conftest.
$ac_ext
7705 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7706 rm -f conftest.i conftest.err conftest.
$ac_ext
7707 if $ac_preproc_ok; then :
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7720 $as_echo "$CPP" >&6; }
7722 for ac_c_preproc_warn_flag
in '' yes
7724 # Use a header file that comes with gcc, so configuring glibc
7725 # with a fresh cross-compiler works.
7726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7727 # <limits.h> exists even on freestanding compilers.
7728 # On the NeXT, cc -E runs the code through the compiler's parser,
7729 # not just through cpp. "Syntax error" is here to catch this case.
7730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h. */
7733 # include <limits.h>
7735 # include <assert.h>
7739 if ac_fn_c_try_cpp
"$LINENO"; then :
7742 # Broken: fails on valid input.
7745 rm -f conftest.err conftest.i conftest.
$ac_ext
7747 # OK, works on sane cases. Now check whether nonexistent headers
7748 # can be detected and how.
7749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7750 /* end confdefs.h. */
7751 #include <ac_nonexistent.h>
7753 if ac_fn_c_try_cpp
"$LINENO"; then :
7754 # Broken: success on invalid input.
7757 # Passes both tests.
7761 rm -f conftest.err conftest.i conftest.
$ac_ext
7764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7765 rm -f conftest.i conftest.err conftest.
$ac_ext
7766 if $ac_preproc_ok; then :
7769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7771 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7772 See \`config.log' for more details" "$LINENO" 5; }
7776 ac_cpp
='$CPP $CPPFLAGS'
7777 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7778 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7779 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7783 $as_echo_n "checking for ANSI C header files... " >&6; }
7784 if ${ac_cv_header_stdc+:} false
; then :
7785 $as_echo_n "(cached) " >&6
7787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7802 if ac_fn_c_try_compile
"$LINENO"; then :
7803 ac_cv_header_stdc
=yes
7805 ac_cv_header_stdc
=no
7807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7809 if test $ac_cv_header_stdc = yes; then
7810 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h. */
7816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7817 $EGREP "memchr" >/dev
/null
2>&1; then :
7820 ac_cv_header_stdc
=no
7826 if test $ac_cv_header_stdc = yes; then
7827 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h. */
7833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7834 $EGREP "free" >/dev
/null
2>&1; then :
7837 ac_cv_header_stdc
=no
7843 if test $ac_cv_header_stdc = yes; then
7844 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7845 if test "$cross_compiling" = yes; then :
7848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7852 #if ((' ' & 0x0FF) == 0x020)
7853 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7854 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7856 # define ISLOWER(c) \
7857 (('a' <= (c) && (c) <= 'i') \
7858 || ('j' <= (c) && (c) <= 'r') \
7859 || ('s' <= (c) && (c) <= 'z'))
7860 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7868 for (i = 0; i < 256; i++)
7869 if (XOR (islower (i), ISLOWER (i))
7870 || toupper (i) != TOUPPER (i))
7875 if ac_fn_c_try_run
"$LINENO"; then :
7878 ac_cv_header_stdc
=no
7880 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7881 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7887 $as_echo "$ac_cv_header_stdc" >&6; }
7888 if test $ac_cv_header_stdc = yes; then
7890 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7894 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7895 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7896 inttypes.h stdint.h unistd.h
7898 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7899 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7901 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7902 cat >>confdefs.h
<<_ACEOF
7903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7911 for ac_header
in dlfcn.h
7913 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7915 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7916 cat >>confdefs.h
<<_ACEOF
7917 #define HAVE_DLFCN_H 1
7938 # Check whether --enable-shared was given.
7939 if test "${enable_shared+set}" = set; then :
7940 enableval
=$enable_shared; p
=${PACKAGE-default}
7942 yes) enable_shared
=yes ;;
7943 no
) enable_shared
=no
;;
7946 # Look at the argument we got. We use all the common list separators.
7947 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7948 for pkg
in $enableval; do
7950 if test "X$pkg" = "X$p"; then
7969 # Check whether --enable-static was given.
7970 if test "${enable_static+set}" = set; then :
7971 enableval
=$enable_static; p
=${PACKAGE-default}
7973 yes) enable_static
=yes ;;
7974 no
) enable_static
=no
;;
7977 # Look at the argument we got. We use all the common list separators.
7978 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7979 for pkg
in $enableval; do
7981 if test "X$pkg" = "X$p"; then
8001 # Check whether --with-pic was given.
8002 if test "${with_pic+set}" = set; then :
8003 withval
=$with_pic; pic_mode
="$withval"
8009 test -z "$pic_mode" && pic_mode
=default
8017 # Check whether --enable-fast-install was given.
8018 if test "${enable_fast_install+set}" = set; then :
8019 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8021 yes) enable_fast_install
=yes ;;
8022 no
) enable_fast_install
=no
;;
8024 enable_fast_install
=no
8025 # Look at the argument we got. We use all the common list separators.
8026 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8027 for pkg
in $enableval; do
8029 if test "X$pkg" = "X$p"; then
8030 enable_fast_install
=yes
8037 enable_fast_install
=yes
8050 # This can be used to rebuild libtool when needed
8051 LIBTOOL_DEPS
="$ltmain"
8053 # Always use our own libtool.
8054 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8081 test -z "$LN_S" && LN_S
="ln -s"
8096 if test -n "${ZSH_VERSION+set}" ; then
8097 setopt NO_GLOB_SUBST
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8101 $as_echo_n "checking for objdir... " >&6; }
8102 if ${lt_cv_objdir+:} false
; then :
8103 $as_echo_n "(cached) " >&6
8105 rm -f .libs
2>/dev
/null
8106 mkdir .libs
2>/dev
/null
8107 if test -d .libs
; then
8110 # MS-DOS does not allow filenames that begin with a dot.
8113 rmdir .libs
2>/dev
/null
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8116 $as_echo "$lt_cv_objdir" >&6; }
8117 objdir
=$lt_cv_objdir
8123 cat >>confdefs.h
<<_ACEOF
8124 #define LT_OBJDIR "$lt_cv_objdir/"
8132 # AIX sometimes has problems with the GCC collect2 program. For some
8133 # reason, if we set the COLLECT_NAMES environment variable, the problems
8134 # vanish in a puff of smoke.
8135 if test "X${COLLECT_NAMES+set}" != Xset
; then
8137 export COLLECT_NAMES
8144 can_build_shared
=yes
8146 # All known linkers require a `.a' archive for static linking (except MSVC,
8147 # which needs '.lib').
8150 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8153 old_CFLAGS
="$CFLAGS"
8155 # Set sane defaults for various variables
8156 test -z "$CC" && CC
=cc
8157 test -z "$LTCC" && LTCC
=$CC
8158 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8159 test -z "$LD" && LD
=ld
8160 test -z "$ac_objext" && ac_objext
=o
8162 for cc_temp
in $compiler""; do
8164 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8165 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8170 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8173 # Only perform the check for file, if the check method requires it
8174 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8175 case $deplibs_check_method in
8177 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8179 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8180 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8181 $as_echo_n "(cached) " >&6
8185 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8188 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8189 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8190 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8191 for ac_dir
in $ac_dummy; do
8193 test -z "$ac_dir" && ac_dir
=.
8194 if test -f $ac_dir/${ac_tool_prefix}file; then
8195 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8196 if test -n "$file_magic_test_file"; then
8197 case $deplibs_check_method in
8199 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8200 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8201 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8202 $EGREP "$file_magic_regex" > /dev
/null
; then
8207 *** Warning: the command libtool uses to detect shared libraries,
8208 *** $file_magic_cmd, produces output that libtool cannot recognize.
8209 *** The result is that libtool may fail to recognize shared libraries
8210 *** as such. This will affect the creation of libtool libraries that
8211 *** depend on shared libraries, but programs linked with such libtool
8212 *** libraries will work regardless of this problem. Nevertheless, you
8213 *** may want to report the problem to your system manager and/or to
8214 *** bug-libtool@gnu.org
8224 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8229 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8230 if test -n "$MAGIC_CMD"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8232 $as_echo "$MAGIC_CMD" >&6; }
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8242 if test -z "$lt_cv_path_MAGIC_CMD"; then
8243 if test -n "$ac_tool_prefix"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8245 $as_echo_n "checking for file... " >&6; }
8246 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8247 $as_echo_n "(cached) " >&6
8251 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8254 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8255 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8256 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8257 for ac_dir
in $ac_dummy; do
8259 test -z "$ac_dir" && ac_dir
=.
8260 if test -f $ac_dir/file; then
8261 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8262 if test -n "$file_magic_test_file"; then
8263 case $deplibs_check_method in
8265 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8266 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8267 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8268 $EGREP "$file_magic_regex" > /dev
/null
; then
8273 *** Warning: the command libtool uses to detect shared libraries,
8274 *** $file_magic_cmd, produces output that libtool cannot recognize.
8275 *** The result is that libtool may fail to recognize shared libraries
8276 *** as such. This will affect the creation of libtool libraries that
8277 *** depend on shared libraries, but programs linked with such libtool
8278 *** libraries will work regardless of this problem. Nevertheless, you
8279 *** may want to report the problem to your system manager and/or to
8280 *** bug-libtool@gnu.org
8290 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8295 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8296 if test -n "$MAGIC_CMD"; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8298 $as_echo "$MAGIC_CMD" >&6; }
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8314 # Use C for the default configuration in the libtool script
8318 ac_cpp
='$CPP $CPPFLAGS'
8319 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8320 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8321 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8324 # Source file extension for C test sources.
8327 # Object file extension for compiled C test sources.
8331 # Code to be used in simple compile tests
8332 lt_simple_compile_test_code
="int some_variable = 0;"
8334 # Code to be used in simple link tests
8335 lt_simple_link_test_code
='int main(){return(0);}'
8343 # If no C compiler was specified, use CC.
8346 # If no C compiler flags were specified, use CFLAGS.
8347 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8349 # Allow CC to be a program name with arguments.
8352 # Save the default compiler, since it gets overwritten when the other
8353 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8354 compiler_DEFAULT
=$CC
8356 # save warnings/boilerplate of simple test code
8357 ac_outfile
=conftest.
$ac_objext
8358 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8359 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8360 _lt_compiler_boilerplate
=`cat conftest.err`
8363 ac_outfile
=conftest.
$ac_objext
8364 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8365 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8366 _lt_linker_boilerplate
=`cat conftest.err`
8371 ## There is no encapsulation within the following macros, do not change
8372 ## the running order or otherwise move them around unless you know exactly
8373 ## what you are doing...
8374 if test -n "$compiler"; then
8376 lt_prog_compiler_no_builtin_flag
=
8378 if test "$GCC" = yes; then
8379 case $cc_basename in
8381 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8383 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8387 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8388 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8389 $as_echo_n "(cached) " >&6
8391 lt_cv_prog_compiler_rtti_exceptions
=no
8392 ac_outfile
=conftest.
$ac_objext
8393 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8394 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8395 # Insert the option either (1) after the last *FLAGS variable, or
8396 # (2) before a word containing "conftest.", or (3) at the end.
8397 # Note that $ac_compile itself does not contain backslashes and begins
8398 # with a dollar sign (not a hyphen), so the echo should work correctly.
8399 # The option is referenced via a variable to avoid confusing sed.
8400 lt_compile
=`echo "$ac_compile" | $SED \
8401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8403 -e 's:$: $lt_compiler_flag:'`
8404 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8405 (eval "$lt_compile" 2>conftest.err
)
8407 cat conftest.err
>&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 if (exit $ac_status) && test -s "$ac_outfile"; then
8410 # The compiler can only warn and ignore the option if not recognized
8411 # So say no if there are warnings other than the usual output.
8412 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8413 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8414 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8415 lt_cv_prog_compiler_rtti_exceptions
=yes
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8422 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8424 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8425 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8437 lt_prog_compiler_wl
=
8438 lt_prog_compiler_pic
=
8439 lt_prog_compiler_static
=
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8442 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8444 if test "$GCC" = yes; then
8445 lt_prog_compiler_wl
='-Wl,'
8446 lt_prog_compiler_static
='-static'
8450 # All AIX code is PIC.
8451 if test "$host_cpu" = ia64
; then
8452 # AIX 5 now supports IA64 processor
8453 lt_prog_compiler_static
='-Bstatic'
8455 lt_prog_compiler_pic
='-fPIC'
8461 # see comment about AmigaOS4 .so support
8462 lt_prog_compiler_pic
='-fPIC'
8465 # FIXME: we need at least 68020 code to build shared libraries, but
8466 # adding the `-m68020' flag to GCC prevents building anything better,
8468 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8473 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8474 # PIC is the default for these OSes.
8477 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8478 # This hack is so that the source file can tell whether it is being
8479 # built for inclusion in a dll (and should export symbols for example).
8480 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8481 # (--disable-auto-import) libraries
8482 lt_prog_compiler_pic
='-DDLL_EXPORT'
8485 darwin
* | rhapsody
*)
8486 # PIC is the default on this platform
8487 # Common symbols not allowed in MH_DYLIB files
8488 lt_prog_compiler_pic
='-fno-common'
8492 # PIC is the default for Haiku.
8493 # The "-static" flag exists, but is broken.
8494 lt_prog_compiler_static
=
8498 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8499 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8500 # sets the default TLS model and affects inlining.
8506 lt_prog_compiler_pic
='-fPIC'
8512 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8513 # Instead, we relocate shared libraries at runtime.
8517 # Just because we use GCC doesn't mean we suddenly get shared libraries
8518 # on systems that don't support them.
8519 lt_prog_compiler_can_build_shared
=no
8524 # QNX uses GNU C++, but need to define -shared option too, otherwise
8526 lt_prog_compiler_pic
='-fPIC -shared'
8530 if test -d /usr
/nec
; then
8531 lt_prog_compiler_pic
=-Kconform_pic
8536 lt_prog_compiler_pic
='-fPIC'
8540 case $cc_basename in
8541 nvcc
*) # Cuda Compiler Driver 2.2
8542 lt_prog_compiler_wl
='-Xlinker '
8543 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8547 # PORTME Check for flag to pass linker flags through the system compiler.
8550 lt_prog_compiler_wl
='-Wl,'
8551 if test "$host_cpu" = ia64
; then
8552 # AIX 5 now supports IA64 processor
8553 lt_prog_compiler_static
='-Bstatic'
8555 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8559 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8560 # This hack is so that the source file can tell whether it is being
8561 # built for inclusion in a dll (and should export symbols for example).
8562 lt_prog_compiler_pic
='-DDLL_EXPORT'
8565 hpux9
* | hpux10
* | hpux11
*)
8566 lt_prog_compiler_wl
='-Wl,'
8567 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8574 lt_prog_compiler_pic
='+Z'
8577 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8578 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8581 irix5
* | irix6
* | nonstopux
*)
8582 lt_prog_compiler_wl
='-Wl,'
8583 # PIC (with -KPIC) is the default.
8584 lt_prog_compiler_static
='-non_shared'
8587 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8588 case $cc_basename in
8589 # old Intel for x86_64 which still supported -KPIC.
8591 lt_prog_compiler_wl
='-Wl,'
8592 lt_prog_compiler_pic
='-KPIC'
8593 lt_prog_compiler_static
='-static'
8595 # icc used to be incompatible with GCC.
8596 # ICC 10 doesn't accept -KPIC any more.
8598 lt_prog_compiler_wl
='-Wl,'
8599 lt_prog_compiler_pic
='-fPIC'
8600 lt_prog_compiler_static
='-static'
8602 # Lahey Fortran 8.1.
8604 lt_prog_compiler_wl
='-Wl,'
8605 lt_prog_compiler_pic
='--shared'
8606 lt_prog_compiler_static
='--static'
8608 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8609 # Portland Group compilers (*not* the Pentium gcc compiler,
8610 # which looks to be a dead project)
8611 lt_prog_compiler_wl
='-Wl,'
8612 lt_prog_compiler_pic
='-fpic'
8613 lt_prog_compiler_static
='-Bstatic'
8616 lt_prog_compiler_wl
='-Wl,'
8617 # All Alpha code is PIC.
8618 lt_prog_compiler_static
='-non_shared'
8620 xl
* | bgxl
* | bgf
* | mpixl
*)
8621 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8622 lt_prog_compiler_wl
='-Wl,'
8623 lt_prog_compiler_pic
='-qpic'
8624 lt_prog_compiler_static
='-qstaticlink'
8627 case `$CC -V 2>&1 | sed 5q` in
8628 *Sun\ F
* |
*Sun
*Fortran
*)
8629 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8630 lt_prog_compiler_pic
='-KPIC'
8631 lt_prog_compiler_static
='-Bstatic'
8632 lt_prog_compiler_wl
=''
8636 lt_prog_compiler_pic
='-KPIC'
8637 lt_prog_compiler_static
='-Bstatic'
8638 lt_prog_compiler_wl
='-Wl,'
8646 lt_prog_compiler_pic
='-KPIC'
8647 lt_prog_compiler_static
='-Bstatic'
8651 # QNX uses GNU C++, but need to define -shared option too, otherwise
8653 lt_prog_compiler_pic
='-fPIC -shared'
8656 osf3
* | osf4
* | osf5
*)
8657 lt_prog_compiler_wl
='-Wl,'
8658 # All OSF/1 code is PIC.
8659 lt_prog_compiler_static
='-non_shared'
8663 lt_prog_compiler_static
='-non_shared'
8667 lt_prog_compiler_pic
='-KPIC'
8668 lt_prog_compiler_static
='-Bstatic'
8669 case $cc_basename in
8671 lt_prog_compiler_wl
='-Qoption ld ';;
8673 lt_prog_compiler_wl
='-Wl,';;
8678 lt_prog_compiler_wl
='-Qoption ld '
8679 lt_prog_compiler_pic
='-PIC'
8680 lt_prog_compiler_static
='-Bstatic'
8683 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8684 lt_prog_compiler_wl
='-Wl,'
8685 lt_prog_compiler_pic
='-KPIC'
8686 lt_prog_compiler_static
='-Bstatic'
8690 if test -d /usr
/nec
;then
8691 lt_prog_compiler_pic
='-Kconform_pic'
8692 lt_prog_compiler_static
='-Bstatic'
8696 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8697 lt_prog_compiler_wl
='-Wl,'
8698 lt_prog_compiler_pic
='-KPIC'
8699 lt_prog_compiler_static
='-Bstatic'
8703 lt_prog_compiler_wl
='-Wl,'
8704 lt_prog_compiler_can_build_shared
=no
8708 lt_prog_compiler_pic
='-pic'
8709 lt_prog_compiler_static
='-Bstatic'
8713 lt_prog_compiler_can_build_shared
=no
8719 # For platforms which do not support PIC, -DPIC is meaningless:
8721 lt_prog_compiler_pic
=
8724 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8728 $as_echo "$lt_prog_compiler_pic" >&6; }
8736 # Check to make sure the PIC flag actually works.
8738 if test -n "$lt_prog_compiler_pic"; then
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8740 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8741 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8742 $as_echo_n "(cached) " >&6
8744 lt_cv_prog_compiler_pic_works
=no
8745 ac_outfile
=conftest.
$ac_objext
8746 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8747 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8748 # Insert the option either (1) after the last *FLAGS variable, or
8749 # (2) before a word containing "conftest.", or (3) at the end.
8750 # Note that $ac_compile itself does not contain backslashes and begins
8751 # with a dollar sign (not a hyphen), so the echo should work correctly.
8752 # The option is referenced via a variable to avoid confusing sed.
8753 lt_compile
=`echo "$ac_compile" | $SED \
8754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8756 -e 's:$: $lt_compiler_flag:'`
8757 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8758 (eval "$lt_compile" 2>conftest.err
)
8760 cat conftest.err
>&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 if (exit $ac_status) && test -s "$ac_outfile"; then
8763 # The compiler can only warn and ignore the option if not recognized
8764 # So say no if there are warnings other than the usual output.
8765 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8766 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8767 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8768 lt_cv_prog_compiler_pic_works
=yes
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8775 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8777 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8778 case $lt_prog_compiler_pic in
8780 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8783 lt_prog_compiler_pic
=
8784 lt_prog_compiler_can_build_shared
=no
8795 # Check to make sure the static flag actually works.
8797 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8799 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8800 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8801 $as_echo_n "(cached) " >&6
8803 lt_cv_prog_compiler_static_works
=no
8804 save_LDFLAGS
="$LDFLAGS"
8805 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8806 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8807 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8808 # The linker can only warn and ignore the option if not recognized
8809 # So say no if there are warnings
8810 if test -s conftest.err
; then
8811 # Append any errors to the config.log.
8812 cat conftest.err
1>&5
8813 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8814 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8815 if diff conftest.exp conftest.er2
>/dev
/null
; then
8816 lt_cv_prog_compiler_static_works
=yes
8819 lt_cv_prog_compiler_static_works
=yes
8823 LDFLAGS
="$save_LDFLAGS"
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8827 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8829 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8832 lt_prog_compiler_static
=
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8842 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8843 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8844 $as_echo_n "(cached) " >&6
8846 lt_cv_prog_compiler_c_o
=no
8847 $RM -r conftest
2>/dev
/null
8851 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8853 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8854 # Insert the option either (1) after the last *FLAGS variable, or
8855 # (2) before a word containing "conftest.", or (3) at the end.
8856 # Note that $ac_compile itself does not contain backslashes and begins
8857 # with a dollar sign (not a hyphen), so the echo should work correctly.
8858 lt_compile
=`echo "$ac_compile" | $SED \
8859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8861 -e 's:$: $lt_compiler_flag:'`
8862 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8863 (eval "$lt_compile" 2>out
/conftest.err
)
8865 cat out
/conftest.err
>&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8869 # The compiler can only warn and ignore the option if not recognized
8870 # So say no if there are warnings
8871 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8872 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8873 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8874 lt_cv_prog_compiler_c_o
=yes
8879 # SGI C++ compiler will create directory out/ii_files/ for
8880 # template instantiation
8881 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8882 $RM out
/* && rmdir out
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8889 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8897 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8898 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8899 $as_echo_n "(cached) " >&6
8901 lt_cv_prog_compiler_c_o
=no
8902 $RM -r conftest
2>/dev
/null
8906 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8908 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8909 # Insert the option either (1) after the last *FLAGS variable, or
8910 # (2) before a word containing "conftest.", or (3) at the end.
8911 # Note that $ac_compile itself does not contain backslashes and begins
8912 # with a dollar sign (not a hyphen), so the echo should work correctly.
8913 lt_compile
=`echo "$ac_compile" | $SED \
8914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8916 -e 's:$: $lt_compiler_flag:'`
8917 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8918 (eval "$lt_compile" 2>out
/conftest.err
)
8920 cat out
/conftest.err
>&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8924 # The compiler can only warn and ignore the option if not recognized
8925 # So say no if there are warnings
8926 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8927 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8928 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8929 lt_cv_prog_compiler_c_o
=yes
8934 # SGI C++ compiler will create directory out/ii_files/ for
8935 # template instantiation
8936 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8937 $RM out
/* && rmdir out
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8944 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8949 hard_links
="nottested"
8950 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8951 # do not overwrite the value of need_locks provided by the user
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8953 $as_echo_n "checking if we can lock with hard links... " >&6; }
8956 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8958 ln conftest.a conftest.b
2>&5 || hard_links
=no
8959 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8961 $as_echo "$hard_links" >&6; }
8962 if test "$hard_links" = no
; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8964 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8977 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8980 allow_undefined_flag
=
8981 always_export_symbols
=no
8983 archive_expsym_cmds
=
8984 compiler_needs_object
=no
8985 enable_shared_with_static_runtimes
=no
8986 export_dynamic_flag_spec
=
8987 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8988 hardcode_automatic
=no
8990 hardcode_direct_absolute
=no
8991 hardcode_libdir_flag_spec
=
8992 hardcode_libdir_flag_spec_ld
=
8993 hardcode_libdir_separator
=
8995 hardcode_shlibpath_var
=unsupported
8997 link_all_deplibs
=unknown
9000 old_archive_from_new_cmds
=
9001 old_archive_from_expsyms_cmds
=
9002 thread_safe_flag_spec
=
9003 whole_archive_flag_spec
=
9004 # include_expsyms should be a list of space-separated symbols to be *always*
9005 # included in the symbol list
9007 # exclude_expsyms can be an extended regexp of symbols to exclude
9008 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9009 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9010 # as well as any symbol that contains `d'.
9011 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9012 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9013 # platforms (ab)use it in PIC code, but their linkers get confused if
9014 # the symbol is explicitly referenced. Since portable code cannot
9015 # rely on this symbol name, it's probably fine to never include it in
9016 # preloaded symbol tables.
9017 # Exclude shared library initialization/finalization symbols.
9018 extract_expsyms_cmds
=
9021 cygwin
* | mingw
* | pw32
* | cegcc
*)
9022 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9023 # When not using gcc, we currently assume that we are using
9024 # Microsoft Visual C++.
9025 if test "$GCC" != yes; then
9030 # we just hope/assume this is gcc and not c89 (= MSVC++)
9040 # On some targets, GNU ld is compatible enough with the native linker
9041 # that we're better off using the native interface for both.
9042 lt_use_gnu_ld_interface
=no
9043 if test "$with_gnu_ld" = yes; then
9046 # The AIX port of GNU ld has always aspired to compatibility
9047 # with the native linker. However, as the warning in the GNU ld
9048 # block says, versions before 2.19.5* couldn't really create working
9049 # shared libraries, regardless of the interface used.
9050 case `$LD -v 2>&1` in
9051 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9052 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9053 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9055 lt_use_gnu_ld_interface
=yes
9060 lt_use_gnu_ld_interface
=yes
9065 if test "$lt_use_gnu_ld_interface" = yes; then
9066 # If archive_cmds runs LD, not CC, wlarc should be empty
9069 # Set some defaults for GNU ld with shared library support. These
9070 # are reset later if shared libraries are not supported. Putting them
9071 # here allows them to be overridden if necessary.
9072 runpath_var
=LD_RUN_PATH
9073 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9074 export_dynamic_flag_spec
='${wl}--export-dynamic'
9075 # ancient GNU ld didn't support --whole-archive et. al.
9076 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9077 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9079 whole_archive_flag_spec
=
9081 supports_anon_versioning
=no
9082 case `$LD -v 2>&1` in
9083 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9084 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9085 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9086 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9087 *\
2.11.
*) ;; # other 2.11 versions
9088 *) supports_anon_versioning
=yes ;;
9091 # See if GNU ld supports shared libraries.
9094 # On AIX/PPC, the GNU linker is very broken
9095 if test "$host_cpu" != ia64
; then
9099 *** Warning: the GNU linker, at least up to release 2.19, is reported
9100 *** to be unable to reliably create shared libraries on AIX.
9101 *** Therefore, libtool is disabling shared libraries support. If you
9102 *** really care for shared libraries, you may want to install binutils
9103 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9104 *** You will then need to restart the configuration process.
9113 # see comment about AmigaOS4 .so support
9114 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9115 archive_expsym_cmds
=''
9118 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)'
9119 hardcode_libdir_flag_spec
='-L$libdir'
9120 hardcode_minus_L
=yes
9126 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9127 allow_undefined_flag
=unsupported
9128 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9129 # support --undefined. This deserves some investigation. FIXME
9130 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9136 cygwin
* | mingw
* | pw32
* | cegcc
*)
9137 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9138 # as there is no search path for DLLs.
9139 hardcode_libdir_flag_spec
='-L$libdir'
9140 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9141 allow_undefined_flag
=unsupported
9142 always_export_symbols
=no
9143 enable_shared_with_static_runtimes
=yes
9144 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9146 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9147 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9148 # If the export-symbols file already is a .def file (1st line
9149 # is EXPORTS), use it as is; otherwise, prepend...
9150 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9151 cp $export_symbols $output_objdir/$soname.def;
9153 echo EXPORTS > $output_objdir/$soname.def;
9154 cat $export_symbols >> $output_objdir/$soname.def;
9156 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9163 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9164 link_all_deplibs
=yes
9169 hardcode_shlibpath_var
=no
9170 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9171 export_dynamic_flag_spec
='${wl}-E'
9172 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9173 # Instead, shared libraries are loaded at an image base (0x10000000 by
9174 # default) and relocated if they conflict, which is a slow very memory
9175 # consuming and fragmenting process. To avoid this, we pick a random,
9176 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9177 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9178 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9179 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'
9182 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9184 if test "$host_os" = linux-dietlibc
; then
9185 case $cc_basename in
9186 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9189 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9190 && test "$tmp_diet" = no
9192 tmp_addflag
=' $pic_flag'
9193 tmp_sharedflag
='-shared'
9194 case $cc_basename,$host_cpu in
9195 pgcc
*) # Portland Group C compiler
9196 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'
9197 tmp_addflag
=' $pic_flag'
9199 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9200 # Portland Group f77 and f90 compilers
9201 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'
9202 tmp_addflag
=' $pic_flag -Mnomain' ;;
9203 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9204 tmp_addflag
=' -i_dynamic' ;;
9205 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9206 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9207 ifc
* | ifort
*) # Intel Fortran compiler
9208 tmp_addflag
=' -nofor_main' ;;
9209 lf95
*) # Lahey Fortran 8.1
9210 whole_archive_flag_spec
=
9211 tmp_sharedflag
='--shared' ;;
9212 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9213 tmp_sharedflag
='-qmkshrobj'
9215 nvcc
*) # Cuda Compiler Driver 2.2
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 compiler_needs_object
=yes
9220 case `$CC -V 2>&1 | sed 5q` in
9221 *Sun\ C
*) # Sun C 5.9
9222 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'
9223 compiler_needs_object
=yes
9224 tmp_sharedflag
='-G' ;;
9225 *Sun\ F
*) # Sun Fortran 8.3
9226 tmp_sharedflag
='-G' ;;
9228 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9230 if test "x$supports_anon_versioning" = xyes
; then
9231 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9232 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9233 echo "local: *; };" >> $output_objdir/$libname.ver~
9234 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9237 case $cc_basename in
9238 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9239 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9240 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9241 hardcode_libdir_flag_spec
=
9242 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9243 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9244 if test "x$supports_anon_versioning" = xyes
; then
9245 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9246 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9247 echo "local: *; };" >> $output_objdir/$libname.ver~
9248 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9258 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9259 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9262 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9263 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9268 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9272 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9273 *** create shared libraries on Solaris systems. Therefore, libtool
9274 *** is disabling shared libraries support. We urge you to upgrade GNU
9275 *** binutils to release 2.9.1 or newer. Another option is to modify
9276 *** your PATH or compiler configuration so that the native linker is
9277 *** used, and then restart.
9280 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9281 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9282 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9288 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9289 case `$LD -v 2>&1` in
9290 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9294 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9295 *** reliably create shared libraries on SCO systems. Therefore, libtool
9296 *** is disabling shared libraries support. We urge you to upgrade GNU
9297 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9298 *** your PATH or compiler configuration so that the native linker is
9299 *** used, and then restart.
9304 # For security reasons, it is highly recommended that you always
9305 # use absolute paths for naming shared libraries, and exclude the
9306 # DT_RUNPATH tag from executables and libraries. But doing so
9307 # requires that you compile everything twice, which is a pain.
9308 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9309 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9310 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9311 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9320 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9323 hardcode_shlibpath_var
=no
9327 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9328 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9329 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9336 if test "$ld_shlibs" = no
; then
9338 hardcode_libdir_flag_spec
=
9339 export_dynamic_flag_spec
=
9340 whole_archive_flag_spec
=
9343 # PORTME fill in a description of your system's linker (not GNU ld)
9346 allow_undefined_flag
=unsupported
9347 always_export_symbols
=yes
9348 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'
9349 # Note: this linker hardcodes the directories in LIBPATH if there
9350 # are no directories specified by -L.
9351 hardcode_minus_L
=yes
9352 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9353 # Neither direct hardcoding nor static linking is supported with a
9355 hardcode_direct
=unsupported
9360 if test "$host_cpu" = ia64
; then
9361 # On IA64, the linker does run time linking by default, so we don't
9362 # have to do anything special.
9363 aix_use_runtimelinking
=no
9364 exp_sym_flag
='-Bexport'
9367 # If we're using GNU nm, then we don't want the "-C" option.
9368 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9369 # Also, AIX nm treats weak defined symbols like other global
9370 # defined symbols, whereas GNU nm marks them as "W".
9371 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9372 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'
9374 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'
9376 aix_use_runtimelinking
=no
9378 # Test if we are trying to use run time linking or normal
9379 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9380 # need to do runtime linking.
9381 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9382 for ld_flag
in $LDFLAGS; do
9383 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9384 aix_use_runtimelinking
=yes
9391 exp_sym_flag
='-bexport'
9392 no_entry_flag
='-bnoentry'
9395 # When large executables or shared objects are built, AIX ld can
9396 # have problems creating the table of contents. If linking a library
9397 # or program results in "error TOC overflow" add -mminimal-toc to
9398 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9399 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9403 hardcode_direct_absolute
=yes
9404 hardcode_libdir_separator
=':'
9405 link_all_deplibs
=yes
9406 file_list_spec
='${wl}-f,'
9408 if test "$GCC" = yes; then
9409 case $host_os in aix4.
[012]|aix4.
[012].
*)
9410 # We only want to do this on AIX 4.2 and lower, the check
9411 # below for broken collect2 doesn't work under 4.3+
9412 collect2name
=`${CC} -print-prog-name=collect2`
9413 if test -f "$collect2name" &&
9414 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9416 # We have reworked collect2
9419 # We have old collect2
9420 hardcode_direct
=unsupported
9421 # It fails to find uninstalled libraries when the uninstalled
9422 # path is not listed in the libpath. Setting hardcode_minus_L
9423 # to unsupported forces relinking
9424 hardcode_minus_L
=yes
9425 hardcode_libdir_flag_spec
='-L$libdir'
9426 hardcode_libdir_separator
=
9430 shared_flag
='-shared'
9431 if test "$aix_use_runtimelinking" = yes; then
9432 shared_flag
="$shared_flag "'${wl}-G'
9436 if test "$host_cpu" = ia64
; then
9437 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9438 # chokes on -Wl,-G. The following line is correct:
9441 if test "$aix_use_runtimelinking" = yes; then
9442 shared_flag
='${wl}-G'
9444 shared_flag
='${wl}-bM:SRE'
9449 export_dynamic_flag_spec
='${wl}-bexpall'
9450 # It seems that -bexpall does not export symbols beginning with
9451 # underscore (_), so it is better to generate a list of symbols to export.
9452 always_export_symbols
=yes
9453 if test "$aix_use_runtimelinking" = yes; then
9454 # Warning - without using the other runtime loading flags (-brtl),
9455 # -berok will link without error, but may produce a broken library.
9456 allow_undefined_flag
='-berok'
9457 # Determine the default libpath from the value encoded in an
9459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9460 /* end confdefs.h. */
9470 if ac_fn_c_try_link
"$LINENO"; then :
9472 lt_aix_libpath_sed
='
9473 /Import File Strings/,/^$/ {
9479 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9480 # Check for a 64-bit object if we didn't find anything.
9481 if test -z "$aix_libpath"; then
9482 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9485 rm -f core conftest.err conftest.
$ac_objext \
9486 conftest
$ac_exeext conftest.
$ac_ext
9487 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9489 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9490 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"
9492 if test "$host_cpu" = ia64
; then
9493 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9494 allow_undefined_flag
="-z nodefs"
9495 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"
9497 # Determine the default libpath from the value encoded in an
9499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9510 if ac_fn_c_try_link
"$LINENO"; then :
9512 lt_aix_libpath_sed
='
9513 /Import File Strings/,/^$/ {
9519 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9520 # Check for a 64-bit object if we didn't find anything.
9521 if test -z "$aix_libpath"; then
9522 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9525 rm -f core conftest.err conftest.
$ac_objext \
9526 conftest
$ac_exeext conftest.
$ac_ext
9527 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9529 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9530 # Warning - without using the other run time loading flags,
9531 # -berok will link without error, but may produce a broken library.
9532 no_undefined_flag
=' ${wl}-bernotok'
9533 allow_undefined_flag
=' ${wl}-berok'
9534 if test "$with_gnu_ld" = yes; then
9535 # We only use this code for GNU lds that support --whole-archive.
9536 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9538 # Exported symbols can be pulled into shared objects from archives
9539 whole_archive_flag_spec
='$convenience'
9541 archive_cmds_need_lc
=yes
9542 # This is similar to how AIX traditionally builds its shared libraries.
9543 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'
9551 # see comment about AmigaOS4 .so support
9552 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9553 archive_expsym_cmds
=''
9556 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)'
9557 hardcode_libdir_flag_spec
='-L$libdir'
9558 hardcode_minus_L
=yes
9564 export_dynamic_flag_spec
=-rdynamic
9567 cygwin
* | mingw
* | pw32
* | cegcc
*)
9568 # When not using gcc, we currently assume that we are using
9569 # Microsoft Visual C++.
9570 # hardcode_libdir_flag_spec is actually meaningless, as there is
9571 # no search path for DLLs.
9572 hardcode_libdir_flag_spec
=' '
9573 allow_undefined_flag
=unsupported
9574 # Tell ltmain to make .lib files, not .a files.
9576 # Tell ltmain to make .dll files, not .so files.
9578 # FIXME: Setting linknames here is a bad hack.
9579 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9580 # The linker will automatically build a .lib file if we build a DLL.
9581 old_archive_from_new_cmds
='true'
9582 # FIXME: Should let the user specify the lib program.
9583 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9584 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9585 enable_shared_with_static_runtimes
=yes
9588 darwin
* | rhapsody
*)
9591 archive_cmds_need_lc
=no
9593 hardcode_automatic
=yes
9594 hardcode_shlibpath_var
=unsupported
9595 if test "$lt_cv_ld_force_load" = "yes"; then
9596 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\"`'
9598 whole_archive_flag_spec
=''
9600 link_all_deplibs
=yes
9601 allow_undefined_flag
="$_lt_dar_allow_undefined"
9602 case $cc_basename in
9603 ifort
*) _lt_dar_can_shared
=yes ;;
9604 *) _lt_dar_can_shared
=$GCC ;;
9606 if test "$_lt_dar_can_shared" = "yes"; then
9607 output_verbose_link_cmd
=func_echo_all
9608 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9609 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9610 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}"
9611 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}"
9620 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9621 hardcode_libdir_flag_spec
='-L$libdir'
9622 hardcode_shlibpath_var
=no
9625 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9626 # support. Future versions do this automatically, but an explicit c++rt0.o
9627 # does not break anything, and helps significantly (at the cost of a little
9630 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9631 hardcode_libdir_flag_spec
='-R$libdir'
9633 hardcode_shlibpath_var
=no
9636 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9638 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9640 hardcode_minus_L
=yes
9641 hardcode_shlibpath_var
=no
9644 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9645 freebsd
* | dragonfly
*)
9646 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9647 hardcode_libdir_flag_spec
='-R$libdir'
9649 hardcode_shlibpath_var
=no
9653 if test "$GCC" = yes; then
9654 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'
9656 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'
9658 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9659 hardcode_libdir_separator
=:
9662 # hardcode_minus_L: Not really in the search PATH,
9663 # but as the default location of the library.
9664 hardcode_minus_L
=yes
9665 export_dynamic_flag_spec
='${wl}-E'
9669 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9670 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9672 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9674 if test "$with_gnu_ld" = no
; then
9675 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9676 hardcode_libdir_flag_spec_ld
='+b $libdir'
9677 hardcode_libdir_separator
=:
9679 hardcode_direct_absolute
=yes
9680 export_dynamic_flag_spec
='${wl}-E'
9681 # hardcode_minus_L: Not really in the search PATH,
9682 # but as the default location of the library.
9683 hardcode_minus_L
=yes
9688 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9691 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9694 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9697 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9703 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9706 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9710 # Older versions of the 11.00 compiler do not understand -b yet
9711 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9713 $as_echo_n "checking if $CC understands -b... " >&6; }
9714 if ${lt_cv_prog_compiler__b+:} false
; then :
9715 $as_echo_n "(cached) " >&6
9717 lt_cv_prog_compiler__b
=no
9718 save_LDFLAGS
="$LDFLAGS"
9719 LDFLAGS
="$LDFLAGS -b"
9720 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9721 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9722 # The linker can only warn and ignore the option if not recognized
9723 # So say no if there are warnings
9724 if test -s conftest.err
; then
9725 # Append any errors to the config.log.
9726 cat conftest.err
1>&5
9727 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9728 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9729 if diff conftest.exp conftest.er2
>/dev
/null
; then
9730 lt_cv_prog_compiler__b
=yes
9733 lt_cv_prog_compiler__b
=yes
9737 LDFLAGS
="$save_LDFLAGS"
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9741 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9743 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9744 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9746 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9752 if test "$with_gnu_ld" = no
; then
9753 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9754 hardcode_libdir_separator
=:
9759 hardcode_shlibpath_var
=no
9763 hardcode_direct_absolute
=yes
9764 export_dynamic_flag_spec
='${wl}-E'
9766 # hardcode_minus_L: Not really in the search PATH,
9767 # but as the default location of the library.
9768 hardcode_minus_L
=yes
9774 irix5
* | irix6
* | nonstopux
*)
9775 if test "$GCC" = yes; then
9776 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'
9777 # Try to use the -exported_symbol ld option, if it does not
9778 # work, assume that -exports_file does not work either and
9779 # implicitly export all symbols.
9780 save_LDFLAGS
="$LDFLAGS"
9781 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h. */
9786 if ac_fn_c_try_link
"$LINENO"; then :
9787 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'
9790 rm -f core conftest.err conftest.
$ac_objext \
9791 conftest
$ac_exeext conftest.
$ac_ext
9792 LDFLAGS
="$save_LDFLAGS"
9794 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'
9795 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'
9797 archive_cmds_need_lc
='no'
9798 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9799 hardcode_libdir_separator
=:
9801 link_all_deplibs
=yes
9805 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9806 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9808 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9810 hardcode_libdir_flag_spec
='-R$libdir'
9812 hardcode_shlibpath_var
=no
9816 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9818 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9819 hardcode_libdir_separator
=:
9820 hardcode_shlibpath_var
=no
9827 if test -f /usr
/libexec
/ld.so
; then
9829 hardcode_shlibpath_var
=no
9830 hardcode_direct_absolute
=yes
9831 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9832 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9833 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9834 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9835 export_dynamic_flag_spec
='${wl}-E'
9838 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9839 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9840 hardcode_libdir_flag_spec
='-R$libdir'
9843 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9844 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9854 hardcode_libdir_flag_spec
='-L$libdir'
9855 hardcode_minus_L
=yes
9856 allow_undefined_flag
=unsupported
9857 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'
9858 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9862 if test "$GCC" = yes; then
9863 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9864 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'
9866 allow_undefined_flag
=' -expect_unresolved \*'
9867 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'
9869 archive_cmds_need_lc
='no'
9870 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9871 hardcode_libdir_separator
=:
9874 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9875 if test "$GCC" = yes; then
9876 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9877 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'
9878 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9880 allow_undefined_flag
=' -expect_unresolved \*'
9881 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'
9882 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~
9883 $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'
9885 # Both c and cxx compiler support -rpath directly
9886 hardcode_libdir_flag_spec
='-rpath $libdir'
9888 archive_cmds_need_lc
='no'
9889 hardcode_libdir_separator
=:
9893 no_undefined_flag
=' -z defs'
9894 if test "$GCC" = yes; then
9896 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9897 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9898 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9900 case `$CC -V 2>&1` in
9903 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9904 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9905 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9909 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9910 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9911 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9915 hardcode_libdir_flag_spec
='-R$libdir'
9916 hardcode_shlibpath_var
=no
9918 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9920 # The compiler driver will combine and reorder linker options,
9921 # but understands `-z linker_flag'. GCC discards it without `$wl',
9922 # but is careful enough not to reorder.
9923 # Supported since Solaris 2.6 (maybe 2.5.1?)
9924 if test "$GCC" = yes; then
9925 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9927 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9931 link_all_deplibs
=yes
9935 if test "x$host_vendor" = xsequent
; then
9936 # Use $CC to link under sequent, because it throws in some extra .o
9937 # files that make .init and .fini sections work.
9938 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9940 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9942 hardcode_libdir_flag_spec
='-L$libdir'
9944 hardcode_minus_L
=yes
9945 hardcode_shlibpath_var
=no
9949 case $host_vendor in
9951 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952 hardcode_direct
=yes # is this really true???
9955 ## LD is ld it makes a PLAMLIB
9956 ## CC just makes a GrossModule.
9957 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9958 reload_cmds
='$CC -r -o $output$reload_objs'
9962 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9963 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9966 runpath_var
='LD_RUN_PATH'
9967 hardcode_shlibpath_var
=no
9971 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972 hardcode_shlibpath_var
=no
9973 export_dynamic_flag_spec
='-Bexport'
9977 if test -d /usr
/nec
; then
9978 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9979 hardcode_shlibpath_var
=no
9980 runpath_var
=LD_RUN_PATH
9981 hardcode_runpath_var
=yes
9986 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9987 no_undefined_flag
='${wl}-z,text'
9988 archive_cmds_need_lc
=no
9989 hardcode_shlibpath_var
=no
9990 runpath_var
='LD_RUN_PATH'
9992 if test "$GCC" = yes; then
9993 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9994 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9996 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9997 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10001 sysv5
* | sco3.2v5
* | sco5v6
*)
10002 # Note: We can NOT use -z defs as we might desire, because we do not
10003 # link with -lc, and that would cause any symbols used from libc to
10004 # always be unresolved, which means just about no library would
10005 # ever link correctly. If we're not using GNU ld we use -z text
10006 # though, which does catch some bad symbols but isn't as heavy-handed
10008 no_undefined_flag
='${wl}-z,text'
10009 allow_undefined_flag
='${wl}-z,nodefs'
10010 archive_cmds_need_lc
=no
10011 hardcode_shlibpath_var
=no
10012 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10013 hardcode_libdir_separator
=':'
10014 link_all_deplibs
=yes
10015 export_dynamic_flag_spec
='${wl}-Bexport'
10016 runpath_var
='LD_RUN_PATH'
10018 if test "$GCC" = yes; then
10019 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10020 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10028 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10029 hardcode_libdir_flag_spec
='-L$libdir'
10030 hardcode_shlibpath_var
=no
10038 if test x
$host_vendor = xsni
; then
10040 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10041 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10048 $as_echo "$ld_shlibs" >&6; }
10049 test "$ld_shlibs" = no
&& can_build_shared
=no
10051 with_gnu_ld
=$with_gnu_ld
10068 # Do we need to explicitly link libc?
10070 case "x$archive_cmds_need_lc" in
10072 # Assume -lc should be added
10073 archive_cmds_need_lc
=yes
10075 if test "$enable_shared" = yes && test "$GCC" = yes; then
10076 case $archive_cmds in
10078 # FIXME: we may have to deal with multi-command sequences.
10081 # Test whether the compiler implicitly links with -lc since on some
10082 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10083 # to ld, don't add -lc before -lgcc.
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10085 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10086 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10087 $as_echo_n "(cached) " >&6
10090 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10093 (eval $ac_compile) 2>&5
10095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10096 test $ac_status = 0; } 2>conftest.err
; then
10099 libobjs
=conftest.
$ac_objext
10101 wl
=$lt_prog_compiler_wl
10102 pic_flag
=$lt_prog_compiler_pic
10108 lt_save_allow_undefined_flag
=$allow_undefined_flag
10109 allow_undefined_flag
=
10110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10111 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10114 test $ac_status = 0; }
10116 lt_cv_archive_cmds_need_lc
=no
10118 lt_cv_archive_cmds_need_lc
=yes
10120 allow_undefined_flag
=$lt_save_allow_undefined_flag
10122 cat conftest.err
1>&5
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10128 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10129 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10293 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10295 if test "$GCC" = yes; then
10297 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10298 *) lt_awk_arg
="/^libraries:/" ;;
10301 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10302 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10304 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10305 case $lt_search_path_spec in
10307 # if the path contains ";" then we assume it to be the separator
10308 # otherwise default to the standard path separator (i.e. ":") - it is
10309 # assumed that no part of a normal pathname contains ";" but that should
10310 # okay in the real world where ";" in dirpaths is itself problematic.
10311 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10314 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10317 # Ok, now we have the path, separated by spaces, we can step through it
10318 # and add multilib dir if necessary.
10319 lt_tmp_lt_search_path_spec
=
10320 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10321 for lt_sys_path
in $lt_search_path_spec; do
10322 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10323 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10325 test -d "$lt_sys_path" && \
10326 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10329 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10330 BEGIN {RS=" "; FS="/|\n";} {
10333 for (lt_i = NF; lt_i > 0; lt_i--) {
10334 if ($lt_i != "" && $lt_i != ".") {
10335 if ($lt_i == "..") {
10338 if (lt_count == 0) {
10339 lt_foo="/" $lt_i lt_foo;
10346 if (lt_foo != "") { lt_freq[lt_foo]++; }
10347 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10349 # AWK program above erroneously prepends '/' to C:/dos/paths
10352 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10353 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10355 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10357 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10359 library_names_spec
=
10360 libname_spec
='lib$name'
10364 postuninstall_cmds
=
10368 shlibpath_overrides_runpath
=unknown
10370 dynamic_linker
="$host_os ld.so"
10371 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10372 need_lib_prefix
=unknown
10373 hardcode_into_libs
=no
10375 # when you set need_version to no, make sure it does not cause -set_version
10376 # flags to be left without arguments
10377 need_version
=unknown
10382 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10383 shlibpath_var
=LIBPATH
10385 # AIX 3 has no versioning support, so we append a major version to the name.
10386 soname_spec
='${libname}${release}${shared_ext}$major'
10393 hardcode_into_libs
=yes
10394 if test "$host_cpu" = ia64
; then
10395 # AIX 5 supports IA64
10396 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10397 shlibpath_var
=LD_LIBRARY_PATH
10399 # With GCC up to 2.95.x, collect2 would create an import file
10400 # for dependence libraries. The import file would start with
10401 # the line `#! .'. This would cause the generated library to
10402 # depend on `.', always an invalid library. This was fixed in
10403 # development snapshots of GCC prior to 3.0.
10405 aix4 | aix4.
[01] | aix4.
[01].
*)
10406 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10408 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10411 can_build_shared
=no
10415 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10416 # soname into executable. Probably we can add versioning support to
10417 # collect2, so additional links can be useful in future.
10418 if test "$aix_use_runtimelinking" = yes; then
10419 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10420 # instead of lib<name>.a to let people know that these are not
10421 # typical AIX shared libraries.
10422 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424 # We preserve .a as extension for shared libraries through AIX4.2
10425 # and later when we are not doing run time linking.
10426 library_names_spec
='${libname}${release}.a $libname.a'
10427 soname_spec
='${libname}${release}${shared_ext}$major'
10429 shlibpath_var
=LIBPATH
10436 # Since July 2007 AmigaOS4 officially supports .so libraries.
10437 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10438 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 library_names_spec
='$libname.ixlibrary $libname.a'
10442 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10443 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'
10449 library_names_spec
='${libname}${shared_ext}'
10450 dynamic_linker
="$host_os ld.so"
10451 shlibpath_var
=LIBRARY_PATH
10457 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458 soname_spec
='${libname}${release}${shared_ext}$major'
10459 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10460 shlibpath_var
=LD_LIBRARY_PATH
10461 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10462 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10463 # the default ld.so.conf also contains /usr/contrib/lib and
10464 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10465 # libtool to hard-code these into programs
10468 cygwin
* | mingw
* | pw32
* | cegcc
*)
10469 version_type
=windows
10474 case $GCC,$host_os in
10475 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10476 library_names_spec
='$libname.dll.a'
10477 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10478 postinstall_cmds
='base_file=`basename \${file}`~
10479 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10480 dldir=$destdir/`dirname \$dlpath`~
10481 test -d \$dldir || mkdir -p \$dldir~
10482 $install_prog $dir/$dlname \$dldir/$dlname~
10483 chmod a+x \$dldir/$dlname~
10484 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10485 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10487 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10488 dlpath=$dir/\$dldll~
10490 shlibpath_overrides_runpath
=yes
10494 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10495 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10497 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10500 # MinGW DLLs use traditional 'lib' prefix
10501 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10504 # pw32 DLLs use 'pw' prefix rather than 'lib'
10505 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10511 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10514 dynamic_linker
='Win32 ld.exe'
10515 # FIXME: first we should search . and the directory the executable is in
10519 darwin
* | rhapsody
*)
10520 dynamic_linker
="$host_os dyld"
10521 version_type
=darwin
10524 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10525 soname_spec
='${libname}${release}${major}$shared_ext'
10526 shlibpath_overrides_runpath
=yes
10527 shlibpath_var
=DYLD_LIBRARY_PATH
10528 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10530 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10531 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10538 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10539 soname_spec
='${libname}${release}${shared_ext}$major'
10540 shlibpath_var
=LD_LIBRARY_PATH
10543 freebsd
* | dragonfly
*)
10544 # DragonFly does not have aout. When/if they implement a new
10545 # versioning mechanism, adjust this.
10546 if test -x /usr
/bin
/objformat
; then
10547 objformat
=`/usr/bin/objformat`
10550 freebsd
[23].
*) objformat
=aout
;;
10551 *) objformat
=elf
;;
10554 version_type
=freebsd-
$objformat
10555 case $version_type in
10557 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10562 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10566 shlibpath_var
=LD_LIBRARY_PATH
10569 shlibpath_overrides_runpath
=yes
10571 freebsd3.
[01]* | freebsdelf3.
[01]*)
10572 shlibpath_overrides_runpath
=yes
10573 hardcode_into_libs
=yes
10575 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10576 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10577 shlibpath_overrides_runpath
=no
10578 hardcode_into_libs
=yes
10580 *) # from 4.6 on, and DragonFly
10581 shlibpath_overrides_runpath
=yes
10582 hardcode_into_libs
=yes
10591 dynamic_linker
="$host_os runtime_loader"
10592 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10593 soname_spec
='${libname}${release}${shared_ext}$major'
10594 shlibpath_var
=LIBRARY_PATH
10595 shlibpath_overrides_runpath
=yes
10596 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10597 hardcode_into_libs
=yes
10600 hpux9
* | hpux10
* | hpux11
*)
10601 # Give a soname corresponding to the major version so that dld.sl refuses to
10602 # link against other versions.
10609 hardcode_into_libs
=yes
10610 dynamic_linker
="$host_os dld.so"
10611 shlibpath_var
=LD_LIBRARY_PATH
10612 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614 soname_spec
='${libname}${release}${shared_ext}$major'
10615 if test "X$HPUX_IA64_MODE" = X32
; then
10616 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10618 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10620 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10624 hardcode_into_libs
=yes
10625 dynamic_linker
="$host_os dld.sl"
10626 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10627 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10628 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629 soname_spec
='${libname}${release}${shared_ext}$major'
10630 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10631 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10635 dynamic_linker
="$host_os dld.sl"
10636 shlibpath_var
=SHLIB_PATH
10637 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10638 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639 soname_spec
='${libname}${release}${shared_ext}$major'
10642 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10643 postinstall_cmds
='chmod 555 $lib'
10644 # or fails outright, so override atomically:
10645 install_override_mode
=555
10652 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10653 soname_spec
='${libname}${release}${shared_ext}$major'
10654 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10655 shlibpath_var
=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath
=no
10657 hardcode_into_libs
=yes
10660 irix5
* | irix6
* | nonstopux
*)
10662 nonstopux
*) version_type
=nonstopux
;;
10664 if test "$lt_cv_prog_gnu_ld" = yes; then
10672 soname_spec
='${libname}${release}${shared_ext}$major'
10673 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10675 irix5
* | nonstopux
*)
10676 libsuff
= shlibsuff
=
10679 case $LD in # libtool.m4 will add one of these switches to LD
10680 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10681 libsuff
= shlibsuff
= libmagic
=32-bit;;
10682 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10683 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10684 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10685 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10686 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10690 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10691 shlibpath_overrides_runpath
=no
10692 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10693 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10694 hardcode_into_libs
=yes
10697 # No shared lib support for Linux oldld, aout, or coff.
10698 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10702 # This must be Linux ELF.
10704 # uclinux* changes (here and below) have been submitted to the libtool
10705 # project, but have not yet been accepted: they are GCC-local changes
10706 # for the time being. (See
10707 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10708 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
10712 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10713 soname_spec
='${libname}${release}${shared_ext}$major'
10714 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10715 shlibpath_var
=LD_LIBRARY_PATH
10716 shlibpath_overrides_runpath
=no
10718 # Some binutils ld are patched to set DT_RUNPATH
10719 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10720 $as_echo_n "(cached) " >&6
10722 lt_cv_shlibpath_overrides_runpath
=no
10723 save_LDFLAGS
=$LDFLAGS
10724 save_libdir
=$libdir
10725 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10726 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10738 if ac_fn_c_try_link
"$LINENO"; then :
10739 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10740 lt_cv_shlibpath_overrides_runpath
=yes
10743 rm -f core conftest.err conftest.
$ac_objext \
10744 conftest
$ac_exeext conftest.
$ac_ext
10745 LDFLAGS
=$save_LDFLAGS
10746 libdir
=$save_libdir
10750 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10752 # This implies no fast_install, which is unacceptable.
10753 # Some rework will be needed to allow for fast_install
10754 # before this can be enabled.
10755 hardcode_into_libs
=yes
10757 # Append ld.so.conf contents to the search path
10758 if test -f /etc
/ld.so.conf
; then
10759 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' ' '`
10760 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10763 # We used to test for /lib/ld.so.1 and disable shared libraries on
10764 # powerpc, because MkLinux only supported shared libraries with the
10765 # GNU dynamic linker. Since this was broken with cross compilers,
10766 # most powerpc-linux boxes support dynamic linking these days and
10767 # people can always --disable-shared, the test was removed, and we
10768 # assume the GNU/Linux dynamic linker is in use.
10769 dynamic_linker
='GNU/Linux ld.so'
10776 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10777 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10778 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10779 dynamic_linker
='NetBSD (a.out) ld.so'
10781 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10782 soname_spec
='${libname}${release}${shared_ext}$major'
10783 dynamic_linker
='NetBSD ld.elf_so'
10785 shlibpath_var
=LD_LIBRARY_PATH
10786 shlibpath_overrides_runpath
=yes
10787 hardcode_into_libs
=yes
10792 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10793 shlibpath_var
=LD_LIBRARY_PATH
10794 shlibpath_overrides_runpath
=yes
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 shlibpath_var
=LD_LIBRARY_PATH
10804 shlibpath_overrides_runpath
=no
10805 hardcode_into_libs
=yes
10806 dynamic_linker
='ldqnx.so'
10811 sys_lib_dlsearch_path_spec
="/usr/lib"
10813 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10815 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10816 *) need_version
=no
;;
10818 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10819 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10820 shlibpath_var
=LD_LIBRARY_PATH
10821 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10823 openbsd2.
[89] | openbsd2.
[89].
*)
10824 shlibpath_overrides_runpath
=no
10827 shlibpath_overrides_runpath
=yes
10831 shlibpath_overrides_runpath
=yes
10836 libname_spec
='$name'
10839 library_names_spec
='$libname${shared_ext} $libname.a'
10840 dynamic_linker
='OS/2 ld.exe'
10841 shlibpath_var
=LIBPATH
10844 osf3
* | osf4
* | osf5
*)
10848 soname_spec
='${libname}${release}${shared_ext}$major'
10849 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10850 shlibpath_var
=LD_LIBRARY_PATH
10851 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10852 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10863 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 soname_spec
='${libname}${release}${shared_ext}$major'
10865 shlibpath_var
=LD_LIBRARY_PATH
10866 shlibpath_overrides_runpath
=yes
10867 hardcode_into_libs
=yes
10868 # ldd complains unless libraries are executable
10869 postinstall_cmds
='chmod +x $lib'
10874 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10875 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10876 shlibpath_var
=LD_LIBRARY_PATH
10877 shlibpath_overrides_runpath
=yes
10878 if test "$with_gnu_ld" = yes; then
10886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10887 soname_spec
='${libname}${release}${shared_ext}$major'
10888 shlibpath_var
=LD_LIBRARY_PATH
10889 case $host_vendor in
10891 shlibpath_overrides_runpath
=no
10893 runpath_var
=LD_RUN_PATH
10901 shlibpath_overrides_runpath
=no
10902 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10908 if test -d /usr
/nec
;then
10910 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10911 soname_spec
='$libname${shared_ext}.$major'
10912 shlibpath_var
=LD_LIBRARY_PATH
10916 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10917 version_type
=freebsd-elf
10920 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10921 soname_spec
='${libname}${release}${shared_ext}$major'
10922 shlibpath_var
=LD_LIBRARY_PATH
10923 shlibpath_overrides_runpath
=yes
10924 hardcode_into_libs
=yes
10925 if test "$with_gnu_ld" = yes; then
10926 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10928 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10931 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10935 sys_lib_dlsearch_path_spec
='/usr/lib'
10939 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10943 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10944 shlibpath_var
=LD_LIBRARY_PATH
10945 shlibpath_overrides_runpath
=no
10946 hardcode_into_libs
=yes
10951 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 soname_spec
='${libname}${release}${shared_ext}$major'
10953 shlibpath_var
=LD_LIBRARY_PATH
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10961 $as_echo "$dynamic_linker" >&6; }
10962 test "$dynamic_linker" = no
&& can_build_shared
=no
10964 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10965 if test "$GCC" = yes; then
10966 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10969 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10970 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10972 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10973 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11068 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11070 if test -n "$hardcode_libdir_flag_spec" ||
11071 test -n "$runpath_var" ||
11072 test "X$hardcode_automatic" = "Xyes" ; then
11074 # We can hardcode non-existent directories.
11075 if test "$hardcode_direct" != no
&&
11076 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11077 # have to relink, otherwise we might link with an installed library
11078 # when we should be linking with a yet-to-be-installed one
11079 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11080 test "$hardcode_minus_L" != no
; then
11081 # Linking always hardcodes the temporary library directory.
11082 hardcode_action
=relink
11084 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11085 hardcode_action
=immediate
11088 # We cannot hardcode anything, or else we can only hardcode existing
11090 hardcode_action
=unsupported
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11093 $as_echo "$hardcode_action" >&6; }
11095 if test "$hardcode_action" = relink ||
11096 test "$inherit_rpath" = yes; then
11097 # Fast installation is not supported
11098 enable_fast_install
=no
11099 elif test "$shlibpath_overrides_runpath" = yes ||
11100 test "$enable_shared" = no
; then
11101 # Fast installation is not necessary
11102 enable_fast_install
=needless
11110 if test "x$enable_dlopen" != xyes
; then
11111 enable_dlopen
=unknown
11112 enable_dlopen_self
=unknown
11113 enable_dlopen_self_static
=unknown
11120 lt_cv_dlopen
="load_add_on"
11122 lt_cv_dlopen_self
=yes
11125 mingw
* | pw32
* | cegcc
*)
11126 lt_cv_dlopen
="LoadLibrary"
11131 lt_cv_dlopen
="dlopen"
11136 # if libdl is installed we need to link against it
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11138 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11139 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11140 $as_echo_n "(cached) " >&6
11142 ac_check_lib_save_LIBS
=$LIBS
11144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11147 /* Override any GCC internal prototype to avoid an error.
11148 Use char because int might match the return type of a GCC
11149 builtin and then its argument prototype would still apply. */
11162 if ac_fn_c_try_link
"$LINENO"; then :
11163 ac_cv_lib_dl_dlopen
=yes
11165 ac_cv_lib_dl_dlopen
=no
11167 rm -f core conftest.err conftest.
$ac_objext \
11168 conftest
$ac_exeext conftest.
$ac_ext
11169 LIBS
=$ac_check_lib_save_LIBS
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11172 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11173 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11174 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11177 lt_cv_dlopen
="dyld"
11179 lt_cv_dlopen_self
=yes
11186 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11187 if test "x$ac_cv_func_shl_load" = xyes
; then :
11188 lt_cv_dlopen
="shl_load"
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11191 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11192 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11193 $as_echo_n "(cached) " >&6
11195 ac_check_lib_save_LIBS
=$LIBS
11197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11200 /* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
11210 return shl_load ();
11215 if ac_fn_c_try_link
"$LINENO"; then :
11216 ac_cv_lib_dld_shl_load
=yes
11218 ac_cv_lib_dld_shl_load
=no
11220 rm -f core conftest.err conftest.
$ac_objext \
11221 conftest
$ac_exeext conftest.
$ac_ext
11222 LIBS
=$ac_check_lib_save_LIBS
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11225 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11226 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11227 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11229 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11230 if test "x$ac_cv_func_dlopen" = xyes
; then :
11231 lt_cv_dlopen
="dlopen"
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11234 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11235 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11236 $as_echo_n "(cached) " >&6
11238 ac_check_lib_save_LIBS
=$LIBS
11240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11241 /* end confdefs.h. */
11243 /* Override any GCC internal prototype to avoid an error.
11244 Use char because int might match the return type of a GCC
11245 builtin and then its argument prototype would still apply. */
11258 if ac_fn_c_try_link
"$LINENO"; then :
11259 ac_cv_lib_dl_dlopen
=yes
11261 ac_cv_lib_dl_dlopen
=no
11263 rm -f core conftest.err conftest.
$ac_objext \
11264 conftest
$ac_exeext conftest.
$ac_ext
11265 LIBS
=$ac_check_lib_save_LIBS
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11268 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11269 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11270 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11273 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11274 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11275 $as_echo_n "(cached) " >&6
11277 ac_check_lib_save_LIBS
=$LIBS
11278 LIBS
="-lsvld $LIBS"
11279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11282 /* Override any GCC internal prototype to avoid an error.
11283 Use char because int might match the return type of a GCC
11284 builtin and then its argument prototype would still apply. */
11297 if ac_fn_c_try_link
"$LINENO"; then :
11298 ac_cv_lib_svld_dlopen
=yes
11300 ac_cv_lib_svld_dlopen
=no
11302 rm -f core conftest.err conftest.
$ac_objext \
11303 conftest
$ac_exeext conftest.
$ac_ext
11304 LIBS
=$ac_check_lib_save_LIBS
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11307 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11308 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11309 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11312 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11313 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11314 $as_echo_n "(cached) " >&6
11316 ac_check_lib_save_LIBS
=$LIBS
11318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h. */
11321 /* Override any GCC internal prototype to avoid an error.
11322 Use char because int might match the return type of a GCC
11323 builtin and then its argument prototype would still apply. */
11331 return dld_link ();
11336 if ac_fn_c_try_link
"$LINENO"; then :
11337 ac_cv_lib_dld_dld_link
=yes
11339 ac_cv_lib_dld_dld_link
=no
11341 rm -f core conftest.err conftest.
$ac_objext \
11342 conftest
$ac_exeext conftest.
$ac_ext
11343 LIBS
=$ac_check_lib_save_LIBS
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11346 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11347 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11348 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11369 if test "x$lt_cv_dlopen" != xno
; then
11375 case $lt_cv_dlopen in
11377 save_CPPFLAGS
="$CPPFLAGS"
11378 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11380 save_LDFLAGS
="$LDFLAGS"
11381 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11384 LIBS
="$lt_cv_dlopen_libs $LIBS"
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11387 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11388 if ${lt_cv_dlopen_self+:} false
; then :
11389 $as_echo_n "(cached) " >&6
11391 if test "$cross_compiling" = yes; then :
11392 lt_cv_dlopen_self
=cross
11394 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11395 lt_status
=$lt_dlunknown
11396 cat > conftest.
$ac_ext <<_LT_EOF
11397 #line 11397 "configure"
11398 #include "confdefs.h"
11407 # define LT_DLGLOBAL RTLD_GLOBAL
11410 # define LT_DLGLOBAL DL_GLOBAL
11412 # define LT_DLGLOBAL 0
11416 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11417 find out it does not work in some platform. */
11418 #ifndef LT_DLLAZY_OR_NOW
11420 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11423 # define LT_DLLAZY_OR_NOW DL_LAZY
11426 # define LT_DLLAZY_OR_NOW RTLD_NOW
11429 # define LT_DLLAZY_OR_NOW DL_NOW
11431 # define LT_DLLAZY_OR_NOW 0
11438 /* When -fvisbility=hidden is used, assume the code has been annotated
11439 correspondingly for the symbols needed. */
11440 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11441 void fnord () __attribute__((visibility("default")));
11444 void fnord () { int i=42; }
11447 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11448 int status = $lt_dlunknown;
11452 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11455 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11456 else puts (dlerror ());
11458 /* dlclose (self); */
11466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11467 (eval $ac_link) 2>&5
11469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11470 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11471 (.
/conftest
; exit; ) >&5 2>/dev
/null
11473 case x
$lt_status in
11474 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11475 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11476 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11479 # compilation failed
11480 lt_cv_dlopen_self
=no
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11488 $as_echo "$lt_cv_dlopen_self" >&6; }
11490 if test "x$lt_cv_dlopen_self" = xyes
; then
11491 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11493 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11494 if ${lt_cv_dlopen_self_static+:} false
; then :
11495 $as_echo_n "(cached) " >&6
11497 if test "$cross_compiling" = yes; then :
11498 lt_cv_dlopen_self_static
=cross
11500 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11501 lt_status
=$lt_dlunknown
11502 cat > conftest.
$ac_ext <<_LT_EOF
11503 #line 11503 "configure"
11504 #include "confdefs.h"
11513 # define LT_DLGLOBAL RTLD_GLOBAL
11516 # define LT_DLGLOBAL DL_GLOBAL
11518 # define LT_DLGLOBAL 0
11522 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11523 find out it does not work in some platform. */
11524 #ifndef LT_DLLAZY_OR_NOW
11526 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11529 # define LT_DLLAZY_OR_NOW DL_LAZY
11532 # define LT_DLLAZY_OR_NOW RTLD_NOW
11535 # define LT_DLLAZY_OR_NOW DL_NOW
11537 # define LT_DLLAZY_OR_NOW 0
11544 /* When -fvisbility=hidden is used, assume the code has been annotated
11545 correspondingly for the symbols needed. */
11546 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11547 void fnord () __attribute__((visibility("default")));
11550 void fnord () { int i=42; }
11553 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11554 int status = $lt_dlunknown;
11558 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11561 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11562 else puts (dlerror ());
11564 /* dlclose (self); */
11572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11573 (eval $ac_link) 2>&5
11575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11576 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11577 (.
/conftest
; exit; ) >&5 2>/dev
/null
11579 case x
$lt_status in
11580 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11581 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11582 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11585 # compilation failed
11586 lt_cv_dlopen_self_static
=no
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11594 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11597 CPPFLAGS
="$save_CPPFLAGS"
11598 LDFLAGS
="$save_LDFLAGS"
11603 case $lt_cv_dlopen_self in
11604 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11605 *) enable_dlopen_self
=unknown
;;
11608 case $lt_cv_dlopen_self_static in
11609 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11610 *) enable_dlopen_self_static
=unknown
;;
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11633 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11634 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11635 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11636 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11638 $as_echo "yes" >&6; }
11640 # FIXME - insert some real tests, host_os isn't really good enough
11643 if test -n "$STRIP" ; then
11644 striplib
="$STRIP -x"
11645 old_striplib
="$STRIP -S"
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11647 $as_echo "yes" >&6; }
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650 $as_echo "no" >&6; }
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11671 # Report which library types will actually be built
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11673 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11675 $as_echo "$can_build_shared" >&6; }
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11678 $as_echo_n "checking whether to build shared libraries... " >&6; }
11679 test "$can_build_shared" = "no" && enable_shared
=no
11681 # On AIX, shared libraries and static libraries use the same namespace, and
11682 # are all built from PIC.
11685 test "$enable_shared" = yes && enable_static
=no
11686 if test -n "$RANLIB"; then
11687 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11688 postinstall_cmds
='$RANLIB $lib'
11693 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11694 test "$enable_shared" = yes && enable_static
=no
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11699 $as_echo "$enable_shared" >&6; }
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11702 $as_echo_n "checking whether to build static libraries... " >&6; }
11703 # Make sure either enable_shared or enable_static is yes.
11704 test "$enable_shared" = yes || enable_static
=yes
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11706 $as_echo "$enable_static" >&6; }
11713 ac_cpp
='$CPP $CPPFLAGS'
11714 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11715 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11716 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11732 ac_config_commands
="$ac_config_commands libtool"
11737 # Only expand once:
11744 *-cygwin* |
*-mingw*)
11745 # 'host' will be top-level target in the case of a target lib,
11746 # we must compare to with_cross_host to decide if this is a native
11747 # or cross-compiler and select where to install dlls appropriately.
11748 if test -n "$with_cross_host" &&
11749 test x
"$with_cross_host" != x
"no"; then
11750 lt_host_flags
='-no-undefined -bindir "$(toolexeclibdir)"';
11752 lt_host_flags
='-no-undefined -bindir "$(bindir)"';
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11767 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11768 # Check whether --enable-maintainer-mode was given.
11769 if test "${enable_maintainer_mode+set}" = set; then :
11770 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
11772 USE_MAINTAINER_MODE
=no
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11776 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11777 if test $USE_MAINTAINER_MODE = yes; then
11778 MAINTAINER_MODE_TRUE
=
11779 MAINTAINER_MODE_FALSE
='#'
11781 MAINTAINER_MODE_TRUE
='#'
11782 MAINTAINER_MODE_FALSE
=
11785 MAINT
=$MAINTAINER_MODE_TRUE
11789 # Create a spec file, so that compile/link tests don't fail
11790 test -f libgfortran.spec ||
touch libgfortran.spec
11791 FCFLAGS
="$FCFLAGS -L."
11793 # We need gfortran to compile parts of the library
11794 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11795 #AC_PROG_FC(gfortran)
11796 case `echo $GFORTRAN` in
11800 set dummy
$GFORTRAN; ac_word
=$2
11801 if test -x "$ac_word"; then
11807 ac_ext
=${ac_fc_srcext-f}
11808 ac_compile
='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11809 ac_link
='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11810 ac_compiler_gnu
=$ac_cv_fc_compiler_gnu
11811 if test -n "$ac_tool_prefix"; then
11812 for ac_prog
in gfortran
11814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11815 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11817 $as_echo_n "checking for $ac_word... " >&6; }
11818 if ${ac_cv_prog_FC+:} false
; then :
11819 $as_echo_n "(cached) " >&6
11821 if test -n "$FC"; then
11822 ac_cv_prog_FC
="$FC" # Let the user override the test.
11824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11825 for as_dir
in $PATH
11828 test -z "$as_dir" && as_dir
=.
11829 for ac_exec_ext
in '' $ac_executable_extensions; do
11830 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11831 ac_cv_prog_FC
="$ac_tool_prefix$ac_prog"
11832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11842 if test -n "$FC"; then
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11844 $as_echo "$FC" >&6; }
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847 $as_echo "no" >&6; }
11851 test -n "$FC" && break
11854 if test -z "$FC"; then
11856 for ac_prog
in gfortran
11858 # Extract the first word of "$ac_prog", so it can be a program name with args.
11859 set dummy
$ac_prog; ac_word
=$2
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861 $as_echo_n "checking for $ac_word... " >&6; }
11862 if ${ac_cv_prog_ac_ct_FC+:} false
; then :
11863 $as_echo_n "(cached) " >&6
11865 if test -n "$ac_ct_FC"; then
11866 ac_cv_prog_ac_ct_FC
="$ac_ct_FC" # Let the user override the test.
11868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11869 for as_dir
in $PATH
11872 test -z "$as_dir" && as_dir
=.
11873 for ac_exec_ext
in '' $ac_executable_extensions; do
11874 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11875 ac_cv_prog_ac_ct_FC
="$ac_prog"
11876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11885 ac_ct_FC
=$ac_cv_prog_ac_ct_FC
11886 if test -n "$ac_ct_FC"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11888 $as_echo "$ac_ct_FC" >&6; }
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11895 test -n "$ac_ct_FC" && break
11898 if test "x$ac_ct_FC" = x
; then
11901 case $cross_compiling:$ac_tool_warned in
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11905 ac_tool_warned
=yes ;;
11912 # Provide some information about the compiler.
11913 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11916 for ac_option
in --version -v -V -qversion; do
11917 { { ac_try
="$ac_compiler $ac_option >&5"
11918 case "(($ac_try" in
11919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11923 $as_echo "$ac_try_echo"; } >&5
11924 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11926 if test -s conftest.err; then
11928 ... rest of stderr output deleted ...
11929 10q' conftest.err >conftest.er1
11930 cat conftest.er1 >&5
11932 rm -f conftest.er1 conftest.err
11933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11934 test $ac_status = 0; }
11938 # If we don't use `.F
' as extension, the preprocessor is not run on the
11939 # input file. (Note that this only needs to work for GNU compilers.)
11940 ac_save_ext=$ac_ext
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11943 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11944 if ${ac_cv_fc_compiler_gnu+:} false; then :
11945 $as_echo_n "(cached) " >&6
11947 cat > conftest.$ac_ext <<_ACEOF
11955 if ac_fn_fc_try_compile "$LINENO"; then :
11956 ac_compiler_gnu=yes
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11965 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11966 ac_ext=$ac_save_ext
11967 ac_test_FCFLAGS=${FCFLAGS+set}
11968 ac_save_FCFLAGS=$FCFLAGS
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11971 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11972 if ${ac_cv_prog_fc_g+:} false; then :
11973 $as_echo_n "(cached) " >&6
11976 cat > conftest.$ac_ext <<_ACEOF
11981 if ac_fn_fc_try_compile "$LINENO"; then :
11982 ac_cv_prog_fc_g=yes
11986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11990 $as_echo "$ac_cv_prog_fc_g" >&6; }
11991 if test "$ac_test_FCFLAGS" = set; then
11992 FCFLAGS=$ac_save_FCFLAGS
11993 elif test $ac_cv_prog_fc_g = yes; then
11994 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12000 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12007 if test $ac_compiler_gnu = yes; then
12013 ac_cpp='$CPP $CPPFLAGS'
12014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
12015 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
12016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12018 ac_ext=${ac_fc_srcext-f}
12019 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.
$ac_ext >&5'
12020 ac_link='$FC -o conftest
$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.
$ac_ext $LIBS >&5'
12021 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12024 if test -z "$FC" || test "X$FC" = "Xno"; then
12028 archive_cmds_need_lc_FC=no
12029 allow_undefined_flag_FC=
12030 always_export_symbols_FC=no
12031 archive_expsym_cmds_FC=
12032 export_dynamic_flag_spec_FC=
12033 hardcode_direct_FC=no
12034 hardcode_direct_absolute_FC=no
12035 hardcode_libdir_flag_spec_FC=
12036 hardcode_libdir_flag_spec_ld_FC=
12037 hardcode_libdir_separator_FC=
12038 hardcode_minus_L_FC=no
12039 hardcode_automatic_FC=no
12040 inherit_rpath_FC=no
12042 module_expsym_cmds_FC=
12043 link_all_deplibs_FC=unknown
12044 old_archive_cmds_FC=$old_archive_cmds
12045 reload_flag_FC=$reload_flag
12046 reload_cmds_FC=$reload_cmds
12047 no_undefined_flag_FC=
12048 whole_archive_flag_spec_FC=
12049 enable_shared_with_static_runtimes_FC=no
12051 # Source file extension for fc test sources.
12052 ac_ext=${ac_fc_srcext-f}
12054 # Object file extension for compiled fc test sources.
12058 # No sense in running all these tests if we already determined that
12059 # the FC compiler isn't working. Some variables
(like enable_shared
)
12060 # are currently assumed to apply to all compilers on this platform,
12061 # and will be corrupted by setting them based on a non-working compiler.
12062 if test "$_lt_disable_FC" != yes; then
12063 # Code to be used in simple compile tests
12064 lt_simple_compile_test_code
="\
12070 # Code to be used in simple link tests
12071 lt_simple_link_test_code
="\
12076 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12083 # If no C compiler was specified, use CC.
12086 # If no C compiler flags were specified, use CFLAGS.
12087 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12089 # Allow CC to be a program name with arguments.
12093 # save warnings/boilerplate of simple test code
12094 ac_outfile
=conftest.
$ac_objext
12095 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12096 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12097 _lt_compiler_boilerplate
=`cat conftest.err`
12100 ac_outfile
=conftest.
$ac_objext
12101 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12102 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12103 _lt_linker_boilerplate
=`cat conftest.err`
12107 # Allow CC to be a program name with arguments.
12112 GCC
=$ac_cv_fc_compiler_gnu
12115 for cc_temp
in $compiler""; do
12117 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12118 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12123 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12126 if test -n "$compiler"; then
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12128 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12130 $as_echo "$can_build_shared" >&6; }
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12133 $as_echo_n "checking whether to build shared libraries... " >&6; }
12134 test "$can_build_shared" = "no" && enable_shared
=no
12136 # On AIX, shared libraries and static libraries use the same namespace, and
12137 # are all built from PIC.
12140 test "$enable_shared" = yes && enable_static
=no
12141 if test -n "$RANLIB"; then
12142 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12143 postinstall_cmds
='$RANLIB $lib'
12147 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12148 test "$enable_shared" = yes && enable_static
=no
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12153 $as_echo "$enable_shared" >&6; }
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12156 $as_echo_n "checking whether to build static libraries... " >&6; }
12157 # Make sure either enable_shared or enable_static is yes.
12158 test "$enable_shared" = yes || enable_static
=yes
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12160 $as_echo "$enable_static" >&6; }
12162 GCC_FC
="$ac_cv_fc_compiler_gnu"
12166 ## There is no encapsulation within the following macros, do not change
12167 ## the running order or otherwise move them around unless you know exactly
12168 ## what you are doing...
12169 # Dependencies to place before and after the object being linked:
12171 postdep_objects_FC
=
12174 compiler_lib_search_path_FC
=
12176 cat > conftest.
$ac_ext <<_LT_EOF
12185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12186 (eval $ac_compile) 2>&5
12188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12189 test $ac_status = 0; }; then
12190 # Parse the compiler output and extract the necessary
12191 # objects, libraries and library flags.
12193 # Sentinel used to keep track of whether or not we are before
12194 # the conftest object file.
12195 pre_test_object_deps_done
=no
12197 for p
in `eval "$output_verbose_link_cmd"`; do
12201 # Some compilers place space between "-{L,R}" and the path.
12202 # Remove the space.
12203 if test $p = "-L" ||
12204 test $p = "-R"; then
12211 if test "$pre_test_object_deps_done" = no
; then
12214 # Internal compiler library paths should come after those
12215 # provided the user. The postdeps already come after the
12216 # user supplied libs so there is no need to process them.
12217 if test -z "$compiler_lib_search_path_FC"; then
12218 compiler_lib_search_path_FC
="${prev}${p}"
12220 compiler_lib_search_path_FC
="${compiler_lib_search_path_FC} ${prev}${p}"
12223 # The "-l" case would never come before the object being
12224 # linked, so don't bother handling this case.
12227 if test -z "$postdeps_FC"; then
12228 postdeps_FC
="${prev}${p}"
12230 postdeps_FC
="${postdeps_FC} ${prev}${p}"
12236 # This assumes that the test object file only shows up
12237 # once in the compiler output.
12238 if test "$p" = "conftest.$objext"; then
12239 pre_test_object_deps_done
=yes
12243 if test "$pre_test_object_deps_done" = no
; then
12244 if test -z "$predep_objects_FC"; then
12245 predep_objects_FC
="$p"
12247 predep_objects_FC
="$predep_objects_FC $p"
12250 if test -z "$postdep_objects_FC"; then
12251 postdep_objects_FC
="$p"
12253 postdep_objects_FC
="$postdep_objects_FC $p"
12258 *) ;; # Ignore the rest.
12266 echo "libtool.m4: error: problem compiling FC test program"
12269 $RM -f confest.
$objext
12271 # PORTME: override above test on systems where it is broken
12274 case " $postdeps_FC " in
12275 *" -lc "*) archive_cmds_need_lc_FC
=no
;;
12277 compiler_lib_search_dirs_FC
=
12278 if test -n "${compiler_lib_search_path_FC}"; then
12279 compiler_lib_search_dirs_FC
=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12312 lt_prog_compiler_wl_FC
=
12313 lt_prog_compiler_pic_FC
=
12314 lt_prog_compiler_static_FC
=
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12317 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12319 if test "$GCC" = yes; then
12320 lt_prog_compiler_wl_FC
='-Wl,'
12321 lt_prog_compiler_static_FC
='-static'
12325 # All AIX code is PIC.
12326 if test "$host_cpu" = ia64
; then
12327 # AIX 5 now supports IA64 processor
12328 lt_prog_compiler_static_FC
='-Bstatic'
12330 lt_prog_compiler_pic_FC
='-fPIC'
12336 # see comment about AmigaOS4 .so support
12337 lt_prog_compiler_pic_FC
='-fPIC'
12340 # FIXME: we need at least 68020 code to build shared libraries, but
12341 # adding the `-m68020' flag to GCC prevents building anything better,
12343 lt_prog_compiler_pic_FC
='-m68020 -resident32 -malways-restore-a4'
12348 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12349 # PIC is the default for these OSes.
12352 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12353 # This hack is so that the source file can tell whether it is being
12354 # built for inclusion in a dll (and should export symbols for example).
12355 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12356 # (--disable-auto-import) libraries
12357 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12360 darwin
* | rhapsody
*)
12361 # PIC is the default on this platform
12362 # Common symbols not allowed in MH_DYLIB files
12363 lt_prog_compiler_pic_FC
='-fno-common'
12367 # PIC is the default for Haiku.
12368 # The "-static" flag exists, but is broken.
12369 lt_prog_compiler_static_FC
=
12373 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12374 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12375 # sets the default TLS model and affects inlining.
12381 lt_prog_compiler_pic_FC
='-fPIC'
12387 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12388 # Instead, we relocate shared libraries at runtime.
12392 # Just because we use GCC doesn't mean we suddenly get shared libraries
12393 # on systems that don't support them.
12394 lt_prog_compiler_can_build_shared_FC
=no
12399 # QNX uses GNU C++, but need to define -shared option too, otherwise
12400 # it will coredump.
12401 lt_prog_compiler_pic_FC
='-fPIC -shared'
12405 if test -d /usr
/nec
; then
12406 lt_prog_compiler_pic_FC
=-Kconform_pic
12411 lt_prog_compiler_pic_FC
='-fPIC'
12415 case $cc_basename in
12416 nvcc
*) # Cuda Compiler Driver 2.2
12417 lt_prog_compiler_wl_FC
='-Xlinker '
12418 lt_prog_compiler_pic_FC
='-Xcompiler -fPIC'
12422 # PORTME Check for flag to pass linker flags through the system compiler.
12425 lt_prog_compiler_wl_FC
='-Wl,'
12426 if test "$host_cpu" = ia64
; then
12427 # AIX 5 now supports IA64 processor
12428 lt_prog_compiler_static_FC
='-Bstatic'
12430 lt_prog_compiler_static_FC
='-bnso -bI:/lib/syscalls.exp'
12434 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12435 # This hack is so that the source file can tell whether it is being
12436 # built for inclusion in a dll (and should export symbols for example).
12437 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12440 hpux9
* | hpux10
* | hpux11
*)
12441 lt_prog_compiler_wl_FC
='-Wl,'
12442 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12443 # not for PA HP-UX.
12449 lt_prog_compiler_pic_FC
='+Z'
12452 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12453 lt_prog_compiler_static_FC
='${wl}-a ${wl}archive'
12456 irix5
* | irix6
* | nonstopux
*)
12457 lt_prog_compiler_wl_FC
='-Wl,'
12458 # PIC (with -KPIC) is the default.
12459 lt_prog_compiler_static_FC
='-non_shared'
12462 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12463 case $cc_basename in
12464 # old Intel for x86_64 which still supported -KPIC.
12466 lt_prog_compiler_wl_FC
='-Wl,'
12467 lt_prog_compiler_pic_FC
='-KPIC'
12468 lt_prog_compiler_static_FC
='-static'
12470 # icc used to be incompatible with GCC.
12471 # ICC 10 doesn't accept -KPIC any more.
12473 lt_prog_compiler_wl_FC
='-Wl,'
12474 lt_prog_compiler_pic_FC
='-fPIC'
12475 lt_prog_compiler_static_FC
='-static'
12477 # Lahey Fortran 8.1.
12479 lt_prog_compiler_wl_FC
='-Wl,'
12480 lt_prog_compiler_pic_FC
='--shared'
12481 lt_prog_compiler_static_FC
='--static'
12483 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12484 # Portland Group compilers (*not* the Pentium gcc compiler,
12485 # which looks to be a dead project)
12486 lt_prog_compiler_wl_FC
='-Wl,'
12487 lt_prog_compiler_pic_FC
='-fpic'
12488 lt_prog_compiler_static_FC
='-Bstatic'
12491 lt_prog_compiler_wl_FC
='-Wl,'
12492 # All Alpha code is PIC.
12493 lt_prog_compiler_static_FC
='-non_shared'
12495 xl
* | bgxl
* | bgf
* | mpixl
*)
12496 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12497 lt_prog_compiler_wl_FC
='-Wl,'
12498 lt_prog_compiler_pic_FC
='-qpic'
12499 lt_prog_compiler_static_FC
='-qstaticlink'
12502 case `$CC -V 2>&1 | sed 5q` in
12503 *Sun\ F
* |
*Sun
*Fortran
*)
12504 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12505 lt_prog_compiler_pic_FC
='-KPIC'
12506 lt_prog_compiler_static_FC
='-Bstatic'
12507 lt_prog_compiler_wl_FC
=''
12511 lt_prog_compiler_pic_FC
='-KPIC'
12512 lt_prog_compiler_static_FC
='-Bstatic'
12513 lt_prog_compiler_wl_FC
='-Wl,'
12521 lt_prog_compiler_pic_FC
='-KPIC'
12522 lt_prog_compiler_static_FC
='-Bstatic'
12526 # QNX uses GNU C++, but need to define -shared option too, otherwise
12527 # it will coredump.
12528 lt_prog_compiler_pic_FC
='-fPIC -shared'
12531 osf3
* | osf4
* | osf5
*)
12532 lt_prog_compiler_wl_FC
='-Wl,'
12533 # All OSF/1 code is PIC.
12534 lt_prog_compiler_static_FC
='-non_shared'
12538 lt_prog_compiler_static_FC
='-non_shared'
12542 lt_prog_compiler_pic_FC
='-KPIC'
12543 lt_prog_compiler_static_FC
='-Bstatic'
12544 case $cc_basename in
12545 f77
* | f90
* | f95
*)
12546 lt_prog_compiler_wl_FC
='-Qoption ld ';;
12548 lt_prog_compiler_wl_FC
='-Wl,';;
12553 lt_prog_compiler_wl_FC
='-Qoption ld '
12554 lt_prog_compiler_pic_FC
='-PIC'
12555 lt_prog_compiler_static_FC
='-Bstatic'
12558 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12559 lt_prog_compiler_wl_FC
='-Wl,'
12560 lt_prog_compiler_pic_FC
='-KPIC'
12561 lt_prog_compiler_static_FC
='-Bstatic'
12565 if test -d /usr
/nec
;then
12566 lt_prog_compiler_pic_FC
='-Kconform_pic'
12567 lt_prog_compiler_static_FC
='-Bstatic'
12571 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12572 lt_prog_compiler_wl_FC
='-Wl,'
12573 lt_prog_compiler_pic_FC
='-KPIC'
12574 lt_prog_compiler_static_FC
='-Bstatic'
12578 lt_prog_compiler_wl_FC
='-Wl,'
12579 lt_prog_compiler_can_build_shared_FC
=no
12583 lt_prog_compiler_pic_FC
='-pic'
12584 lt_prog_compiler_static_FC
='-Bstatic'
12588 lt_prog_compiler_can_build_shared_FC
=no
12594 # For platforms which do not support PIC, -DPIC is meaningless:
12596 lt_prog_compiler_pic_FC
=
12599 lt_prog_compiler_pic_FC
="$lt_prog_compiler_pic_FC"
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12603 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12608 # Check to make sure the PIC flag actually works.
12610 if test -n "$lt_prog_compiler_pic_FC"; then
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12612 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12613 if ${lt_cv_prog_compiler_pic_works_FC+:} false
; then :
12614 $as_echo_n "(cached) " >&6
12616 lt_cv_prog_compiler_pic_works_FC
=no
12617 ac_outfile
=conftest.
$ac_objext
12618 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12619 lt_compiler_flag
="$lt_prog_compiler_pic_FC"
12620 # Insert the option either (1) after the last *FLAGS variable, or
12621 # (2) before a word containing "conftest.", or (3) at the end.
12622 # Note that $ac_compile itself does not contain backslashes and begins
12623 # with a dollar sign (not a hyphen), so the echo should work correctly.
12624 # The option is referenced via a variable to avoid confusing sed.
12625 lt_compile
=`echo "$ac_compile" | $SED \
12626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12628 -e 's:$: $lt_compiler_flag:'`
12629 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12630 (eval "$lt_compile" 2>conftest.err
)
12632 cat conftest.err
>&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 if (exit $ac_status) && test -s "$ac_outfile"; then
12635 # The compiler can only warn and ignore the option if not recognized
12636 # So say no if there are warnings other than the usual output.
12637 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12638 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12639 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12640 lt_cv_prog_compiler_pic_works_FC
=yes
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12647 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12649 if test x
"$lt_cv_prog_compiler_pic_works_FC" = xyes
; then
12650 case $lt_prog_compiler_pic_FC in
12652 *) lt_prog_compiler_pic_FC
=" $lt_prog_compiler_pic_FC" ;;
12655 lt_prog_compiler_pic_FC
=
12656 lt_prog_compiler_can_build_shared_FC
=no
12664 # Check to make sure the static flag actually works.
12666 wl
=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_FC\"
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12668 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12669 if ${lt_cv_prog_compiler_static_works_FC+:} false
; then :
12670 $as_echo_n "(cached) " >&6
12672 lt_cv_prog_compiler_static_works_FC
=no
12673 save_LDFLAGS
="$LDFLAGS"
12674 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12675 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12676 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12677 # The linker can only warn and ignore the option if not recognized
12678 # So say no if there are warnings
12679 if test -s conftest.err
; then
12680 # Append any errors to the config.log.
12681 cat conftest.err
1>&5
12682 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12683 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12684 if diff conftest.exp conftest.er2
>/dev
/null
; then
12685 lt_cv_prog_compiler_static_works_FC
=yes
12688 lt_cv_prog_compiler_static_works_FC
=yes
12692 LDFLAGS
="$save_LDFLAGS"
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12696 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12698 if test x
"$lt_cv_prog_compiler_static_works_FC" = xyes
; then
12701 lt_prog_compiler_static_FC
=
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12708 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12709 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12710 $as_echo_n "(cached) " >&6
12712 lt_cv_prog_compiler_c_o_FC
=no
12713 $RM -r conftest
2>/dev
/null
12717 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12719 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12720 # Insert the option either (1) after the last *FLAGS variable, or
12721 # (2) before a word containing "conftest.", or (3) at the end.
12722 # Note that $ac_compile itself does not contain backslashes and begins
12723 # with a dollar sign (not a hyphen), so the echo should work correctly.
12724 lt_compile
=`echo "$ac_compile" | $SED \
12725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12727 -e 's:$: $lt_compiler_flag:'`
12728 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12729 (eval "$lt_compile" 2>out
/conftest.err
)
12731 cat out
/conftest.err
>&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12735 # The compiler can only warn and ignore the option if not recognized
12736 # So say no if there are warnings
12737 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12738 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12739 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12740 lt_cv_prog_compiler_c_o_FC
=yes
12745 # SGI C++ compiler will create directory out/ii_files/ for
12746 # template instantiation
12747 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12748 $RM out
/* && rmdir out
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12755 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12760 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12761 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12762 $as_echo_n "(cached) " >&6
12764 lt_cv_prog_compiler_c_o_FC
=no
12765 $RM -r conftest
2>/dev
/null
12769 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12771 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12772 # Insert the option either (1) after the last *FLAGS variable, or
12773 # (2) before a word containing "conftest.", or (3) at the end.
12774 # Note that $ac_compile itself does not contain backslashes and begins
12775 # with a dollar sign (not a hyphen), so the echo should work correctly.
12776 lt_compile
=`echo "$ac_compile" | $SED \
12777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12779 -e 's:$: $lt_compiler_flag:'`
12780 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12781 (eval "$lt_compile" 2>out
/conftest.err
)
12783 cat out
/conftest.err
>&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12787 # The compiler can only warn and ignore the option if not recognized
12788 # So say no if there are warnings
12789 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12790 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12791 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12792 lt_cv_prog_compiler_c_o_FC
=yes
12797 # SGI C++ compiler will create directory out/ii_files/ for
12798 # template instantiation
12799 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12800 $RM out
/* && rmdir out
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12807 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12812 hard_links
="nottested"
12813 if test "$lt_cv_prog_compiler_c_o_FC" = no
&& test "$need_locks" != no
; then
12814 # do not overwrite the value of need_locks provided by the user
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12816 $as_echo_n "checking if we can lock with hard links... " >&6; }
12819 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12821 ln conftest.a conftest.b
2>&5 || hard_links
=no
12822 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12824 $as_echo "$hard_links" >&6; }
12825 if test "$hard_links" = no
; then
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12827 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12837 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12840 allow_undefined_flag_FC
=
12841 always_export_symbols_FC
=no
12843 archive_expsym_cmds_FC
=
12844 compiler_needs_object_FC
=no
12845 enable_shared_with_static_runtimes_FC
=no
12846 export_dynamic_flag_spec_FC
=
12847 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12848 hardcode_automatic_FC
=no
12849 hardcode_direct_FC
=no
12850 hardcode_direct_absolute_FC
=no
12851 hardcode_libdir_flag_spec_FC
=
12852 hardcode_libdir_flag_spec_ld_FC
=
12853 hardcode_libdir_separator_FC
=
12854 hardcode_minus_L_FC
=no
12855 hardcode_shlibpath_var_FC
=unsupported
12856 inherit_rpath_FC
=no
12857 link_all_deplibs_FC
=unknown
12859 module_expsym_cmds_FC
=
12860 old_archive_from_new_cmds_FC
=
12861 old_archive_from_expsyms_cmds_FC
=
12862 thread_safe_flag_spec_FC
=
12863 whole_archive_flag_spec_FC
=
12864 # include_expsyms should be a list of space-separated symbols to be *always*
12865 # included in the symbol list
12866 include_expsyms_FC
=
12867 # exclude_expsyms can be an extended regexp of symbols to exclude
12868 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12869 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12870 # as well as any symbol that contains `d'.
12871 exclude_expsyms_FC
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12872 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12873 # platforms (ab)use it in PIC code, but their linkers get confused if
12874 # the symbol is explicitly referenced. Since portable code cannot
12875 # rely on this symbol name, it's probably fine to never include it in
12876 # preloaded symbol tables.
12877 # Exclude shared library initialization/finalization symbols.
12878 extract_expsyms_cmds
=
12881 cygwin
* | mingw
* | pw32
* | cegcc
*)
12882 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12883 # When not using gcc, we currently assume that we are using
12884 # Microsoft Visual C++.
12885 if test "$GCC" != yes; then
12890 # we just hope/assume this is gcc and not c89 (= MSVC++)
12900 # On some targets, GNU ld is compatible enough with the native linker
12901 # that we're better off using the native interface for both.
12902 lt_use_gnu_ld_interface
=no
12903 if test "$with_gnu_ld" = yes; then
12906 # The AIX port of GNU ld has always aspired to compatibility
12907 # with the native linker. However, as the warning in the GNU ld
12908 # block says, versions before 2.19.5* couldn't really create working
12909 # shared libraries, regardless of the interface used.
12910 case `$LD -v 2>&1` in
12911 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12912 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12913 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12915 lt_use_gnu_ld_interface
=yes
12920 lt_use_gnu_ld_interface
=yes
12925 if test "$lt_use_gnu_ld_interface" = yes; then
12926 # If archive_cmds runs LD, not CC, wlarc should be empty
12929 # Set some defaults for GNU ld with shared library support. These
12930 # are reset later if shared libraries are not supported. Putting them
12931 # here allows them to be overridden if necessary.
12932 runpath_var
=LD_RUN_PATH
12933 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12934 export_dynamic_flag_spec_FC
='${wl}--export-dynamic'
12935 # ancient GNU ld didn't support --whole-archive et. al.
12936 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12937 whole_archive_flag_spec_FC
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12939 whole_archive_flag_spec_FC
=
12941 supports_anon_versioning
=no
12942 case `$LD -v 2>&1` in
12943 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12944 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12945 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12946 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12947 *\
2.11.
*) ;; # other 2.11 versions
12948 *) supports_anon_versioning
=yes ;;
12951 # See if GNU ld supports shared libraries.
12954 # On AIX/PPC, the GNU linker is very broken
12955 if test "$host_cpu" != ia64
; then
12959 *** Warning: the GNU linker, at least up to release 2.19, is reported
12960 *** to be unable to reliably create shared libraries on AIX.
12961 *** Therefore, libtool is disabling shared libraries support. If you
12962 *** really care for shared libraries, you may want to install binutils
12963 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12964 *** You will then need to restart the configuration process.
12973 # see comment about AmigaOS4 .so support
12974 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12975 archive_expsym_cmds_FC
=''
12978 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)'
12979 hardcode_libdir_flag_spec_FC
='-L$libdir'
12980 hardcode_minus_L_FC
=yes
12986 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12987 allow_undefined_flag_FC
=unsupported
12988 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12989 # support --undefined. This deserves some investigation. FIXME
12990 archive_cmds_FC
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12996 cygwin
* | mingw
* | pw32
* | cegcc
*)
12997 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12998 # as there is no search path for DLLs.
12999 hardcode_libdir_flag_spec_FC
='-L$libdir'
13000 export_dynamic_flag_spec_FC
='${wl}--export-all-symbols'
13001 allow_undefined_flag_FC
=unsupported
13002 always_export_symbols_FC
=no
13003 enable_shared_with_static_runtimes_FC
=yes
13004 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13006 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
13007 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13008 # If the export-symbols file already is a .def file (1st line
13009 # is EXPORTS), use it as is; otherwise, prepend...
13010 archive_expsym_cmds_FC
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13011 cp $export_symbols $output_objdir/$soname.def;
13013 echo EXPORTS > $output_objdir/$soname.def;
13014 cat $export_symbols >> $output_objdir/$soname.def;
13016 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13023 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13024 link_all_deplibs_FC
=yes
13028 hardcode_direct_FC
=no
13029 hardcode_shlibpath_var_FC
=no
13030 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13031 export_dynamic_flag_spec_FC
='${wl}-E'
13032 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13033 # Instead, shared libraries are loaded at an image base (0x10000000 by
13034 # default) and relocated if they conflict, which is a slow very memory
13035 # consuming and fragmenting process. To avoid this, we pick a random,
13036 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13037 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13038 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'
13039 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'
13042 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
13044 if test "$host_os" = linux-dietlibc
; then
13045 case $cc_basename in
13046 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
13049 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
13050 && test "$tmp_diet" = no
13052 tmp_addflag
=' $pic_flag'
13053 tmp_sharedflag
='-shared'
13054 case $cc_basename,$host_cpu in
13055 pgcc
*) # Portland Group C compiler
13056 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'
13057 tmp_addflag
=' $pic_flag'
13059 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
13060 # Portland Group f77 and f90 compilers
13061 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'
13062 tmp_addflag
=' $pic_flag -Mnomain' ;;
13063 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
13064 tmp_addflag
=' -i_dynamic' ;;
13065 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
13066 tmp_addflag
=' -i_dynamic -nofor_main' ;;
13067 ifc
* | ifort
*) # Intel Fortran compiler
13068 tmp_addflag
=' -nofor_main' ;;
13069 lf95
*) # Lahey Fortran 8.1
13070 whole_archive_flag_spec_FC
=
13071 tmp_sharedflag
='--shared' ;;
13072 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13073 tmp_sharedflag
='-qmkshrobj'
13075 nvcc
*) # Cuda Compiler Driver 2.2
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 compiler_needs_object_FC
=yes
13080 case `$CC -V 2>&1 | sed 5q` in
13081 *Sun\ C
*) # Sun C 5.9
13082 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'
13083 compiler_needs_object_FC
=yes
13084 tmp_sharedflag
='-G' ;;
13085 *Sun\ F
*) # Sun Fortran 8.3
13086 tmp_sharedflag
='-G' ;;
13088 archive_cmds_FC
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13090 if test "x$supports_anon_versioning" = xyes
; then
13091 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13092 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13093 echo "local: *; };" >> $output_objdir/$libname.ver~
13094 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13097 case $cc_basename in
13098 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
13099 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13100 whole_archive_flag_spec_FC
='--whole-archive$convenience --no-whole-archive'
13101 hardcode_libdir_flag_spec_FC
=
13102 hardcode_libdir_flag_spec_ld_FC
='-rpath $libdir'
13103 archive_cmds_FC
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13104 if test "x$supports_anon_versioning" = xyes
; then
13105 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13106 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13107 echo "local: *; };" >> $output_objdir/$libname.ver~
13108 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13118 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13119 archive_cmds_FC
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13122 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13123 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13128 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
13132 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13133 *** create shared libraries on Solaris systems. Therefore, libtool
13134 *** is disabling shared libraries support. We urge you to upgrade GNU
13135 *** binutils to release 2.9.1 or newer. Another option is to modify
13136 *** your PATH or compiler configuration so that the native linker is
13137 *** used, and then restart.
13140 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13141 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13142 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13148 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
13149 case `$LD -v 2>&1` in
13150 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
13154 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13155 *** reliably create shared libraries on SCO systems. Therefore, libtool
13156 *** is disabling shared libraries support. We urge you to upgrade GNU
13157 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13158 *** your PATH or compiler configuration so that the native linker is
13159 *** used, and then restart.
13164 # For security reasons, it is highly recommended that you always
13165 # use absolute paths for naming shared libraries, and exclude the
13166 # DT_RUNPATH tag from executables and libraries. But doing so
13167 # requires that you compile everything twice, which is a pain.
13168 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13169 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13170 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13171 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13180 archive_cmds_FC
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13182 hardcode_direct_FC
=yes
13183 hardcode_shlibpath_var_FC
=no
13187 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13188 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13189 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13196 if test "$ld_shlibs_FC" = no
; then
13198 hardcode_libdir_flag_spec_FC
=
13199 export_dynamic_flag_spec_FC
=
13200 whole_archive_flag_spec_FC
=
13203 # PORTME fill in a description of your system's linker (not GNU ld)
13206 allow_undefined_flag_FC
=unsupported
13207 always_export_symbols_FC
=yes
13208 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'
13209 # Note: this linker hardcodes the directories in LIBPATH if there
13210 # are no directories specified by -L.
13211 hardcode_minus_L_FC
=yes
13212 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13213 # Neither direct hardcoding nor static linking is supported with a
13215 hardcode_direct_FC
=unsupported
13220 if test "$host_cpu" = ia64
; then
13221 # On IA64, the linker does run time linking by default, so we don't
13222 # have to do anything special.
13223 aix_use_runtimelinking
=no
13224 exp_sym_flag
='-Bexport'
13227 # If we're using GNU nm, then we don't want the "-C" option.
13228 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13229 # Also, AIX nm treats weak defined symbols like other global
13230 # defined symbols, whereas GNU nm marks them as "W".
13231 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13232 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'
13234 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'
13236 aix_use_runtimelinking
=no
13238 # Test if we are trying to use run time linking or normal
13239 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13240 # need to do runtime linking.
13241 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
13242 for ld_flag
in $LDFLAGS; do
13243 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13244 aix_use_runtimelinking
=yes
13251 exp_sym_flag
='-bexport'
13252 no_entry_flag
='-bnoentry'
13255 # When large executables or shared objects are built, AIX ld can
13256 # have problems creating the table of contents. If linking a library
13257 # or program results in "error TOC overflow" add -mminimal-toc to
13258 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13259 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13262 hardcode_direct_FC
=yes
13263 hardcode_direct_absolute_FC
=yes
13264 hardcode_libdir_separator_FC
=':'
13265 link_all_deplibs_FC
=yes
13266 file_list_spec_FC
='${wl}-f,'
13268 if test "$GCC" = yes; then
13269 case $host_os in aix4.
[012]|aix4.
[012].
*)
13270 # We only want to do this on AIX 4.2 and lower, the check
13271 # below for broken collect2 doesn't work under 4.3+
13272 collect2name
=`${CC} -print-prog-name=collect2`
13273 if test -f "$collect2name" &&
13274 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13276 # We have reworked collect2
13279 # We have old collect2
13280 hardcode_direct_FC
=unsupported
13281 # It fails to find uninstalled libraries when the uninstalled
13282 # path is not listed in the libpath. Setting hardcode_minus_L
13283 # to unsupported forces relinking
13284 hardcode_minus_L_FC
=yes
13285 hardcode_libdir_flag_spec_FC
='-L$libdir'
13286 hardcode_libdir_separator_FC
=
13290 shared_flag
='-shared'
13291 if test "$aix_use_runtimelinking" = yes; then
13292 shared_flag
="$shared_flag "'${wl}-G'
13296 if test "$host_cpu" = ia64
; then
13297 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13298 # chokes on -Wl,-G. The following line is correct:
13301 if test "$aix_use_runtimelinking" = yes; then
13302 shared_flag
='${wl}-G'
13304 shared_flag
='${wl}-bM:SRE'
13309 export_dynamic_flag_spec_FC
='${wl}-bexpall'
13310 # It seems that -bexpall does not export symbols beginning with
13311 # underscore (_), so it is better to generate a list of symbols to export.
13312 always_export_symbols_FC
=yes
13313 if test "$aix_use_runtimelinking" = yes; then
13314 # Warning - without using the other runtime loading flags (-brtl),
13315 # -berok will link without error, but may produce a broken library.
13316 allow_undefined_flag_FC
='-berok'
13317 # Determine the default libpath from the value encoded in an
13318 # empty executable.
13319 cat > conftest.
$ac_ext <<_ACEOF
13324 if ac_fn_fc_try_link
"$LINENO"; then :
13326 lt_aix_libpath_sed
='
13327 /Import File Strings/,/^$/ {
13333 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13334 # Check for a 64-bit object if we didn't find anything.
13335 if test -z "$aix_libpath"; then
13336 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13339 rm -f core conftest.err conftest.
$ac_objext \
13340 conftest
$ac_exeext conftest.
$ac_ext
13341 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13343 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13344 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"
13346 if test "$host_cpu" = ia64
; then
13347 hardcode_libdir_flag_spec_FC
='${wl}-R $libdir:/usr/lib:/lib'
13348 allow_undefined_flag_FC
="-z nodefs"
13349 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"
13351 # Determine the default libpath from the value encoded in an
13352 # empty executable.
13353 cat > conftest.
$ac_ext <<_ACEOF
13358 if ac_fn_fc_try_link
"$LINENO"; then :
13360 lt_aix_libpath_sed
='
13361 /Import File Strings/,/^$/ {
13367 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13368 # Check for a 64-bit object if we didn't find anything.
13369 if test -z "$aix_libpath"; then
13370 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13373 rm -f core conftest.err conftest.
$ac_objext \
13374 conftest
$ac_exeext conftest.
$ac_ext
13375 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13377 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13378 # Warning - without using the other run time loading flags,
13379 # -berok will link without error, but may produce a broken library.
13380 no_undefined_flag_FC
=' ${wl}-bernotok'
13381 allow_undefined_flag_FC
=' ${wl}-berok'
13382 if test "$with_gnu_ld" = yes; then
13383 # We only use this code for GNU lds that support --whole-archive.
13384 whole_archive_flag_spec_FC
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13386 # Exported symbols can be pulled into shared objects from archives
13387 whole_archive_flag_spec_FC
='$convenience'
13389 archive_cmds_need_lc_FC
=yes
13390 # This is similar to how AIX traditionally builds its shared libraries.
13391 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'
13399 # see comment about AmigaOS4 .so support
13400 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13401 archive_expsym_cmds_FC
=''
13404 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)'
13405 hardcode_libdir_flag_spec_FC
='-L$libdir'
13406 hardcode_minus_L_FC
=yes
13412 export_dynamic_flag_spec_FC
=-rdynamic
13415 cygwin
* | mingw
* | pw32
* | cegcc
*)
13416 # When not using gcc, we currently assume that we are using
13417 # Microsoft Visual C++.
13418 # hardcode_libdir_flag_spec is actually meaningless, as there is
13419 # no search path for DLLs.
13420 hardcode_libdir_flag_spec_FC
=' '
13421 allow_undefined_flag_FC
=unsupported
13422 # Tell ltmain to make .lib files, not .a files.
13424 # Tell ltmain to make .dll files, not .so files.
13426 # FIXME: Setting linknames here is a bad hack.
13427 archive_cmds_FC
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13428 # The linker will automatically build a .lib file if we build a DLL.
13429 old_archive_from_new_cmds_FC
='true'
13430 # FIXME: Should let the user specify the lib program.
13431 old_archive_cmds_FC
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13432 fix_srcfile_path_FC
='`cygpath -w "$srcfile"`'
13433 enable_shared_with_static_runtimes_FC
=yes
13436 darwin
* | rhapsody
*)
13439 archive_cmds_need_lc_FC
=no
13440 hardcode_direct_FC
=no
13441 hardcode_automatic_FC
=yes
13442 hardcode_shlibpath_var_FC
=unsupported
13443 if test "$lt_cv_ld_force_load" = "yes"; then
13444 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\"`'
13446 whole_archive_flag_spec_FC
=''
13448 link_all_deplibs_FC
=yes
13449 allow_undefined_flag_FC
="$_lt_dar_allow_undefined"
13450 case $cc_basename in
13451 ifort
*) _lt_dar_can_shared
=yes ;;
13452 *) _lt_dar_can_shared
=$GCC ;;
13454 if test "$_lt_dar_can_shared" = "yes"; then
13455 output_verbose_link_cmd
=func_echo_all
13456 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}"
13457 module_cmds_FC
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13458 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}"
13459 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}"
13468 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13469 hardcode_libdir_flag_spec_FC
='-L$libdir'
13470 hardcode_shlibpath_var_FC
=no
13473 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13474 # support. Future versions do this automatically, but an explicit c++rt0.o
13475 # does not break anything, and helps significantly (at the cost of a little
13478 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13479 hardcode_libdir_flag_spec_FC
='-R$libdir'
13480 hardcode_direct_FC
=yes
13481 hardcode_shlibpath_var_FC
=no
13484 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13486 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13487 hardcode_direct_FC
=yes
13488 hardcode_minus_L_FC
=yes
13489 hardcode_shlibpath_var_FC
=no
13492 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13493 freebsd
* | dragonfly
*)
13494 archive_cmds_FC
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13495 hardcode_libdir_flag_spec_FC
='-R$libdir'
13496 hardcode_direct_FC
=yes
13497 hardcode_shlibpath_var_FC
=no
13501 if test "$GCC" = yes; then
13502 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'
13504 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'
13506 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13507 hardcode_libdir_separator_FC
=:
13508 hardcode_direct_FC
=yes
13510 # hardcode_minus_L: Not really in the search PATH,
13511 # but as the default location of the library.
13512 hardcode_minus_L_FC
=yes
13513 export_dynamic_flag_spec_FC
='${wl}-E'
13517 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13518 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13520 archive_cmds_FC
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13522 if test "$with_gnu_ld" = no
; then
13523 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13524 hardcode_libdir_flag_spec_ld_FC
='+b $libdir'
13525 hardcode_libdir_separator_FC
=:
13526 hardcode_direct_FC
=yes
13527 hardcode_direct_absolute_FC
=yes
13528 export_dynamic_flag_spec_FC
='${wl}-E'
13529 # hardcode_minus_L: Not really in the search PATH,
13530 # but as the default location of the library.
13531 hardcode_minus_L_FC
=yes
13536 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13539 archive_cmds_FC
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13542 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13545 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13551 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13554 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13557 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13561 if test "$with_gnu_ld" = no
; then
13562 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13563 hardcode_libdir_separator_FC
=:
13567 hardcode_direct_FC
=no
13568 hardcode_shlibpath_var_FC
=no
13571 hardcode_direct_FC
=yes
13572 hardcode_direct_absolute_FC
=yes
13573 export_dynamic_flag_spec_FC
='${wl}-E'
13575 # hardcode_minus_L: Not really in the search PATH,
13576 # but as the default location of the library.
13577 hardcode_minus_L_FC
=yes
13583 irix5
* | irix6
* | nonstopux
*)
13584 if test "$GCC" = yes; then
13585 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'
13586 # Try to use the -exported_symbol ld option, if it does not
13587 # work, assume that -exports_file does not work either and
13588 # implicitly export all symbols.
13589 save_LDFLAGS
="$LDFLAGS"
13590 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13591 cat > conftest.
$ac_ext <<_ACEOF
13594 if ac_fn_fc_try_link
"$LINENO"; then :
13595 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'
13598 rm -f core conftest.err conftest.
$ac_objext \
13599 conftest
$ac_exeext conftest.
$ac_ext
13600 LDFLAGS
="$save_LDFLAGS"
13602 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'
13603 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'
13605 archive_cmds_need_lc_FC
='no'
13606 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13607 hardcode_libdir_separator_FC
=:
13608 inherit_rpath_FC
=yes
13609 link_all_deplibs_FC
=yes
13613 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13614 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13616 archive_cmds_FC
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13618 hardcode_libdir_flag_spec_FC
='-R$libdir'
13619 hardcode_direct_FC
=yes
13620 hardcode_shlibpath_var_FC
=no
13624 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13625 hardcode_direct_FC
=yes
13626 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13627 hardcode_libdir_separator_FC
=:
13628 hardcode_shlibpath_var_FC
=no
13635 if test -f /usr
/libexec
/ld.so
; then
13636 hardcode_direct_FC
=yes
13637 hardcode_shlibpath_var_FC
=no
13638 hardcode_direct_absolute_FC
=yes
13639 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13640 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13641 archive_expsym_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13642 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13643 export_dynamic_flag_spec_FC
='${wl}-E'
13646 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13647 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13648 hardcode_libdir_flag_spec_FC
='-R$libdir'
13651 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13652 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13662 hardcode_libdir_flag_spec_FC
='-L$libdir'
13663 hardcode_minus_L_FC
=yes
13664 allow_undefined_flag_FC
=unsupported
13665 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'
13666 old_archive_from_new_cmds_FC
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13670 if test "$GCC" = yes; then
13671 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13672 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'
13674 allow_undefined_flag_FC
=' -expect_unresolved \*'
13675 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'
13677 archive_cmds_need_lc_FC
='no'
13678 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13679 hardcode_libdir_separator_FC
=:
13682 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13683 if test "$GCC" = yes; then
13684 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13685 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'
13686 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13688 allow_undefined_flag_FC
=' -expect_unresolved \*'
13689 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'
13690 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~
13691 $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'
13693 # Both c and cxx compiler support -rpath directly
13694 hardcode_libdir_flag_spec_FC
='-rpath $libdir'
13696 archive_cmds_need_lc_FC
='no'
13697 hardcode_libdir_separator_FC
=:
13701 no_undefined_flag_FC
=' -z defs'
13702 if test "$GCC" = yes; then
13704 archive_cmds_FC
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13705 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13706 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13708 case `$CC -V 2>&1` in
13711 archive_cmds_FC
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13712 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13713 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13717 archive_cmds_FC
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13718 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13719 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13723 hardcode_libdir_flag_spec_FC
='-R$libdir'
13724 hardcode_shlibpath_var_FC
=no
13726 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13728 # The compiler driver will combine and reorder linker options,
13729 # but understands `-z linker_flag'. GCC discards it without `$wl',
13730 # but is careful enough not to reorder.
13731 # Supported since Solaris 2.6 (maybe 2.5.1?)
13732 if test "$GCC" = yes; then
13733 whole_archive_flag_spec_FC
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13735 whole_archive_flag_spec_FC
='-z allextract$convenience -z defaultextract'
13739 link_all_deplibs_FC
=yes
13743 if test "x$host_vendor" = xsequent
; then
13744 # Use $CC to link under sequent, because it throws in some extra .o
13745 # files that make .init and .fini sections work.
13746 archive_cmds_FC
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13748 archive_cmds_FC
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13750 hardcode_libdir_flag_spec_FC
='-L$libdir'
13751 hardcode_direct_FC
=yes
13752 hardcode_minus_L_FC
=yes
13753 hardcode_shlibpath_var_FC
=no
13757 case $host_vendor in
13759 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13760 hardcode_direct_FC
=yes # is this really true???
13763 ## LD is ld it makes a PLAMLIB
13764 ## CC just makes a GrossModule.
13765 archive_cmds_FC
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13766 reload_cmds_FC
='$CC -r -o $output$reload_objs'
13767 hardcode_direct_FC
=no
13770 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13771 hardcode_direct_FC
=no
#Motorola manual says yes, but my tests say they lie
13774 runpath_var
='LD_RUN_PATH'
13775 hardcode_shlibpath_var_FC
=no
13779 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13780 hardcode_shlibpath_var_FC
=no
13781 export_dynamic_flag_spec_FC
='-Bexport'
13785 if test -d /usr
/nec
; then
13786 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13787 hardcode_shlibpath_var_FC
=no
13788 runpath_var
=LD_RUN_PATH
13789 hardcode_runpath_var
=yes
13794 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13795 no_undefined_flag_FC
='${wl}-z,text'
13796 archive_cmds_need_lc_FC
=no
13797 hardcode_shlibpath_var_FC
=no
13798 runpath_var
='LD_RUN_PATH'
13800 if test "$GCC" = yes; then
13801 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13802 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13804 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13805 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13809 sysv5
* | sco3.2v5
* | sco5v6
*)
13810 # Note: We can NOT use -z defs as we might desire, because we do not
13811 # link with -lc, and that would cause any symbols used from libc to
13812 # always be unresolved, which means just about no library would
13813 # ever link correctly. If we're not using GNU ld we use -z text
13814 # though, which does catch some bad symbols but isn't as heavy-handed
13816 no_undefined_flag_FC
='${wl}-z,text'
13817 allow_undefined_flag_FC
='${wl}-z,nodefs'
13818 archive_cmds_need_lc_FC
=no
13819 hardcode_shlibpath_var_FC
=no
13820 hardcode_libdir_flag_spec_FC
='${wl}-R,$libdir'
13821 hardcode_libdir_separator_FC
=':'
13822 link_all_deplibs_FC
=yes
13823 export_dynamic_flag_spec_FC
='${wl}-Bexport'
13824 runpath_var
='LD_RUN_PATH'
13826 if test "$GCC" = yes; then
13827 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13828 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13830 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13831 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13836 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13837 hardcode_libdir_flag_spec_FC
='-L$libdir'
13838 hardcode_shlibpath_var_FC
=no
13846 if test x
$host_vendor = xsni
; then
13848 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13849 export_dynamic_flag_spec_FC
='${wl}-Blargedynsym'
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13856 $as_echo "$ld_shlibs_FC" >&6; }
13857 test "$ld_shlibs_FC" = no
&& can_build_shared
=no
13859 with_gnu_ld_FC
=$with_gnu_ld
13867 # Do we need to explicitly link libc?
13869 case "x$archive_cmds_need_lc_FC" in
13871 # Assume -lc should be added
13872 archive_cmds_need_lc_FC
=yes
13874 if test "$enable_shared" = yes && test "$GCC" = yes; then
13875 case $archive_cmds_FC in
13877 # FIXME: we may have to deal with multi-command sequences.
13880 # Test whether the compiler implicitly links with -lc since on some
13881 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13882 # to ld, don't add -lc before -lgcc.
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13884 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13885 if ${lt_cv_archive_cmds_need_lc_FC+:} false
; then :
13886 $as_echo_n "(cached) " >&6
13889 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13892 (eval $ac_compile) 2>&5
13894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13895 test $ac_status = 0; } 2>conftest.err
; then
13898 libobjs
=conftest.
$ac_objext
13900 wl
=$lt_prog_compiler_wl_FC
13901 pic_flag
=$lt_prog_compiler_pic_FC
13907 lt_save_allow_undefined_flag
=$allow_undefined_flag_FC
13908 allow_undefined_flag_FC
=
13909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13910 (eval $archive_cmds_FC 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13913 test $ac_status = 0; }
13915 lt_cv_archive_cmds_need_lc_FC
=no
13917 lt_cv_archive_cmds_need_lc_FC
=yes
13919 allow_undefined_flag_FC
=$lt_save_allow_undefined_flag
13921 cat conftest.err
1>&5
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13927 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13928 archive_cmds_need_lc_FC
=$lt_cv_archive_cmds_need_lc_FC
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13999 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14001 library_names_spec
=
14002 libname_spec
='lib$name'
14006 postuninstall_cmds
=
14010 shlibpath_overrides_runpath
=unknown
14012 dynamic_linker
="$host_os ld.so"
14013 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14014 need_lib_prefix
=unknown
14015 hardcode_into_libs
=no
14017 # when you set need_version to no, make sure it does not cause -set_version
14018 # flags to be left without arguments
14019 need_version
=unknown
14024 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14025 shlibpath_var
=LIBPATH
14027 # AIX 3 has no versioning support, so we append a major version to the name.
14028 soname_spec
='${libname}${release}${shared_ext}$major'
14035 hardcode_into_libs
=yes
14036 if test "$host_cpu" = ia64
; then
14037 # AIX 5 supports IA64
14038 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14039 shlibpath_var
=LD_LIBRARY_PATH
14041 # With GCC up to 2.95.x, collect2 would create an import file
14042 # for dependence libraries. The import file would start with
14043 # the line `#! .'. This would cause the generated library to
14044 # depend on `.', always an invalid library. This was fixed in
14045 # development snapshots of GCC prior to 3.0.
14047 aix4 | aix4.
[01] | aix4.
[01].
*)
14048 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14050 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14053 can_build_shared
=no
14057 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14058 # soname into executable. Probably we can add versioning support to
14059 # collect2, so additional links can be useful in future.
14060 if test "$aix_use_runtimelinking" = yes; then
14061 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14062 # instead of lib<name>.a to let people know that these are not
14063 # typical AIX shared libraries.
14064 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14066 # We preserve .a as extension for shared libraries through AIX4.2
14067 # and later when we are not doing run time linking.
14068 library_names_spec
='${libname}${release}.a $libname.a'
14069 soname_spec
='${libname}${release}${shared_ext}$major'
14071 shlibpath_var
=LIBPATH
14078 # Since July 2007 AmigaOS4 officially supports .so libraries.
14079 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14080 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14083 library_names_spec
='$libname.ixlibrary $libname.a'
14084 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14085 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'
14091 library_names_spec
='${libname}${shared_ext}'
14092 dynamic_linker
="$host_os ld.so"
14093 shlibpath_var
=LIBRARY_PATH
14099 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14100 soname_spec
='${libname}${release}${shared_ext}$major'
14101 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14102 shlibpath_var
=LD_LIBRARY_PATH
14103 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14104 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14105 # the default ld.so.conf also contains /usr/contrib/lib and
14106 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14107 # libtool to hard-code these into programs
14110 cygwin
* | mingw
* | pw32
* | cegcc
*)
14111 version_type
=windows
14116 case $GCC,$host_os in
14117 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14118 library_names_spec
='$libname.dll.a'
14119 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14120 postinstall_cmds
='base_file=`basename \${file}`~
14121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14122 dldir=$destdir/`dirname \$dlpath`~
14123 test -d \$dldir || mkdir -p \$dldir~
14124 $install_prog $dir/$dlname \$dldir/$dlname~
14125 chmod a+x \$dldir/$dlname~
14126 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14127 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14129 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14130 dlpath=$dir/\$dldll~
14132 shlibpath_overrides_runpath
=yes
14136 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14137 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14141 # MinGW DLLs use traditional 'lib' prefix
14142 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14145 # pw32 DLLs use 'pw' prefix rather than 'lib'
14146 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14152 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14155 dynamic_linker
='Win32 ld.exe'
14156 # FIXME: first we should search . and the directory the executable is in
14160 darwin
* | rhapsody
*)
14161 dynamic_linker
="$host_os dyld"
14162 version_type
=darwin
14165 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14166 soname_spec
='${libname}${release}${major}$shared_ext'
14167 shlibpath_overrides_runpath
=yes
14168 shlibpath_var
=DYLD_LIBRARY_PATH
14169 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14171 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14179 soname_spec
='${libname}${release}${shared_ext}$major'
14180 shlibpath_var
=LD_LIBRARY_PATH
14183 freebsd
* | dragonfly
*)
14184 # DragonFly does not have aout. When/if they implement a new
14185 # versioning mechanism, adjust this.
14186 if test -x /usr
/bin
/objformat
; then
14187 objformat
=`/usr/bin/objformat`
14190 freebsd
[23].
*) objformat
=aout
;;
14191 *) objformat
=elf
;;
14194 version_type
=freebsd-
$objformat
14195 case $version_type in
14197 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14202 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14206 shlibpath_var
=LD_LIBRARY_PATH
14209 shlibpath_overrides_runpath
=yes
14211 freebsd3.
[01]* | freebsdelf3.
[01]*)
14212 shlibpath_overrides_runpath
=yes
14213 hardcode_into_libs
=yes
14215 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14216 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14217 shlibpath_overrides_runpath
=no
14218 hardcode_into_libs
=yes
14220 *) # from 4.6 on, and DragonFly
14221 shlibpath_overrides_runpath
=yes
14222 hardcode_into_libs
=yes
14231 dynamic_linker
="$host_os runtime_loader"
14232 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14233 soname_spec
='${libname}${release}${shared_ext}$major'
14234 shlibpath_var
=LIBRARY_PATH
14235 shlibpath_overrides_runpath
=yes
14236 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14237 hardcode_into_libs
=yes
14240 hpux9
* | hpux10
* | hpux11
*)
14241 # Give a soname corresponding to the major version so that dld.sl refuses to
14242 # link against other versions.
14249 hardcode_into_libs
=yes
14250 dynamic_linker
="$host_os dld.so"
14251 shlibpath_var
=LD_LIBRARY_PATH
14252 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14254 soname_spec
='${libname}${release}${shared_ext}$major'
14255 if test "X$HPUX_IA64_MODE" = X32
; then
14256 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14258 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14260 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14264 hardcode_into_libs
=yes
14265 dynamic_linker
="$host_os dld.sl"
14266 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14267 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14268 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14269 soname_spec
='${libname}${release}${shared_ext}$major'
14270 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14271 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14275 dynamic_linker
="$host_os dld.sl"
14276 shlibpath_var
=SHLIB_PATH
14277 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14278 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14279 soname_spec
='${libname}${release}${shared_ext}$major'
14282 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14283 postinstall_cmds
='chmod 555 $lib'
14284 # or fails outright, so override atomically:
14285 install_override_mode
=555
14292 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14293 soname_spec
='${libname}${release}${shared_ext}$major'
14294 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14295 shlibpath_var
=LD_LIBRARY_PATH
14296 shlibpath_overrides_runpath
=no
14297 hardcode_into_libs
=yes
14300 irix5
* | irix6
* | nonstopux
*)
14302 nonstopux
*) version_type
=nonstopux
;;
14304 if test "$lt_cv_prog_gnu_ld" = yes; then
14312 soname_spec
='${libname}${release}${shared_ext}$major'
14313 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14315 irix5
* | nonstopux
*)
14316 libsuff
= shlibsuff
=
14319 case $LD in # libtool.m4 will add one of these switches to LD
14320 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14321 libsuff
= shlibsuff
= libmagic
=32-bit;;
14322 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14323 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14324 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14325 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14326 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14330 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14331 shlibpath_overrides_runpath
=no
14332 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14333 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14334 hardcode_into_libs
=yes
14337 # No shared lib support for Linux oldld, aout, or coff.
14338 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14342 # This must be Linux ELF.
14344 # uclinux* changes (here and below) have been submitted to the libtool
14345 # project, but have not yet been accepted: they are GCC-local changes
14346 # for the time being. (See
14347 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14348 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
14352 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14353 soname_spec
='${libname}${release}${shared_ext}$major'
14354 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14355 shlibpath_var
=LD_LIBRARY_PATH
14356 shlibpath_overrides_runpath
=no
14358 # Some binutils ld are patched to set DT_RUNPATH
14359 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
14360 $as_echo_n "(cached) " >&6
14362 lt_cv_shlibpath_overrides_runpath
=no
14363 save_LDFLAGS
=$LDFLAGS
14364 save_libdir
=$libdir
14365 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14366 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14367 cat > conftest.
$ac_ext <<_ACEOF
14372 if ac_fn_fc_try_link
"$LINENO"; then :
14373 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14374 lt_cv_shlibpath_overrides_runpath
=yes
14377 rm -f core conftest.err conftest.
$ac_objext \
14378 conftest
$ac_exeext conftest.
$ac_ext
14379 LDFLAGS
=$save_LDFLAGS
14380 libdir
=$save_libdir
14384 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14386 # This implies no fast_install, which is unacceptable.
14387 # Some rework will be needed to allow for fast_install
14388 # before this can be enabled.
14389 hardcode_into_libs
=yes
14391 # Append ld.so.conf contents to the search path
14392 if test -f /etc
/ld.so.conf
; then
14393 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' ' '`
14394 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14397 # We used to test for /lib/ld.so.1 and disable shared libraries on
14398 # powerpc, because MkLinux only supported shared libraries with the
14399 # GNU dynamic linker. Since this was broken with cross compilers,
14400 # most powerpc-linux boxes support dynamic linking these days and
14401 # people can always --disable-shared, the test was removed, and we
14402 # assume the GNU/Linux dynamic linker is in use.
14403 dynamic_linker
='GNU/Linux ld.so'
14410 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14411 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14412 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14413 dynamic_linker
='NetBSD (a.out) ld.so'
14415 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14416 soname_spec
='${libname}${release}${shared_ext}$major'
14417 dynamic_linker
='NetBSD ld.elf_so'
14419 shlibpath_var
=LD_LIBRARY_PATH
14420 shlibpath_overrides_runpath
=yes
14421 hardcode_into_libs
=yes
14426 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14427 shlibpath_var
=LD_LIBRARY_PATH
14428 shlibpath_overrides_runpath
=yes
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 shlibpath_var
=LD_LIBRARY_PATH
14438 shlibpath_overrides_runpath
=no
14439 hardcode_into_libs
=yes
14440 dynamic_linker
='ldqnx.so'
14445 sys_lib_dlsearch_path_spec
="/usr/lib"
14447 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14449 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14450 *) need_version
=no
;;
14452 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14453 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14454 shlibpath_var
=LD_LIBRARY_PATH
14455 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14457 openbsd2.
[89] | openbsd2.
[89].
*)
14458 shlibpath_overrides_runpath
=no
14461 shlibpath_overrides_runpath
=yes
14465 shlibpath_overrides_runpath
=yes
14470 libname_spec
='$name'
14473 library_names_spec
='$libname${shared_ext} $libname.a'
14474 dynamic_linker
='OS/2 ld.exe'
14475 shlibpath_var
=LIBPATH
14478 osf3
* | osf4
* | osf5
*)
14482 soname_spec
='${libname}${release}${shared_ext}$major'
14483 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14484 shlibpath_var
=LD_LIBRARY_PATH
14485 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14486 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14497 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14498 soname_spec
='${libname}${release}${shared_ext}$major'
14499 shlibpath_var
=LD_LIBRARY_PATH
14500 shlibpath_overrides_runpath
=yes
14501 hardcode_into_libs
=yes
14502 # ldd complains unless libraries are executable
14503 postinstall_cmds
='chmod +x $lib'
14508 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14509 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14510 shlibpath_var
=LD_LIBRARY_PATH
14511 shlibpath_overrides_runpath
=yes
14512 if test "$with_gnu_ld" = yes; then
14520 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14521 soname_spec
='${libname}${release}${shared_ext}$major'
14522 shlibpath_var
=LD_LIBRARY_PATH
14523 case $host_vendor in
14525 shlibpath_overrides_runpath
=no
14527 runpath_var
=LD_RUN_PATH
14535 shlibpath_overrides_runpath
=no
14536 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14542 if test -d /usr
/nec
;then
14544 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14545 soname_spec
='$libname${shared_ext}.$major'
14546 shlibpath_var
=LD_LIBRARY_PATH
14550 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14551 version_type
=freebsd-elf
14554 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14555 soname_spec
='${libname}${release}${shared_ext}$major'
14556 shlibpath_var
=LD_LIBRARY_PATH
14557 shlibpath_overrides_runpath
=yes
14558 hardcode_into_libs
=yes
14559 if test "$with_gnu_ld" = yes; then
14560 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14562 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14565 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14569 sys_lib_dlsearch_path_spec
='/usr/lib'
14573 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14577 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14578 shlibpath_var
=LD_LIBRARY_PATH
14579 shlibpath_overrides_runpath
=no
14580 hardcode_into_libs
=yes
14585 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14586 soname_spec
='${libname}${release}${shared_ext}$major'
14587 shlibpath_var
=LD_LIBRARY_PATH
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14595 $as_echo "$dynamic_linker" >&6; }
14596 test "$dynamic_linker" = no
&& can_build_shared
=no
14598 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14599 if test "$GCC" = yes; then
14600 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14603 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14604 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14606 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14607 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14648 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14649 hardcode_action_FC
=
14650 if test -n "$hardcode_libdir_flag_spec_FC" ||
14651 test -n "$runpath_var_FC" ||
14652 test "X$hardcode_automatic_FC" = "Xyes" ; then
14654 # We can hardcode non-existent directories.
14655 if test "$hardcode_direct_FC" != no
&&
14656 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14657 # have to relink, otherwise we might link with an installed library
14658 # when we should be linking with a yet-to-be-installed one
14659 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14660 test "$hardcode_minus_L_FC" != no
; then
14661 # Linking always hardcodes the temporary library directory.
14662 hardcode_action_FC
=relink
14664 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14665 hardcode_action_FC
=immediate
14668 # We cannot hardcode anything, or else we can only hardcode existing
14670 hardcode_action_FC
=unsupported
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14673 $as_echo "$hardcode_action_FC" >&6; }
14675 if test "$hardcode_action_FC" = relink ||
14676 test "$inherit_rpath_FC" = yes; then
14677 # Fast installation is not supported
14678 enable_fast_install
=no
14679 elif test "$shlibpath_overrides_runpath" = yes ||
14680 test "$enable_shared" = no
; then
14681 # Fast installation is not necessary
14682 enable_fast_install
=needless
14691 fi # test -n "$compiler"
14695 fi # test "$_lt_disable_FC" != yes
14698 ac_cpp
='$CPP $CPPFLAGS'
14699 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14700 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14701 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14704 FCFLAGS
="$FCFLAGS -Wall -L../libgfortran"
14706 # For libtool versioning info, format is CURRENT:REVISION:AGE
14707 libtool_VERSION
=1:0:0
14710 # Check header files.
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14712 $as_echo_n "checking for ANSI C header files... " >&6; }
14713 if ${ac_cv_header_stdc+:} false
; then :
14714 $as_echo_n "(cached) " >&6
14716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h. */
14718 #include <stdlib.h>
14719 #include <stdarg.h>
14720 #include <string.h>
14731 if ac_fn_c_try_compile
"$LINENO"; then :
14732 ac_cv_header_stdc
=yes
14734 ac_cv_header_stdc
=no
14736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14738 if test $ac_cv_header_stdc = yes; then
14739 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14741 /* end confdefs.h. */
14742 #include <string.h>
14745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14746 $EGREP "memchr" >/dev
/null
2>&1; then :
14749 ac_cv_header_stdc
=no
14755 if test $ac_cv_header_stdc = yes; then
14756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14759 #include <stdlib.h>
14762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14763 $EGREP "free" >/dev
/null
2>&1; then :
14766 ac_cv_header_stdc
=no
14772 if test $ac_cv_header_stdc = yes; then
14773 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14774 if test "$cross_compiling" = yes; then :
14777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14778 /* end confdefs.h. */
14780 #include <stdlib.h>
14781 #if ((' ' & 0x0FF) == 0x020)
14782 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14783 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14785 # define ISLOWER(c) \
14786 (('a' <= (c) && (c) <= 'i') \
14787 || ('j' <= (c) && (c) <= 'r') \
14788 || ('s' <= (c) && (c) <= 'z'))
14789 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14792 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14797 for (i = 0; i < 256; i++)
14798 if (XOR (islower (i), ISLOWER (i))
14799 || toupper (i) != TOUPPER (i))
14804 if ac_fn_c_try_run
"$LINENO"; then :
14807 ac_cv_header_stdc
=no
14809 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14810 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14816 $as_echo "$ac_cv_header_stdc" >&6; }
14817 if test $ac_cv_header_stdc = yes; then
14819 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14824 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14825 if ${ac_cv_header_time+:} false
; then :
14826 $as_echo_n "(cached) " >&6
14828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14829 /* end confdefs.h. */
14830 #include <sys/types.h>
14831 #include <sys/time.h>
14837 if ((struct tm *) 0)
14843 if ac_fn_c_try_compile
"$LINENO"; then :
14844 ac_cv_header_time
=yes
14846 ac_cv_header_time
=no
14848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14851 $as_echo "$ac_cv_header_time" >&6; }
14852 if test $ac_cv_header_time = yes; then
14854 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14859 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14860 if ${gcc_cv_header_string+:} false
; then :
14861 $as_echo_n "(cached) " >&6
14863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14864 /* end confdefs.h. */
14865 #include <string.h>
14866 #include <strings.h>
14875 if ac_fn_c_try_compile
"$LINENO"; then :
14876 gcc_cv_header_string
=yes
14878 gcc_cv_header_string
=no
14880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14883 $as_echo "$gcc_cv_header_string" >&6; }
14884 if test $gcc_cv_header_string = yes; then
14886 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14890 for ac_header
in pthread.h unistd.h semaphore.h sys
/loadavg.h sys
/sysctl.h sys
/time.h
14892 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14893 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14894 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14895 cat >>confdefs.h
<<_ACEOF
14896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14907 # RTEMS supports Pthreads, but the library is not available at GCC build time.
14909 nvptx
*-*-* | amdgcn
*-*-*)
14910 # NVPTX does not support Pthreads, has its own code replacement.
14911 libgomp_use_pthreads
=no
14912 # NVPTX is an accelerator-only target
14913 libgomp_offloaded_only
=yes
14916 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14917 # In case the pthread.h system header is not found, this test will fail.
14918 CFLAGS
="$CFLAGS -pthread"
14919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14920 /* end confdefs.h. */
14921 #include <pthread.h>
14922 void *g(void *d) { return NULL; }
14926 pthread_t t; pthread_create(&t,NULL,g,NULL);
14931 if ac_fn_c_try_link
"$LINENO"; then :
14932 XPCFLAGS
=" -Wc,-pthread"
14934 CFLAGS
="$save_CFLAGS" LIBS
="-lpthread $LIBS"
14935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h. */
14937 #include <pthread.h>
14938 void *g(void *d) { return NULL; }
14942 pthread_t t; pthread_create(&t,NULL,g,NULL);
14947 if ac_fn_c_try_link
"$LINENO"; then :
14950 as_fn_error $?
"Pthreads are required to build libgomp" "$LINENO" 5
14952 rm -f core conftest.err conftest.
$ac_objext \
14953 conftest
$ac_exeext conftest.
$ac_ext
14955 rm -f core conftest.err conftest.
$ac_objext \
14956 conftest
$ac_exeext conftest.
$ac_ext
14959 if test x
$libgomp_use_pthreads != xno
; then
14961 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
14965 if test x
$libgomp_offloaded_only = xyes
; then
14967 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
14971 if test "x$enable_offload_defaulted" = xyes
; then
14973 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
14977 # The cast to long int works around a bug in the HP C Compiler
14978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14980 # This bug is HP SR number 8606223364.
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14982 $as_echo_n "checking size of void *... " >&6; }
14983 if ${ac_cv_sizeof_void_p+:} false
; then :
14984 $as_echo_n "(cached) " >&6
14986 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14989 if test "$ac_cv_type_void_p" = yes; then
14990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14992 as_fn_error
77 "cannot compute sizeof (void *)
14993 See \`config.log' for more details" "$LINENO" 5; }
14995 ac_cv_sizeof_void_p
=0
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15001 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15005 cat >>confdefs.h
<<_ACEOF
15006 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15011 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15013 # Copyright (C) 2014-2022 Free Software Foundation, Inc.
15015 # Contributed by Mentor Embedded.
15017 # This file is part of the GNU Offloading and Multi Processing Library
15020 # Libgomp is free software; you can redistribute it and/or modify it
15021 # under the terms of the GNU General Public License as published by
15022 # the Free Software Foundation; either version 3, or (at your option)
15023 # any later version.
15025 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15026 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15027 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15030 # Under Section 7 of GPL version 3, you are granted additional
15031 # permissions described in the GCC Runtime Library Exception, version
15032 # 3.1, as published by the Free Software Foundation.
15034 # You should have received a copy of the GNU General Public License and
15035 # a copy of the GCC Runtime Library Exception along with this program;
15036 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15037 # <http://www.gnu.org/licenses/>.
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15043 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15044 if ${ac_cv_lib_dl_dlsym+:} false
; then :
15045 $as_echo_n "(cached) " >&6
15047 ac_check_lib_save_LIBS
=$LIBS
15049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15050 /* end confdefs.h. */
15052 /* Override any GCC internal prototype to avoid an error.
15053 Use char because int might match the return type of a GCC
15054 builtin and then its argument prototype would still apply. */
15067 if ac_fn_c_try_link
"$LINENO"; then :
15068 ac_cv_lib_dl_dlsym
=yes
15070 ac_cv_lib_dl_dlsym
=no
15072 rm -f core conftest.err conftest.
$ac_objext \
15073 conftest
$ac_exeext conftest.
$ac_ext
15074 LIBS
=$ac_check_lib_save_LIBS
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15077 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15078 if test "x$ac_cv_lib_dl_dlsym" = xyes
; then :
15084 if test x
"$plugin_support" = xyes
; then
15086 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15088 elif test "x${enable_offload_targets-no}" != xno
; then
15089 as_fn_error $?
"Can't support offloading without support for plugins" "$LINENO" 5
15094 for ac_header
in $ac_header_list
15096 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15097 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15099 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15100 cat >>confdefs.h
<<_ACEOF
15101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15114 for ac_func
in $ac_func_list
15116 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15117 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15118 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15119 cat >>confdefs.h
<<_ACEOF
15120 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15143 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15144 # plugins, and configure to find the corresponding offload compilers.
15145 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15150 offload_additional_options
=
15151 offload_additional_lib_paths
=
15154 if test x
"$enable_offload_targets" != x
; then
15155 for tgt
in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15156 tgt_dir
=`echo $tgt | grep '=' | sed 's/.*=//'`
15157 tgt
=`echo $tgt | sed 's/=.*//'`
15160 *-intelmic-* |
*-intelmicemul-*)
15161 tgt_plugin
=intelmic
15164 case "${target}" in
15165 aarch64
*-*-* | powerpc64le-
*-* | x86_64-
*-*)
15166 case "$ac_cv_sizeof_void_p" in
15168 # PR libgomp/65099: Currently, we only support offloading in
15169 # 64-bit configurations.
15179 # Target architecture not supported.
15185 case "${target}" in
15187 case "$ac_cv_sizeof_void_p" in
15203 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
15206 if test x
"$tgt_plugin" = x
; then
15207 # Not configuring libgomp for this offload target if we're not building
15208 # the corresponding offload plugin.
15210 elif test x
"$offload_plugins" = x
; then
15211 offload_plugins
=$tgt_plugin
15212 offload_targets
=$tgt
15214 offload_plugins
=$offload_plugins,$tgt_plugin
15215 offload_targets
=$offload_targets,$tgt
15217 # Configure additional search paths.
15218 if test x
"$tgt_dir" != x
; then
15219 offload_additional_options
="$offload_additional_options -B$tgt_dir/\$(libexecdir:\$(exec_prefix)/%=%)/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15220 offload_additional_lib_paths
="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15222 offload_additional_options
="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15223 offload_additional_lib_paths
="$offload_additional_lib_paths:$toolexeclibdir"
15228 cat >>confdefs.h
<<_ACEOF
15229 #define OFFLOAD_PLUGINS "$offload_plugins"
15232 if test $PLUGIN_NVPTX = 1; then
15234 PLUGIN_NVPTX_FALSE
='#'
15236 PLUGIN_NVPTX_TRUE
='#'
15237 PLUGIN_NVPTX_FALSE
=
15240 if test $PLUGIN_GCN = 1; then
15242 PLUGIN_GCN_FALSE
='#'
15244 PLUGIN_GCN_TRUE
='#'
15250 # Check for functions needed.
15251 for ac_func
in getloadavg clock_gettime strtoull
15253 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15254 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15255 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15256 cat >>confdefs.h
<<_ACEOF
15257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15263 for ac_func
in aligned_alloc posix_memalign memalign _aligned_malloc
15265 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15266 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15267 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15268 cat >>confdefs.h
<<_ACEOF
15269 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15276 # Check for broken semaphore implementation on darwin.
15277 # sem_init returns: sem_init error: Function not implemented.
15281 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15286 # RTEMS specific checks
15289 ac_fn_c_check_type
"$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15291 if test "x$ac_cv_type_struct__Mutex_Control" = xyes
; then :
15293 cat >>confdefs.h
<<_ACEOF
15294 #define HAVE_STRUCT__MUTEX_CONTROL 1
15303 # Check whether --enable-linux-futex was given.
15304 if test "${enable_linux_futex+set}" = set; then :
15305 enableval
=$enable_linux_futex;
15306 case "$enableval" in
15308 *) as_fn_error $?
"Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15312 enable_linux_futex
=default
15317 *-linux* |
*-uclinux*)
15318 case "$enable_linux_futex" in
15320 # If headers don't have gettid/futex syscalls definition, then
15321 # default to no, otherwise there will be compile time failures.
15322 # Otherwise, default to yes. If we don't detect we are
15323 # compiled/linked against NPTL and not cross-compiling, check
15324 # if programs are run by default against NPTL and if not, issue
15326 enable_linux_futex
=no
15327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15328 /* end confdefs.h. */
15329 #include <sys/syscall.h>
15330 #include <unistd.h>
15335 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15340 if ac_fn_c_try_link
"$LINENO"; then :
15342 LIBS
="-lpthread $LIBS"
15343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15344 /* end confdefs.h. */
15345 #ifndef _GNU_SOURCE
15346 #define _GNU_SOURCE 1
15348 #include <pthread.h>
15349 pthread_t th; void *status;
15353 pthread_tryjoin_np (th, &status);
15358 if ac_fn_c_try_link
"$LINENO"; then :
15359 enable_linux_futex
=yes
15361 if test x
$cross_compiling = xno
; then
15362 if getconf GNU_LIBPTHREAD_VERSION
2>/dev
/null \
15363 | LC_ALL
=C
grep -i NPTL
> /dev
/null
2>/dev
/null
; then :; else
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15365 If so, please configure with --disable-linux-futex" >&5
15366 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15367 If so, please configure with --disable-linux-futex" >&2;}
15370 enable_linux_futex
=yes
15372 rm -f core conftest.err conftest.
$ac_objext \
15373 conftest
$ac_exeext conftest.
$ac_ext
15376 rm -f core conftest.err conftest.
$ac_objext \
15377 conftest
$ac_exeext conftest.
$ac_ext
15380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15382 #include <sys/syscall.h>
15383 #include <unistd.h>
15388 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15393 if ac_fn_c_try_link
"$LINENO"; then :
15396 as_fn_error $?
"SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15398 rm -f core conftest.err conftest.
$ac_objext \
15399 conftest
$ac_exeext conftest.
$ac_ext
15404 enable_linux_futex
=no
15407 if test x
$enable_linux_futex = xyes
; then
15412 # Check for pthread_{,attr_}[sg]etaffinity_np.
15413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15414 /* end confdefs.h. */
15415 #define _GNU_SOURCE
15416 #include <pthread.h>
15421 pthread_attr_t attr;
15422 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15423 if (CPU_ISSET (0, &cpuset))
15424 CPU_SET (1, &cpuset);
15426 CPU_ZERO (&cpuset);
15427 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15428 pthread_attr_init (&attr);
15429 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15430 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15435 if ac_fn_c_try_link
"$LINENO"; then :
15437 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15440 rm -f core conftest.err conftest.
$ac_objext \
15441 conftest
$ac_exeext conftest.
$ac_ext
15443 # At least for glibc, clock_gettime is in librt. But don't pull that
15444 # in if it still doesn't give us the function we want.
15445 if test $ac_cv_func_clock_gettime = no
; then
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15447 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15448 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
15449 $as_echo_n "(cached) " >&6
15451 ac_check_lib_save_LIBS
=$LIBS
15453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15454 /* end confdefs.h. */
15456 /* Override any GCC internal prototype to avoid an error.
15457 Use char because int might match the return type of a GCC
15458 builtin and then its argument prototype would still apply. */
15462 char clock_gettime ();
15466 return clock_gettime ();
15471 if ac_fn_c_try_link
"$LINENO"; then :
15472 ac_cv_lib_rt_clock_gettime
=yes
15474 ac_cv_lib_rt_clock_gettime
=no
15476 rm -f core conftest.err conftest.
$ac_objext \
15477 conftest
$ac_exeext conftest.
$ac_ext
15478 LIBS
=$ac_check_lib_save_LIBS
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15481 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15482 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
15485 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15493 /* end confdefs.h. */
15494 #include <string.h>
15495 #include <stdlib.h>
15496 #include <sys/utsname.h>
15500 struct utsname buf;
15501 volatile size_t len = 0;
15503 len = strlen (buf.nodename);
15508 if ac_fn_c_try_compile
"$LINENO"; then :
15510 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
15513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15515 # Check for gethostname.
15516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15517 /* end confdefs.h. */
15518 #include <unistd.h>
15524 if (gethostname (buf, sizeof (buf) - 1) == 0)
15531 if ac_fn_c_try_compile
"$LINENO"; then :
15533 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
15536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15538 # Check for getpid.
15539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15540 /* end confdefs.h. */
15541 #include <unistd.h>
15545 int pid = getpid ();
15550 if ac_fn_c_try_compile
"$LINENO"; then :
15552 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
15555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15557 # See if we support thread-local storage.
15560 # Check whether --enable-tls was given.
15561 if test "${enable_tls+set}" = set; then :
15562 enableval
=$enable_tls;
15563 case "$enableval" in
15565 *) as_fn_error $?
"Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15574 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15575 if ${gcc_cv_have_tls+:} false
; then :
15576 $as_echo_n "(cached) " >&6
15579 if test "$cross_compiling" = yes; then :
15580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15581 /* end confdefs.h. */
15582 __thread int a; int b; int main() { return a = b; }
15584 if ac_fn_c_try_link
"$LINENO"; then :
15585 chktls_save_LDFLAGS
="$LDFLAGS"
15587 *-*-linux* |
-*-uclinuxfdpic*)
15588 LDFLAGS
="-shared -Wl,--no-undefined $LDFLAGS"
15591 chktls_save_CFLAGS
="$CFLAGS"
15592 CFLAGS
="-fPIC $CFLAGS"
15593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15594 /* end confdefs.h. */
15595 int f() { return 0; }
15597 if ac_fn_c_try_link
"$LINENO"; then :
15598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15599 /* end confdefs.h. */
15600 __thread int a; int b; int f() { return a = b; }
15602 if ac_fn_c_try_link
"$LINENO"; then :
15603 gcc_cv_have_tls
=yes
15607 rm -f core conftest.err conftest.
$ac_objext \
15608 conftest
$ac_exeext conftest.
$ac_ext
15610 gcc_cv_have_tls
=yes
15612 rm -f core conftest.err conftest.
$ac_objext \
15613 conftest
$ac_exeext conftest.
$ac_ext
15614 CFLAGS
="$chktls_save_CFLAGS"
15615 LDFLAGS
="$chktls_save_LDFLAGS"
15619 rm -f core conftest.err conftest.
$ac_objext \
15620 conftest
$ac_exeext conftest.
$ac_ext
15624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15625 /* end confdefs.h. */
15626 __thread int a; int b; int main() { return a = b; }
15628 if ac_fn_c_try_run
"$LINENO"; then :
15629 chktls_save_LDFLAGS
="$LDFLAGS"
15630 LDFLAGS
="-static $LDFLAGS"
15631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15632 /* end confdefs.h. */
15633 int main() { return 0; }
15635 if ac_fn_c_try_link
"$LINENO"; then :
15636 if test "$cross_compiling" = yes; then :
15637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15639 as_fn_error $?
"cannot run test program while cross compiling
15640 See \`config.log' for more details" "$LINENO" 5; }
15642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15643 /* end confdefs.h. */
15644 __thread int a; int b; int main() { return a = b; }
15646 if ac_fn_c_try_run
"$LINENO"; then :
15647 gcc_cv_have_tls
=yes
15651 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15652 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15656 gcc_cv_have_tls
=yes
15658 rm -f core conftest.err conftest.
$ac_objext \
15659 conftest
$ac_exeext conftest.
$ac_ext
15660 LDFLAGS
="$chktls_save_LDFLAGS"
15661 if test $gcc_cv_have_tls = yes; then
15662 chktls_save_CFLAGS
="$CFLAGS"
15663 thread_CFLAGS
=failed
15664 for flag
in '' '-pthread' '-lpthread'; do
15665 CFLAGS
="$flag $chktls_save_CFLAGS"
15666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15667 /* end confdefs.h. */
15668 #include <pthread.h>
15669 void *g(void *d) { return NULL; }
15673 pthread_t t; pthread_create(&t,NULL,g,NULL);
15678 if ac_fn_c_try_link
"$LINENO"; then :
15679 thread_CFLAGS
="$flag"
15681 rm -f core conftest.err conftest.
$ac_objext \
15682 conftest
$ac_exeext conftest.
$ac_ext
15683 if test "X$thread_CFLAGS" != Xfailed
; then
15687 CFLAGS
="$chktls_save_CFLAGS"
15688 if test "X$thread_CFLAGS" != Xfailed
; then
15689 CFLAGS
="$thread_CFLAGS $chktls_save_CFLAGS"
15690 if test "$cross_compiling" = yes; then :
15691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15693 as_fn_error $?
"cannot run test program while cross compiling
15694 See \`config.log' for more details" "$LINENO" 5; }
15696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15697 /* end confdefs.h. */
15698 #include <pthread.h>
15700 static int *volatile a_in_other_thread;
15702 thread_func (void *arg)
15704 a_in_other_thread = &a;
15711 void *thread_retval;
15712 int *volatile a_in_main_thread;
15713 a_in_main_thread = &a;
15714 if (pthread_create (&thread, (pthread_attr_t *)0,
15715 thread_func, (void *)0))
15717 if (pthread_join (thread, &thread_retval))
15719 return (a_in_other_thread == a_in_main_thread);
15724 if ac_fn_c_try_run
"$LINENO"; then :
15725 gcc_cv_have_tls
=yes
15729 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15730 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15733 CFLAGS
="$chktls_save_CFLAGS"
15739 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15740 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15745 $as_echo "$gcc_cv_have_tls" >&6; }
15746 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15748 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15752 # See if we have emulated thread-local storage.
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15755 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15756 if ${gcc_cv_use_emutls+:} false
; then :
15757 $as_echo_n "(cached) " >&6
15760 gcc_cv_use_emutls
=no
15761 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15762 if { ac_try
='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15764 (eval $ac_try) 2>&5
15766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15767 test $ac_status = 0; }; }; then
15768 if grep __emutls_get_address conftest.s
> /dev
/null
; then
15769 gcc_cv_use_emutls
=yes
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15776 $as_echo "$gcc_cv_use_emutls" >&6; }
15777 if test "$gcc_cv_use_emutls" = "yes" ; then
15779 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
15783 # See what sort of export controls are available.
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15786 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15787 if ${libgomp_cv_have_attribute_visibility+:} false
; then :
15788 $as_echo_n "(cached) " >&6
15791 save_CFLAGS
="$CFLAGS"
15792 CFLAGS
="$CFLAGS -Werror"
15793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15794 /* end confdefs.h. */
15795 void __attribute__((visibility("hidden"))) foo(void) { }
15804 if ac_fn_c_try_compile
"$LINENO"; then :
15805 libgomp_cv_have_attribute_visibility
=yes
15807 libgomp_cv_have_attribute_visibility
=no
15809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15810 CFLAGS
="$save_CFLAGS"
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15813 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15814 if test $libgomp_cv_have_attribute_visibility = yes; then
15816 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15821 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15822 if ${libgomp_cv_have_attribute_dllexport+:} false
; then :
15823 $as_echo_n "(cached) " >&6
15826 save_CFLAGS
="$CFLAGS"
15827 CFLAGS
="$CFLAGS -Werror"
15828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15829 /* end confdefs.h. */
15830 void __attribute__((dllexport)) foo(void) { }
15839 if ac_fn_c_try_compile
"$LINENO"; then :
15840 libgomp_cv_have_attribute_dllexport
=yes
15842 libgomp_cv_have_attribute_dllexport
=no
15844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15845 CFLAGS
="$save_CFLAGS"
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15848 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15849 if test $libgomp_cv_have_attribute_dllexport = yes; then
15851 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15856 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15857 if ${libgomp_cv_have_attribute_alias+:} false
; then :
15858 $as_echo_n "(cached) " >&6
15861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15862 /* end confdefs.h. */
15865 extern void bar(void) __attribute__((alias("foo")));
15874 if ac_fn_c_try_link
"$LINENO"; then :
15875 libgomp_cv_have_attribute_alias
=yes
15877 libgomp_cv_have_attribute_alias
=no
15879 rm -f core conftest.err conftest.
$ac_objext \
15880 conftest
$ac_exeext conftest.
$ac_ext
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15883 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15884 if test $libgomp_cv_have_attribute_alias = yes; then
15886 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15891 # Check whether --with-gnu-ld was given.
15892 if test "${with_gnu_ld+set}" = set; then :
15893 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
15899 if test "$GCC" = yes; then
15900 # Check if gcc -print-prog-name=ld gives a path.
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15902 $as_echo_n "checking for ld used by $CC... " >&6; }
15905 # gcc leaves a trailing carriage return which upsets mingw
15906 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15908 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
15911 # Accept absolute paths.
15913 re_direlt
='/[^/][^/]*/\.\./'
15914 # Canonicalize the pathname of ld
15915 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15916 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
15917 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15919 test -z "$LD" && LD
="$ac_prog"
15922 # If it fails, then pretend we aren't using GCC.
15926 # If it is relative, then search for the first ld in PATH.
15927 with_gnu_ld
=unknown
15930 elif test "$with_gnu_ld" = yes; then
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15932 $as_echo_n "checking for GNU ld... " >&6; }
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15935 $as_echo_n "checking for non-GNU ld... " >&6; }
15937 if ${lt_cv_path_LD+:} false
; then :
15938 $as_echo_n "(cached) " >&6
15940 if test -z "$LD"; then
15941 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
15942 for ac_dir
in $PATH; do
15944 test -z "$ac_dir" && ac_dir
=.
15945 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
15946 lt_cv_path_LD
="$ac_dir/$ac_prog"
15947 # Check to see if the program is GNU ld. I'd rather use --version,
15948 # but apparently some variants of GNU ld only accept -v.
15949 # Break only if it was the GNU/non-GNU ld that we prefer.
15950 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15951 *GNU
* |
*'with BFD'*)
15952 test "$with_gnu_ld" != no
&& break
15955 test "$with_gnu_ld" != yes && break
15962 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
15966 LD
="$lt_cv_path_LD"
15967 if test -n "$LD"; then
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15969 $as_echo "$LD" >&6; }
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15972 $as_echo "no" >&6; }
15974 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15976 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15977 if ${lt_cv_prog_gnu_ld+:} false
; then :
15978 $as_echo_n "(cached) " >&6
15980 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15981 case `$LD -v 2>&1 </dev/null` in
15982 *GNU
* |
*'with BFD'*)
15983 lt_cv_prog_gnu_ld
=yes
15986 lt_cv_prog_gnu_ld
=no
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15991 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15992 with_gnu_ld
=$lt_cv_prog_gnu_ld
16000 # If we're not using GNU ld, then there's no point in even trying these
16001 # tests. Check for that first. We should have already tested for gld
16002 # by now (in libtool), but require it now just to be safe...
16003 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
16004 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
16008 # The name set by libtool depends on the version of libtool. Shame on us
16009 # for depending on an impl detail, but c'est la vie. Older versions used
16010 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16011 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16012 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16013 # set (hence we're using an older libtool), then set it.
16014 if test x
${with_gnu_ld+set} != xset
; then
16015 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
16016 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16019 with_gnu_ld
=$ac_cv_prog_gnu_ld
16023 # Start by getting the version number. I think the libtool test already
16024 # does some of this, but throws away the result.
16025 libgomp_ld_is_gold
=no
16026 libgomp_ld_is_mold
=no
16027 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
16028 libgomp_ld_is_gold
=yes
16029 elif $LD --version 2>/dev
/null |
grep 'mold'> /dev
/null
2>&1; then
16030 libgomp_ld_is_mold
=yes
16033 ldver
=`$LD --version 2>/dev/null |
16034 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16036 libgomp_gnu_ld_version
=`echo $ldver | \
16037 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16039 # Set --gc-sections.
16040 if test "$with_gnu_ld" = "notbroken"; then
16041 # GNU ld it is! Joy and bunny rabbits!
16043 # All these tests are for C++; save the language and the compiler flags.
16044 # Need to do this so that g++ won't try to link in libstdc++
16045 ac_test_CFLAGS
="${CFLAGS+set}"
16046 ac_save_CFLAGS
="$CFLAGS"
16047 CFLAGS
='-x c++ -Wl,--gc-sections'
16049 # Check for -Wl,--gc-sections
16050 # XXX This test is broken at the moment, as symbols required for linking
16051 # are now in libsupc++ (not built yet). In addition, this test has
16052 # cored on solaris in the past. In addition, --gc-sections doesn't
16053 # really work at the moment (keeps on discarding used sections, first
16054 # .eh_frame and now some of the glibc sections for iconv).
16055 # Bzzzzt. Thanks for playing, maybe next time.
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16057 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16058 if test "$cross_compiling" = yes; then :
16059 ac_sectionLDflags
=yes
16061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h. */
16072 if ac_fn_c_try_run
"$LINENO"; then :
16073 ac_sectionLDflags
=yes
16075 ac_sectionLDflags
=no
16077 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16078 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16081 if test "$ac_test_CFLAGS" = set; then
16082 CFLAGS
="$ac_save_CFLAGS"
16084 # this is the suspicious part
16087 if test "$ac_sectionLDflags" = "yes"; then
16088 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16091 $as_echo "$ac_sectionLDflags" >&6; }
16094 # Set linker optimization flags.
16095 if test x
"$with_gnu_ld" = x
"yes"; then
16096 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
16104 # Check whether --enable-symvers was given.
16105 if test "${enable_symvers+set}" = set; then :
16106 enableval
=$enable_symvers;
16107 case "$enableval" in
16108 yes|no|gnu
*|sun
) ;;
16109 *) as_fn_error $?
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16118 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16119 # don't know enough about $LD to do tricks...
16122 # Turn a 'yes' into a suitable default.
16123 if test x
$enable_symvers = xyes
; then
16124 # FIXME The following test is too strict, in theory.
16125 if test $enable_shared = no ||
test "x$LD" = x
; then
16128 if test $with_gnu_ld = yes ; then
16131 case ${target_os} in
16132 # Sun symbol versioning exists since Solaris 2.5.
16133 solaris2.
[5-9]* | solaris2.1
[0-9]*)
16134 enable_symvers
=sun
;;
16136 enable_symvers
=no
;;
16142 # Check if 'sun' was requested on non-Solaris 2 platforms.
16143 if test x
$enable_symvers = xsun
; then
16144 case ${target_os} in
16149 # Unlikely to work.
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16151 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16153 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16155 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16161 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16162 if test $enable_symvers != no
; then
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16164 $as_echo_n "checking for shared libgcc... " >&6; }
16165 ac_save_CFLAGS
="$CFLAGS"
16167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16178 if ac_fn_c_try_link
"$LINENO"; then :
16179 libgomp_shared_libgcc
=yes
16181 libgomp_shared_libgcc
=no
16183 rm -f core conftest.err conftest.
$ac_objext \
16184 conftest
$ac_exeext conftest.
$ac_ext
16185 CFLAGS
="$ac_save_CFLAGS"
16186 if test $libgomp_shared_libgcc = no
; then
16187 cat > conftest.c
<<EOF
16188 int main (void) { return 0; }
16190 libgomp_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16191 -shared -shared-libgcc -o conftest.so \
16192 conftest.c -v 2>&1 >/dev/null \
16193 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16194 rm -f conftest.c conftest.so
16195 if test x
${libgomp_libgcc_s_suffix+set} = xset
; then
16196 CFLAGS
=" -lgcc_s$libgomp_libgcc_s_suffix"
16197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16198 /* end confdefs.h. */
16208 if ac_fn_c_try_link
"$LINENO"; then :
16209 libgomp_shared_libgcc
=yes
16211 rm -f core conftest.err conftest.
$ac_objext \
16212 conftest
$ac_exeext conftest.
$ac_ext
16213 CFLAGS
="$ac_save_CFLAGS"
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16217 $as_echo "$libgomp_shared_libgcc" >&6; }
16220 # For GNU ld, we need at least this version. The format is described in
16221 # LIBGOMP_CHECK_LINKER_FEATURES above.
16222 libgomp_min_gnu_ld_version
=21400
16223 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16225 # Check to see if unspecified "yes" value can win, given results above.
16226 # Change "yes" into either "no" or a style name.
16227 if test $enable_symvers != no
&& test $libgomp_shared_libgcc = yes; then
16228 if test $with_gnu_ld = yes; then
16229 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16231 elif test $libgomp_ld_is_gold = yes ; then
16233 elif test $libgomp_ld_is_mold = yes ; then
16236 # The right tools, the right setup, but too old. Fallbacks?
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16238 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16240 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16242 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16244 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16245 if test $libgomp_gnu_ld_version -ge 21200 ; then
16246 # Globbing fix is present, proper block support is not.
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16248 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16253 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16257 elif test $enable_symvers = sun
; then
16258 : All interesting versions of Sun ld support sun style symbol versioning.
16260 # just fail for now
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16262 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16264 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16266 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16268 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16274 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16275 if ${libgomp_cv_have_as_symver_directive+:} false
; then :
16276 $as_echo_n "(cached) " >&6
16279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16280 /* end confdefs.h. */
16281 void foo (void); __asm (".symver foo, bar@SYMVER");
16290 if ac_fn_c_try_compile
"$LINENO"; then :
16291 libgomp_cv_have_as_symver_directive
=yes
16293 libgomp_cv_have_as_symver_directive
=no
16295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16298 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16299 if test $libgomp_cv_have_as_symver_directive = yes; then
16301 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16305 if test $enable_symvers != no
; then
16306 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
=
16307 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
='#'
16309 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
='#'
16310 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
=
16313 if test $enable_symvers = gnu
; then
16314 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
16315 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
16317 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
16318 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
16321 if test $enable_symvers = sun
; then
16322 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
16323 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
16325 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
16326 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16330 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16332 if test $enable_symvers != no
; then
16333 case ${target_os} in
16334 # The Solaris 2 runtime linker doesn't support the GNU extension of
16335 # binding the same symbol to different versions
16338 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16341 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16348 if test $enable_symvers = gnu
; then
16350 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16354 # Determine cpu count to limit testsuite parallelism.
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16356 $as_echo_n "checking the number of available CPUs... " >&6; }
16359 # Try generic methods
16361 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16362 # 'NPROCESSORS_ONLN' are platform-specific
16363 command -v getconf
>/dev
/null
2>&1 && \
16364 CPU_COUNT
=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT
="0"
16365 if test "$CPU_COUNT" -gt "0" 2>/dev
/null ||
! command -v nproc
>/dev
/null
2>&1; then :
16368 # 'nproc' is part of GNU Coreutils and is widely available
16369 CPU_COUNT
=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT
=`nproc 2>/dev/null` || CPU_COUNT
="0"
16372 if test "$CPU_COUNT" -gt "0" 2>/dev
/null
; then :
16375 # Try platform-specific preferred methods
16376 case $host_os in #(
16378 CPU_COUNT
=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT
="0" ;; #(
16380 CPU_COUNT
=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT
="0" ;; #(
16382 command -v sysctl
>/dev
/null
2>&1 && CPU_COUNT
=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT
="0" ;; #(
16384 command -v sysctl
>/dev
/null
2>&1 && CPU_COUNT
=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT
="0" ;; #(
16386 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" ;; #(
16388 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16390 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16392 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16397 if test "$CPU_COUNT" -gt "0" 2>/dev
/null ||
! command -v sysctl
>/dev
/null
2>&1; then :
16400 # Try less preferred generic method
16401 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16402 CPU_COUNT
=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT
="0"
16405 if test "$CPU_COUNT" -gt "0" 2>/dev
/null
; then :
16408 # Try platform-specific fallback methods
16409 # They can be less accurate and slower then preferred methods
16410 case $host_os in #(
16412 CPU_COUNT
=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT
="0" ;; #(
16414 CPU_COUNT
=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT
="0" ;; #(
16416 CPU_COUNT
=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT
="0" ;; #(
16418 CPU_COUNT
=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16419 CPU_COUNT
=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT
="0" ;; #(
16421 command -v kstat
>/dev
/null
2>&1 && CPU_COUNT
=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16422 CPU_COUNT
=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT
="0" ;; #(
16424 if CPU_COUNT
=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16427 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS"
16430 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS" ;; #(
16432 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS" ;; #(
16437 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev
/null
; then :
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
16439 $as_echo "$CPU_COUNT" >&6; }
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
16444 $as_echo "unable to detect (assuming 1)" >&6; }
16449 # Get target configury.
16450 .
${srcdir}/configure.tgt
16451 CFLAGS
="$save_CFLAGS $XCFLAGS"
16453 # Check for __sync_val_compare_and_swap, but only after the target has
16454 # had a chance to set XCFLAGS.
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16457 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16458 if ${libgomp_cv_have_sync_builtins+:} false
; then :
16459 $as_echo_n "(cached) " >&6
16462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16463 /* end confdefs.h. */
16468 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16473 if ac_fn_c_try_link
"$LINENO"; then :
16474 libgomp_cv_have_sync_builtins
=yes
16476 libgomp_cv_have_sync_builtins
=no
16478 rm -f core conftest.err conftest.
$ac_objext \
16479 conftest
$ac_exeext conftest.
$ac_ext
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16482 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16483 if test $libgomp_cv_have_sync_builtins = yes; then
16485 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16489 XCFLAGS
="$XCFLAGS$XPCFLAGS"
16491 # Add CET specific flags if CET is enabled
16492 # Check whether --enable-cet was given.
16493 if test "${enable_cet+set}" = set; then :
16494 enableval
=$enable_cet;
16495 case "$enableval" in
16497 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16506 $as_echo_n "checking for CET support... " >&6; }
16508 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
16510 i
[34567]86-*-linux* | x86_64-
*-linux*)
16511 case "$enable_cet" in
16513 # Check if target supports multi-byte NOPs
16514 # and if compiler and assembler support CET insn.
16515 cet_save_CFLAGS
="$CFLAGS"
16516 CFLAGS
="$CFLAGS -fcf-protection"
16517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16518 /* end confdefs.h. */
16524 #if !defined(__SSE2__)
16525 #error target does not support multi-byte NOPs
16534 if ac_fn_c_try_compile
"$LINENO"; then :
16539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16540 CFLAGS
="$cet_save_CFLAGS"
16543 # Check if assembler supports CET.
16544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h. */
16555 if ac_fn_c_try_compile
"$LINENO"; then :
16558 as_fn_error $?
"assembler with CET support is required for --enable-cet" "$LINENO" 5
16560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16568 if test x
$enable_cet = xyes
; then
16569 CET_FLAGS
="-fcf-protection -mshstk"
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16571 $as_echo "yes" >&6; }
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16574 $as_echo "no" >&6; }
16577 XCFLAGS
="$XCFLAGS $CET_FLAGS"
16578 FCFLAGS
="$FCFLAGS $CET_FLAGS"
16584 # Conditionalize the makefile for this target machine.
16586 for f
in ${tmake_file}
16588 if test -f ${srcdir}/config
/$f
16590 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
16593 tmake_file
="${tmake_file_}"
16596 # Cleanup and exit.
16597 CFLAGS
="$save_CFLAGS"
16598 cat >confcache
<<\_ACEOF
16599 # This file is a shell script that caches the results of configure
16600 # tests run on this system so they can be shared between configure
16601 # scripts and configure runs, see configure's option --config-cache.
16602 # It is not useful on other systems. If it contains results you don't
16603 # want to keep, you may remove or edit it.
16605 # config.status only pays attention to the cache file if you give it
16606 # the --recheck option to rerun configure.
16608 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16609 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16610 # following values.
16614 # The following way of writing the cache mishandles newlines in values,
16615 # but we know of no workaround that is simple, portable, and efficient.
16616 # So, we kill variables containing newlines.
16617 # Ultrix sh set writes to stderr and can't be redirected directly,
16618 # and sets the high bit in the cache file unless we assign to the vars.
16620 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16621 eval ac_val
=\$
$ac_var
16625 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16626 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16629 _ | IFS | as_nl
) ;; #(
16630 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16631 *) { eval $ac_var=; unset $ac_var;} ;;
16637 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16638 *${as_nl}ac_space
=\
*)
16639 # `set' does not quote correctly, so add quotes: double-quote
16640 # substitution turns \\\\ into \\, and sed turns \\ into \.
16643 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16646 # `set' quotes correctly as required by POSIX, so do not add quotes.
16647 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16656 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16658 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16660 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16661 if test -w "$cache_file"; then
16662 if test "x$cache_file" != "x/dev/null"; then
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16664 $as_echo "$as_me: updating cache $cache_file" >&6;}
16665 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16666 cat confcache
>"$cache_file"
16668 case $cache_file in #(
16670 mv -f confcache
"$cache_file"$$
&&
16671 mv -f "$cache_file"$$
"$cache_file" ;; #(
16673 mv -f confcache
"$cache_file" ;;
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16679 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16684 if test ${multilib} = yes; then
16685 multilib_arg
="--enable-multilib"
16690 # Set up the set of libraries that we need to link against for libgomp.
16691 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16692 # which will force linkage against -lpthread (or equivalent for the system).
16693 # That's not 100% ideal, but about the best we can do easily.
16694 if test $enable_shared = yes; then
16695 link_gomp
="-lgomp %{static: $LIBS}"
16697 link_gomp
="-lgomp $LIBS"
16701 if test "$ac_cv_fc_compiler_gnu" = yes; then
16703 USE_FORTRAN_FALSE
='#'
16705 USE_FORTRAN_TRUE
='#'
16710 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16711 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16712 # the underscore here and update the PREREQ. If it doesn't, then we'll
16713 # need to copy this macro to our acinclude.m4.
16714 save_CFLAGS
="$CFLAGS"
16715 for i
in $config_path; do
16716 if test -f $srcdir/config
/$i/omp-lock.h
; then
16717 CFLAGS
="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16722 if ac_fn_c_compute_int
"$LINENO" "sizeof (__INTPTR_TYPE__)" "INTPTR_T_KIND" ""; then :
16727 if ac_fn_c_compute_int
"$LINENO" "sizeof (__int128)" "OMP_INT128_SIZE" ""; then :
16734 if ac_fn_c_compute_int
"$LINENO" "2*sizeof (__INTPTR_TYPE__)" "OMP_DEPEND_KIND" ""; then :
16741 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16744 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16748 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16753 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16758 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16763 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16766 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16770 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16775 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16780 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16786 # If the lock fits in an integer, then arrange for Fortran to use that
16787 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16788 # Except that we don't have a way at present to multi-lib the installed
16789 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16791 OMP_LOCK_KIND
=$OMP_LOCK_SIZE
16792 OMP_NEST_LOCK_KIND
=$OMP_NEST_LOCK_SIZE
16793 if test $OMP_LOCK_SIZE -gt 8 ||
test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16796 if test $OMP_NEST_LOCK_SIZE -gt 8 ||
test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16797 OMP_NEST_LOCK_KIND
=8
16799 OMP_LOCK_25_KIND
=$OMP_LOCK_25_SIZE
16800 OMP_NEST_LOCK_25_KIND
=$OMP_NEST_LOCK_25_SIZE
16801 if test $OMP_LOCK_25_SIZE -gt 8 ||
test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16804 if test $OMP_NEST_LOCK_25_SIZE -gt 8 ||
test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16805 OMP_NEST_LOCK_25_KIND
=8
16807 if test "$ac_cv_fc_compiler_gnu" = yes; then
16808 if test $OMP_DEPEND_KIND -eq 16; then
16809 if test $OMP_INT128_SIZE -ne 16; then
16810 as_fn_error $?
"unsupported system, cannot find Fortran int kind=16, needed for omp_depend_kind" "$LINENO" 5
16813 if test $OMP_DEPEND_KIND -ne 8; then
16814 as_fn_error $?
"unsupported system, cannot find Fortran integer kind for omp_depend_kind" "$LINENO" 5
16833 CFLAGS
="$save_CFLAGS"
16835 # Determine what GCC version number to use in filesystem paths.
16837 get_gcc_base_ver
="cat"
16839 # Check whether --with-gcc-major-version-only was given.
16840 if test "${with_gcc_major_version_only+set}" = set; then :
16841 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
16842 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
16850 ac_config_files
="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16852 ac_config_files
="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16854 ac_config_files
="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16856 ac_config_files
="$ac_config_files testsuite/libgomp-site-extra.exp"
16858 cat >confcache
<<\_ACEOF
16859 # This file is a shell script that caches the results of configure
16860 # tests run on this system so they can be shared between configure
16861 # scripts and configure runs, see configure's option --config-cache.
16862 # It is not useful on other systems. If it contains results you don't
16863 # want to keep, you may remove or edit it.
16865 # config.status only pays attention to the cache file if you give it
16866 # the --recheck option to rerun configure.
16868 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16869 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16870 # following values.
16874 # The following way of writing the cache mishandles newlines in values,
16875 # but we know of no workaround that is simple, portable, and efficient.
16876 # So, we kill variables containing newlines.
16877 # Ultrix sh set writes to stderr and can't be redirected directly,
16878 # and sets the high bit in the cache file unless we assign to the vars.
16880 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16881 eval ac_val
=\$
$ac_var
16885 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16886 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16889 _ | IFS | as_nl
) ;; #(
16890 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16891 *) { eval $ac_var=; unset $ac_var;} ;;
16897 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16898 *${as_nl}ac_space
=\
*)
16899 # `set' does not quote correctly, so add quotes: double-quote
16900 # substitution turns \\\\ into \\, and sed turns \\ into \.
16903 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16906 # `set' quotes correctly as required by POSIX, so do not add quotes.
16907 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16916 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16918 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16920 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16921 if test -w "$cache_file"; then
16922 if test "x$cache_file" != "x/dev/null"; then
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16924 $as_echo "$as_me: updating cache $cache_file" >&6;}
16925 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16926 cat confcache
>"$cache_file"
16928 case $cache_file in #(
16930 mv -f confcache
"$cache_file"$$
&&
16931 mv -f "$cache_file"$$
"$cache_file" ;; #(
16933 mv -f confcache
"$cache_file" ;;
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16939 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16944 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16945 # Let make expand exec_prefix.
16946 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16948 DEFS
=-DHAVE_CONFIG_H
16953 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16954 # 1. Remove the extension, and $U if already installed.
16955 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16956 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16957 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16958 # will be set to the directory where LIBOBJS objects are built.
16959 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16960 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16962 LIBOBJS
=$ac_libobjs
16964 LTLIBOBJS
=$ac_ltlibobjs
16967 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16968 as_fn_error $?
"conditional \"GENINSRC\" was never defined.
16969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16972 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16973 if test -n "$am_sleep_pid"; then
16974 # Hide warnings about reused PIDs.
16975 wait $am_sleep_pid 2>/dev
/null
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16978 $as_echo "done" >&6; }
16979 if test -n "$EXEEXT"; then
16981 am__EXEEXT_FALSE
='#'
16983 am__EXEEXT_TRUE
='#'
16987 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16988 as_fn_error $?
"conditional \"AMDEP\" was never defined.
16989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16991 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16992 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
16993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16995 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16996 as_fn_error $?
"conditional \"BUILD_INFO\" was never defined.
16997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16999 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17000 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17003 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17004 as_fn_error $?
"conditional \"PLUGIN_NVPTX\" was never defined.
17005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17007 if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then
17008 as_fn_error $?
"conditional \"PLUGIN_GCN\" was never defined.
17009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17011 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17012 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17015 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17016 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17019 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17020 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17023 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17024 as_fn_error $?
"conditional \"USE_FORTRAN\" was never defined.
17025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17028 : "${CONFIG_STATUS=./config.status}"
17030 ac_clean_files_save
=$ac_clean_files
17031 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17033 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17035 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17037 # Generated by $as_me.
17038 # Run this file to recreate the current configuration.
17039 # Compiler output produced by configure, useful for debugging
17040 # configure, is in config.log if it exists.
17043 ac_cs_recheck=false
17046 SHELL=\${CONFIG_SHELL-$SHELL}
17049 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17050 ## -------------------- ##
17051 ## M4sh Initialization. ##
17052 ## -------------------- ##
17054 # Be more Bourne compatible
17055 DUALCASE
=1; export DUALCASE
# for MKS sh
17056 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17059 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17060 # is contrary to our usage. Disable this feature.
17061 alias -g '${1+"$@"}'='"$@"'
17062 setopt NO_GLOB_SUBST
17064 case `(set -o) 2>/dev/null` in #(
17076 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17077 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17078 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17079 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17080 # Prefer a ksh shell builtin over an external printf program on Solaris,
17081 # but without wasting forks for bash or zsh.
17082 if test -z "$BASH_VERSION$ZSH_VERSION" \
17083 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17084 as_echo='print
-r --'
17085 as_echo_n='print
-rn --'
17086 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17087 as_echo='printf %s
\n'
17088 as_echo_n='printf %s
'
17090 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17091 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17092 as_echo_n='/usr
/ucb
/echo -n'
17094 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17095 as_echo_n_body='eval
17099 expr "X$arg" : "X\\(.*\\)$as_nl";
17100 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17102 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17104 export as_echo_n_body
17105 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17107 export as_echo_body
17108 as_echo='sh
-c $as_echo_body as_echo
'
17111 # The user is always right.
17112 if test "${PATH_SEPARATOR+set}" != set; then
17114 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17115 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17122 # We need space, tab and new line, in precisely that order. Quoting is
17123 # there to prevent editors from complaining about space-tab.
17124 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17125 # splitting by setting IFS to empty value.)
17128 # Find who we are. Look in the path if we contain no directory separator.
17131 *[\\/]* ) as_myself=$0 ;;
17132 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17133 for as_dir in $PATH
17136 test -z "$as_dir" && as_dir=.
17137 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17143 # We did not find ourselves, most probably we were run as `sh COMMAND'
17144 # in which case we are not to be found in the path.
17145 if test "x$as_myself" = x
; then
17148 if test ! -f "$as_myself"; then
17149 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17153 # Unset variables that we do not need and which cause bugs (e.g. in
17154 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17155 # suppresses any "Segmentation fault" message there. '((' could
17156 # trigger a bug in pdksh 5.2.14.
17157 for as_var
in BASH_ENV ENV MAIL MAILPATH
17158 do eval test x\
${$as_var+set} = xset \
17159 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17172 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17175 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17176 # ----------------------------------------
17177 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17178 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17179 # script with STATUS, using 1 if that was 0.
17182 as_status
=$1; test $as_status -eq 0 && as_status
=1
17184 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17185 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17187 $as_echo "$as_me: error: $2" >&2
17188 as_fn_exit
$as_status
17192 # as_fn_set_status STATUS
17193 # -----------------------
17194 # Set $? to STATUS, without forking.
17195 as_fn_set_status
()
17198 } # as_fn_set_status
17200 # as_fn_exit STATUS
17201 # -----------------
17202 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17206 as_fn_set_status
$1
17212 # Portably unset VAR.
17215 { eval $1=; unset $1;}
17217 as_unset
=as_fn_unset
17218 # as_fn_append VAR VALUE
17219 # ----------------------
17220 # Append the text in VALUE to the end of the definition contained in VAR. Take
17221 # advantage of any shell optimizations that allow amortized linear growth over
17222 # repeated appends, instead of the typical quadratic growth present in naive
17224 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17225 eval 'as_fn_append ()
17236 # as_fn_arith ARG...
17237 # ------------------
17238 # Perform arithmetic evaluation on the ARGs, and store the result in the
17239 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17240 # must be portable across $(()) and expr.
17241 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17242 eval 'as_fn_arith ()
17249 as_val
=`expr "$@" || test $? -eq 1`
17254 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17255 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17261 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17262 as_basename
=basename
17267 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17273 as_me
=`$as_basename -- "$0" ||
17274 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17275 X"$0" : 'X\(//\)$' \| \
17276 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17278 sed '/^.*\/\([^/][^/]*\)\/*$/{
17292 # Avoid depending upon Character Ranges.
17293 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17294 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17295 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17296 as_cr_digits
='0123456789'
17297 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17299 ECHO_C
= ECHO_N
= ECHO_T
=
17300 case `echo -n x` in #(((((
17302 case `echo 'xy\c'` in
17303 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17305 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17312 rm -f conf$$ conf$$.exe conf$$.
file
17313 if test -d conf$$.dir
; then
17314 rm -f conf$$.dir
/conf$$.
file
17317 mkdir conf$$.dir
2>/dev
/null
17319 if (echo >conf$$.
file) 2>/dev
/null
; then
17320 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17322 # ... but there are two gotchas:
17323 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17324 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17325 # In both cases, we have to default to `cp -pR'.
17326 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17328 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17336 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17337 rmdir conf$$.dir
2>/dev
/null
17342 # Create "$as_dir" as a directory, including parents if necessary.
17347 -*) as_dir
=.
/$as_dir;;
17349 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17353 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17354 *) as_qdir
=$as_dir;;
17356 as_dirs
="'$as_qdir' $as_dirs"
17357 as_dir
=`$as_dirname -- "$as_dir" ||
17358 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17359 X"$as_dir" : 'X\(//\)[^/]' \| \
17360 X"$as_dir" : 'X\(//\)$' \| \
17361 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17362 $as_echo X"$as_dir" |
17363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17367 /^X\(\/\/\)[^/].*/{
17380 test -d "$as_dir" && break
17382 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17383 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17387 if mkdir
-p .
2>/dev
/null
; then
17388 as_mkdir_p
='mkdir -p "$as_dir"'
17390 test -d .
/-p && rmdir .
/-p
17395 # as_fn_executable_p FILE
17396 # -----------------------
17397 # Test if FILE is an executable regular file.
17398 as_fn_executable_p
()
17400 test -f "$1" && test -x "$1"
17401 } # as_fn_executable_p
17402 as_test_x
='test -x'
17403 as_executable_p
=as_fn_executable_p
17405 # Sed expression to map a string onto a valid CPP name.
17406 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17408 # Sed expression to map a string onto a valid variable name.
17409 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17413 ## ----------------------------------- ##
17414 ## Main body of $CONFIG_STATUS script. ##
17415 ## ----------------------------------- ##
17417 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17420 # Save the log message, to keep $0 and so on meaningful, and to
17421 # report actual input values of CONFIG_FILES etc. instead of their
17422 # values after options handling.
17424 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17425 generated by GNU Autoconf 2.69. Invocation command line was
17427 CONFIG_FILES = $CONFIG_FILES
17428 CONFIG_HEADERS = $CONFIG_HEADERS
17429 CONFIG_LINKS = $CONFIG_LINKS
17430 CONFIG_COMMANDS = $CONFIG_COMMANDS
17433 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17438 case $ac_config_files in *"
17439 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17442 case $ac_config_headers in *"
17443 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17448 # Files that config.status was made for.
17449 config_files="$ac_config_files"
17450 config_headers="$ac_config_headers"
17451 config_commands="$ac_config_commands"
17455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17457 \`$as_me' instantiates files and other configuration actions
17458 from templates according to the current configuration. Unless the files
17459 and actions are specified as TAGs, all are instantiated by default.
17461 Usage: $0 [OPTION]... [TAG]...
17463 -h, --help print this help, then exit
17464 -V, --version print version number and configuration settings, then exit
17465 --config print configuration, then exit
17466 -q, --quiet, --silent
17467 do not print progress messages
17468 -d, --debug don't remove temporary files
17469 --recheck update $as_me by reconfiguring in the same conditions
17470 --file=FILE[:TEMPLATE]
17471 instantiate the configuration file FILE
17472 --header=FILE[:TEMPLATE]
17473 instantiate the configuration header FILE
17475 Configuration files:
17478 Configuration headers:
17481 Configuration commands:
17484 Report bugs to the package provider.
17485 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17486 General help using GNU software: <http://www.gnu.org/gethelp/>."
17489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17490 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17492 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17493 configured by $0, generated by GNU Autoconf 2.69,
17494 with options \\"\$ac_cs_config\\"
17496 Copyright (C) 2012 Free Software Foundation, Inc.
17497 This config.status script is free software; the Free Software Foundation
17498 gives unlimited permission to copy, distribute and modify it."
17505 test -n "\$AWK" || AWK=awk
17508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17509 # The default lists apply if the user does not specify any file.
17515 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17516 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17520 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17532 # Handling of the options.
17533 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17535 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17536 $as_echo "$ac_cs_version"; exit ;;
17537 --config |
--confi |
--conf |
--con |
--co |
--c )
17538 $as_echo "$ac_cs_config"; exit ;;
17539 --debug |
--debu |
--deb |
--de |
--d |
-d )
17541 --file |
--fil |
--fi |
--f )
17544 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17545 '') as_fn_error $?
"missing file argument" ;;
17547 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17548 ac_need_defaults
=false
;;
17549 --header |
--heade |
--head |
--hea )
17552 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17554 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17555 ac_need_defaults
=false
;;
17557 # Conflict between --help and --header
17558 as_fn_error $?
"ambiguous option: \`$1'
17559 Try \`$0 --help' for more information.";;
17560 --help |
--hel |
-h )
17561 $as_echo "$ac_cs_usage"; exit ;;
17562 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17563 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17566 # This is an error.
17567 -*) as_fn_error $?
"unrecognized option: \`$1'
17568 Try \`$0 --help' for more information." ;;
17570 *) as_fn_append ac_config_targets
" $1"
17571 ac_need_defaults
=false
;;
17577 ac_configure_extra_args
=
17579 if $ac_cs_silent; then
17581 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17586 if \$ac_cs_recheck; then
17587 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17589 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17590 CONFIG_SHELL='$SHELL'
17591 export CONFIG_SHELL
17596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17600 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17601 ## Running $as_me. ##
17607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17615 with_multisubdir="$with_multisubdir"
17616 with_multisrctop="$with_multisrctop"
17617 with_target_subdir="$with_target_subdir"
17618 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17619 multi_basedir="$multi_basedir"
17620 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17623 GFORTRAN="$GFORTRAN"
17625 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17628 # The HP-UX ksh and POSIX shell print the target directory to stdout
17629 # if CDPATH is set.
17630 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17632 sed_quote_subst='$sed_quote_subst'
17633 double_quote_subst='$double_quote_subst'
17634 delay_variable_subst='$delay_variable_subst'
17635 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17636 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17637 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17638 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17639 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17640 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17641 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17642 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17643 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17644 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17645 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17646 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17647 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17648 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17649 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17650 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17651 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17652 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17653 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17654 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17655 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17656 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17657 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17658 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17659 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17660 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17661 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17662 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17663 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17664 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17665 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17666 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17667 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17668 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17669 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17670 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17671 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17672 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17673 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17674 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17675 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17676 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17677 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17678 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17679 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17680 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17681 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17682 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17683 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"`'
17684 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17685 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17686 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17687 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17688 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17689 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17690 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17691 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17692 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17693 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17694 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17695 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17696 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17697 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17698 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17699 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17700 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17701 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17702 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17703 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17704 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17705 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17706 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17707 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17708 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17709 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17710 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17711 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17712 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17713 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17714 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17715 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17716 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17717 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17718 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17719 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17720 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17721 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17722 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17723 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17724 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17725 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17726 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17727 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17728 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17729 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17730 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17731 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17732 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17733 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17734 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17735 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17736 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17737 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17738 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17739 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17740 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17741 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17742 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17743 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17744 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17745 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17746 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17747 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17748 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17749 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17750 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17751 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17752 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17753 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17754 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17755 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17756 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17757 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17758 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17759 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17760 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17761 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17762 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17763 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17764 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17765 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17766 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17767 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17768 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17769 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17770 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17771 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17772 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17773 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17774 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17775 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17776 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17777 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17778 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17779 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17780 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17781 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17782 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17783 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17784 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17785 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17786 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17787 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17788 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17789 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17790 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17791 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17792 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17793 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17794 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17795 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17796 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17797 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17798 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17799 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17800 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17801 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17802 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17803 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17804 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17805 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17806 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17807 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17808 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17809 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17812 LTCFLAGS='$LTCFLAGS'
17813 compiler='$compiler_DEFAULT'
17815 # A function that is used when there is no print builtin or printf.
17816 func_fallback_echo ()
17818 eval 'cat <<_LTECHO_EOF
17823 # Quote evaled strings.
17837 deplibs_check_method \
17846 lt_cv_sys_global_symbol_pipe \
17847 lt_cv_sys_global_symbol_to_cdecl \
17848 lt_cv_sys_global_symbol_to_c_name_address \
17849 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17850 lt_prog_compiler_no_builtin_flag \
17851 lt_prog_compiler_wl \
17852 lt_prog_compiler_pic \
17853 lt_prog_compiler_static \
17854 lt_cv_prog_compiler_c_o \
17862 export_dynamic_flag_spec \
17863 whole_archive_flag_spec \
17864 compiler_needs_object \
17866 allow_undefined_flag \
17867 no_undefined_flag \
17868 hardcode_libdir_flag_spec \
17869 hardcode_libdir_flag_spec_ld \
17870 hardcode_libdir_separator \
17875 variables_saved_for_relink \
17877 library_names_spec \
17879 install_override_mode \
17883 compiler_lib_search_dirs \
17888 compiler_lib_search_path \
17892 lt_prog_compiler_no_builtin_flag_FC \
17893 lt_prog_compiler_wl_FC \
17894 lt_prog_compiler_pic_FC \
17895 lt_prog_compiler_static_FC \
17896 lt_cv_prog_compiler_c_o_FC \
17897 export_dynamic_flag_spec_FC \
17898 whole_archive_flag_spec_FC \
17899 compiler_needs_object_FC \
17901 allow_undefined_flag_FC \
17902 no_undefined_flag_FC \
17903 hardcode_libdir_flag_spec_FC \
17904 hardcode_libdir_flag_spec_ld_FC \
17905 hardcode_libdir_separator_FC \
17906 fix_srcfile_path_FC \
17907 exclude_expsyms_FC \
17908 include_expsyms_FC \
17909 file_list_spec_FC \
17910 compiler_lib_search_dirs_FC \
17911 predep_objects_FC \
17912 postdep_objects_FC \
17915 compiler_lib_search_path_FC; do
17916 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17917 *[\\\\\\\`\\"\\\$]*)
17918 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17921 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17926 # Double-quote double-evaled strings.
17927 for var in reload_cmds \
17928 old_postinstall_cmds \
17929 old_postuninstall_cmds \
17931 extract_expsyms_cmds \
17932 old_archive_from_new_cmds \
17933 old_archive_from_expsyms_cmds \
17935 archive_expsym_cmds \
17937 module_expsym_cmds \
17938 export_symbols_cmds \
17941 postuninstall_cmds \
17943 sys_lib_search_path_spec \
17944 sys_lib_dlsearch_path_spec \
17946 old_archive_cmds_FC \
17947 old_archive_from_new_cmds_FC \
17948 old_archive_from_expsyms_cmds_FC \
17950 archive_expsym_cmds_FC \
17952 module_expsym_cmds_FC \
17953 export_symbols_cmds_FC \
17954 prelink_cmds_FC; do
17955 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17956 *[\\\\\\\`\\"\\\$]*)
17957 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17960 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17965 ac_aux_dir='$ac_aux_dir'
17966 xsi_shell='$xsi_shell'
17967 lt_shell_append='$lt_shell_append'
17969 # See if we are running on zsh, and set the options which allow our
17970 # commands through without removal of \ escapes INIT.
17971 if test -n "\${ZSH_VERSION+set}" ; then
17972 setopt NO_GLOB_SUBST
17978 TIMESTAMP='$TIMESTAMP'
17989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17991 # Handling of arguments.
17992 for ac_config_target
in $ac_config_targets
17994 case $ac_config_target in
17995 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
17996 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17997 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17998 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17999 "omp.h") CONFIG_FILES
="$CONFIG_FILES omp.h" ;;
18000 "omp_lib.h") CONFIG_FILES
="$CONFIG_FILES omp_lib.h" ;;
18001 "omp_lib.f90") CONFIG_FILES
="$CONFIG_FILES omp_lib.f90" ;;
18002 "libgomp_f.h") CONFIG_FILES
="$CONFIG_FILES libgomp_f.h" ;;
18003 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18004 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
18005 "libgomp.spec") CONFIG_FILES
="$CONFIG_FILES libgomp.spec" ;;
18006 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18007 "testsuite/libgomp-site-extra.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;;
18009 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18014 # If the user did not use the arguments to specify the items to instantiate,
18015 # then the envvar interface is used. Set only those that are not.
18016 # We use the long form for the default assignment because of an extremely
18017 # bizarre bug on SunOS 4.1.3.
18018 if $ac_need_defaults; then
18019 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18020 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18021 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18024 # Have a temporary directory for convenience. Make it in the build tree
18025 # simply because there is no reason against having it here, and in addition,
18026 # creating and moving files from /tmp can sometimes cause problems.
18027 # Hook for its removal unless debugging.
18028 # Note that there is a small window in which the directory will not be cleaned:
18029 # after its creation but before its name has been assigned to `$tmp'.
18033 trap 'exit_status=$?
18034 : "${ac_tmp:=$tmp}"
18035 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18037 trap 'as_fn_exit 1' 1 2 13 15
18039 # Create a (secure) tmp directory for tmp files.
18042 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18046 tmp
=.
/conf$$
-$RANDOM
18047 (umask 077 && mkdir
"$tmp")
18048 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18051 # Set up the scripts for CONFIG_FILES section.
18052 # No need to generate them if there are no CONFIG_FILES.
18053 # This happens for instance with `./config.status config.h'.
18054 if test -n "$CONFIG_FILES"; then
18057 ac_cr
=`echo X | tr X '\015'`
18058 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18059 # But we know of no other shell where ac_cr would be empty at this
18060 # point, so we can use a bashism as a fallback.
18061 if test "x$ac_cr" = x
; then
18062 eval ac_cr
=\$
\'\\r
\'
18064 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18065 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18068 ac_cs_awk_cr
=$ac_cr
18071 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18076 echo "cat >conf$$subs.awk <<_ACEOF" &&
18077 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18079 } >conf$$subs.sh ||
18080 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18081 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18083 for ac_last_try in false false false false false :; do
18084 . ./conf$$subs.sh ||
18085 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18087 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18088 if test $ac_delim_n = $ac_delim_num; then
18090 elif $ac_last_try; then
18091 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18093 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18096 rm -f conf$$subs.sh
18098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18099 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18103 s/^/S["/; s
/!.
*/"]=/
18113 s/\(.\{148\}\)..*/\1/
18115 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18120 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18127 s/\(.\{148\}\)..*/\1/
18129 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18133 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18138 ' <conf$$subs.awk | sed '
18143 ' >>$CONFIG_STATUS || ac_write_fail=1
18144 rm -f conf$$subs.awk
18145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18147 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18148 for (key in S) S_is_set[key] = 1
18154 nfields = split(line, field, "@
")
18156 len = length(field[1])
18157 for (i = 2; i < nfields; i++) {
18159 keylen = length(key)
18160 if (S_is_set[key]) {
18162 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18163 len += length(value) + length(field[++i])
18174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18175 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18176 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18179 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18180 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18183 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18184 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18185 # trailing colons and then remove the whole line if VPATH becomes empty
18186 # (actually we leave an empty line to preserve line numbers).
18187 if test "x
$srcdir" = x.; then
18188 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18207 fi # test -n "$CONFIG_FILES"
18209 # Set up the scripts for CONFIG_HEADERS section.
18210 # No need to generate them if there are no CONFIG_HEADERS.
18211 # This happens for instance with `./config.status Makefile'.
18212 if test -n "$CONFIG_HEADERS"; then
18213 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18217 # Transform confdefs.h into an awk script `defines.awk', embedded as
18218 # here-document in config.status, that substitutes the proper values into
18219 # config.h.in to produce config.h.
18221 # Create a delimiter string that does not exist in confdefs.h, to ease
18222 # handling of long lines.
18224 for ac_last_try in false false :; do
18225 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18226 if test -z "$ac_tt"; then
18228 elif $ac_last_try; then
18229 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18231 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18235 # For the awk script, D is an array of macro values keyed by name,
18236 # likewise P contains macro parameters if any. Preserve backslash
18237 # newline sequences.
18239 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18241 s/.\{148\}/&'"$ac_delim"'/g
18244 s/^[ ]*#[ ]*define[ ][ ]*/ /
18251 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18253 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18257 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18258 D["\
1"]=" \
3\\\\\\n
"\\/p
18260 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18265 s/.\{148\}/&'"$ac_delim"'/g
18270 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18273 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18275 ' <confdefs.h | sed '
18276 s/'"$ac_delim"'/"\\\
18277 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18280 for (key in D) D_is_set[key] = 1
18283 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18285 split(line, arg, " ")
18286 if (arg[1] == "#") {
18290 defundef
= substr
(arg
[1], 2)
18293 split(mac1
, mac2
, "(") #)
18295 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18296 if (D_is_set
[macro
]) {
18297 # Preserve the white space surrounding the "#".
18298 print prefix
"define", macro P
[macro
] D
[macro
]
18301 # Replace #undef with comments. This is necessary, for example,
18302 # in the case of _POSIX_SOURCE, which is predefined and required
18303 # on some systems where configure will not decide to define it.
18304 if (defundef
== "undef") {
18305 print
"/*", prefix defundef
, macro
, "*/"
18313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18314 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18315 fi # test -n "$CONFIG_HEADERS"
18318 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18323 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18325 case $ac_mode$ac_tag in
18327 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18328 :[FH
]-) ac_tag
=-:-;;
18329 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18346 -) ac_f
="$ac_tmp/stdin";;
18347 *) # Look for the file first in the build tree, then in the source tree
18348 # (if the path is not absolute). The absolute path cannot be DOS-style,
18349 # because $ac_f cannot contain `:'.
18353 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18355 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18357 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18358 as_fn_append ac_file_inputs
" '$ac_f'"
18361 # Let's still pretend it is `configure' which instantiates (i.e., don't
18362 # use $as_me), people would be surprised to read:
18363 # /* config.h. Generated by config.status. */
18364 configure_input
='Generated from '`
18365 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18367 if test x
"$ac_file" != x-
; then
18368 configure_input
="$ac_file. $configure_input"
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18370 $as_echo "$as_me: creating $ac_file" >&6;}
18372 # Neutralize special characters interpreted by sed in replacement strings.
18373 case $configure_input in #(
18374 *\
&* |
*\|
* |
*\\* )
18375 ac_sed_conf_input
=`$as_echo "$configure_input" |
18376 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18377 *) ac_sed_conf_input
=$configure_input;;
18381 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18382 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18387 ac_dir
=`$as_dirname -- "$ac_file" ||
18388 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18389 X"$ac_file" : 'X\(//\)[^/]' \| \
18390 X"$ac_file" : 'X\(//\)$' \| \
18391 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18392 $as_echo X"$ac_file" |
18393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18397 /^X\(\/\/\)[^/].*/{
18410 as_dir
="$ac_dir"; as_fn_mkdir_p
18414 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18416 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18417 # A ".." for each directory in $ac_dir_suffix.
18418 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18419 case $ac_top_builddir_sub in
18420 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18421 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18424 ac_abs_top_builddir
=$ac_pwd
18425 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18426 # for backward compatibility:
18427 ac_top_builddir
=$ac_top_build_prefix
18430 .
) # We are building in place.
18432 ac_top_srcdir
=$ac_top_builddir_sub
18433 ac_abs_top_srcdir
=$ac_pwd ;;
18434 [\\/]* | ?
:[\\/]* ) # Absolute name.
18435 ac_srcdir
=$srcdir$ac_dir_suffix;
18436 ac_top_srcdir
=$srcdir
18437 ac_abs_top_srcdir
=$srcdir ;;
18438 *) # Relative name.
18439 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18440 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18441 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18443 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18453 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18454 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18456 ac_MKDIR_P
=$MKDIR_P
18458 [\\/$
]* | ?
:[\\/]* ) ;;
18459 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18464 # If the template does not know about datarootdir, expand it.
18465 # FIXME: This hack should be removed a few years after 2.60.
18466 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18477 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18478 *datarootdir
*) ac_datarootdir_seen
=yes;;
18479 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18481 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18484 ac_datarootdir_hack='
18485 s&@datadir@&$datadir&g
18486 s&@docdir@&$docdir&g
18487 s&@infodir@&$infodir&g
18488 s&@localedir@&$localedir&g
18489 s&@mandir@&$mandir&g
18490 s&\\\${datarootdir}&$datarootdir&g' ;;
18494 # Neutralize VPATH when `$srcdir' = `.'.
18495 # Shell code in configure.ac might set extrasub.
18496 # FIXME: do we really want to maintain this feature?
18497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18498 ac_sed_extra="$ac_vpsub
18501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18503 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18504 s|@configure_input@|
$ac_sed_conf_input|
;t t
18505 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18506 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18507 s
&@srcdir@
&$ac_srcdir&;t t
18508 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18509 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18510 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18511 s
&@builddir@
&$ac_builddir&;t t
18512 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18513 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18514 s
&@INSTALL@
&$ac_INSTALL&;t t
18515 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18516 $ac_datarootdir_hack
18518 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
18519 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18521 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18522 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18523 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18524 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18526 which seems to be undefined. Please make sure it is defined" >&5
18527 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18528 which seems to be undefined. Please make sure it is defined" >&2;}
18530 rm -f "$ac_tmp/stdin"
18532 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18533 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18535 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18541 if test x"$ac_file" != x-; then
18543 $as_echo "/* $configure_input */" \
18544 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18545 } >"$ac_tmp/config.h" \
18546 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18547 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18549 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18552 mv "$ac_tmp/config.h" "$ac_file" \
18553 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18556 $as_echo "/* $configure_input */" \
18557 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18558 || as_fn_error $? "could not create -" "$LINENO" 5
18560 # Compute "$ac_file"'s index
in $config_headers.
18563 for _am_header
in $config_headers :; do
18564 case $_am_header in
18565 $_am_arg |
$_am_arg:* )
18568 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18571 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18572 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18573 X"$_am_arg" : 'X\(//\)[^/]' \| \
18574 X"$_am_arg" : 'X\(//\)$' \| \
18575 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18576 $as_echo X"$_am_arg" |
18577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18581 /^X\(\/\/\)[^/].*/{
18593 s/.*/./; q'`/stamp-h
$_am_stamp_count
18596 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18597 $as_echo "$as_me: executing $ac_file commands" >&6;}
18602 case $ac_file$ac_mode in
18604 # Only add multilib support code if we just rebuilt the top-level
18606 case " $CONFIG_FILES " in
18608 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18611 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18612 # Older Autoconf quotes --file arguments for eval, but not when files
18613 # are listed without --file. Let's play safe and only enable the eval
18614 # if we detect the quoting.
18615 case $CONFIG_FILES in
18616 *\'*) eval set x
"$CONFIG_FILES" ;;
18617 *) set x
$CONFIG_FILES ;;
18622 # Strip MF so we end up with the name of the file.
18623 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18624 # Check whether this is an Automake generated Makefile or not.
18625 # We used to match only the files named 'Makefile.in', but
18626 # some people rename them; so instead we look at the file content.
18627 # Grep'ing the first line is not enough: some people post-process
18628 # each Makefile.in and add a new line on top of each file to say so.
18629 # Grep'ing the whole file is not good either: AIX grep has a line
18630 # limit of 2048, but all sed's we know have understand at least 4000.
18631 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18632 dirpart
=`$as_dirname -- "$mf" ||
18633 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18634 X"$mf" : 'X\(//\)[^/]' \| \
18635 X"$mf" : 'X\(//\)$' \| \
18636 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18642 /^X\(\/\/\)[^/].*/{
18658 # Extract the definition of DEPDIR, am__include, and am__quote
18659 # from the Makefile without running 'make'.
18660 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18661 test -z "$DEPDIR" && continue
18662 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18663 test -z "$am__include" && continue
18664 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18665 # Find all dependency output files, they are included files with
18666 # $(DEPDIR) in their names. We invoke sed twice because it is the
18667 # simplest approach to changing $(DEPDIR) to its actual value in the
18669 for file in `sed -n "
18670 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18671 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18672 # Make sure the directory exists.
18673 test -f "$dirpart/$file" && continue
18674 fdir
=`$as_dirname -- "$file" ||
18675 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18676 X"$file" : 'X\(//\)[^/]' \| \
18677 X"$file" : 'X\(//\)$' \| \
18678 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18679 $as_echo X"$file" |
18680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18684 /^X\(\/\/\)[^/].*/{
18697 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18698 # echo "creating $dirpart/$file"
18699 echo '# dummy' > "$dirpart/$file"
18706 # See if we are running on zsh, and set the options which allow our
18707 # commands through without removal of \ escapes.
18708 if test -n "${ZSH_VERSION+set}" ; then
18709 setopt NO_GLOB_SUBST
18712 cfgfile
="${ofile}T"
18713 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18716 cat <<_LT_EOF >> "$cfgfile"
18719 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18720 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18721 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18722 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18724 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18725 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18726 # Written by Gordon Matzigkeit, 1996
18728 # This file is part of GNU Libtool.
18730 # GNU Libtool is free software; you can redistribute it and/or
18731 # modify it under the terms of the GNU General Public License as
18732 # published by the Free Software Foundation; either version 2 of
18733 # the License, or (at your option) any later version.
18735 # As a special exception to the GNU General Public License,
18736 # if you distribute this file as part of a program or library that
18737 # is built using GNU Libtool, you may include this file under the
18738 # same distribution terms that you use for the rest of that program.
18740 # GNU Libtool is distributed in the hope that it will be useful,
18741 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18742 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18743 # GNU General Public License for more details.
18745 # You should have received a copy of the GNU General Public License
18746 # along with GNU Libtool; see the file COPYING. If not, a copy
18747 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18748 # obtained by writing to the Free Software Foundation, Inc.,
18749 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18752 # The names of the tagged configurations supported by this script.
18753 available_tags="FC "
18755 # ### BEGIN LIBTOOL CONFIG
18757 # Which release of libtool.m4 was used?
18758 macro_version=$macro_version
18759 macro_revision=$macro_revision
18761 # Whether or not to build shared libraries.
18762 build_libtool_libs=$enable_shared
18764 # Whether or not to build static libraries.
18765 build_old_libs=$enable_static
18767 # What type of objects to build.
18770 # Whether or not to optimize for fast installation.
18771 fast_install=$enable_fast_install
18773 # Shell to use when invoking shell scripts.
18776 # An echo program that protects backslashes.
18780 host_alias=$host_alias
18784 # The build system.
18785 build_alias=$build_alias
18789 # A sed program that does not truncate output.
18792 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18793 Xsed="\$SED -e 1s/^X//"
18795 # A grep program that handles long lines.
18801 # A literal string matcher.
18804 # A BSD- or MS-compatible name lister.
18807 # Whether we need soft or hard links.
18810 # What is the maximum length of a command?
18811 max_cmd_len=$max_cmd_len
18813 # Object file suffix (normally "o").
18816 # Executable file suffix (normally "").
18819 # whether the shell understands "unset".
18822 # turn spaces into newlines.
18825 # turn newlines into spaces.
18828 # An object symbol dumper.
18829 OBJDUMP=$lt_OBJDUMP
18831 # Method to check whether dependent libraries are shared objects.
18832 deplibs_check_method=$lt_deplibs_check_method
18834 # Command to use when deplibs_check_method == "file_magic".
18835 file_magic_cmd=$lt_file_magic_cmd
18839 AR_FLAGS=$lt_AR_FLAGS
18841 # A symbol stripping program.
18844 # Commands used to install an old-style archive.
18846 old_postinstall_cmds=$lt_old_postinstall_cmds
18847 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18849 # Whether to use a lock for old archive extraction.
18850 lock_old_archive_extraction=$lock_old_archive_extraction
18855 # LTCC compiler flags.
18856 LTCFLAGS=$lt_CFLAGS
18858 # Take the output of nm and produce a listing of raw symbols and C names.
18859 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18861 # Transform the output of nm in a proper C declaration.
18862 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18864 # Transform the output of nm in a C name address pair.
18865 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18867 # Transform the output of nm in a C name address pair when lib prefix is needed.
18868 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18870 # The name of the directory that contains temporary libtool files.
18873 # Used to examine libraries when file_magic_cmd begins with "file".
18874 MAGIC_CMD=$MAGIC_CMD
18876 # Must we lock files when doing compilation?
18877 need_locks=$lt_need_locks
18879 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18880 DSYMUTIL=$lt_DSYMUTIL
18882 # Tool to change global to local symbols on Mac OS X.
18885 # Tool to manipulate fat objects and archives on Mac OS X.
18888 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18891 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18892 OTOOL64=$lt_OTOOL64
18894 # Old archive suffix (normally "a").
18897 # Shared library suffix (normally ".so").
18898 shrext_cmds=$lt_shrext_cmds
18900 # The commands to extract the exported symbol list from a shared archive.
18901 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18903 # Variables whose values should be saved in libtool wrapper scripts and
18904 # restored at link time.
18905 variables_saved_for_relink=$lt_variables_saved_for_relink
18907 # Do we need the "lib" prefix for modules?
18908 need_lib_prefix=$need_lib_prefix
18910 # Do we need a version for libraries?
18911 need_version=$need_version
18913 # Library versioning type.
18914 version_type=$version_type
18916 # Shared library runtime path variable.
18917 runpath_var=$runpath_var
18919 # Shared library path variable.
18920 shlibpath_var=$shlibpath_var
18922 # Is shlibpath searched before the hard-coded library search path?
18923 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18925 # Format of library name prefix.
18926 libname_spec=$lt_libname_spec
18928 # List of archive names. First name is the real one, the rest are links.
18929 # The last name is the one that the linker finds with -lNAME
18930 library_names_spec=$lt_library_names_spec
18932 # The coded name of the library, if different from the real name.
18933 soname_spec=$lt_soname_spec
18935 # Permission mode override for installation of shared libraries.
18936 install_override_mode=$lt_install_override_mode
18938 # Command to use after installation of a shared archive.
18939 postinstall_cmds=$lt_postinstall_cmds
18941 # Command to use after uninstallation of a shared archive.
18942 postuninstall_cmds=$lt_postuninstall_cmds
18944 # Commands used to finish a libtool library installation in a directory.
18945 finish_cmds=$lt_finish_cmds
18947 # As "finish_cmds", except a single script fragment to be evaled but
18949 finish_eval=$lt_finish_eval
18951 # Whether we should hardcode library paths into libraries.
18952 hardcode_into_libs=$hardcode_into_libs
18954 # Compile-time system search path for libraries.
18955 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18957 # Run-time system search path for libraries.
18958 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18960 # Whether dlopen is supported.
18961 dlopen_support=$enable_dlopen
18963 # Whether dlopen of programs is supported.
18964 dlopen_self=$enable_dlopen_self
18966 # Whether dlopen of statically linked programs is supported.
18967 dlopen_self_static=$enable_dlopen_self_static
18969 # Commands to strip libraries.
18970 old_striplib=$lt_old_striplib
18971 striplib=$lt_striplib
18974 # The linker used to build libraries.
18977 # How to create reloadable object files.
18978 reload_flag=$lt_reload_flag
18979 reload_cmds=$lt_reload_cmds
18981 # Commands used to build an old-style archive.
18982 old_archive_cmds=$lt_old_archive_cmds
18984 # A language specific compiler.
18987 # Is the compiler the GNU compiler?
18990 # Compiler flag to turn off builtin functions.
18991 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18993 # How to pass a linker flag through the compiler.
18994 wl=$lt_lt_prog_compiler_wl
18996 # Additional compiler flags for building library objects.
18997 pic_flag=$lt_lt_prog_compiler_pic
18999 # Compiler flag to prevent dynamic linking.
19000 link_static_flag=$lt_lt_prog_compiler_static
19002 # Does compiler simultaneously support -c and -o options?
19003 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19005 # Whether or not to add -lc for building shared libraries.
19006 build_libtool_need_lc=$archive_cmds_need_lc
19008 # Whether or not to disallow shared libs when runtime libs are static.
19009 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19011 # Compiler flag to allow reflexive dlopens.
19012 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19014 # Compiler flag to generate shared objects directly from archives.
19015 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19017 # Whether the compiler copes with passing no objects directly.
19018 compiler_needs_object=$lt_compiler_needs_object
19020 # Create an old-style archive from a shared archive.
19021 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19023 # Create a temporary old-style archive to link instead of a shared archive.
19024 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19026 # Commands used to build a shared archive.
19027 archive_cmds=$lt_archive_cmds
19028 archive_expsym_cmds=$lt_archive_expsym_cmds
19030 # Commands used to build a loadable module if different from building
19031 # a shared archive.
19032 module_cmds=$lt_module_cmds
19033 module_expsym_cmds=$lt_module_expsym_cmds
19035 # Whether we are building with GNU ld or not.
19036 with_gnu_ld=$lt_with_gnu_ld
19038 # Flag that allows shared libraries with undefined symbols to be built.
19039 allow_undefined_flag=$lt_allow_undefined_flag
19041 # Flag that enforces no undefined symbols.
19042 no_undefined_flag=$lt_no_undefined_flag
19044 # Flag to hardcode \$libdir into a binary during linking.
19045 # This must work even if \$libdir does not exist
19046 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19048 # If ld is used when linking, flag to hardcode \$libdir into a binary
19049 # during linking. This must work even if \$libdir does not exist.
19050 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19052 # Whether we need a single "-rpath" flag with a separated argument.
19053 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19055 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19056 # DIR into the resulting binary.
19057 hardcode_direct=$hardcode_direct
19059 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19060 # DIR into the resulting binary and the resulting library dependency is
19061 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19062 # library is relocated.
19063 hardcode_direct_absolute=$hardcode_direct_absolute
19065 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19066 # into the resulting binary.
19067 hardcode_minus_L=$hardcode_minus_L
19069 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19070 # into the resulting binary.
19071 hardcode_shlibpath_var=$hardcode_shlibpath_var
19073 # Set to "yes" if building a shared library automatically hardcodes DIR
19074 # into the library and all subsequent libraries and executables linked
19076 hardcode_automatic=$hardcode_automatic
19078 # Set to yes if linker adds runtime paths of dependent libraries
19079 # to runtime path list.
19080 inherit_rpath=$inherit_rpath
19082 # Whether libtool must link a program against all its dependency libraries.
19083 link_all_deplibs=$link_all_deplibs
19085 # Fix the shell variable \$srcfile for the compiler.
19086 fix_srcfile_path=$lt_fix_srcfile_path
19088 # Set to "yes" if exported symbols are required.
19089 always_export_symbols=$always_export_symbols
19091 # The commands to list exported symbols.
19092 export_symbols_cmds=$lt_export_symbols_cmds
19094 # Symbols that should not be listed in the preloaded symbols.
19095 exclude_expsyms=$lt_exclude_expsyms
19097 # Symbols that must always be exported.
19098 include_expsyms=$lt_include_expsyms
19100 # Commands necessary for linking programs (against libraries) with templates.
19101 prelink_cmds=$lt_prelink_cmds
19103 # Specify filename containing input files.
19104 file_list_spec=$lt_file_list_spec
19106 # How to hardcode a shared library path into an executable.
19107 hardcode_action=$hardcode_action
19109 # The directories searched by this compiler when creating a shared library.
19110 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19112 # Dependencies to place before and after the objects being linked to
19113 # create a shared library.
19114 predep_objects=$lt_predep_objects
19115 postdep_objects=$lt_postdep_objects
19116 predeps=$lt_predeps
19117 postdeps=$lt_postdeps
19119 # The library search path used internally by the compiler when linking
19120 # a shared library.
19121 compiler_lib_search_path=$lt_compiler_lib_search_path
19123 # ### END LIBTOOL CONFIG
19129 cat <<\_LT_EOF
>> "$cfgfile"
19130 # AIX sometimes has problems with the GCC collect2 program. For some
19131 # reason, if we set the COLLECT_NAMES environment variable, the problems
19132 # vanish in a puff of smoke.
19133 if test "X${COLLECT_NAMES+set}" != Xset
; then
19135 export COLLECT_NAMES
19142 ltmain
="$ac_aux_dir/ltmain.sh"
19145 # We use sed instead of cat because bash on DJGPP gets confused if
19146 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19147 # text mode, it properly converts lines to CR/LF. This bash problem
19148 # is reportedly fixed, but why not run on old versions too?
19149 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19150 ||
(rm -f "$cfgfile"; exit 1)
19154 cat << \_LT_EOF
>> "$cfgfile"
19156 # func_dirname file append nondir_replacement
19157 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19158 # otherwise set result to NONDIR_REPLACEMENT.
19162 */*) func_dirname_result
="${1%/*}${2}" ;;
19163 * ) func_dirname_result
="${3}" ;;
19167 # func_basename file
19170 func_basename_result
="${1##*/}"
19173 # func_dirname_and_basename file append nondir_replacement
19174 # perform func_basename and func_dirname in a single function
19176 # dirname: Compute the dirname of FILE. If nonempty,
19177 # add APPEND to the result, otherwise set result
19178 # to NONDIR_REPLACEMENT.
19179 # value returned in "$func_dirname_result"
19180 # basename: Compute filename of FILE.
19181 # value retuned in "$func_basename_result"
19182 # Implementation must be kept synchronized with func_dirname
19183 # and func_basename. For efficiency, we do not delegate to
19184 # those functions but instead duplicate the functionality here.
19185 func_dirname_and_basename
()
19188 */*) func_dirname_result
="${1%/*}${2}" ;;
19189 * ) func_dirname_result
="${3}" ;;
19191 func_basename_result
="${1##*/}"
19194 # func_stripname prefix suffix name
19195 # strip PREFIX and SUFFIX off of NAME.
19196 # PREFIX and SUFFIX must not contain globbing or regex special
19197 # characters, hashes, percent signs, but SUFFIX may contain a leading
19198 # dot (in which case that matches only a dot).
19201 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19202 # positional parameters, so assign one to ordinary parameter first.
19203 func_stripname_result
=${3}
19204 func_stripname_result
=${func_stripname_result#"${1}"}
19205 func_stripname_result
=${func_stripname_result%"${2}"}
19211 func_opt_split_opt
=${1%%=*}
19212 func_opt_split_arg
=${1#*=}
19219 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19220 *) func_lo2o_result
=${1} ;;
19224 # func_xform libobj-or-source
19227 func_xform_result
=${1%.*}.lo
19230 # func_arith arithmetic-term...
19233 func_arith_result
=$
(( $
* ))
19237 # STRING may not start with a hyphen.
19240 func_len_result
=${#1}
19245 *) # Bourne compatible functions.
19246 cat << \_LT_EOF
>> "$cfgfile"
19248 # func_dirname file append nondir_replacement
19249 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19250 # otherwise set result to NONDIR_REPLACEMENT.
19253 # Extract subdirectory from the argument.
19254 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19255 if test "X$func_dirname_result" = "X${1}"; then
19256 func_dirname_result
="${3}"
19258 func_dirname_result
="$func_dirname_result${2}"
19262 # func_basename file
19265 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19269 # func_stripname prefix suffix name
19270 # strip PREFIX and SUFFIX off of NAME.
19271 # PREFIX and SUFFIX must not contain globbing or regex special
19272 # characters, hashes, percent signs, but SUFFIX may contain a leading
19273 # dot (in which case that matches only a dot).
19274 # func_strip_suffix prefix name
19278 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19279 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19284 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19285 my_sed_long_arg
='1s/^-[^=]*=//'
19290 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19291 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19297 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19300 # func_xform libobj-or-source
19303 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19306 # func_arith arithmetic-term...
19309 func_arith_result
=`expr "$@"`
19313 # STRING may not start with a hyphen.
19316 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19322 case $lt_shell_append in
19324 cat << \_LT_EOF
>> "$cfgfile"
19326 # func_append var value
19327 # Append VALUE to the end of shell variable VAR.
19335 cat << \_LT_EOF
>> "$cfgfile"
19337 # func_append var value
19338 # Append VALUE to the end of shell variable VAR.
19349 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19350 ||
(rm -f "$cfgfile"; exit 1)
19352 mv -f "$cfgfile" "$ofile" ||
19353 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19357 cat <<_LT_EOF >> "$ofile"
19359 # ### BEGIN LIBTOOL TAG CONFIG: FC
19361 # The linker used to build libraries.
19364 # How to create reloadable object files.
19365 reload_flag=$lt_reload_flag_FC
19366 reload_cmds=$lt_reload_cmds_FC
19368 # Commands used to build an old-style archive.
19369 old_archive_cmds=$lt_old_archive_cmds_FC
19371 # A language specific compiler.
19374 # Is the compiler the GNU compiler?
19377 # Compiler flag to turn off builtin functions.
19378 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19380 # How to pass a linker flag through the compiler.
19381 wl=$lt_lt_prog_compiler_wl_FC
19383 # Additional compiler flags for building library objects.
19384 pic_flag=$lt_lt_prog_compiler_pic_FC
19386 # Compiler flag to prevent dynamic linking.
19387 link_static_flag=$lt_lt_prog_compiler_static_FC
19389 # Does compiler simultaneously support -c and -o options?
19390 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19392 # Whether or not to add -lc for building shared libraries.
19393 build_libtool_need_lc=$archive_cmds_need_lc_FC
19395 # Whether or not to disallow shared libs when runtime libs are static.
19396 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19398 # Compiler flag to allow reflexive dlopens.
19399 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19401 # Compiler flag to generate shared objects directly from archives.
19402 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19404 # Whether the compiler copes with passing no objects directly.
19405 compiler_needs_object=$lt_compiler_needs_object_FC
19407 # Create an old-style archive from a shared archive.
19408 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19410 # Create a temporary old-style archive to link instead of a shared archive.
19411 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19413 # Commands used to build a shared archive.
19414 archive_cmds=$lt_archive_cmds_FC
19415 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19417 # Commands used to build a loadable module if different from building
19418 # a shared archive.
19419 module_cmds=$lt_module_cmds_FC
19420 module_expsym_cmds=$lt_module_expsym_cmds_FC
19422 # Whether we are building with GNU ld or not.
19423 with_gnu_ld=$lt_with_gnu_ld_FC
19425 # Flag that allows shared libraries with undefined symbols to be built.
19426 allow_undefined_flag=$lt_allow_undefined_flag_FC
19428 # Flag that enforces no undefined symbols.
19429 no_undefined_flag=$lt_no_undefined_flag_FC
19431 # Flag to hardcode \$libdir into a binary during linking.
19432 # This must work even if \$libdir does not exist
19433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19435 # If ld is used when linking, flag to hardcode \$libdir into a binary
19436 # during linking. This must work even if \$libdir does not exist.
19437 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19439 # Whether we need a single "-rpath" flag with a separated argument.
19440 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19442 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19443 # DIR into the resulting binary.
19444 hardcode_direct=$hardcode_direct_FC
19446 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19447 # DIR into the resulting binary and the resulting library dependency is
19448 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19449 # library is relocated.
19450 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19452 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19453 # into the resulting binary.
19454 hardcode_minus_L=$hardcode_minus_L_FC
19456 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19457 # into the resulting binary.
19458 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19460 # Set to "yes" if building a shared library automatically hardcodes DIR
19461 # into the library and all subsequent libraries and executables linked
19463 hardcode_automatic=$hardcode_automatic_FC
19465 # Set to yes if linker adds runtime paths of dependent libraries
19466 # to runtime path list.
19467 inherit_rpath=$inherit_rpath_FC
19469 # Whether libtool must link a program against all its dependency libraries.
19470 link_all_deplibs=$link_all_deplibs_FC
19472 # Fix the shell variable \$srcfile for the compiler.
19473 fix_srcfile_path=$lt_fix_srcfile_path_FC
19475 # Set to "yes" if exported symbols are required.
19476 always_export_symbols=$always_export_symbols_FC
19478 # The commands to list exported symbols.
19479 export_symbols_cmds=$lt_export_symbols_cmds_FC
19481 # Symbols that should not be listed in the preloaded symbols.
19482 exclude_expsyms=$lt_exclude_expsyms_FC
19484 # Symbols that must always be exported.
19485 include_expsyms=$lt_include_expsyms_FC
19487 # Commands necessary for linking programs (against libraries) with templates.
19488 prelink_cmds=$lt_prelink_cmds_FC
19490 # Specify filename containing input files.
19491 file_list_spec=$lt_file_list_spec_FC
19493 # How to hardcode a shared library path into an executable.
19494 hardcode_action=$hardcode_action_FC
19496 # The directories searched by this compiler when creating a shared library.
19497 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19499 # Dependencies to place before and after the objects being linked to
19500 # create a shared library.
19501 predep_objects=$lt_predep_objects_FC
19502 postdep_objects=$lt_postdep_objects_FC
19503 predeps=$lt_predeps_FC
19504 postdeps=$lt_postdeps_FC
19506 # The library search path used internally by the compiler when linking
19507 # a shared library.
19508 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19510 # ### END LIBTOOL TAG CONFIG: FC
19521 ac_clean_files
=$ac_clean_files_save
19523 test $ac_write_fail = 0 ||
19524 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19527 # configure is writing to config.log, and then calls config.status.
19528 # config.status does its own redirection, appending to config.log.
19529 # Unfortunately, on DOS this fails, as config.log is still kept open
19530 # by configure, so config.status won't be able to write to it; its
19531 # output is simply discarded. So we exec the FD to /dev/null,
19532 # effectively closing config.log, so it can be properly (re)opened and
19533 # appended to by config.status. When coming back to configure, we
19534 # need to make the FD available again.
19535 if test "$no_create" != yes; then
19537 ac_config_status_args
=
19538 test "$silent" = yes &&
19539 ac_config_status_args
="$ac_config_status_args --quiet"
19541 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19543 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19544 # would make configure fail if this is the last instruction.
19545 $ac_cs_success || as_fn_exit
1
19547 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19549 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}