2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
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
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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
='package-unused'
589 PACKAGE_TARNAME
='libphobos'
590 PACKAGE_VERSION
='version-unused'
591 PACKAGE_STRING
='package-unused version-unused'
595 ac_unique_file
="libdruntime/gcc/attribute.d"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars
='am__EXEEXT_FALSE
640 ENABLE_LIBDRUNTIME_ONLY_FALSE
641 ENABLE_LIBDRUNTIME_ONLY_TRUE
642 ENABLE_LIBPHOBOS_FALSE
643 ENABLE_LIBPHOBOS_TRUE
645 libphobos_toolexeclibdir
646 libphobos_toolexecdir
649 BACKTRACE_SUPPORTS_THREADS
650 BACKTRACE_USES_MALLOC
655 DCFG_HAVE_64BIT_ATOMICS
656 DCFG_HAVE_ATOMIC_BUILTINS
660 DRUNTIME_OS_MINFO_BRACKETING_FALSE
661 DRUNTIME_OS_MINFO_BRACKETING_TRUE
662 DCFG_MINFO_BRACKETING
663 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
664 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
665 DCFG_ARM_EABI_UNWINDER
667 DRUNTIME_OS_POSIX_FALSE
668 DRUNTIME_OS_POSIX_TRUE
669 DRUNTIME_OS_SOLARIS_FALSE
670 DRUNTIME_OS_SOLARIS_TRUE
671 DRUNTIME_OS_MINGW_FALSE
672 DRUNTIME_OS_MINGW_TRUE
673 DRUNTIME_OS_LINUX_FALSE
674 DRUNTIME_OS_LINUX_TRUE
675 DRUNTIME_OS_OPENBSD_FALSE
676 DRUNTIME_OS_OPENBSD_TRUE
677 DRUNTIME_OS_NETBSD_FALSE
678 DRUNTIME_OS_NETBSD_TRUE
679 DRUNTIME_OS_FREEBSD_FALSE
680 DRUNTIME_OS_FREEBSD_TRUE
681 DRUNTIME_OS_DRAGONFLYBSD_FALSE
682 DRUNTIME_OS_DRAGONFLYBSD_TRUE
683 DRUNTIME_OS_DARWIN_FALSE
684 DRUNTIME_OS_DARWIN_TRUE
685 DRUNTIME_OS_ANDROID_FALSE
686 DRUNTIME_OS_ANDROID_TRUE
687 DRUNTIME_OS_AIX_FALSE
689 DRUNTIME_CPU_S390_FALSE
690 DRUNTIME_CPU_S390_TRUE
691 DRUNTIME_CPU_SYSTEMZ_FALSE
692 DRUNTIME_CPU_SYSTEMZ_TRUE
693 DRUNTIME_CPU_X86_FALSE
694 DRUNTIME_CPU_X86_TRUE
695 DRUNTIME_CPU_POWERPC_FALSE
696 DRUNTIME_CPU_POWERPC_TRUE
697 DRUNTIME_CPU_MIPS_FALSE
698 DRUNTIME_CPU_MIPS_TRUE
699 DRUNTIME_CPU_ARM_FALSE
700 DRUNTIME_CPU_ARM_TRUE
701 DRUNTIME_CPU_AARCH64_FALSE
702 DRUNTIME_CPU_AARCH64_TRUE
706 phobos_compiler_shared_flag
707 phobos_compiler_pic_flag
728 MAINTAINER_MODE_FALSE
746 INSTALL_STRIP_PROGRAM
811 program_transform_name
822 ac_subst_files
='DRTSTUFF_SPEC'
824 enable_option_checking
827 enable_maintainer_mode
835 with_gcc_major_version_only
839 with_target_system_zlib
841 enable_version_specific_runtime_libs
844 with_libphobos_druntime_only
845 enable_libphobos_checking
847 ac_precious_vars
='build_alias
858 # Initialize some variables set by options.
860 ac_init_version
=false
861 ac_unrecognized_opts
=
863 # The variables have the same names as the options, with
864 # dashes changed to underlines.
872 program_transform_name
=s
,x
,x
,
880 # Installation directory options.
881 # These are left unexpanded so users can "make install exec_prefix=/foo"
882 # and all the variables that are supposed to be based on exec_prefix
883 # by default will actually change.
884 # Use braces instead of parens because sh, perl, etc. also accept them.
885 # (The list follows the same order as the GNU Coding Standards.)
886 bindir
='${exec_prefix}/bin'
887 sbindir
='${exec_prefix}/sbin'
888 libexecdir
='${exec_prefix}/libexec'
889 datarootdir
='${prefix}/share'
890 datadir
='${datarootdir}'
891 sysconfdir
='${prefix}/etc'
892 sharedstatedir
='${prefix}/com'
893 localstatedir
='${prefix}/var'
894 includedir
='${prefix}/include'
895 oldincludedir
='/usr/include'
896 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
897 infodir
='${datarootdir}/info'
902 libdir
='${exec_prefix}/lib'
903 localedir
='${datarootdir}/locale'
904 mandir
='${datarootdir}/man'
910 # If the previous option needs an argument, assign it.
911 if test -n "$ac_prev"; then
912 eval $ac_prev=\
$ac_option
918 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923 # Accept the important Cygnus configure options, so we can diagnose typos.
925 case $ac_dashdash$ac_option in
929 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
931 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
934 -build |
--build |
--buil |
--bui |
--bu)
935 ac_prev
=build_alias
;;
936 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
937 build_alias
=$ac_optarg ;;
939 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
940 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
941 ac_prev
=cache_file
;;
942 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
943 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
944 cache_file
=$ac_optarg ;;
947 cache_file
=config.cache
;;
949 -datadir |
--datadir |
--datadi |
--datad)
951 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
952 datadir
=$ac_optarg ;;
954 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
955 |
--dataroo |
--dataro |
--datar)
956 ac_prev
=datarootdir
;;
957 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
958 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
959 datarootdir
=$ac_optarg ;;
961 -disable-* |
--disable-*)
962 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
965 as_fn_error $?
"invalid feature name: $ac_useropt"
966 ac_useropt_orig
=$ac_useropt
967 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
972 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
973 ac_unrecognized_sep
=', ';;
975 eval enable_
$ac_useropt=no
;;
977 -docdir |
--docdir |
--docdi |
--doc |
--do)
979 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
982 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
984 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
987 -enable-* |
--enable-*)
988 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
991 as_fn_error $?
"invalid feature name: $ac_useropt"
992 ac_useropt_orig
=$ac_useropt
993 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
998 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
999 ac_unrecognized_sep
=', ';;
1001 eval enable_
$ac_useropt=\
$ac_optarg ;;
1003 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1004 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1005 |
--exec |
--exe |
--ex)
1006 ac_prev
=exec_prefix
;;
1007 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1008 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1009 |
--exec=* |
--exe=* |
--ex=*)
1010 exec_prefix
=$ac_optarg ;;
1012 -gas |
--gas |
--ga |
--g)
1013 # Obsolete; use --with-gas.
1016 -help |
--help |
--hel |
--he |
-h)
1017 ac_init_help
=long
;;
1018 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1019 ac_init_help
=recursive
;;
1020 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1021 ac_init_help
=short
;;
1023 -host |
--host |
--hos |
--ho)
1024 ac_prev
=host_alias
;;
1025 -host=* |
--host=* |
--hos=* |
--ho=*)
1026 host_alias
=$ac_optarg ;;
1028 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1030 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1032 htmldir
=$ac_optarg ;;
1034 -includedir |
--includedir |
--includedi |
--included |
--include \
1035 |
--includ |
--inclu |
--incl |
--inc)
1036 ac_prev
=includedir
;;
1037 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1038 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1039 includedir
=$ac_optarg ;;
1041 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1043 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1044 infodir
=$ac_optarg ;;
1046 -libdir |
--libdir |
--libdi |
--libd)
1048 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1049 libdir
=$ac_optarg ;;
1051 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1052 |
--libexe |
--libex |
--libe)
1053 ac_prev
=libexecdir
;;
1054 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1055 |
--libexe=* |
--libex=* |
--libe=*)
1056 libexecdir
=$ac_optarg ;;
1058 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1059 ac_prev
=localedir
;;
1060 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1061 localedir
=$ac_optarg ;;
1063 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1064 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1065 ac_prev
=localstatedir
;;
1066 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1067 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1068 localstatedir
=$ac_optarg ;;
1070 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1072 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1073 mandir
=$ac_optarg ;;
1075 -nfp |
--nfp |
--nf)
1076 # Obsolete; use --without-fp.
1079 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1080 |
--no-cr |
--no-c |
-n)
1083 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1084 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1087 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1088 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1089 |
--oldin |
--oldi |
--old |
--ol |
--o)
1090 ac_prev
=oldincludedir
;;
1091 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1092 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1093 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1094 oldincludedir
=$ac_optarg ;;
1096 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1098 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1099 prefix
=$ac_optarg ;;
1101 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1102 |
--program-pre |
--program-pr |
--program-p)
1103 ac_prev
=program_prefix
;;
1104 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1105 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1106 program_prefix
=$ac_optarg ;;
1108 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1109 |
--program-suf |
--program-su |
--program-s)
1110 ac_prev
=program_suffix
;;
1111 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1112 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1113 program_suffix
=$ac_optarg ;;
1115 -program-transform-name |
--program-transform-name \
1116 |
--program-transform-nam |
--program-transform-na \
1117 |
--program-transform-n |
--program-transform- \
1118 |
--program-transform |
--program-transfor \
1119 |
--program-transfo |
--program-transf \
1120 |
--program-trans |
--program-tran \
1121 |
--progr-tra |
--program-tr |
--program-t)
1122 ac_prev
=program_transform_name
;;
1123 -program-transform-name=* |
--program-transform-name=* \
1124 |
--program-transform-nam=* |
--program-transform-na=* \
1125 |
--program-transform-n=* |
--program-transform-=* \
1126 |
--program-transform=* |
--program-transfor=* \
1127 |
--program-transfo=* |
--program-transf=* \
1128 |
--program-trans=* |
--program-tran=* \
1129 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1130 program_transform_name
=$ac_optarg ;;
1132 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1134 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1135 pdfdir
=$ac_optarg ;;
1137 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1139 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1142 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1143 |
-silent |
--silent |
--silen |
--sile |
--sil)
1146 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1148 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1150 sbindir
=$ac_optarg ;;
1152 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1153 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1154 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1156 ac_prev
=sharedstatedir
;;
1157 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1158 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1159 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1161 sharedstatedir
=$ac_optarg ;;
1163 -site |
--site |
--sit)
1165 -site=* |
--site=* |
--sit=*)
1168 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1170 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1171 srcdir
=$ac_optarg ;;
1173 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1174 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1175 ac_prev
=sysconfdir
;;
1176 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1177 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1178 sysconfdir
=$ac_optarg ;;
1180 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1181 ac_prev
=target_alias
;;
1182 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1183 target_alias
=$ac_optarg ;;
1185 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1188 -version |
--version |
--versio |
--versi |
--vers |
-V)
1189 ac_init_version
=: ;;
1192 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1203 ac_unrecognized_sep
=', ';;
1205 eval with_
$ac_useropt=\
$ac_optarg ;;
1207 -without-* |
--without-*)
1208 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1211 as_fn_error $?
"invalid package name: $ac_useropt"
1212 ac_useropt_orig
=$ac_useropt
1213 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1218 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219 ac_unrecognized_sep
=', ';;
1221 eval with_
$ac_useropt=no
;;
1224 # Obsolete; use --with-x.
1227 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1228 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1229 ac_prev
=x_includes
;;
1230 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1231 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1232 x_includes
=$ac_optarg ;;
1234 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1235 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1236 ac_prev
=x_libraries
;;
1237 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1238 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1239 x_libraries
=$ac_optarg ;;
1241 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1242 Try \`$0 --help' for more information"
1246 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 case $ac_envvar in #(
1249 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1250 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1252 eval $ac_envvar=\
$ac_optarg
1253 export $ac_envvar ;;
1256 # FIXME: should be removed in autoconf 3.0.
1257 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1259 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1266 if test -n "$ac_prev"; then
1267 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1268 as_fn_error $?
"missing argument to $ac_option"
1271 if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in
1274 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1275 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279 # Check all directory arguments for consistency.
1280 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
1285 eval ac_val
=\$
$ac_var
1286 # Remove trailing slashes.
1289 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290 eval $ac_var=\
$ac_val;;
1292 # Be sure to have absolute directory names.
1294 [\\/$
]* | ?
:[\\/]* ) continue;;
1295 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1297 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1305 target
=$target_alias
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x
; then
1309 if test "x$build_alias" = x
; then
1310 cross_compiling
=maybe
1311 elif test "x$build_alias" != "x$host_alias"; then
1317 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1319 test "$silent" = yes && exec 6>/dev
/null
1322 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di
=`ls -di .` &&
1324 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1325 as_fn_error $?
"working directory cannot be determined"
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 as_fn_error $?
"pwd does not report name of working directory"
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted
=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir
=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1362 ac_srcdir_defaulted
=no
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1366 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1368 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1380 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 for ac_var
in $ac_precious_vars; do
1383 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1385 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1390 # Report the --help message.
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1396 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1403 Defaults for the options are specified in brackets.
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking ...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1427 For better control, use the options below.
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1459 --build=BUILD configure
for building on BUILD
[guessed
]
1460 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1461 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1465 if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive
) echo "Configuration of package-unused version-unused:";;
1472 --disable-option-checking ignore unrecognized
--enable/--with options
1473 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1474 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1475 --enable-multilib build many library versions
(default
)
1476 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1477 --disable-silent-rules verbose build output
(undo
: "make V=0")
1478 --enable-maintainer-mode
1479 enable make rules and dependencies not useful
(and
1480 sometimes confusing
) to the casual installer
1481 --enable-cet enable Intel CET
in target libraries
[default
=auto
]
1482 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1483 --enable-static[=PKGS
] build static libraries
[default
=yes]
1484 --enable-fast-install[=PKGS
]
1485 optimize
for fast installation
[default
=yes]
1486 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1487 --enable-werror turns on
-Werror [default
=no
]
1488 --enable-version-specific-runtime-libs
1489 Specify that runtime libraries should be installed
1490 in a compiler-specific directory
1491 --enable-libphobos Enable libphobos
1492 --enable-libphobos-checking[=LIST
]
1493 enable expensive run-time checks. With LIST
, enable
1494 only specific categories of checks. Categories are
:
1495 yes,no
,all
,none
,release. Flags are
: assert or other
1499 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1500 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1501 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1503 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1504 --with-gcc-major-version-only
1505 use only GCC major number
in filesystem paths
1506 --without-libatomic Do not use libatomic
in core.atomic
(default
: auto
)
1507 --without-libbacktrace Do not use libbacktrace
in core.runtime
(default
:
1509 --with-target-system-zlib={yes,no
,auto
}
1510 use installed libz
(default
: no
)
1511 --with-cross-host=HOST configuring with a cross compiler
1512 --with-toolexeclibdir=DIR
1513 install libraries built with a cross compiler within
1515 --with-libphobos-druntime-only={yes,no
,auto
}
1516 build only the druntime library
(default
: auto
)
1518 Some influential environment variables
:
1519 CC C compiler
command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1522 nonstandard directory
<lib dir
>
1523 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1524 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1525 you have headers
in a nonstandard directory
<include dir
>
1527 CCAS assembler compiler
command (defaults to CC
)
1528 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1529 GDC D compiler
command
1530 GDCFLAGS D compiler flags
1532 Use these variables to override the choices made by
`configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1535 Report bugs to the package provider.
1540 if test "$ac_init_help" = "recursive"; then
1541 # If there are subdirs, report their specific --help.
1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543 test -d "$ac_dir" ||
1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1565 .) # We are building in place.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for guested configure.
1582 if test -f "$ac_srcdir/configure.gnu"; then
1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585 elif test -f "$ac_srcdir/configure"; then
1587 $SHELL "$ac_srcdir/configure" --help=recursive
1589 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 cd "$ac_pwd" || { ac_status=$?; break; }
1595 test -n "$ac_init_help" && exit $ac_status
1596 if $ac_init_version; then
1598 package-unused configure version-unused
1599 generated by GNU Autoconf 2.69
1601 Copyright (C) 2012 Free Software Foundation, Inc.
1602 This configure script is free software; the Free Software Foundation
1603 gives unlimited permission to copy, distribute and modify it.
1608 ## ------------------------ ##
1609 ## Autoconf initialization. ##
1610 ## ------------------------ ##
1612 # ac_fn_c_try_compile LINENO
1613 # --------------------------
1614 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_compile ()
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext
1619 if { { ac_try="$ac_compile"
1621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1622 *) ac_try_echo
=$ac_try;;
1624 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_compile") 2>conftest.err
1628 if test -s conftest.err
; then
1629 grep -v '^ *+' conftest.err
>conftest.er1
1630 cat conftest.er1
>&5
1631 mv -f conftest.er1 conftest.err
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest.
$ac_objext; then :
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.
$ac_ext >&5
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status
$ac_retval
1648 } # ac_fn_c_try_compile
1650 # ac_fn_c_try_cpp LINENO
1651 # ----------------------
1652 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1655 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1656 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } > conftest.i && {
1672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1687 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1688 # -------------------------------------------------------
1689 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1690 # the include files in INCLUDES and setting the cache variable VAR
1692 ac_fn_c_check_header_mongrel ()
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if eval \${$3+:} false; then :
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697 $as_echo_n "checking for $2... " >&6; }
1698 if eval \${$3+:} false; then :
1699 $as_echo_n "(cached) " >&6
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703 $as_echo "$ac_res" >&6; }
1705 # Is the header compilable?
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1707 $as_echo_n "checking $2 usability... " >&6; }
1708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709 /* end confdefs.h. */
1713 if ac_fn_c_try_compile "$LINENO"; then :
1714 ac_header_compiler=yes
1716 ac_header_compiler=no
1718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1720 $as_echo "$ac_header_compiler" >&6; }
1722 # Is the header present?
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1724 $as_echo_n "checking $2 presence... " >&6; }
1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1729 if ac_fn_c_try_cpp "$LINENO"; then :
1730 ac_header_preproc=yes
1732 ac_header_preproc=no
1734 rm -f conftest.err conftest.i conftest.$ac_ext
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1736 $as_echo "$ac_header_preproc" >&6; }
1738 # So? What about this header?
1739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1742 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1748 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1750 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1752 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1754 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1756 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1764 eval "$3=\$ac_header_compiler"
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 } # ac_fn_c_check_header_mongrel
1774 # ac_fn_c_try_run LINENO
1775 # ----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1777 # that executables *can* be run.
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_link"
1783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1784 *) ac_try_echo
=$ac_try;;
1786 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>&5
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1792 { { case "(($ac_try" in
1793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_try") 2>&5
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; }; }; then :
1804 $as_echo "$as_me: program exited with status $ac_status" >&5
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1808 ac_retval=$ac_status
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1816 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1817 # -------------------------------------------------------
1818 # Tests whether HEADER exists and can be compiled using the include files in
1819 # INCLUDES, setting the cache variable VAR accordingly.
1820 ac_fn_c_check_header_compile ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1833 if ac_fn_c_try_compile "$LINENO"; then :
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 } # ac_fn_c_check_header_compile
1847 # ac_fn_d_try_compile LINENO
1848 # --------------------------
1849 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_d_try_compile ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext
1854 if { { ac_try="$ac_compile"
1856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1857 *) ac_try_echo
=$ac_try;;
1859 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_compile") 2>conftest.err
1863 if test -s conftest.err
; then
1864 grep -v '^ *+' conftest.err
>conftest.er1
1865 cat conftest.er1
>&5
1866 mv -f conftest.er1 conftest.err
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_d_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest.
$ac_objext; then :
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.
$ac_ext >&5
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status
$ac_retval
1883 } # ac_fn_d_try_compile
1885 # ac_fn_c_try_link LINENO
1886 # -----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded.
1890 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1891 rm -f conftest.
$ac_objext conftest
$ac_exeext
1892 if { { ac_try
="$ac_link"
1894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_link") 2>conftest.err
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } && {
1908 test -z "$ac_c_werror_flag" ||
1909 test ! -s conftest.err
1910 } && test -s conftest$ac_exeext && {
1911 test "$cross_compiling" = yes ||
1912 test -x conftest$ac_exeext
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1921 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923 # interfere with the next link command; also delete a directory that is
1924 # left behind by Apple's compiler. We do this before executing the actions.
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1929 } # ac_fn_c_try_link
1931 # ac_fn_c_check_func LINENO FUNC VAR
1932 # ----------------------------------
1933 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1934 ac_fn_c_check_func ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1946 #define $2 innocuous_$2
1948 /* System header to define __stub macros and hopefully few prototypes,
1949 which can conflict with char $2 (); below.
1950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1951 <limits.h> exists even on freestanding compilers. */
1954 # include <limits.h>
1956 # include <assert.h>
1961 /* Override any GCC internal prototype to avoid an error.
1962 Use char because int might match the return type of a GCC
1963 builtin and then its argument prototype would still apply. */
1968 /* The GNU C library defines this for functions which it implements
1969 to always fail with ENOSYS. Some functions are actually named
1970 something starting with __ and the normal name is an alias. */
1971 #if defined __stub_$2 || defined __stub___$2
1983 if ac_fn_c_try_link "$LINENO"; then :
1988 rm -f core conftest.err conftest.$ac_objext \
1989 conftest$ac_exeext conftest.$ac_ext
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 } # ac_fn_c_check_func
1998 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1999 # ----------------------------------------------------
2000 # Tries to find if the field MEMBER exists in type AGGR, after including
2001 # INCLUDES, setting cache variable VAR accordingly.
2002 ac_fn_c_check_member ()
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2006 $as_echo_n "checking for $2.$3... " >&6; }
2007 if eval \${$4+:} false; then :
2008 $as_echo_n "(cached) " >&6
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2023 if ac_fn_c_try_compile "$LINENO"; then :
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2033 if (sizeof ac_aggr.$3)
2039 if ac_fn_c_try_compile "$LINENO"; then :
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 } # ac_fn_c_check_member
2055 # ac_fn_d_try_link LINENO
2056 # -----------------------
2057 # Try to link conftest.$ac_ext, and return whether this succeeded.
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 rm -f conftest.$ac_objext conftest$ac_exeext
2062 if { { ac_try="$ac_link"
2064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2065 *) ac_try_echo
=$ac_try;;
2067 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_link") 2>conftest.err
2071 if test -s conftest.err
; then
2072 grep -v '^ *+' conftest.err
>conftest.er1
2073 cat conftest.er1
>&5
2074 mv -f conftest.er1 conftest.err
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077 test $ac_status = 0; } && {
2078 test -z "$ac_d_werror_flag" ||
2079 test ! -s conftest.err
2080 } && test -s conftest
$ac_exeext && {
2081 test "$cross_compiling" = yes ||
2082 test -x conftest
$ac_exeext
2086 $as_echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.
$ac_ext >&5
2091 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2092 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2093 # interfere with the next link command; also delete a directory that is
2094 # left behind by Apple's compiler. We do this before executing the actions.
2095 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status
$ac_retval
2099 } # ac_fn_d_try_link
2100 cat >config.log
<<_ACEOF
2101 This file contains any messages produced by compilers while
2102 running configure, to aid debugging if configure makes a mistake.
2104 It was created by package-unused $as_me version-unused, which was
2105 generated by GNU Autoconf 2.69. Invocation command line was
2117 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2118 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2119 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2120 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2121 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2123 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2124 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2126 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2127 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2128 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2129 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2130 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2131 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2132 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2140 test -z "$as_dir" && as_dir
=.
2141 $as_echo "PATH: $as_dir"
2157 # Keep a trace of the command line.
2158 # Strip out --no-create and --no-recursion so they do not pile up.
2159 # Strip out --silent because we don't want to record it for future runs.
2160 # Also quote any args containing shell meta-characters.
2161 # Make two passes to allow for proper duplicate-argument suppression.
2165 ac_must_keep_next
=false
2171 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2172 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2173 |
-silent |
--silent |
--silen |
--sile |
--sil)
2176 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2179 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2181 as_fn_append ac_configure_args1
" '$ac_arg'"
2182 if test $ac_must_keep_next = true
; then
2183 ac_must_keep_next
=false
# Got value, back to normal.
2186 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2187 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2188 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2189 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2190 case "$ac_configure_args0 " in
2191 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2194 -* ) ac_must_keep_next
=true
;;
2197 as_fn_append ac_configure_args
" '$ac_arg'"
2202 { ac_configure_args0
=; unset ac_configure_args0
;}
2203 { ac_configure_args1
=; unset ac_configure_args1
;}
2205 # When interrupted or exit'd, cleanup temporary files, and complete
2206 # config.log. We remove comments because anyway the quotes in there
2207 # would cause problems or look ugly.
2208 # WARNING: Use '\'' to represent an apostrophe within the trap.
2209 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2210 trap 'exit_status=$?
2211 # Save into config.log some information that might help in debugging.
2215 $as_echo "## ---------------- ##
2216 ## Cache variables. ##
2217 ## ---------------- ##"
2219 # The following way of writing the cache mishandles newlines in values,
2221 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2222 eval ac_val=\$$ac_var
2226 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2227 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2230 _ | IFS | as_nl) ;; #(
2231 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2232 *) { eval $ac_var=; unset $ac_var;} ;;
2237 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2238 *${as_nl}ac_space=\ *)
2240 "s/'\''/'\''\\\\'\'''\''/g;
2241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2251 $as_echo "## ----------------- ##
2252 ## Output variables. ##
2253 ## ----------------- ##"
2255 for ac_var in $ac_subst_vars
2257 eval ac_val=\$$ac_var
2259 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261 $as_echo "$ac_var='\''$ac_val'\''"
2265 if test -n "$ac_subst_files"; then
2266 $as_echo "## ------------------- ##
2267 ## File substitutions. ##
2268 ## ------------------- ##"
2270 for ac_var
in $ac_subst_files
2272 eval ac_val
=\$
$ac_var
2274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2276 $as_echo "$ac_var='\''$ac_val'\''"
2281 if test -s confdefs.h; then
2282 $as_echo "## ----------- ##
2289 test "$ac_signal" != 0 &&
2290 $as_echo "$as_me: caught signal $ac_signal"
2291 $as_echo "$as_me: exit $exit_status"
2293 rm -f core *.core core.conftest.* &&
2294 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2297 for ac_signal
in 1 2 13 15; do
2298 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2302 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2303 rm -f -r conftest
* confdefs.h
2305 $as_echo "/* confdefs.h */" > confdefs.h
2307 # Predefined preprocessor variables.
2309 cat >>confdefs.h
<<_ACEOF
2310 #define PACKAGE_NAME "$PACKAGE_NAME"
2313 cat >>confdefs.h
<<_ACEOF
2314 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2317 cat >>confdefs.h
<<_ACEOF
2318 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2321 cat >>confdefs.h
<<_ACEOF
2322 #define PACKAGE_STRING "$PACKAGE_STRING"
2325 cat >>confdefs.h
<<_ACEOF
2326 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2329 cat >>confdefs.h
<<_ACEOF
2330 #define PACKAGE_URL "$PACKAGE_URL"
2334 # Let the site file select an alternate cache file if it wants to.
2335 # Prefer an explicitly selected file to automatically selected ones.
2338 if test -n "$CONFIG_SITE"; then
2339 # We do not want a PATH search for config.site.
2340 case $CONFIG_SITE in #((
2341 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2342 */*) ac_site_file1
=$CONFIG_SITE;;
2343 *) ac_site_file1
=.
/$CONFIG_SITE;;
2345 elif test "x$prefix" != xNONE
; then
2346 ac_site_file1
=$prefix/share
/config.site
2347 ac_site_file2
=$prefix/etc
/config.site
2349 ac_site_file1
=$ac_default_prefix/share
/config.site
2350 ac_site_file2
=$ac_default_prefix/etc
/config.site
2352 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2354 test "x$ac_site_file" = xNONE
&& continue
2355 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2357 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2358 sed 's/^/| /' "$ac_site_file" >&5
2360 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2362 as_fn_error $?
"failed to load site script $ac_site_file
2363 See \`config.log' for more details" "$LINENO" 5; }
2367 if test -r "$cache_file"; then
2368 # Some versions of bash will fail to source /dev/null (special files
2369 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2370 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2372 $as_echo "$as_me: loading cache $cache_file" >&6;}
2374 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2375 *) .
"./$cache_file";;
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2380 $as_echo "$as_me: creating cache $cache_file" >&6;}
2384 # Check that the precious variables saved in the cache have kept the same
2386 ac_cache_corrupted
=false
2387 for ac_var
in $ac_precious_vars; do
2388 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2389 eval ac_new_set
=\
$ac_env_${ac_var}_set
2390 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2391 eval ac_new_val
=\
$ac_env_${ac_var}_value
2392 case $ac_old_set,$ac_new_set in
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2395 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2396 ac_cache_corrupted
=: ;;
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2399 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2400 ac_cache_corrupted
=: ;;
2403 if test "x$ac_old_val" != "x$ac_new_val"; then
2404 # differences in whitespace do not lead to failure.
2405 ac_old_val_w
=`echo x $ac_old_val`
2406 ac_new_val_w
=`echo x $ac_new_val`
2407 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2409 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2410 ac_cache_corrupted
=:
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2413 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2414 eval $ac_var=\
$ac_old_val
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2417 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2419 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2422 # Pass precious variables to config.status.
2423 if test "$ac_new_set" = set; then
2425 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2426 *) ac_arg
=$ac_var=$ac_new_val ;;
2428 case " $ac_configure_args " in
2429 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2430 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2434 if $ac_cache_corrupted; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2438 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2439 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2441 ## -------------------- ##
2442 ## Main body of script. ##
2443 ## -------------------- ##
2446 ac_cpp
='$CPP $CPPFLAGS'
2447 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2456 ac_config_headers
="$ac_config_headers config.h"
2459 # Default to --enable-multilib
2460 # Check whether --enable-multilib was given.
2461 if test "${enable_multilib+set}" = set; then :
2462 enableval
=$enable_multilib; case "$enableval" in
2463 yes) multilib
=yes ;;
2465 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
2472 # We may get other options which we leave undocumented:
2473 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2474 # See config-ml.in if you want the gory details.
2476 if test "$srcdir" = "."; then
2477 if test "$with_target_subdir" != "."; then
2478 multi_basedir
="$srcdir/$with_multisrctop../.."
2480 multi_basedir
="$srcdir/$with_multisrctop.."
2483 multi_basedir
="$srcdir/.."
2487 # Even if the default multilib is not a cross compilation,
2488 # it may be that some of the other multilibs are.
2489 if test $cross_compiling = no
&& test $multilib = yes \
2490 && test "x${with_multisubdir}" != x
; then
2491 cross_compiling
=maybe
2494 ac_config_commands
="$ac_config_commands default-1"
2497 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2498 if test -f "$ac_dir/install-sh"; then
2500 ac_install_sh
="$ac_aux_dir/install-sh -c"
2502 elif test -f "$ac_dir/install.sh"; then
2504 ac_install_sh
="$ac_aux_dir/install.sh -c"
2506 elif test -f "$ac_dir/shtool"; then
2508 ac_install_sh
="$ac_aux_dir/shtool install -c"
2512 if test -z "$ac_aux_dir"; then
2513 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2516 # These three variables are undocumented and unsupported,
2517 # and are intended to be withdrawn in a future Autoconf release.
2518 # They can cause serious problems if a builder's source tree is in a directory
2519 # whose full name contains unusual characters.
2520 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2521 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2522 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2525 # Make sure we can run config.sub.
2526 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2527 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2530 $as_echo_n "checking build system type... " >&6; }
2531 if ${ac_cv_build+:} false
; then :
2532 $as_echo_n "(cached) " >&6
2534 ac_build_alias
=$build_alias
2535 test "x$ac_build_alias" = x
&&
2536 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2537 test "x$ac_build_alias" = x
&&
2538 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2539 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2540 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2544 $as_echo "$ac_cv_build" >&6; }
2545 case $ac_cv_build in
2547 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2550 ac_save_IFS
=$IFS; IFS
='-'
2556 # Remember, the first character of IFS is used to create $*,
2557 # except with old shells:
2560 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2564 $as_echo_n "checking host system type... " >&6; }
2565 if ${ac_cv_host+:} false
; then :
2566 $as_echo_n "(cached) " >&6
2568 if test "x$host_alias" = x
; then
2569 ac_cv_host
=$ac_cv_build
2571 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2572 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2577 $as_echo "$ac_cv_host" >&6; }
2580 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2583 ac_save_IFS
=$IFS; IFS
='-'
2589 # Remember, the first character of IFS is used to create $*,
2590 # except with old shells:
2593 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2597 $as_echo_n "checking target system type... " >&6; }
2598 if ${ac_cv_target+:} false
; then :
2599 $as_echo_n "(cached) " >&6
2601 if test "x$target_alias" = x
; then
2602 ac_cv_target
=$ac_cv_host
2604 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2605 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2610 $as_echo "$ac_cv_target" >&6; }
2611 case $ac_cv_target in
2613 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2615 target
=$ac_cv_target
2616 ac_save_IFS
=$IFS; IFS
='-'
2622 # Remember, the first character of IFS is used to create $*,
2623 # except with old shells:
2626 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2629 # The aliases save the names the user supplied, while $host etc.
2630 # will get canonicalized.
2631 test -n "$target_alias" &&
2632 test "$program_prefix$program_suffix$program_transform_name" = \
2634 program_prefix
=${target_alias}-
2636 # Expand $ac_aux_dir to an absolute path.
2637 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2640 ac_cpp
='$CPP $CPPFLAGS'
2641 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2644 if test -n "$ac_tool_prefix"; then
2645 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2646 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 $as_echo_n "checking for $ac_word... " >&6; }
2649 if ${ac_cv_prog_CC+:} false
; then :
2650 $as_echo_n "(cached) " >&6
2652 if test -n "$CC"; then
2653 ac_cv_prog_CC
="$CC" # Let the user override the test.
2655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2659 test -z "$as_dir" && as_dir
=.
2660 for ac_exec_ext
in '' $ac_executable_extensions; do
2661 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2662 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 if test -n "$CC"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2675 $as_echo "$CC" >&6; }
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2683 if test -z "$ac_cv_prog_CC"; then
2685 # Extract the first word of "gcc", so it can be a program name with args.
2686 set dummy gcc
; ac_word
=$2
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2690 $as_echo_n "(cached) " >&6
2692 if test -n "$ac_ct_CC"; then
2693 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2699 test -z "$as_dir" && as_dir
=.
2700 for ac_exec_ext
in '' $ac_executable_extensions; do
2701 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2702 ac_cv_prog_ac_ct_CC
="gcc"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2713 if test -n "$ac_ct_CC"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2715 $as_echo "$ac_ct_CC" >&6; }
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2721 if test "x$ac_ct_CC" = x
; then
2724 case $cross_compiling:$ac_tool_warned in
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2728 ac_tool_warned
=yes ;;
2736 if test -z "$CC"; then
2737 if test -n "$ac_tool_prefix"; then
2738 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2739 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if ${ac_cv_prog_CC+:} false
; then :
2743 $as_echo_n "(cached) " >&6
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC
="$CC" # Let the user override the test.
2748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2752 test -z "$as_dir" && as_dir
=.
2753 for ac_exec_ext
in '' $ac_executable_extensions; do
2754 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 if test -n "$CC"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768 $as_echo "$CC" >&6; }
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2777 if test -z "$CC"; then
2778 # Extract the first word of "cc", so it can be a program name with args.
2779 set dummy cc
; ac_word
=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_CC+:} false
; then :
2783 $as_echo_n "(cached) " >&6
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC
="$CC" # Let the user override the test.
2789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2793 test -z "$as_dir" && as_dir
=.
2794 for ac_exec_ext
in '' $ac_executable_extensions; do
2795 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2796 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2797 ac_prog_rejected
=yes
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 if test $ac_prog_rejected = yes; then
2809 # We found a bogon in the path, so make sure we never use it.
2810 set dummy
$ac_cv_prog_CC
2812 if test $# != 0; then
2813 # We chose a different compiler from the bogus one.
2814 # However, it has the same basename, so the bogon will be chosen
2815 # first if we set CC to just the basename; use the full file name.
2817 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2823 if test -n "$CC"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2825 $as_echo "$CC" >&6; }
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2833 if test -z "$CC"; then
2834 if test -n "$ac_tool_prefix"; then
2835 for ac_prog
in cl.exe
2837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2838 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if ${ac_cv_prog_CC+:} false
; then :
2842 $as_echo_n "(cached) " >&6
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC
="$CC" # Let the user override the test.
2847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2851 test -z "$as_dir" && as_dir
=.
2852 for ac_exec_ext
in '' $ac_executable_extensions; do
2853 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2874 test -n "$CC" && break
2877 if test -z "$CC"; then
2879 for ac_prog
in cl.exe
2881 # Extract the first word of "$ac_prog", so it can be a program name with args.
2882 set dummy
$ac_prog; ac_word
=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2886 $as_echo_n "(cached) " >&6
2888 if test -n "$ac_ct_CC"; then
2889 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2895 test -z "$as_dir" && as_dir
=.
2896 for ac_exec_ext
in '' $ac_executable_extensions; do
2897 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2898 ac_cv_prog_ac_ct_CC
="$ac_prog"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2909 if test -n "$ac_ct_CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2911 $as_echo "$ac_ct_CC" >&6; }
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2918 test -n "$ac_ct_CC" && break
2921 if test "x$ac_ct_CC" = x
; then
2924 case $cross_compiling:$ac_tool_warned in
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2928 ac_tool_warned
=yes ;;
2937 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2939 as_fn_error $?
"no acceptable C compiler found in \$PATH
2940 See \`config.log' for more details" "$LINENO" 5; }
2942 # Provide some information about the compiler.
2943 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2946 for ac_option
in --version -v -V -qversion; do
2947 { { ac_try
="$ac_compiler $ac_option >&5"
2949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2953 $as_echo "$ac_try_echo"; } >&5
2954 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2956 if test -s conftest.err; then
2958 ... rest of stderr output deleted ...
2959 10q' conftest.err >conftest.er1
2960 cat conftest.er1 >&5
2962 rm -f conftest.er1 conftest.err
2963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2964 test $ac_status = 0; }
2967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2968 /* end confdefs.h. */
2978 ac_clean_files_save=$ac_clean_files
2979 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2980 # Try to create an executable without -o first, disregard a.out.
2981 # It will help us diagnose broken compilers, and finding out an intuition
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2984 $as_echo_n "checking whether the C compiler works... " >&6; }
2985 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2987 # The possible output files:
2988 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2991 for ac_file in $ac_files
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2995 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3000 if { { ac_try="$ac_link_default"
3002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3003 *) ac_try_echo
=$ac_try;;
3005 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006 $as_echo "$ac_try_echo"; } >&5
3007 (eval "$ac_link_default") 2>&5
3009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3010 test $ac_status = 0; }; then :
3011 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3012 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3013 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3014 # so that the user can short-circuit this test for compilers unknown to
3016 for ac_file
in $ac_files ''
3018 test -f "$ac_file" ||
continue
3020 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3023 # We found the default executable, but exeext='' is most
3027 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3029 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3031 # We set ac_cv_exeext here because the later test for it is not
3032 # safe: cross compilers may not add the suffix if given an `-o'
3033 # argument, so we may need to know it at that point already.
3034 # Even if this section looks crufty: it has the advantage of
3041 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3046 if test -z "$ac_file"; then :
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3049 $as_echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.
$ac_ext >&5
3052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3054 as_fn_error
77 "C compiler cannot create executables
3055 See \`config.log' for more details" "$LINENO" 5; }
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3058 $as_echo "yes" >&6; }
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3061 $as_echo_n "checking for C compiler default output file name... " >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3063 $as_echo "$ac_file" >&6; }
3064 ac_exeext
=$ac_cv_exeext
3066 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3067 ac_clean_files
=$ac_clean_files_save
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3069 $as_echo_n "checking for suffix of executables... " >&6; }
3070 if { { ac_try
="$ac_link"
3072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076 $as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_link") 2>&5
3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }; then :
3081 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3082 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3083 # work properly (i.e., refer to `conftest.exe'), while it won't with
3085 for ac_file
in conftest.exe conftest conftest.
*; do
3086 test -f "$ac_file" ||
continue
3088 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3089 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3098 See \`config.log' for more details" "$LINENO" 5; }
3100 rm -f conftest conftest
$ac_cv_exeext
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3102 $as_echo "$ac_cv_exeext" >&6; }
3104 rm -f conftest.
$ac_ext
3105 EXEEXT
=$ac_cv_exeext
3107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3113 FILE *f = fopen ("conftest.out", "w");
3114 return ferror (f) || fclose (f) != 0;
3120 ac_clean_files
="$ac_clean_files conftest.out"
3121 # Check that the compiler produces executables we can run. If not, either
3122 # the compiler is broken, or we cross compile.
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3124 $as_echo_n "checking whether we are cross compiling... " >&6; }
3125 if test "$cross_compiling" != yes; then
3126 { { ac_try
="$ac_link"
3128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_link") 2>&5
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }
3137 if { ac_try='./conftest$ac_cv_exeext'
3138 { { case "(($ac_try" in
3139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3140 *) ac_try_echo
=$ac_try;;
3142 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_try") 2>&5
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }; }; then
3150 if test "$cross_compiling" = maybe
; then
3153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error $?
"cannot run C compiled programs.
3156 If you meant to cross compile, use \`--host'.
3157 See \`config.log' for more details" "$LINENO" 5; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3162 $as_echo "$cross_compiling" >&6; }
3164 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3165 ac_clean_files
=$ac_clean_files_save
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3167 $as_echo_n "checking for suffix of object files... " >&6; }
3168 if ${ac_cv_objext+:} false
; then :
3169 $as_echo_n "(cached) " >&6
3171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3182 rm -f conftest.o conftest.obj
3183 if { { ac_try
="$ac_compile"
3185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189 $as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_compile") 2>&5
3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }; then :
3194 for ac_file in conftest.o conftest.obj conftest.*; do
3195 test -f "$ac_file" || continue;
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3198 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3203 $as_echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3209 See \
`config.log' for more details" "$LINENO" 5; }
3211 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3214 $as_echo "$ac_cv_objext" >&6; }
3215 OBJEXT=$ac_cv_objext
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3218 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3219 if ${ac_cv_c_compiler_gnu+:} false; then :
3220 $as_echo_n "(cached) " >&6
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3236 if ac_fn_c_try_compile "$LINENO"; then :
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3246 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3247 if test $ac_compiler_gnu = yes; then
3252 ac_test_CFLAGS=${CFLAGS+set}
3253 ac_save_CFLAGS=$CFLAGS
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3255 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3256 if ${ac_cv_prog_cc_g+:} false; then :
3257 $as_echo_n "(cached) " >&6
3259 ac_save_c_werror_flag=$ac_c_werror_flag
3260 ac_c_werror_flag=yes
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3274 if ac_fn_c_try_compile "$LINENO"; then :
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3289 if ac_fn_c_try_compile "$LINENO"; then :
3292 ac_c_werror_flag=$ac_save_c_werror_flag
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3305 if ac_fn_c_try_compile "$LINENO"; then :
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313 ac_c_werror_flag=$ac_save_c_werror_flag
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3316 $as_echo "$ac_cv_prog_cc_g" >&6; }
3317 if test "$ac_test_CFLAGS" = set; then
3318 CFLAGS=$ac_save_CFLAGS
3319 elif test $ac_cv_prog_cc_g = yes; then
3320 if test "$GCC" = yes; then
3326 if test "$GCC" = yes; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3333 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3334 if ${ac_cv_prog_cc_c89+:} false; then :
3335 $as_echo_n "(cached) " >&6
3337 ac_cv_prog_cc_c89=no
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3345 struct buf { int x; };
3346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3347 static char *e (p, i)
3353 static char *f (char * (*g) (char **, int), char **p, ...)
3358 s = g (p, va_arg (v,int));
3363 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3364 function prototypes and stuff, but not '\xHH' hex character constants.
3365 These don't provoke an error unfortunately, instead are silently treated
3366 as 'x'. The following induces an error, until -std is added to get
3367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3368 array size at least. It's necessary to write '\x00'==0 to get something
3369 that's true only with -std. */
3370 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3372 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3373 inside strings and character constants. */
3375 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3377 int test (int i, double x);
3378 struct s1 {int (*f) (int a);};
3379 struct s2 {int (*f) (double a);};
3380 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3386 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3391 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3392 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3394 CC="$ac_save_CC $ac_arg"
3395 if ac_fn_c_try_compile "$LINENO"; then :
3396 ac_cv_prog_cc_c89=$ac_arg
3398 rm -f core conftest.err conftest.$ac_objext
3399 test "x$ac_cv_prog_cc_c89" != "xno" && break
3401 rm -f conftest.$ac_ext
3406 case "x$ac_cv_prog_cc_c89" in
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3409 $as_echo "none needed" >&6; } ;;
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3412 $as_echo "unsupported" >&6; } ;;
3414 CC="$CC $ac_cv_prog_cc_c89"
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3416 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3418 if test "x$ac_cv_prog_cc_c89" != xno; then :
3423 ac_cpp='$CPP $CPPFLAGS'
3424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3434 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3435 if ${am_cv_prog_cc_c_o+:} false; then :
3436 $as_echo_n "(cached) " >&6
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3449 # Make sure it works both with $CC and with simple cc.
3450 # Following AC_PROG_CC_C_O, we do the test twice because some
3451 # compilers refuse to overwrite an existing .o file with -o,
3452 # though they will create one.
3453 am_cv_prog_cc_c_o=yes
3455 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3456 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } \
3460 && test -f conftest2.$ac_objext; then
3463 am_cv_prog_cc_c_o=no
3467 rm -f core conftest*
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3471 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3472 if test "$am_cv_prog_cc_c_o" != yes; then
3473 # Losing compiler, so override with the script.
3474 # FIXME: It is wrong to rewrite CC.
3475 # But if we don't then we get into trouble of one sort or another.
3476 # A longer-term fix would be to have automake use am__CC in this case,
3477 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3478 CC="$am_aux_dir/compile $CC"
3481 ac_cpp='$CPP $CPPFLAGS'
3482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3494 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3495 # On Suns, sometimes $CPP names a directory.
3496 if test -n "$CPP" && test -d "$CPP"; then
3499 if test -z "$CPP"; then
3500 if ${ac_cv_prog_CPP+:} false; then :
3501 $as_echo_n "(cached) " >&6
3503 # Double quotes because CPP needs to be expanded
3504 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3507 for ac_c_preproc_warn_flag in '' yes
3509 # Use a header file that comes with gcc, so configuring glibc
3510 # with a fresh cross-compiler works.
3511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3512 # <limits.h> exists even on freestanding compilers.
3513 # On the NeXT, cc -E runs the code through the compiler's parser,
3514 # not just through cpp. "Syntax error" is here to catch this case.
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3518 # include <limits.h>
3520 # include <assert.h>
3524 if ac_fn_c_try_cpp "$LINENO"; then :
3527 # Broken: fails on valid input.
3530 rm -f conftest.err conftest.i conftest.$ac_ext
3532 # OK, works on sane cases. Now check whether nonexistent headers
3533 # can be detected and how.
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3536 #include <ac_nonexistent.h>
3538 if ac_fn_c_try_cpp "$LINENO"; then :
3539 # Broken: success on invalid input.
3542 # Passes both tests.
3546 rm -f conftest.err conftest.i conftest.$ac_ext
3549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550 rm -f conftest.i conftest.err conftest.
$ac_ext
3551 if $ac_preproc_ok; then :
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3564 $as_echo "$CPP" >&6; }
3566 for ac_c_preproc_warn_flag
in '' yes
3568 # Use a header file that comes with gcc, so configuring glibc
3569 # with a fresh cross-compiler works.
3570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3571 # <limits.h> exists even on freestanding compilers.
3572 # On the NeXT, cc -E runs the code through the compiler's parser,
3573 # not just through cpp. "Syntax error" is here to catch this case.
3574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3577 # include <limits.h>
3579 # include <assert.h>
3583 if ac_fn_c_try_cpp
"$LINENO"; then :
3586 # Broken: fails on valid input.
3589 rm -f conftest.err conftest.i conftest.
$ac_ext
3591 # OK, works on sane cases. Now check whether nonexistent headers
3592 # can be detected and how.
3593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3595 #include <ac_nonexistent.h>
3597 if ac_fn_c_try_cpp
"$LINENO"; then :
3598 # Broken: success on invalid input.
3601 # Passes both tests.
3605 rm -f conftest.err conftest.i conftest.
$ac_ext
3608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3609 rm -f conftest.i conftest.err conftest.
$ac_ext
3610 if $ac_preproc_ok; then :
3613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3615 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3616 See \`config.log' for more details" "$LINENO" 5; }
3620 ac_cpp
='$CPP $CPPFLAGS'
3621 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3627 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3628 if ${ac_cv_path_GREP+:} false
; then :
3629 $as_echo_n "(cached) " >&6
3631 if test -z "$GREP"; then
3632 ac_path_GREP_found
=false
3633 # Loop through the user's path and test for each of PROGNAME-LIST
3634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3635 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3638 test -z "$as_dir" && as_dir
=.
3639 for ac_prog
in grep ggrep
; do
3640 for ac_exec_ext
in '' $ac_executable_extensions; do
3641 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3642 as_fn_executable_p
"$ac_path_GREP" ||
continue
3643 # Check for GNU ac_path_GREP and select it if it is found.
3644 # Check for GNU $ac_path_GREP
3645 case `"$ac_path_GREP" --version 2>&1` in
3647 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3650 $as_echo_n 0123456789 >"conftest.in"
3653 cat "conftest.in" "conftest.in" >"conftest.tmp"
3654 mv "conftest.tmp" "conftest.in"
3655 cp "conftest.in" "conftest.nl"
3656 $as_echo 'GREP' >> "conftest.nl"
3657 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3658 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3659 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3660 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3661 # Best one so far, save it but keep looking for a better one
3662 ac_cv_path_GREP
="$ac_path_GREP"
3663 ac_path_GREP_max
=$ac_count
3665 # 10*(2^10) chars as input seems more than enough
3666 test $ac_count -gt 10 && break
3668 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3671 $ac_path_GREP_found && break 3
3676 if test -z "$ac_cv_path_GREP"; then
3677 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3680 ac_cv_path_GREP
=$GREP
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3685 $as_echo "$ac_cv_path_GREP" >&6; }
3686 GREP
="$ac_cv_path_GREP"
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3690 $as_echo_n "checking for egrep... " >&6; }
3691 if ${ac_cv_path_EGREP+:} false
; then :
3692 $as_echo_n "(cached) " >&6
3694 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3695 then ac_cv_path_EGREP
="$GREP -E"
3697 if test -z "$EGREP"; then
3698 ac_path_EGREP_found
=false
3699 # Loop through the user's path and test for each of PROGNAME-LIST
3700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3701 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3704 test -z "$as_dir" && as_dir
=.
3705 for ac_prog
in egrep; do
3706 for ac_exec_ext
in '' $ac_executable_extensions; do
3707 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3708 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3709 # Check for GNU ac_path_EGREP and select it if it is found.
3710 # Check for GNU $ac_path_EGREP
3711 case `"$ac_path_EGREP" --version 2>&1` in
3713 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3716 $as_echo_n 0123456789 >"conftest.in"
3719 cat "conftest.in" "conftest.in" >"conftest.tmp"
3720 mv "conftest.tmp" "conftest.in"
3721 cp "conftest.in" "conftest.nl"
3722 $as_echo 'EGREP' >> "conftest.nl"
3723 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3724 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3725 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3726 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3727 # Best one so far, save it but keep looking for a better one
3728 ac_cv_path_EGREP
="$ac_path_EGREP"
3729 ac_path_EGREP_max
=$ac_count
3731 # 10*(2^10) chars as input seems more than enough
3732 test $ac_count -gt 10 && break
3734 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3737 $ac_path_EGREP_found && break 3
3742 if test -z "$ac_cv_path_EGREP"; then
3743 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3746 ac_cv_path_EGREP
=$EGREP
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3752 $as_echo "$ac_cv_path_EGREP" >&6; }
3753 EGREP
="$ac_cv_path_EGREP"
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3757 $as_echo_n "checking for ANSI C header files... " >&6; }
3758 if ${ac_cv_header_stdc+:} false
; then :
3759 $as_echo_n "(cached) " >&6
3761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3776 if ac_fn_c_try_compile
"$LINENO"; then :
3777 ac_cv_header_stdc
=yes
3779 ac_cv_header_stdc
=no
3781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3783 if test $ac_cv_header_stdc = yes; then
3784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3791 $EGREP "memchr" >/dev
/null
2>&1; then :
3794 ac_cv_header_stdc
=no
3800 if test $ac_cv_header_stdc = yes; then
3801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3808 $EGREP "free" >/dev
/null
2>&1; then :
3811 ac_cv_header_stdc
=no
3817 if test $ac_cv_header_stdc = yes; then
3818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3819 if test "$cross_compiling" = yes; then :
3822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3826 #if ((' ' & 0x0FF) == 0x020)
3827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3830 # define ISLOWER(c) \
3831 (('a' <= (c) && (c) <= 'i') \
3832 || ('j' <= (c) && (c) <= 'r') \
3833 || ('s' <= (c) && (c) <= 'z'))
3834 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3842 for (i = 0; i < 256; i++)
3843 if (XOR (islower (i), ISLOWER (i))
3844 || toupper (i) != TOUPPER (i))
3849 if ac_fn_c_try_run
"$LINENO"; then :
3852 ac_cv_header_stdc
=no
3854 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3855 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3861 $as_echo "$ac_cv_header_stdc" >&6; }
3862 if test $ac_cv_header_stdc = yes; then
3864 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3868 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3869 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3870 inttypes.h stdint.h unistd.h
3872 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3873 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3875 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3876 cat >>confdefs.h
<<_ACEOF
3877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3886 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3887 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3894 if test "$MINIX" = yes; then
3896 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3899 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3902 $as_echo "#define _MINIX 1" >>confdefs.h
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3908 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3909 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3910 $as_echo_n "(cached) " >&6
3912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3915 # define __EXTENSIONS__ 1
3916 $ac_includes_default
3925 if ac_fn_c_try_compile
"$LINENO"; then :
3926 ac_cv_safe_to_define___extensions__
=yes
3928 ac_cv_safe_to_define___extensions__
=no
3930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3933 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3934 test $ac_cv_safe_to_define___extensions__ = yes &&
3935 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3937 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3939 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3941 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3943 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3947 target_alias
=${target_alias-$target}
3950 # 1.11.1: Require that version of automake.
3951 # foreign: Don't require README, INSTALL, NEWS, etc.
3952 # no-define: Don't define PACKAGE and VERSION.
3953 # no-dependencies: Don't generate automatic dependencies.
3954 # (because it breaks when using bootstrap-lean, since some of the
3955 # headers are gone at "make install" time).
3956 # subdir-objects: Build objects in sub-directories.
3957 # -Wall: Issue all automake warnings.
3958 # -Wno-portability: Don't warn about constructs supported by GNU make.
3959 # (because GCC requires GNU make anyhow).
3960 # -Wno-override: Overrides used in testsuite.
3961 am__api_version
='1.15'
3963 # Find a good install program. We prefer a C program (faster),
3964 # so one script is as good as another. But avoid the broken or
3965 # incompatible versions:
3966 # SysV /etc/install, /usr/sbin/install
3967 # SunOS /usr/etc/install
3968 # IRIX /sbin/install
3970 # AmigaOS /C/install, which installs bootblocks on floppy discs
3971 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3972 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3973 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3974 # OS/2's system install, which has a completely different semantic
3975 # ./install, which can be erroneously created by make from ./install.sh.
3976 # Reject install programs that cannot install multiple files.
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3978 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3979 if test -z "$INSTALL"; then
3980 if ${ac_cv_path_install+:} false
; then :
3981 $as_echo_n "(cached) " >&6
3983 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3987 test -z "$as_dir" && as_dir
=.
3988 # Account for people who put trailing slashes in PATH elements.
3989 case $as_dir/ in #((
3990 .
/ | .
// |
/[cC
]/* | \
3991 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3992 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3995 # OSF1 and SCO ODT 3.0 have their own names for install.
3996 # Don't use installbsd from OSF since it installs stuff as root
3998 for ac_prog
in ginstall scoinst
install; do
3999 for ac_exec_ext
in '' $ac_executable_extensions; do
4000 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4001 if test $ac_prog = install &&
4002 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4003 # AIX install. It has an incompatible calling convention.
4005 elif test $ac_prog = install &&
4006 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4007 # program-specific install script used by HP pwplus--don't use.
4010 rm -rf conftest.one conftest.two conftest.dir
4011 echo one
> conftest.one
4012 echo two
> conftest.two
4014 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4015 test -s conftest.one
&& test -s conftest.two
&&
4016 test -s conftest.dir
/conftest.one
&&
4017 test -s conftest.dir
/conftest.two
4019 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4032 rm -rf conftest.one conftest.two conftest.dir
4035 if test "${ac_cv_path_install+set}" = set; then
4036 INSTALL
=$ac_cv_path_install
4038 # As a last resort, use the slow shell script. Don't cache a
4039 # value for INSTALL within a source directory, because that will
4040 # break other packages using the cache if that directory is
4041 # removed, or if the value is a relative name.
4042 INSTALL
=$ac_install_sh
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4046 $as_echo "$INSTALL" >&6; }
4048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4049 # It thinks the first close brace ends the variable substitution.
4050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4054 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4057 $as_echo_n "checking whether build environment is sane... " >&6; }
4058 # Reject unsafe characters in $srcdir or the absolute working directory
4059 # name. Accept space and tab only in the latter.
4063 *[\\\"\
#\$\&\'\`$am_lf]*)
4064 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
4067 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
4068 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4071 # Do 'set' in a subshell so we don't clobber the current shell's
4072 # arguments. Must try -L first in case configure is actually a
4073 # symlink; some systems play weird games with the mod time of symlinks
4074 # (eg FreeBSD returns the mod time of the symlink's containing
4078 for am_try
in 1 2; do
4079 echo "timestamp, slept: $am_has_slept" > conftest.
file
4080 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4081 if test "$*" = "X"; then
4083 set X
`ls -t "$srcdir/configure" conftest.file`
4085 if test "$*" != "X $srcdir/configure conftest.file" \
4086 && test "$*" != "X conftest.file $srcdir/configure"; then
4088 # If neither matched, then we have a broken ls. This can happen
4089 # if, for instance, CONFIG_SHELL is bash and it inherits a
4090 # broken ls alias from the environment. This has actually
4091 # happened. Such a system could not be considered "sane".
4092 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
4093 alias in your environment" "$LINENO" 5
4095 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
4102 test "$2" = conftest.
file
4108 as_fn_error $?
"newly created file is older than distributed files!
4109 Check your system clock" "$LINENO" 5
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4112 $as_echo "yes" >&6; }
4113 # If we didn't sleep, we still need to ensure time stamps of config.status and
4114 # generated files are strictly newer.
4116 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
4123 test "$program_prefix" != NONE
&&
4124 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4125 # Use a double $ so make ignores it.
4126 test "$program_suffix" != NONE
&&
4127 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4128 # Double any \ or $.
4129 # By default was `s,x,x', remove it if useless.
4130 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4131 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4133 if test x
"${MISSING+set}" != xset
; then
4136 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
4138 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
4141 # Use eval to expand $SHELL
4142 if eval "$MISSING --is-lightweight"; then
4143 am_missing_run
="$MISSING "
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4147 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4150 if test x
"${install_sh+set}" != xset
; then
4153 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4155 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4159 # Installed binaries are usually stripped using 'strip' when the user
4160 # run "make install-strip". However 'strip' might not be the right
4161 # tool to use in cross-compilation environments, therefore Automake
4162 # will honor the 'STRIP' environment variable to overrule this program.
4163 if test "$cross_compiling" != no
; then
4164 if test -n "$ac_tool_prefix"; then
4165 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4166 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 $as_echo_n "checking for $ac_word... " >&6; }
4169 if ${ac_cv_prog_STRIP+:} false
; then :
4170 $as_echo_n "(cached) " >&6
4172 if test -n "$STRIP"; then
4173 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4179 test -z "$as_dir" && as_dir
=.
4180 for ac_exec_ext
in '' $ac_executable_extensions; do
4181 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4182 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 STRIP
=$ac_cv_prog_STRIP
4193 if test -n "$STRIP"; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4195 $as_echo "$STRIP" >&6; }
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4203 if test -z "$ac_cv_prog_STRIP"; then
4205 # Extract the first word of "strip", so it can be a program name with args.
4206 set dummy strip
; ac_word
=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4210 $as_echo_n "(cached) " >&6
4212 if test -n "$ac_ct_STRIP"; then
4213 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4219 test -z "$as_dir" && as_dir
=.
4220 for ac_exec_ext
in '' $ac_executable_extensions; do
4221 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_ac_ct_STRIP
="strip"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4233 if test -n "$ac_ct_STRIP"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4235 $as_echo "$ac_ct_STRIP" >&6; }
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4241 if test "x$ac_ct_STRIP" = x
; then
4244 case $cross_compiling:$ac_tool_warned in
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248 ac_tool_warned
=yes ;;
4253 STRIP
="$ac_cv_prog_STRIP"
4257 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4260 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4261 if test -z "$MKDIR_P"; then
4262 if ${ac_cv_path_mkdir+:} false
; then :
4263 $as_echo_n "(cached) " >&6
4265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4266 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
4269 test -z "$as_dir" && as_dir
=.
4270 for ac_prog
in mkdir gmkdir
; do
4271 for ac_exec_ext
in '' $ac_executable_extensions; do
4272 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
4273 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4274 'mkdir (GNU coreutils) '* | \
4275 'mkdir (coreutils) '* | \
4276 'mkdir (fileutils) '4.1*)
4277 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
4287 test -d .
/--version && rmdir .
/--version
4288 if test "${ac_cv_path_mkdir+set}" = set; then
4289 MKDIR_P
="$ac_cv_path_mkdir -p"
4291 # As a last resort, use the slow shell script. Don't cache a
4292 # value for MKDIR_P within a source directory, because that will
4293 # break other packages using the cache if that directory is
4294 # removed, or if the value is a relative name.
4295 MKDIR_P
="$ac_install_sh -d"
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4299 $as_echo "$MKDIR_P" >&6; }
4301 for ac_prog
in gawk mawk nawk
awk
4303 # Extract the first word of "$ac_prog", so it can be a program name with args.
4304 set dummy
$ac_prog; ac_word
=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if ${ac_cv_prog_AWK+:} false
; then :
4308 $as_echo_n "(cached) " >&6
4310 if test -n "$AWK"; then
4311 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4317 test -z "$as_dir" && as_dir
=.
4318 for ac_exec_ext
in '' $ac_executable_extensions; do
4319 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4320 ac_cv_prog_AWK
="$ac_prog"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 if test -n "$AWK"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4333 $as_echo "$AWK" >&6; }
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4340 test -n "$AWK" && break
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4344 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4346 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4347 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
4348 $as_echo_n "(cached) " >&6
4350 cat >conftest.
make <<\_ACEOF
4353 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4355 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4356 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4358 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4360 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4364 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4366 $as_echo "yes" >&6; }
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4371 SET_MAKE
="MAKE=${MAKE-make}"
4374 rm -rf .tst
2>/dev
/null
4375 mkdir .tst
2>/dev
/null
4376 if test -d .tst
; then
4381 rmdir .tst
2>/dev
/null
4383 # Check whether --enable-silent-rules was given.
4384 if test "${enable_silent_rules+set}" = set; then :
4385 enableval
=$enable_silent_rules;
4388 case $enable_silent_rules in # (((
4389 yes) AM_DEFAULT_VERBOSITY
=0;;
4390 no
) AM_DEFAULT_VERBOSITY
=1;;
4391 *) AM_DEFAULT_VERBOSITY
=1;;
4393 am_make
=${MAKE-make}
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4395 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4396 if ${am_cv_make_support_nested_variables+:} false
; then :
4397 $as_echo_n "(cached) " >&6
4399 if $as_echo 'TRUE=$(BAR$(V))
4405 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
4406 am_cv_make_support_nested_variables
=yes
4408 am_cv_make_support_nested_variables
=no
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4412 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4413 if test $am_cv_make_support_nested_variables = yes; then
4415 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
4417 AM_V
=$AM_DEFAULT_VERBOSITY
4418 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
4422 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4423 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4424 # is not polluted with repeated "-I."
4425 am__isrc
=' -I$(srcdir)'
4426 # test to see if srcdir already configured
4427 if test -f $srcdir/config.status
; then
4428 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4432 # test whether we have cygpath
4433 if test -z "$CYGPATH_W"; then
4434 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
4435 CYGPATH_W
='cygpath -w'
4442 # Define the identity of the package.
4444 VERSION
='version-unused'
4447 # Some tools Automake needs.
4449 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4452 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4455 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4458 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4461 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4463 # For better backward compatibility. To be removed once Automake 1.9.x
4464 # dies out for good. For more background, see:
4465 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4466 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4467 mkdir_p
='$(MKDIR_P)'
4469 # We need awk for the "check" target (and possibly the TAP driver). The
4470 # system "awk" is bad on some platforms.
4471 # Always define AMTAR for backward compatibility. Yes, it's still used
4472 # in the wild :-( We should find a proper way to deprecate it ...
4476 # We'll loop over all known methods to create a tar archive until one works.
4477 _am_tools
='gnutar pax cpio none'
4479 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
4486 # POSIX will say in a future version that running "rm -f" with no argument
4487 # is OK; and we want to be able to make that assumption in our Makefile
4488 # recipes. So use an aggressive probe to check that the usage we want is
4489 # actually supported "in the wild" to an acceptable degree.
4490 # See automake bug#10828.
4491 # To make any issue more visible, cause the running configure to be aborted
4492 # by default if the 'rm' program in use doesn't match our expectations; the
4493 # user can still override this though.
4494 if rm -f && rm -fr && rm -rf; then : OK
; else
4498 Your 'rm' program seems unable to run without file operands specified
4499 on the command line, even when the '-f' option is present. This is contrary
4500 to the behaviour of most rm programs out there, and not conforming with
4501 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4503 Please tell bug-automake@gnu.org about your system, including the value
4504 of your $PATH and any error possibly output before this message. This
4505 can help us improve future automake versions.
4508 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
4509 echo 'Configuration will proceed anyway, since you have set the' >&2
4510 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4514 Aborting the configuration process, to ensure you take notice of the issue.
4516 You can download and install GNU coreutils to get an 'rm' implementation
4517 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4519 If you want to complete the configuration process using your problematic
4520 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4521 to "yes", and re-run configure.
4524 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
4531 # By default we simply use the C compiler to build assembly code.
4533 test "${CCAS+set}" = set || CCAS
=$CC
4534 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
4539 ac_cpp
='$CPP $CPPFLAGS'
4540 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4543 if test -n "$ac_tool_prefix"; then
4544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4545 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if ${ac_cv_prog_CC+:} false
; then :
4549 $as_echo_n "(cached) " >&6
4551 if test -n "$CC"; then
4552 ac_cv_prog_CC
="$CC" # Let the user override the test.
4554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4558 test -z "$as_dir" && as_dir
=.
4559 for ac_exec_ext
in '' $ac_executable_extensions; do
4560 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 if test -n "$CC"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4574 $as_echo "$CC" >&6; }
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4582 if test -z "$ac_cv_prog_CC"; then
4584 # Extract the first word of "gcc", so it can be a program name with args.
4585 set dummy gcc
; ac_word
=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4589 $as_echo_n "(cached) " >&6
4591 if test -n "$ac_ct_CC"; then
4592 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4598 test -z "$as_dir" && as_dir
=.
4599 for ac_exec_ext
in '' $ac_executable_extensions; do
4600 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4601 ac_cv_prog_ac_ct_CC
="gcc"
4602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4612 if test -n "$ac_ct_CC"; then
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4614 $as_echo "$ac_ct_CC" >&6; }
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617 $as_echo "no" >&6; }
4620 if test "x$ac_ct_CC" = x
; then
4623 case $cross_compiling:$ac_tool_warned in
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4627 ac_tool_warned
=yes ;;
4635 if test -z "$CC"; then
4636 if test -n "$ac_tool_prefix"; then
4637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4638 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_CC+:} false
; then :
4642 $as_echo_n "(cached) " >&6
4644 if test -n "$CC"; then
4645 ac_cv_prog_CC
="$CC" # Let the user override the test.
4647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir
=.
4652 for ac_exec_ext
in '' $ac_executable_extensions; do
4653 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 if test -n "$CC"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4667 $as_echo "$CC" >&6; }
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4676 if test -z "$CC"; then
4677 # Extract the first word of "cc", so it can be a program name with args.
4678 set dummy cc
; ac_word
=$2
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 $as_echo_n "checking for $ac_word... " >&6; }
4681 if ${ac_cv_prog_CC+:} false
; then :
4682 $as_echo_n "(cached) " >&6
4684 if test -n "$CC"; then
4685 ac_cv_prog_CC
="$CC" # Let the user override the test.
4688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4692 test -z "$as_dir" && as_dir
=.
4693 for ac_exec_ext
in '' $ac_executable_extensions; do
4694 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4696 ac_prog_rejected
=yes
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 if test $ac_prog_rejected = yes; then
4708 # We found a bogon in the path, so make sure we never use it.
4709 set dummy
$ac_cv_prog_CC
4711 if test $# != 0; then
4712 # We chose a different compiler from the bogus one.
4713 # However, it has the same basename, so the bogon will be chosen
4714 # first if we set CC to just the basename; use the full file name.
4716 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4722 if test -n "$CC"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4724 $as_echo "$CC" >&6; }
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 $as_echo "no" >&6; }
4732 if test -z "$CC"; then
4733 if test -n "$ac_tool_prefix"; then
4734 for ac_prog
in cl.exe
4736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4737 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if ${ac_cv_prog_CC+:} false
; then :
4741 $as_echo_n "(cached) " >&6
4743 if test -n "$CC"; then
4744 ac_cv_prog_CC
="$CC" # Let the user override the test.
4746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir
=.
4751 for ac_exec_ext
in '' $ac_executable_extensions; do
4752 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4753 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 if test -n "$CC"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4766 $as_echo "$CC" >&6; }
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4773 test -n "$CC" && break
4776 if test -z "$CC"; then
4778 for ac_prog
in cl.exe
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy
$ac_prog; ac_word
=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4785 $as_echo_n "(cached) " >&6
4787 if test -n "$ac_ct_CC"; then
4788 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4794 test -z "$as_dir" && as_dir
=.
4795 for ac_exec_ext
in '' $ac_executable_extensions; do
4796 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4797 ac_cv_prog_ac_ct_CC
="$ac_prog"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4808 if test -n "$ac_ct_CC"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4810 $as_echo "$ac_ct_CC" >&6; }
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4817 test -n "$ac_ct_CC" && break
4820 if test "x$ac_ct_CC" = x
; then
4823 case $cross_compiling:$ac_tool_warned in
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4827 ac_tool_warned
=yes ;;
4836 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4838 as_fn_error $?
"no acceptable C compiler found in \$PATH
4839 See \`config.log' for more details" "$LINENO" 5; }
4841 # Provide some information about the compiler.
4842 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4845 for ac_option
in --version -v -V -qversion; do
4846 { { ac_try
="$ac_compiler $ac_option >&5"
4848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4849 *) ac_try_echo=$ac_try;;
4851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4852 $as_echo "$ac_try_echo"; } >&5
4853 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4855 if test -s conftest.err; then
4857 ... rest of stderr output deleted ...
4858 10q' conftest.err >conftest.er1
4859 cat conftest.er1 >&5
4861 rm -f conftest.er1 conftest.err
4862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4863 test $ac_status = 0; }
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4867 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4868 if ${ac_cv_c_compiler_gnu+:} false; then :
4869 $as_echo_n "(cached) " >&6
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4885 if ac_fn_c_try_compile "$LINENO"; then :
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4895 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4896 if test $ac_compiler_gnu = yes; then
4901 ac_test_CFLAGS=${CFLAGS+set}
4902 ac_save_CFLAGS=$CFLAGS
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4904 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4905 if ${ac_cv_prog_cc_g+:} false; then :
4906 $as_echo_n "(cached) " >&6
4908 ac_save_c_werror_flag=$ac_c_werror_flag
4909 ac_c_werror_flag=yes
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4923 if ac_fn_c_try_compile "$LINENO"; then :
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4938 if ac_fn_c_try_compile "$LINENO"; then :
4941 ac_c_werror_flag=$ac_save_c_werror_flag
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4954 if ac_fn_c_try_compile "$LINENO"; then :
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 ac_c_werror_flag=$ac_save_c_werror_flag
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4965 $as_echo "$ac_cv_prog_cc_g" >&6; }
4966 if test "$ac_test_CFLAGS" = set; then
4967 CFLAGS=$ac_save_CFLAGS
4968 elif test $ac_cv_prog_cc_g = yes; then
4969 if test "$GCC" = yes; then
4975 if test "$GCC" = yes; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4982 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4983 if ${ac_cv_prog_cc_c89+:} false; then :
4984 $as_echo_n "(cached) " >&6
4986 ac_cv_prog_cc_c89=no
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4993 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4994 struct buf { int x; };
4995 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4996 static char *e (p, i)
5002 static char *f (char * (*g) (char **, int), char **p, ...)
5007 s = g (p, va_arg (v,int));
5012 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5013 function prototypes and stuff, but not '\xHH' hex character constants.
5014 These don't provoke an error unfortunately, instead are silently treated
5015 as 'x'. The following induces an error, until -std is added to get
5016 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5017 array size at least. It's necessary to write '\x00'==0 to get something
5018 that's true only with -std. */
5019 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5021 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5022 inside strings and character constants. */
5024 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5026 int test (int i, double x);
5027 struct s1 {int (*f) (int a);};
5028 struct s2 {int (*f) (double a);};
5029 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5035 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5040 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5041 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5043 CC="$ac_save_CC $ac_arg"
5044 if ac_fn_c_try_compile "$LINENO"; then :
5045 ac_cv_prog_cc_c89=$ac_arg
5047 rm -f core conftest.err conftest.$ac_objext
5048 test "x$ac_cv_prog_cc_c89" != "xno" && break
5050 rm -f conftest.$ac_ext
5055 case "x$ac_cv_prog_cc_c89" in
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5058 $as_echo "none needed" >&6; } ;;
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5061 $as_echo "unsupported" >&6; } ;;
5063 CC="$CC $ac_cv_prog_cc_c89"
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5065 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5067 if test "x$ac_cv_prog_cc_c89" != xno; then :
5072 ac_cpp='$CPP $CPPFLAGS'
5073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5078 ac_cpp='$CPP $CPPFLAGS'
5079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5083 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5084 if ${am_cv_prog_cc_c_o+:} false; then :
5085 $as_echo_n "(cached) " >&6
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5098 # Make sure it works both with $CC and with simple cc.
5099 # Following AC_PROG_CC_C_O, we do the test twice because some
5100 # compilers refuse to overwrite an existing .o file with -o,
5101 # though they will create one.
5102 am_cv_prog_cc_c_o=yes
5104 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5105 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } \
5109 && test -f conftest2.$ac_objext; then
5112 am_cv_prog_cc_c_o=no
5116 rm -f core conftest*
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5120 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5121 if test "$am_cv_prog_cc_c_o" != yes; then
5122 # Losing compiler, so override with the script.
5123 # FIXME: It is wrong to rewrite CC.
5124 # But if we don't then we get into trouble of one sort or another.
5125 # A longer-term fix would be to have automake use am__CC in this case,
5126 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5127 CC="$am_aux_dir/compile $CC"
5130 ac_cpp='$CPP $CPPFLAGS'
5131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5137 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5138 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140 if test -n "$ac_tool_prefix"; then
5141 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5142 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if ${ac_cv_prog_GDC+:} false; then :
5146 $as_echo_n "(cached) " >&6
5148 if test -n "$GDC"; then
5149 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 if test -n "$GDC"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5171 $as_echo "$GDC" >&6; }
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5179 if test -z "$ac_cv_prog_GDC"; then
5181 # Extract the first word of "gdc", so it can be a program name with args.
5182 set dummy gdc; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5186 $as_echo_n "(cached) " >&6
5188 if test -n "$ac_ct_GDC"; then
5189 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_prog_ac_ct_GDC="gdc"
5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5209 if test -n "$ac_ct_GDC"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5211 $as_echo "$ac_ct_GDC" >&6; }
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5217 if test "x$ac_ct_GDC" = x; then
5220 case $cross_compiling:$ac_tool_warned in
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5224 ac_tool_warned=yes ;;
5229 GDC="$ac_cv_prog_GDC"
5232 if test -z "$GDC"; then
5233 if test -n "$ac_tool_prefix"; then
5234 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5235 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_prog_GDC+:} false; then :
5239 $as_echo_n "(cached) " >&6
5241 if test -n "$GDC"; then
5242 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 if test -n "$GDC"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5264 $as_echo "$GDC" >&6; }
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5273 if test -z "$GDC"; then
5274 # Extract the first word of "gdc", so it can be a program name with args.
5275 set dummy gdc; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if ${ac_cv_prog_GDC+:} false; then :
5279 $as_echo_n "(cached) " >&6
5281 if test -n "$GDC"; then
5282 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5292 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5293 ac_prog_rejected=yes
5296 ac_cv_prog_GDC="gdc"
5297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 if test $ac_prog_rejected = yes; then
5305 # We found a bogon in the path, so make sure we never use it.
5306 set dummy $ac_cv_prog_GDC
5308 if test $# != 0; then
5309 # We chose a different compiler from the bogus one.
5310 # However, it has the same basename, so the bogon will be chosen
5311 # first if we set GDC to just the basename; use the full file name.
5313 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5319 if test -n "$GDC"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5321 $as_echo "$GDC" >&6; }
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5331 # Provide some information about the compiler.
5332 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5335 { { ac_try="$ac_compiler --version >&5"
5337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5338 *) ac_try_echo
=$ac_try;;
5340 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5341 $as_echo "$ac_try_echo"; } >&5
5342 (eval "$ac_compiler --version >&5") 2>conftest.err
5344 if test -s conftest.err
; then
5346 ... rest of stderr output deleted ...
5347 10q' conftest.err
>conftest.er1
5348 cat conftest.er1
>&5
5350 rm -f conftest.er1 conftest.err
5351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5352 test $ac_status = 0; }
5354 ac_cpp
='$CPP $CPPFLAGS'
5355 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5361 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5362 if ${phobos_cv_abs_srcdir+:} false
; then :
5363 $as_echo_n "(cached) " >&6
5365 phobos_cv_abs_srcdir
=`cd $srcdir && pwd`
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5368 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5369 if test -d "$phobos_cv_abs_srcdir"; then :
5372 as_fn_error $?
"can't find absolute libphobos source path" "$LINENO" 5
5378 gdc_save_DFLAGS
=$GDCFLAGS
5379 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5382 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5383 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5387 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5388 cat > conftest.
$ac_ext <<_ACEOF
5392 extern(C) int main() {
5396 if ac_fn_d_try_compile
"$LINENO"; then :
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5398 $as_echo "yes" >&6; }
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5402 as_fn_error $?
"can't compile D sources!" "$LINENO" 5
5404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5406 ac_cpp
='$CPP $CPPFLAGS'
5407 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5412 GDCFLAGS
=$gdc_save_DFLAGS
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5420 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5421 # Check whether --enable-maintainer-mode was given.
5422 if test "${enable_maintainer_mode+set}" = set; then :
5423 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
5425 USE_MAINTAINER_MODE
=no
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5429 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5430 if test $USE_MAINTAINER_MODE = yes; then
5431 MAINTAINER_MODE_TRUE
=
5432 MAINTAINER_MODE_FALSE
='#'
5434 MAINTAINER_MODE_TRUE
='#'
5435 MAINTAINER_MODE_FALSE
=
5438 MAINT
=$MAINTAINER_MODE_TRUE
5441 if test -n "$ac_tool_prefix"; then
5442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5443 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445 $as_echo_n "checking for $ac_word... " >&6; }
5446 if ${ac_cv_prog_RANLIB+:} false
; then :
5447 $as_echo_n "(cached) " >&6
5449 if test -n "$RANLIB"; then
5450 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5456 test -z "$as_dir" && as_dir
=.
5457 for ac_exec_ext
in '' $ac_executable_extensions; do
5458 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5459 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 RANLIB
=$ac_cv_prog_RANLIB
5470 if test -n "$RANLIB"; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5472 $as_echo "$RANLIB" >&6; }
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5480 if test -z "$ac_cv_prog_RANLIB"; then
5481 ac_ct_RANLIB
=$RANLIB
5482 # Extract the first word of "ranlib", so it can be a program name with args.
5483 set dummy ranlib
; ac_word
=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5487 $as_echo_n "(cached) " >&6
5489 if test -n "$ac_ct_RANLIB"; then
5490 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5496 test -z "$as_dir" && as_dir
=.
5497 for ac_exec_ext
in '' $ac_executable_extensions; do
5498 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5499 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5510 if test -n "$ac_ct_RANLIB"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5512 $as_echo "$ac_ct_RANLIB" >&6; }
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5518 if test "x$ac_ct_RANLIB" = x
; then
5521 case $cross_compiling:$ac_tool_warned in
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5525 ac_tool_warned
=yes ;;
5527 RANLIB
=$ac_ct_RANLIB
5530 RANLIB
="$ac_cv_prog_RANLIB"
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5535 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5537 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5538 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5539 $as_echo_n "(cached) " >&6
5541 cat >conftest.
make <<\_ACEOF
5544 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5546 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5547 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5549 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5551 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5555 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5557 $as_echo "yes" >&6; }
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5562 SET_MAKE
="MAKE=${MAKE-make}"
5566 # Add CET specific flags if CET is enabled
5567 # Check whether --enable-cet was given.
5568 if test "${enable_cet+set}" = set; then :
5569 enableval
=$enable_cet;
5570 case "$enableval" in
5572 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5581 $as_echo_n "checking for CET support... " >&6; }
5584 i
[34567]86-*-linux* | x86_64-
*-linux*)
5585 case "$enable_cet" in
5587 # Check if target supports multi-byte NOPs
5588 # and if assembler supports CET insn.
5589 save_CFLAGS
="$CFLAGS"
5590 CFLAGS
="$CFLAGS -fcf-protection"
5591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5598 #if !defined(__SSE2__)
5599 #error target does not support multi-byte NOPs
5608 if ac_fn_c_try_compile
"$LINENO"; then :
5613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5614 CFLAGS
="$save_CFLAGS"
5617 # Check if assembler supports CET.
5618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5629 if ac_fn_c_try_compile
"$LINENO"; then :
5632 as_fn_error $?
"assembler with CET support is required for --enable-cet" "$LINENO" 5
5634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5642 if test x
$enable_cet = xyes
; then
5643 CET_FLAGS
="-fcf-protection -mshstk"
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5645 $as_echo "yes" >&6; }
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5653 # This should be inherited in the recursive make, but ensure it is defined.
5657 CC_FOR_BUILD
=${CC_FOR_BUILD:-gcc}
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5665 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5670 macro_version
='2.2.7a'
5671 macro_revision
='1.3134'
5685 ltmain
="$ac_aux_dir/ltmain.sh"
5687 # Backslashify metacharacters that are still active within
5688 # double-quoted strings.
5689 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5691 # Same as above, but do not quote variable references.
5692 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5694 # Sed substitution to delay expansion of an escaped shell variable in a
5695 # double_quote_subst'ed string.
5696 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5698 # Sed substitution to delay expansion of an escaped single quote.
5699 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5701 # Sed substitution to avoid accidental globbing in evaled expressions
5702 no_glob_subst
='s/\*/\\\*/g'
5704 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5705 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5706 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5709 $as_echo_n "checking how to print strings... " >&6; }
5710 # Test print first, because it will be a builtin if present.
5711 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5712 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5714 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5717 # Use this function as a fallback that always works.
5718 func_fallback_echo ()
5720 eval 'cat <<_LTECHO_EOF
5724 ECHO='func_fallback_echo
'
5727 # func_echo_all arg...
5728 # Invoke $ECHO with all args, space-separated.
5735 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5736 $as_echo "printf" >&6; } ;;
5737 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5738 $as_echo "print -r" >&6; } ;;
5739 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5740 $as_echo "cat" >&6; } ;;
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5757 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5758 if ${ac_cv_path_SED+:} false; then :
5759 $as_echo_n "(cached) " >&6
5761 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5762 for ac_i in 1 2 3 4 5 6 7; do
5763 ac_script="$ac_script$as_nl$ac_script"
5765 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5766 { ac_script=; unset ac_script;}
5767 if test -z "$SED"; then
5768 ac_path_SED_found=false
5769 # Loop through the user's path and
test for each of PROGNAME-LIST
5770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5774 test -z "$as_dir" && as_dir
=.
5775 for ac_prog
in sed gsed
; do
5776 for ac_exec_ext
in '' $ac_executable_extensions; do
5777 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5778 as_fn_executable_p
"$ac_path_SED" ||
continue
5779 # Check for GNU ac_path_SED and select it if it is found.
5780 # Check for GNU $ac_path_SED
5781 case `"$ac_path_SED" --version 2>&1` in
5783 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5786 $as_echo_n 0123456789 >"conftest.in"
5789 cat "conftest.in" "conftest.in" >"conftest.tmp"
5790 mv "conftest.tmp" "conftest.in"
5791 cp "conftest.in" "conftest.nl"
5792 $as_echo '' >> "conftest.nl"
5793 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5794 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5795 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5796 if test $ac_count -gt ${ac_path_SED_max-0}; then
5797 # Best one so far, save it but keep looking for a better one
5798 ac_cv_path_SED
="$ac_path_SED"
5799 ac_path_SED_max
=$ac_count
5801 # 10*(2^10) chars as input seems more than enough
5802 test $ac_count -gt 10 && break
5804 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5807 $ac_path_SED_found && break 3
5812 if test -z "$ac_cv_path_SED"; then
5813 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5821 $as_echo "$ac_cv_path_SED" >&6; }
5822 SED
="$ac_cv_path_SED"
5825 test -z "$SED" && SED
=sed
5826 Xsed
="$SED -e 1s/^X//"
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5839 $as_echo_n "checking for fgrep... " >&6; }
5840 if ${ac_cv_path_FGREP+:} false
; then :
5841 $as_echo_n "(cached) " >&6
5843 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5844 then ac_cv_path_FGREP
="$GREP -F"
5846 if test -z "$FGREP"; then
5847 ac_path_FGREP_found
=false
5848 # Loop through the user's path and test for each of PROGNAME-LIST
5849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5850 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5853 test -z "$as_dir" && as_dir
=.
5854 for ac_prog
in fgrep
; do
5855 for ac_exec_ext
in '' $ac_executable_extensions; do
5856 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5857 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5858 # Check for GNU ac_path_FGREP and select it if it is found.
5859 # Check for GNU $ac_path_FGREP
5860 case `"$ac_path_FGREP" --version 2>&1` in
5862 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5865 $as_echo_n 0123456789 >"conftest.in"
5868 cat "conftest.in" "conftest.in" >"conftest.tmp"
5869 mv "conftest.tmp" "conftest.in"
5870 cp "conftest.in" "conftest.nl"
5871 $as_echo 'FGREP' >> "conftest.nl"
5872 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5873 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5874 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5875 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5876 # Best one so far, save it but keep looking for a better one
5877 ac_cv_path_FGREP
="$ac_path_FGREP"
5878 ac_path_FGREP_max
=$ac_count
5880 # 10*(2^10) chars as input seems more than enough
5881 test $ac_count -gt 10 && break
5883 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5886 $ac_path_FGREP_found && break 3
5891 if test -z "$ac_cv_path_FGREP"; then
5892 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5895 ac_cv_path_FGREP
=$FGREP
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5901 $as_echo "$ac_cv_path_FGREP" >&6; }
5902 FGREP
="$ac_cv_path_FGREP"
5905 test -z "$GREP" && GREP
=grep
5925 # Check whether --with-gnu-ld was given.
5926 if test "${with_gnu_ld+set}" = set; then :
5927 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5933 if test "$GCC" = yes; then
5934 # Check if gcc -print-prog-name=ld gives a path.
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5936 $as_echo_n "checking for ld used by $CC... " >&6; }
5939 # gcc leaves a trailing carriage return which upsets mingw
5940 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5942 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5945 # Accept absolute paths.
5947 re_direlt
='/[^/][^/]*/\.\./'
5948 # Canonicalize the pathname of ld
5949 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5950 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5951 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5953 test -z "$LD" && LD
="$ac_prog"
5956 # If it fails, then pretend we aren't using GCC.
5960 # If it is relative, then search for the first ld in PATH.
5964 elif test "$with_gnu_ld" = yes; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5966 $as_echo_n "checking for GNU ld... " >&6; }
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5969 $as_echo_n "checking for non-GNU ld... " >&6; }
5971 if ${lt_cv_path_LD+:} false
; then :
5972 $as_echo_n "(cached) " >&6
5974 if test -z "$LD"; then
5975 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5976 for ac_dir
in $PATH; do
5978 test -z "$ac_dir" && ac_dir
=.
5979 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5980 lt_cv_path_LD
="$ac_dir/$ac_prog"
5981 # Check to see if the program is GNU ld. I'd rather use --version,
5982 # but apparently some variants of GNU ld only accept -v.
5983 # Break only if it was the GNU/non-GNU ld that we prefer.
5984 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5985 *GNU
* |
*'with BFD'*)
5986 test "$with_gnu_ld" != no
&& break
5989 test "$with_gnu_ld" != yes && break
5996 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6001 if test -n "$LD"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6003 $as_echo "$LD" >&6; }
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6008 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6010 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6011 if ${lt_cv_prog_gnu_ld+:} false
; then :
6012 $as_echo_n "(cached) " >&6
6014 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6015 case `$LD -v 2>&1 </dev/null` in
6016 *GNU
* |
*'with BFD'*)
6017 lt_cv_prog_gnu_ld
=yes
6020 lt_cv_prog_gnu_ld
=no
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6025 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6026 with_gnu_ld
=$lt_cv_prog_gnu_ld
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6037 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6038 if ${lt_cv_path_NM+:} false
; then :
6039 $as_echo_n "(cached) " >&6
6041 if test -n "$NM"; then
6042 # Let the user override the test.
6045 lt_nm_to_check
="${ac_tool_prefix}nm"
6046 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6047 lt_nm_to_check
="$lt_nm_to_check nm"
6049 for lt_tmp_nm
in $lt_nm_to_check; do
6050 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6051 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6053 test -z "$ac_dir" && ac_dir
=.
6054 tmp_nm
="$ac_dir/$lt_tmp_nm"
6055 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
6056 # Check to see if the nm accepts a BSD-compat flag.
6057 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6058 # nm: unknown option "B" ignored
6059 # Tru64's nm complains that /dev/null is an invalid object file
6060 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6061 */dev
/null
* |
*'Invalid file or object type'*)
6062 lt_cv_path_NM
="$tmp_nm -B"
6066 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6068 lt_cv_path_NM
="$tmp_nm -p"
6072 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6073 continue # so that we can try to find one that supports BSD flags
6082 : ${lt_cv_path_NM=no}
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6086 $as_echo "$lt_cv_path_NM" >&6; }
6087 if test "$lt_cv_path_NM" != "no"; then
6090 # Didn't find any BSD compatible name lister, look for dumpbin.
6091 if test -n "$DUMPBIN"; then :
6092 # Let the user override the test.
6094 if test -n "$ac_tool_prefix"; then
6095 for ac_prog
in dumpbin
"link -dump"
6097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6098 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6102 $as_echo_n "(cached) " >&6
6104 if test -n "$DUMPBIN"; then
6105 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6111 test -z "$as_dir" && as_dir
=.
6112 for ac_exec_ext
in '' $ac_executable_extensions; do
6113 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6114 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 DUMPBIN
=$ac_cv_prog_DUMPBIN
6125 if test -n "$DUMPBIN"; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6127 $as_echo "$DUMPBIN" >&6; }
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6134 test -n "$DUMPBIN" && break
6137 if test -z "$DUMPBIN"; then
6138 ac_ct_DUMPBIN
=$DUMPBIN
6139 for ac_prog
in dumpbin
"link -dump"
6141 # Extract the first word of "$ac_prog", so it can be a program name with args.
6142 set dummy
$ac_prog; ac_word
=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6146 $as_echo_n "(cached) " >&6
6148 if test -n "$ac_ct_DUMPBIN"; then
6149 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6155 test -z "$as_dir" && as_dir
=.
6156 for ac_exec_ext
in '' $ac_executable_extensions; do
6157 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6158 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6169 if test -n "$ac_ct_DUMPBIN"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6171 $as_echo "$ac_ct_DUMPBIN" >&6; }
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6178 test -n "$ac_ct_DUMPBIN" && break
6181 if test "x$ac_ct_DUMPBIN" = x
; then
6184 case $cross_compiling:$ac_tool_warned in
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6188 ac_tool_warned
=yes ;;
6190 DUMPBIN
=$ac_ct_DUMPBIN
6194 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6196 DUMPBIN
="$DUMPBIN -symbols"
6204 if test "$DUMPBIN" != ":"; then
6208 test -z "$NM" && NM
=nm
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6216 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6217 if ${lt_cv_nm_interface+:} false
; then :
6218 $as_echo_n "(cached) " >&6
6220 lt_cv_nm_interface
="BSD nm"
6221 echo "int some_variable = 0;" > conftest.
$ac_ext
6222 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6223 (eval "$ac_compile" 2>conftest.err
)
6224 cat conftest.err
>&5
6225 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6226 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6227 cat conftest.err
>&5
6228 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6229 cat conftest.out
>&5
6230 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6231 lt_cv_nm_interface
="MS dumpbin"
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6236 $as_echo "$lt_cv_nm_interface" >&6; }
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6239 $as_echo_n "checking whether ln -s works... " >&6; }
6241 if test "$LN_S" = "ln -s"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6243 $as_echo "yes" >&6; }
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6246 $as_echo "no, using $LN_S" >&6; }
6249 # find the maximum length of command line arguments
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6251 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6252 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6253 $as_echo_n "(cached) " >&6
6260 # On DJGPP, this test can blow up pretty badly due to problems in libc
6261 # (any single argument exceeding 2000 bytes causes a buffer overrun
6262 # during glob expansion). Even if it were fixed, the result of this
6263 # check would be larger than it should be.
6264 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6268 # Under GNU Hurd, this test is not required because there is
6269 # no limit to the length of command line arguments.
6270 # Libtool will interpret -1 as no limit whatsoever
6271 lt_cv_sys_max_cmd_len
=-1;
6274 cygwin
* | mingw
* | cegcc
*)
6275 # On Win9x/ME, this test blows up -- it succeeds, but takes
6276 # about 5 minutes as the teststring grows exponentially.
6277 # Worse, since 9x/ME are not pre-emptively multitasking,
6278 # you end up with a "frozen" computer, even though with patience
6279 # the test eventually succeeds (with a max line length of 256k).
6280 # Instead, let's just punt: use the minimum linelength reported by
6281 # all of the supported platforms: 8192 (on NT/2K/XP).
6282 lt_cv_sys_max_cmd_len
=8192;
6286 # On MiNT this can take a long time and run out of memory.
6287 lt_cv_sys_max_cmd_len
=8192;
6291 # On AmigaOS with pdksh, this test takes hours, literally.
6292 # So we just punt and use a minimum line length of 8192.
6293 lt_cv_sys_max_cmd_len
=8192;
6296 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6297 # This has been around since 386BSD, at least. Likely further.
6298 if test -x /sbin
/sysctl
; then
6299 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6300 elif test -x /usr
/sbin
/sysctl
; then
6301 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6303 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6305 # And add a safety zone
6306 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6307 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6311 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6312 lt_cv_sys_max_cmd_len
=196608
6316 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6317 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6318 # nice to cause kernel panics so lets avoid the loop below.
6319 # First set a reasonable default.
6320 lt_cv_sys_max_cmd_len
=16384
6322 if test -x /sbin
/sysconfig
; then
6323 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6324 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6329 lt_cv_sys_max_cmd_len
=102400
6331 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6332 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6333 if test -n "$kargmax"; then
6334 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6336 lt_cv_sys_max_cmd_len
=32768
6340 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6341 if test -n "$lt_cv_sys_max_cmd_len"; then
6342 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6343 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6345 # Make teststring a little bigger before we do anything with it.
6346 # a 1K string should be a reasonable start.
6347 for i
in 1 2 3 4 5 6 7 8 ; do
6348 teststring
=$teststring$teststring
6350 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6351 # If test is not a shell built-in, we'll probably end up computing a
6352 # maximum length that is only half of the actual maximum length, but
6354 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6355 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6356 test $i != 17 # 1/2 MB should be enough
6359 teststring
=$teststring$teststring
6361 # Only check the string length outside the loop.
6362 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6364 # Add a significant safety factor because C++ compilers can tack on
6365 # massive amounts of additional arguments before passing them to the
6366 # linker. It appears as though 1/2 is a usable value.
6367 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6374 if test -n $lt_cv_sys_max_cmd_len ; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6376 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6379 $as_echo "none" >&6; }
6381 max_cmd_len
=$lt_cv_sys_max_cmd_len
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6393 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6394 # Try some XSI features
6397 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6399 && eval 'test $(( 1 + 1 )) -eq 2 \
6400 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6403 $as_echo "$xsi_shell" >&6; }
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6407 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6409 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6411 && lt_shell_append=yes
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6413 $as_echo "$lt_shell_append" >&6; }
6416 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6426 # test EBCDIC or ASCII
6427 case `echo X|tr X '\101'` in
6428 A) # ASCII based system
6429 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6430 lt_SP2NL='tr \040 \012'
6431 lt_NL2SP='tr \015\012 \040\040'
6433 *) # EBCDIC based system
6434 lt_SP2NL='tr \100 \n'
6435 lt_NL2SP='tr \r\n \100\100'
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6448 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6449 if ${lt_cv_ld_reload_flag+:} false; then :
6450 $as_echo_n "(cached
) " >&6
6452 lt_cv_ld_reload_flag='-r'
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6455 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6456 reload_flag=$lt_cv_ld_reload_flag
6457 case $reload_flag in
6459 *) reload_flag=" $reload_flag" ;;
6461 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6464 if test "$GCC" = yes; then
6465 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6467 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6480 if test -n "$ac_tool_prefix"; then
6481 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6482 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6484 $as_echo_n "checking
for $ac_word...
" >&6; }
6485 if ${ac_cv_prog_OBJDUMP+:} false; then :
6486 $as_echo_n "(cached
) " >&6
6488 if test -n "$OBJDUMP"; then
6489 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6498 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6508 OBJDUMP=$ac_cv_prog_OBJDUMP
6509 if test -n "$OBJDUMP"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6511 $as_echo "$OBJDUMP" >&6; }
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6514 $as_echo "no
" >&6; }
6519 if test -z "$ac_cv_prog_OBJDUMP"; then
6520 ac_ct_OBJDUMP=$OBJDUMP
6521 # Extract the first word of "objdump
", so it can be a program name with args.
6522 set dummy objdump; ac_word=$2
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6524 $as_echo_n "checking
for $ac_word...
" >&6; }
6525 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6526 $as_echo_n "(cached
) " >&6
6528 if test -n "$ac_ct_OBJDUMP"; then
6529 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6538 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6539 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6548 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6549 if test -n "$ac_ct_OBJDUMP"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6551 $as_echo "$ac_ct_OBJDUMP" >&6; }
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6554 $as_echo "no
" >&6; }
6557 if test "x
$ac_ct_OBJDUMP" = x; then
6560 case $cross_compiling:$ac_tool_warned in
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6563 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6564 ac_tool_warned=yes ;;
6566 OBJDUMP=$ac_ct_OBJDUMP
6569 OBJDUMP="$ac_cv_prog_OBJDUMP"
6572 test -z "$OBJDUMP" && OBJDUMP=objdump
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6583 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6584 if ${lt_cv_deplibs_check_method+:} false; then :
6585 $as_echo_n "(cached
) " >&6
6587 lt_cv_file_magic_cmd='$MAGIC_CMD'
6588 lt_cv_file_magic_test_file=
6589 lt_cv_deplibs_check_method='unknown'
6590 # Need to set the preceding variable on all platforms that support
6591 # interlibrary dependencies.
6592 # 'none' -- dependencies not supported.
6593 # `unknown' -- same as none, but documents that we really don't know.
6594 # 'pass_all' -- all dependencies passed with no checks.
6595 # 'test_compile' -- check by making test program.
6596 # 'file_magic [[regex]]' -- check by looking for files in library path
6597 # which responds to the $file_magic_cmd with a given extended regex.
6598 # If you have `file' or equivalent on your system and you're not sure
6599 # whether `pass_all' will *always* work, you probably want this one.
6603 lt_cv_deplibs_check_method=pass_all
6607 lt_cv_deplibs_check_method=pass_all
6611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6612 lt_cv_file_magic_cmd='/usr/bin/file -L'
6613 lt_cv_file_magic_test_file=/shlib/libc.so
6617 # func_win32_libid is a shell function defined in ltmain.sh
6618 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6619 lt_cv_file_magic_cmd='func_win32_libid'
6623 # Base MSYS/MinGW do not provide the 'file' command needed by
6624 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6625 # unless we find 'file', for example because we are cross-compiling.
6626 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6627 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6628 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6629 lt_cv_file_magic_cmd='func_win32_libid'
6631 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6632 lt_cv_file_magic_cmd='$OBJDUMP -f'
6637 # use the weaker test based on 'objdump'. See mingw*.
6638 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6639 lt_cv_file_magic_cmd='$OBJDUMP -f'
6642 darwin* | rhapsody*)
6643 lt_cv_deplibs_check_method=pass_all
6646 freebsd* | dragonfly*)
6647 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6650 # Not sure whether the presence of OpenBSD here was a mistake.
6651 # Let's accept both of them until this is cleared up.
6652 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6653 lt_cv_file_magic_cmd=/usr/bin/file
6654 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6658 lt_cv_deplibs_check_method=pass_all
6663 lt_cv_deplibs_check_method=pass_all
6667 lt_cv_deplibs_check_method=pass_all
6670 hpux10.20* | hpux11*)
6671 lt_cv_file_magic_cmd=/usr/bin/file
6674 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6675 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6678 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]'
6679 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6682 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6683 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6689 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6693 irix5* | irix6* | nonstopux*)
6695 *-32|*"-32 ") libmagic=32-bit;;
6696 *-n32|*"-n32 ") libmagic=N32;;
6697 *-64|*"-64 ") libmagic=64-bit;;
6698 *) libmagic=never-match;;
6700 lt_cv_deplibs_check_method=pass_all
6703 # This must be Linux ELF.
6704 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6705 lt_cv_deplibs_check_method=pass_all
6709 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6712 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6717 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6718 lt_cv_file_magic_cmd=/usr/bin/file
6719 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6723 lt_cv_deplibs_check_method=pass_all
6727 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6734 osf3* | osf4* | osf5*)
6735 lt_cv_deplibs_check_method=pass_all
6739 lt_cv_deplibs_check_method=pass_all
6743 lt_cv_deplibs_check_method=pass_all
6746 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6747 lt_cv_deplibs_check_method=pass_all
6751 case $host_vendor in
6753 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]'
6754 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6757 lt_cv_deplibs_check_method=pass_all
6760 lt_cv_file_magic_cmd='/bin/file'
6761 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6764 lt_cv_file_magic_cmd='/bin/file'
6765 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6766 lt_cv_file_magic_test_file=/lib/libc.so
6769 lt_cv_deplibs_check_method=pass_all
6772 lt_cv_deplibs_check_method=pass_all
6778 lt_cv_deplibs_check_method=pass_all
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6784 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6785 file_magic_cmd=$lt_cv_file_magic_cmd
6786 deplibs_check_method=$lt_cv_deplibs_check_method
6787 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6800 if test -n "$ac_tool_prefix"; then
6801 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6802 set dummy ${ac_tool_prefix}ar; ac_word=$2
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6804 $as_echo_n "checking
for $ac_word...
" >&6; }
6805 if ${ac_cv_prog_AR+:} false; then :
6806 $as_echo_n "(cached
) " >&6
6808 if test -n "$AR"; then
6809 ac_cv_prog_AR="$AR" # Let the user override the test.
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6818 ac_cv_prog_AR="${ac_tool_prefix}ar"
6819 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6829 if test -n "$AR"; then
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6831 $as_echo "$AR" >&6; }
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6834 $as_echo "no
" >&6; }
6839 if test -z "$ac_cv_prog_AR"; then
6841 # Extract the first word of "ar", so it can be a program name with args.
6842 set dummy ar; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6844 $as_echo_n "checking
for $ac_word...
" >&6; }
6845 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6846 $as_echo_n "(cached
) " >&6
6848 if test -n "$ac_ct_AR"; then
6849 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858 ac_cv_prog_ac_ct_AR="ar"
6859 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6868 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6869 if test -n "$ac_ct_AR"; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6871 $as_echo "$ac_ct_AR" >&6; }
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6874 $as_echo "no
" >&6; }
6877 if test "x
$ac_ct_AR" = x; then
6880 case $cross_compiling:$ac_tool_warned in
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6883 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6884 ac_tool_warned=yes ;;
6892 test -z "$AR" && AR=ar
6893 test -z "$AR_FLAGS" && AR_FLAGS=cru
6905 if test -n "$ac_tool_prefix"; then
6906 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6907 set dummy ${ac_tool_prefix}strip; ac_word=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6909 $as_echo_n "checking
for $ac_word...
" >&6; }
6910 if ${ac_cv_prog_STRIP+:} false; then :
6911 $as_echo_n "(cached
) " >&6
6913 if test -n "$STRIP"; then
6914 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6923 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6924 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6933 STRIP=$ac_cv_prog_STRIP
6934 if test -n "$STRIP"; then
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6936 $as_echo "$STRIP" >&6; }
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6939 $as_echo "no
" >&6; }
6944 if test -z "$ac_cv_prog_STRIP"; then
6946 # Extract the first word of "strip
", so it can be a program name with args.
6947 set dummy strip; ac_word=$2
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6949 $as_echo_n "checking
for $ac_word...
" >&6; }
6950 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6951 $as_echo_n "(cached
) " >&6
6953 if test -n "$ac_ct_STRIP"; then
6954 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6963 ac_cv_prog_ac_ct_STRIP="strip
"
6964 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6973 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6974 if test -n "$ac_ct_STRIP"; then
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6976 $as_echo "$ac_ct_STRIP" >&6; }
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6979 $as_echo "no
" >&6; }
6982 if test "x
$ac_ct_STRIP" = x; then
6985 case $cross_compiling:$ac_tool_warned in
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6988 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6989 ac_tool_warned=yes ;;
6994 STRIP="$ac_cv_prog_STRIP"
6997 test -z "$STRIP" && STRIP=:
7004 if test -n "$ac_tool_prefix"; then
7005 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
7006 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7008 $as_echo_n "checking
for $ac_word...
" >&6; }
7009 if ${ac_cv_prog_RANLIB+:} false; then :
7010 $as_echo_n "(cached
) " >&6
7012 if test -n "$RANLIB"; then
7013 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7032 RANLIB=$ac_cv_prog_RANLIB
7033 if test -n "$RANLIB"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
7035 $as_echo "$RANLIB" >&6; }
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7038 $as_echo "no
" >&6; }
7043 if test -z "$ac_cv_prog_RANLIB"; then
7044 ac_ct_RANLIB=$RANLIB
7045 # Extract the first word of "ranlib
", so it can be a program name with args.
7046 set dummy ranlib; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7048 $as_echo_n "checking
for $ac_word...
" >&6; }
7049 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7050 $as_echo_n "(cached
) " >&6
7052 if test -n "$ac_ct_RANLIB"; then
7053 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062 ac_cv_prog_ac_ct_RANLIB="ranlib
"
7063 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7072 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7073 if test -n "$ac_ct_RANLIB"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
7075 $as_echo "$ac_ct_RANLIB" >&6; }
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7078 $as_echo "no
" >&6; }
7081 if test "x
$ac_ct_RANLIB" = x; then
7084 case $cross_compiling:$ac_tool_warned in
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7087 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7088 ac_tool_warned=yes ;;
7090 RANLIB=$ac_ct_RANLIB
7093 RANLIB="$ac_cv_prog_RANLIB"
7096 test -z "$RANLIB" && RANLIB=:
7103 # Determine commands to create old-style static archives.
7104 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7105 old_postinstall_cmds='chmod 644 $oldlib'
7106 old_postuninstall_cmds=
7108 if test -n "$RANLIB"; then
7111 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
7114 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
7117 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
7122 lock_old_archive_extraction=yes ;;
7124 lock_old_archive_extraction=no ;;
7165 # If no C compiler was specified, use CC.
7168 # If no C compiler flags were specified, use CFLAGS.
7169 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7171 # Allow CC to be a program name with arguments.
7175 # Check for command to grab the raw symbol name followed by C symbol from nm.
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7177 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7178 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7179 $as_echo_n "(cached
) " >&6
7182 # These are sane defaults that work on at least a few old systems.
7183 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7185 # Character class describing NM global symbol codes.
7186 symcode='[BCDEGRST]'
7188 # Regexp to match symbols that can be accessed directly from C.
7189 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7191 # Define system-specific variables.
7196 cygwin* | mingw* | pw32* | cegcc*)
7197 symcode='[ABCDGISTW]'
7200 if test "$host_cpu" = ia64; then
7201 symcode='[ABCDEGRST]'
7205 symcode='[BCDEGRST]'
7208 symcode='[BCDEGQRST]'
7219 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7227 # If we're using GNU nm, then use its standard symbol codes.
7228 case `$NM -V 2>&1` in
7229 *GNU* | *'with BFD'*)
7230 symcode='[ABCDGIRSTW]' ;;
7233 # Transform an extracted symbol line into a proper C declaration.
7234 # Some systems (esp. on ia64) link data and code symbols differently,
7235 # so use this general approach.
7236 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7238 # Transform an extracted symbol line into symbol name and symbol address
7239 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7240 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'"
7242 # Handle CRLF in mingw tool chain
7246 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7250 # Try without a prefix underscore, then with it.
7251 for ac_symprfx in "" "_
"; do
7253 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7254 symxfrm="\\1 $ac_symprfx\\2 \\2"
7256 # Write the raw and C identifiers.
7257 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7258 # Fake it for dumpbin and say T for any non-static function
7259 # and D for any global variable.
7260 # Also find C++ and __fastcall symbols from MSVC++,
7261 # which start with @ or ?.
7262 lt_cv_sys_global_symbol_pipe="$AWK '"\
7263 " {last_section=section; section=\$ 3};"\
7264 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7265 " \$ 0!~/External *\|/{next};"\
7266 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7267 " {if(hide[section]) next};"\
7268 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7269 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7270 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7271 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7272 " ' prfx
=^
$ac_symprfx"
7274 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7277 # Check to see that the pipe works correctly.
7281 cat > conftest.$ac_ext <<_LT_EOF
7286 void nm_test_func(void);
7287 void nm_test_func(void){}
7291 int main(){nm_test_var='a';nm_test_func();return(0);}
7294 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7295 (eval $ac_compile) 2>&5
7297 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7298 test $ac_status = 0; }; then
7299 # Now try to grab the symbols.
7301 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7302 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7304 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7305 test $ac_status = 0; } && test -s "$nlist"; then
7306 # Try sorting and uniquifying the output.
7307 if sort "$nlist" | uniq > "$nlist"T; then
7308 mv -f "$nlist"T "$nlist"
7313 # Make sure that we snagged all the symbols we need.
7314 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7315 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7316 cat <<_LT_EOF > conftest.$ac_ext
7322 # Now generate the symbol file.
7323 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7325 cat <<_LT_EOF >> conftest.$ac_ext
7327 /* The mapping between symbol names and symbols. */
7332 lt__PROGRAM__LTX_preloaded_symbols[] =
7334 { "@PROGRAM@
", (void *) 0 },
7336 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7337 cat <<\_LT_EOF >> conftest.$ac_ext
7341 /* This works around a problem in FreeBSD linker */
7342 #ifdef FREEBSD_WORKAROUND
7343 static const void *lt_preloaded_setup() {
7344 return lt__PROGRAM__LTX_preloaded_symbols;
7352 # Now try linking the two files.
7353 mv conftest.$ac_objext conftstm.$ac_objext
7354 lt_save_LIBS="$LIBS"
7355 lt_save_CFLAGS="$CFLAGS"
7356 LIBS="conftstm.
$ac_objext"
7357 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7358 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7359 (eval $ac_link) 2>&5
7361 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7362 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7365 LIBS="$lt_save_LIBS"
7366 CFLAGS="$lt_save_CFLAGS"
7368 echo "cannot
find nm_test_func
in $nlist" >&5
7371 echo "cannot
find nm_test_var
in $nlist" >&5
7374 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7377 echo "$progname: failed program was
:" >&5
7378 cat conftest.$ac_ext >&5
7380 rm -rf conftest* conftst*
7382 # Do not use the global_symbol_pipe unless it works.
7383 if test "$pipe_works" = yes; then
7386 lt_cv_sys_global_symbol_pipe=
7392 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7393 lt_cv_sys_global_symbol_to_cdecl=
7395 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7397 $as_echo "failed
" >&6; }
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7400 $as_echo "ok
" >&6; }
7424 # Check whether --enable-libtool-lock was given.
7425 if test "${enable_libtool_lock+set}" = set; then :
7426 enableval=$enable_libtool_lock;
7429 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7431 # Some flags need to be propagated to the compiler or linker for good
7435 # Find out which ABI we are using.
7436 echo 'int i;' > conftest.$ac_ext
7437 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7438 (eval $ac_compile) 2>&5
7440 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7441 test $ac_status = 0; }; then
7442 case `/usr/bin/file conftest.$ac_objext` in
7454 # Find out which ABI we are using.
7455 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7456 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7457 (eval $ac_compile) 2>&5
7459 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7460 test $ac_status = 0; }; then
7461 if test "$lt_cv_prog_gnu_ld" = yes; then
7462 case `/usr/bin/file conftest.$ac_objext` in
7464 LD="${LD-ld} -melf32bsmip"
7467 LD="${LD-ld} -melf32bmipn32"
7470 LD="${LD-ld} -melf64bmip"
7474 case `/usr/bin/file conftest.$ac_objext` in
7490 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7491 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7492 # Find out which ABI we are using.
7493 echo 'int i;' > conftest.$ac_ext
7494 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7495 (eval $ac_compile) 2>&5
7497 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7498 test $ac_status = 0; }; then
7499 case `/usr/bin/file conftest.o` in
7502 x86_64-*kfreebsd*-gnu)
7503 LD="${LD-ld} -m elf_i386_fbsd
"
7506 case `/usr/bin/file conftest.o` in
7508 LD="${LD-ld} -m elf32_x86_64
"
7511 LD="${LD-ld} -m elf_i386
"
7515 powerpc64le-*linux*)
7516 LD="${LD-ld} -m elf32lppclinux
"
7519 LD="${LD-ld} -m elf32ppclinux
"
7522 LD="${LD-ld} -m elf_s390
"
7525 LD="${LD-ld} -m elf32_sparc
"
7531 x86_64-*kfreebsd*-gnu)
7532 LD="${LD-ld} -m elf_x86_64_fbsd
"
7535 LD="${LD-ld} -m elf_x86_64
"
7538 LD="${LD-ld} -m elf64lppc
"
7541 LD="${LD-ld} -m elf64ppc
"
7543 s390*-*linux*|s390*-*tpf*)
7544 LD="${LD-ld} -m elf64_s390
"
7547 LD="${LD-ld} -m elf64_sparc
"
7557 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7558 SAVE_CFLAGS="$CFLAGS"
7559 CFLAGS="$CFLAGS -belf"
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7561 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7562 if ${lt_cv_cc_needs_belf+:} false; then :
7563 $as_echo_n "(cached
) " >&6
7566 ac_cpp='$CPP $CPPFLAGS'
7567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7582 if ac_fn_c_try_link "$LINENO"; then :
7583 lt_cv_cc_needs_belf=yes
7585 lt_cv_cc_needs_belf=no
7587 rm -f core conftest.err conftest.$ac_objext \
7588 conftest$ac_exeext conftest.$ac_ext
7590 ac_cpp='$CPP $CPPFLAGS'
7591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7597 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7598 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7599 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7600 CFLAGS="$SAVE_CFLAGS"
7604 # Find out which ABI we are using.
7605 echo 'int i;' > conftest.$ac_ext
7606 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7607 (eval $ac_compile) 2>&5
7609 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7610 test $ac_status = 0; }; then
7611 case `/usr/bin/file conftest.o` in
7613 case $lt_cv_prog_gnu_ld in
7614 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7616 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7628 need_locks="$enable_libtool_lock"
7632 rhapsody* | darwin*)
7633 if test -n "$ac_tool_prefix"; then
7634 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7635 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7637 $as_echo_n "checking
for $ac_word...
" >&6; }
7638 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7639 $as_echo_n "(cached
) " >&6
7641 if test -n "$DSYMUTIL"; then
7642 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7652 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7661 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7662 if test -n "$DSYMUTIL"; then
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7664 $as_echo "$DSYMUTIL" >&6; }
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7667 $as_echo "no
" >&6; }
7672 if test -z "$ac_cv_prog_DSYMUTIL"; then
7673 ac_ct_DSYMUTIL=$DSYMUTIL
7674 # Extract the first word of "dsymutil
", so it can be a program name with args.
7675 set dummy dsymutil; ac_word=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7677 $as_echo_n "checking
for $ac_word...
" >&6; }
7678 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7679 $as_echo_n "(cached
) " >&6
7681 if test -n "$ac_ct_DSYMUTIL"; then
7682 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7691 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7692 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7701 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7702 if test -n "$ac_ct_DSYMUTIL"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7704 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7707 $as_echo "no
" >&6; }
7710 if test "x
$ac_ct_DSYMUTIL" = x; then
7713 case $cross_compiling:$ac_tool_warned in
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7716 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7717 ac_tool_warned=yes ;;
7719 DSYMUTIL=$ac_ct_DSYMUTIL
7722 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7725 if test -n "$ac_tool_prefix"; then
7726 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7727 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7729 $as_echo_n "checking
for $ac_word...
" >&6; }
7730 if ${ac_cv_prog_NMEDIT+:} false; then :
7731 $as_echo_n "(cached
) " >&6
7733 if test -n "$NMEDIT"; then
7734 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7744 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7753 NMEDIT=$ac_cv_prog_NMEDIT
7754 if test -n "$NMEDIT"; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7756 $as_echo "$NMEDIT" >&6; }
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7759 $as_echo "no
" >&6; }
7764 if test -z "$ac_cv_prog_NMEDIT"; then
7765 ac_ct_NMEDIT=$NMEDIT
7766 # Extract the first word of "nmedit
", so it can be a program name with args.
7767 set dummy nmedit; ac_word=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7769 $as_echo_n "checking
for $ac_word...
" >&6; }
7770 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7771 $as_echo_n "(cached
) " >&6
7773 if test -n "$ac_ct_NMEDIT"; then
7774 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7784 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7793 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7794 if test -n "$ac_ct_NMEDIT"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7796 $as_echo "$ac_ct_NMEDIT" >&6; }
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7799 $as_echo "no
" >&6; }
7802 if test "x
$ac_ct_NMEDIT" = x; then
7805 case $cross_compiling:$ac_tool_warned in
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7808 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7809 ac_tool_warned=yes ;;
7811 NMEDIT=$ac_ct_NMEDIT
7814 NMEDIT="$ac_cv_prog_NMEDIT"
7817 if test -n "$ac_tool_prefix"; then
7818 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7819 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7821 $as_echo_n "checking
for $ac_word...
" >&6; }
7822 if ${ac_cv_prog_LIPO+:} false; then :
7823 $as_echo_n "(cached
) " >&6
7825 if test -n "$LIPO"; then
7826 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832 test -z "$as_dir" && as_dir=.
7833 for ac_exec_ext in '' $ac_executable_extensions; do
7834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7835 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7836 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7845 LIPO=$ac_cv_prog_LIPO
7846 if test -n "$LIPO"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7848 $as_echo "$LIPO" >&6; }
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7851 $as_echo "no
" >&6; }
7856 if test -z "$ac_cv_prog_LIPO"; then
7858 # Extract the first word of "lipo
", so it can be a program name with args.
7859 set dummy lipo; ac_word=$2
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7861 $as_echo_n "checking
for $ac_word...
" >&6; }
7862 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7863 $as_echo_n "(cached
) " >&6
7865 if test -n "$ac_ct_LIPO"; then
7866 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7875 ac_cv_prog_ac_ct_LIPO="lipo
"
7876 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7885 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7886 if test -n "$ac_ct_LIPO"; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7888 $as_echo "$ac_ct_LIPO" >&6; }
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7891 $as_echo "no
" >&6; }
7894 if test "x
$ac_ct_LIPO" = x; then
7897 case $cross_compiling:$ac_tool_warned in
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7900 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7901 ac_tool_warned=yes ;;
7906 LIPO="$ac_cv_prog_LIPO"
7909 if test -n "$ac_tool_prefix"; then
7910 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7911 set dummy ${ac_tool_prefix}otool; ac_word=$2
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7913 $as_echo_n "checking
for $ac_word...
" >&6; }
7914 if ${ac_cv_prog_OTOOL+:} false; then :
7915 $as_echo_n "(cached
) " >&6
7917 if test -n "$OTOOL"; then
7918 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 test -z "$as_dir" && as_dir=.
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7927 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7928 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7937 OTOOL=$ac_cv_prog_OTOOL
7938 if test -n "$OTOOL"; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7940 $as_echo "$OTOOL" >&6; }
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7943 $as_echo "no
" >&6; }
7948 if test -z "$ac_cv_prog_OTOOL"; then
7950 # Extract the first word of "otool
", so it can be a program name with args.
7951 set dummy otool; ac_word=$2
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7953 $as_echo_n "checking
for $ac_word...
" >&6; }
7954 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7955 $as_echo_n "(cached
) " >&6
7957 if test -n "$ac_ct_OTOOL"; then
7958 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7967 ac_cv_prog_ac_ct_OTOOL="otool
"
7968 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7977 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7978 if test -n "$ac_ct_OTOOL"; then
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7980 $as_echo "$ac_ct_OTOOL" >&6; }
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7983 $as_echo "no
" >&6; }
7986 if test "x
$ac_ct_OTOOL" = x; then
7989 case $cross_compiling:$ac_tool_warned in
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7992 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7993 ac_tool_warned=yes ;;
7998 OTOOL="$ac_cv_prog_OTOOL"
8001 if test -n "$ac_tool_prefix"; then
8002 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
8003 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8005 $as_echo_n "checking
for $ac_word...
" >&6; }
8006 if ${ac_cv_prog_OTOOL64+:} false; then :
8007 $as_echo_n "(cached
) " >&6
8009 if test -n "$OTOOL64"; then
8010 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016 test -z "$as_dir" && as_dir=.
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8019 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
8020 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8029 OTOOL64=$ac_cv_prog_OTOOL64
8030 if test -n "$OTOOL64"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
8032 $as_echo "$OTOOL64" >&6; }
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8035 $as_echo "no
" >&6; }
8040 if test -z "$ac_cv_prog_OTOOL64"; then
8041 ac_ct_OTOOL64=$OTOOL64
8042 # Extract the first word of "otool64
", so it can be a program name with args.
8043 set dummy otool64; ac_word=$2
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8045 $as_echo_n "checking
for $ac_word...
" >&6; }
8046 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8047 $as_echo_n "(cached
) " >&6
8049 if test -n "$ac_ct_OTOOL64"; then
8050 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056 test -z "$as_dir" && as_dir=.
8057 for ac_exec_ext in '' $ac_executable_extensions; do
8058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8059 ac_cv_prog_ac_ct_OTOOL64="otool64
"
8060 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8069 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8070 if test -n "$ac_ct_OTOOL64"; then
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
8072 $as_echo "$ac_ct_OTOOL64" >&6; }
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8075 $as_echo "no
" >&6; }
8078 if test "x
$ac_ct_OTOOL64" = x; then
8081 case $cross_compiling:$ac_tool_warned in
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8084 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8085 ac_tool_warned=yes ;;
8087 OTOOL64=$ac_ct_OTOOL64
8090 OTOOL64="$ac_cv_prog_OTOOL64"
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8120 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8121 if ${lt_cv_apple_cc_single_mod+:} false; then :
8122 $as_echo_n "(cached
) " >&6
8124 lt_cv_apple_cc_single_mod=no
8125 if test -z "${LT_MULTI_MODULE}"; then
8126 # By default we will add the -single_module flag. You can override
8127 # by either setting the environment variable LT_MULTI_MODULE
8128 # non-empty at configure time, or by adding -multi_module to the
8130 rm -rf libconftest.dylib*
8131 echo "int foo
(void
){return 1;}" > conftest.c
8132 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8133 -dynamiclib -Wl,-single_module conftest.c
" >&5
8134 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8135 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8137 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8138 lt_cv_apple_cc_single_mod=yes
8140 cat conftest.err >&5
8142 rm -rf libconftest.dylib*
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8147 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8149 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8150 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8151 $as_echo_n "(cached
) " >&6
8153 lt_cv_ld_exported_symbols_list=no
8154 save_LDFLAGS=$LDFLAGS
8155 echo "_main
" > conftest.sym
8156 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8168 if ac_fn_c_try_link "$LINENO"; then :
8169 lt_cv_ld_exported_symbols_list=yes
8171 lt_cv_ld_exported_symbols_list=no
8173 rm -f core conftest.err conftest.$ac_objext \
8174 conftest$ac_exeext conftest.$ac_ext
8175 LDFLAGS="$save_LDFLAGS"
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
8179 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
8181 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
8182 if ${lt_cv_ld_force_load+:} false; then :
8183 $as_echo_n "(cached
) " >&6
8185 lt_cv_ld_force_load=no
8186 cat > conftest.c << _LT_EOF
8187 int forced_loaded() { return 2;}
8189 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
8190 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8191 echo "$AR cru libconftest.a conftest.o
" >&5
8192 $AR cru libconftest.a conftest.o 2>&5
8193 cat > conftest.c << _LT_EOF
8194 int main() { return 0;}
8196 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
8197 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8199 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8200 lt_cv_ld_force_load=yes
8202 cat conftest.err >&5
8204 rm -f conftest.err libconftest.a conftest conftest.c
8205 rm -rf conftest.dSYM
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8209 $as_echo "$lt_cv_ld_force_load" >&6; }
8211 rhapsody* | darwin1.[012])
8212 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8214 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8215 darwin*) # darwin 5.x on
8216 # if running on 10.5 or later, the deployment target defaults
8217 # to the OS version, if on x86, and 10.4, the deployment
8218 # target defaults to 10.4. Don't you love it?
8219 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8220 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8221 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8223 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8225 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8229 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8230 _lt_dar_single_mod='$single_module'
8232 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8233 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8235 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8237 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8238 _lt_dsymutil='~$DSYMUTIL $lib || :'
8245 for ac_header in dlfcn.h
8247 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8249 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8250 cat >>confdefs.h <<_ACEOF
8251 #define HAVE_DLFCN_H 1
8271 # Check whether --enable-shared was given.
8272 if test "${enable_shared+set}" = set; then :
8273 enableval=$enable_shared; p=${PACKAGE-default}
8275 yes) enable_shared=yes ;;
8276 no) enable_shared=no ;;
8279 # Look at the argument we got. We use all the common list separators.
8280 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8281 for pkg in $enableval; do
8283 if test "X
$pkg" = "X
$p"; then
8302 # Check whether --enable-static was given.
8303 if test "${enable_static+set}" = set; then :
8304 enableval=$enable_static; p=${PACKAGE-default}
8306 yes) enable_static=yes ;;
8307 no) enable_static=no ;;
8310 # Look at the argument we got. We use all the common list separators.
8311 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8312 for pkg in $enableval; do
8314 if test "X
$pkg" = "X
$p"; then
8334 # Check whether --with-pic was given.
8335 if test "${with_pic+set}" = set; then :
8336 withval=$with_pic; pic_mode="$withval"
8342 test -z "$pic_mode" && pic_mode=default
8350 # Check whether --enable-fast-install was given.
8351 if test "${enable_fast_install+set}" = set; then :
8352 enableval=$enable_fast_install; p=${PACKAGE-default}
8354 yes) enable_fast_install=yes ;;
8355 no) enable_fast_install=no ;;
8357 enable_fast_install=no
8358 # Look at the argument we got. We use all the common list separators.
8359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8360 for pkg in $enableval; do
8362 if test "X
$pkg" = "X
$p"; then
8363 enable_fast_install=yes
8370 enable_fast_install=yes
8383 # This can be used to rebuild libtool when needed
8384 LIBTOOL_DEPS="$ltmain"
8386 # Always use our own libtool.
8387 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8414 test -z "$LN_S" && LN_S="ln -s"
8429 if test -n "${ZSH_VERSION+set}" ; then
8430 setopt NO_GLOB_SUBST
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8434 $as_echo_n "checking
for objdir...
" >&6; }
8435 if ${lt_cv_objdir+:} false; then :
8436 $as_echo_n "(cached
) " >&6
8438 rm -f .libs 2>/dev/null
8439 mkdir .libs 2>/dev/null
8440 if test -d .libs; then
8443 # MS-DOS does not allow filenames that begin with a dot.
8446 rmdir .libs 2>/dev/null
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8449 $as_echo "$lt_cv_objdir" >&6; }
8450 objdir=$lt_cv_objdir
8456 cat >>confdefs.h <<_ACEOF
8457 #define LT_OBJDIR "$lt_cv_objdir/"
8465 # AIX sometimes has problems with the GCC collect2 program. For some
8466 # reason, if we set the COLLECT_NAMES environment variable, the problems
8467 # vanish in a puff of smoke.
8468 if test "X
${COLLECT_NAMES+set}" != Xset; then
8470 export COLLECT_NAMES
8477 can_build_shared=yes
8479 # All known linkers require a `.a' archive for static linking (except MSVC,
8480 # which needs '.lib').
8483 with_gnu_ld="$lt_cv_prog_gnu_ld"
8486 old_CFLAGS="$CFLAGS"
8488 # Set sane defaults for various variables
8489 test -z "$CC" && CC=cc
8490 test -z "$LTCC" && LTCC=$CC
8491 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8492 test -z "$LD" && LD=ld
8493 test -z "$ac_objext" && ac_objext=o
8495 for cc_temp in $compiler""; do
8497 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8498 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8503 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8506 # Only perform the check for file, if the check method requires it
8507 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8508 case $deplibs_check_method in
8510 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8512 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8513 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8514 $as_echo_n "(cached
) " >&6
8518 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8521 lt_save_MAGIC_CMD="$MAGIC_CMD"
8522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8523 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8524 for ac_dir in $ac_dummy; do
8526 test -z "$ac_dir" && ac_dir=.
8527 if test -f $ac_dir/${ac_tool_prefix}file; then
8528 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8529 if test -n "$file_magic_test_file"; then
8530 case $deplibs_check_method in
8532 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8534 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8535 $EGREP "$file_magic_regex" > /dev/null; then
8540 *** Warning: the command libtool uses to detect shared libraries,
8541 *** $file_magic_cmd, produces output that libtool cannot recognize.
8542 *** The result is that libtool may fail to recognize shared libraries
8543 *** as such. This will affect the creation of libtool libraries that
8544 *** depend on shared libraries, but programs linked with such libtool
8545 *** libraries will work regardless of this problem. Nevertheless, you
8546 *** may want to report the problem to your system manager and/or to
8547 *** bug-libtool@gnu.org
8557 MAGIC_CMD="$lt_save_MAGIC_CMD"
8562 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8563 if test -n "$MAGIC_CMD"; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8565 $as_echo "$MAGIC_CMD" >&6; }
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8568 $as_echo "no
" >&6; }
8575 if test -z "$lt_cv_path_MAGIC_CMD"; then
8576 if test -n "$ac_tool_prefix"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8578 $as_echo_n "checking
for file...
" >&6; }
8579 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8580 $as_echo_n "(cached
) " >&6
8584 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8587 lt_save_MAGIC_CMD="$MAGIC_CMD"
8588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8589 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8590 for ac_dir in $ac_dummy; do
8592 test -z "$ac_dir" && ac_dir=.
8593 if test -f $ac_dir/file; then
8594 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8595 if test -n "$file_magic_test_file"; then
8596 case $deplibs_check_method in
8598 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8599 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8600 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8601 $EGREP "$file_magic_regex" > /dev/null; then
8606 *** Warning: the command libtool uses to detect shared libraries,
8607 *** $file_magic_cmd, produces output that libtool cannot recognize.
8608 *** The result is that libtool may fail to recognize shared libraries
8609 *** as such. This will affect the creation of libtool libraries that
8610 *** depend on shared libraries, but programs linked with such libtool
8611 *** libraries will work regardless of this problem. Nevertheless, you
8612 *** may want to report the problem to your system manager and/or to
8613 *** bug-libtool@gnu.org
8623 MAGIC_CMD="$lt_save_MAGIC_CMD"
8628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8629 if test -n "$MAGIC_CMD"; then
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8631 $as_echo "$MAGIC_CMD" >&6; }
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8634 $as_echo "no
" >&6; }
8647 # Use C for the default configuration in the libtool script
8651 ac_cpp='$CPP $CPPFLAGS'
8652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8657 # Source file extension for C test sources.
8660 # Object file extension for compiled C test sources.
8664 # Code to be used in simple compile tests
8665 lt_simple_compile_test_code="int some_variable
= 0;"
8667 # Code to be used in simple link tests
8668 lt_simple_link_test_code='int main(){return(0);}'
8676 # If no C compiler was specified, use CC.
8679 # If no C compiler flags were specified, use CFLAGS.
8680 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8682 # Allow CC to be a program name with arguments.
8685 # Save the default compiler, since it gets overwritten when the other
8686 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8687 compiler_DEFAULT=$CC
8689 # save warnings/boilerplate of simple test code
8690 ac_outfile=conftest.$ac_objext
8691 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8692 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8693 _lt_compiler_boilerplate=`cat conftest.err`
8696 ac_outfile=conftest.$ac_objext
8697 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8698 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8699 _lt_linker_boilerplate=`cat conftest.err`
8704 ## There is no encapsulation within the following macros, do not change
8705 ## the running order or otherwise move them around unless you know exactly
8706 ## what you are doing...
8707 if test -n "$compiler"; then
8709 lt_prog_compiler_no_builtin_flag=
8711 if test "$GCC" = yes; then
8712 case $cc_basename in
8714 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8716 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
8720 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
8721 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8722 $as_echo_n "(cached
) " >&6
8724 lt_cv_prog_compiler_rtti_exceptions=no
8725 ac_outfile=conftest.$ac_objext
8726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8727 lt_compiler_flag="-fno-rtti -fno-exceptions"
8728 # Insert the option either (1) after the last *FLAGS variable, or
8729 # (2) before a word containing "conftest.
", or (3) at the end.
8730 # Note that $ac_compile itself does not contain backslashes and begins
8731 # with a dollar sign (not a hyphen), so the echo should work correctly.
8732 # The option is referenced via a variable to avoid confusing sed.
8733 lt_compile=`echo "$ac_compile" | $SED \
8734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8736 -e 's:$: $lt_compiler_flag:'`
8737 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8738 (eval "$lt_compile" 2>conftest.err)
8740 cat conftest.err >&5
8741 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8742 if (exit $ac_status) && test -s "$ac_outfile"; then
8743 # The compiler can only warn and ignore the option if not recognized
8744 # So say no if there are warnings other than the usual output.
8745 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8748 lt_cv_prog_compiler_rtti_exceptions=yes
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
8755 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8757 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8758 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8770 lt_prog_compiler_wl=
8771 lt_prog_compiler_pic=
8772 lt_prog_compiler_static=
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
8775 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
8777 if test "$GCC" = yes; then
8778 lt_prog_compiler_wl='-Wl,'
8779 lt_prog_compiler_static='-static'
8783 # All AIX code is PIC.
8784 if test "$host_cpu" = ia64; then
8785 # AIX 5 now supports IA64 processor
8786 lt_prog_compiler_static='-Bstatic'
8788 lt_prog_compiler_pic='-fPIC'
8794 # see comment about AmigaOS4 .so support
8795 lt_prog_compiler_pic='-fPIC'
8798 # FIXME: we need at least 68020 code to build shared libraries, but
8799 # adding the `-m68020' flag to GCC prevents building anything better,
8801 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8806 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8807 # PIC is the default for these OSes.
8810 mingw* | cygwin* | pw32* | os2* | cegcc*)
8811 # This hack is so that the source file can tell whether it is being
8812 # built for inclusion in a dll (and should export symbols for example).
8813 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8814 # (--disable-auto-import) libraries
8815 lt_prog_compiler_pic='-DDLL_EXPORT'
8818 darwin* | rhapsody*)
8819 # PIC is the default on this platform
8820 # Common symbols not allowed in MH_DYLIB files
8821 lt_prog_compiler_pic='-fno-common'
8825 # PIC is the default for Haiku.
8826 # The "-static" flag exists, but is broken.
8827 lt_prog_compiler_static=
8831 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8832 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8833 # sets the default TLS model and affects inlining.
8839 lt_prog_compiler_pic='-fPIC'
8845 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8846 # Instead, we relocate shared libraries at runtime.
8850 # Just because we use GCC doesn't mean we suddenly get shared libraries
8851 # on systems that don't support them.
8852 lt_prog_compiler_can_build_shared=no
8857 # QNX uses GNU C++, but need to define -shared option too, otherwise
8859 lt_prog_compiler_pic='-fPIC -shared'
8863 if test -d /usr/nec; then
8864 lt_prog_compiler_pic=-Kconform_pic
8869 lt_prog_compiler_pic='-fPIC'
8873 case $cc_basename in
8874 nvcc*) # Cuda Compiler Driver 2.2
8875 lt_prog_compiler_wl='-Xlinker '
8876 lt_prog_compiler_pic='-Xcompiler -fPIC'
8880 # PORTME Check for flag to pass linker flags through the system compiler.
8883 lt_prog_compiler_wl='-Wl,'
8884 if test "$host_cpu" = ia64; then
8885 # AIX 5 now supports IA64 processor
8886 lt_prog_compiler_static='-Bstatic'
8888 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8892 mingw* | cygwin* | pw32* | os2* | cegcc*)
8893 # This hack is so that the source file can tell whether it is being
8894 # built for inclusion in a dll (and should export symbols for example).
8895 lt_prog_compiler_pic='-DDLL_EXPORT'
8898 hpux9* | hpux10* | hpux11*)
8899 lt_prog_compiler_wl='-Wl,'
8900 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8907 lt_prog_compiler_pic='+Z'
8910 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8911 lt_prog_compiler_static='${wl}-a ${wl}archive'
8914 irix5* | irix6* | nonstopux*)
8915 lt_prog_compiler_wl='-Wl,'
8916 # PIC (with -KPIC) is the default.
8917 lt_prog_compiler_static='-non_shared'
8920 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8921 case $cc_basename in
8922 # old Intel for x86_64 which still supported -KPIC.
8924 lt_prog_compiler_wl='-Wl,'
8925 lt_prog_compiler_pic='-KPIC'
8926 lt_prog_compiler_static='-static'
8928 # icc used to be incompatible with GCC.
8929 # ICC 10 doesn't accept -KPIC any more.
8931 lt_prog_compiler_wl='-Wl,'
8932 lt_prog_compiler_pic='-fPIC'
8933 lt_prog_compiler_static='-static'
8935 # Lahey Fortran 8.1.
8937 lt_prog_compiler_wl='-Wl,'
8938 lt_prog_compiler_pic='--shared'
8939 lt_prog_compiler_static='--static'
8941 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8942 # Portland Group compilers (*not* the Pentium gcc compiler,
8943 # which looks to be a dead project)
8944 lt_prog_compiler_wl='-Wl,'
8945 lt_prog_compiler_pic='-fpic'
8946 lt_prog_compiler_static='-Bstatic'
8949 lt_prog_compiler_wl='-Wl,'
8950 # All Alpha code is PIC.
8951 lt_prog_compiler_static='-non_shared'
8953 xl* | bgxl* | bgf* | mpixl*)
8954 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8955 lt_prog_compiler_wl='-Wl,'
8956 lt_prog_compiler_pic='-qpic'
8957 lt_prog_compiler_static='-qstaticlink'
8960 case `$CC -V 2>&1 | sed 5q` in
8961 *Sun\ F* | *Sun*Fortran*)
8962 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8963 lt_prog_compiler_pic='-KPIC'
8964 lt_prog_compiler_static='-Bstatic'
8965 lt_prog_compiler_wl=''
8969 lt_prog_compiler_pic='-KPIC'
8970 lt_prog_compiler_static='-Bstatic'
8971 lt_prog_compiler_wl='-Wl,'
8979 lt_prog_compiler_pic='-KPIC'
8980 lt_prog_compiler_static='-Bstatic'
8984 # QNX uses GNU C++, but need to define -shared option too, otherwise
8986 lt_prog_compiler_pic='-fPIC -shared'
8989 osf3* | osf4* | osf5*)
8990 lt_prog_compiler_wl='-Wl,'
8991 # All OSF/1 code is PIC.
8992 lt_prog_compiler_static='-non_shared'
8996 lt_prog_compiler_static='-non_shared'
9000 lt_prog_compiler_pic='-KPIC'
9001 lt_prog_compiler_static='-Bstatic'
9002 case $cc_basename in
9004 lt_prog_compiler_wl='-Qoption ld ';;
9006 lt_prog_compiler_wl='-Wl,';;
9011 lt_prog_compiler_wl='-Qoption ld '
9012 lt_prog_compiler_pic='-PIC'
9013 lt_prog_compiler_static='-Bstatic'
9016 sysv4 | sysv4.2uw2* | sysv4.3*)
9017 lt_prog_compiler_wl='-Wl,'
9018 lt_prog_compiler_pic='-KPIC'
9019 lt_prog_compiler_static='-Bstatic'
9023 if test -d /usr/nec ;then
9024 lt_prog_compiler_pic='-Kconform_pic'
9025 lt_prog_compiler_static='-Bstatic'
9029 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9030 lt_prog_compiler_wl='-Wl,'
9031 lt_prog_compiler_pic='-KPIC'
9032 lt_prog_compiler_static='-Bstatic'
9036 lt_prog_compiler_wl='-Wl,'
9037 lt_prog_compiler_can_build_shared=no
9041 lt_prog_compiler_pic='-pic'
9042 lt_prog_compiler_static='-Bstatic'
9046 lt_prog_compiler_can_build_shared=no
9052 # For platforms which do not support PIC, -DPIC is meaningless:
9054 lt_prog_compiler_pic=
9057 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
9061 $as_echo "$lt_prog_compiler_pic" >&6; }
9069 # Check to make sure the PIC flag actually works.
9071 if test -n "$lt_prog_compiler_pic"; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
9073 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
9074 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9075 $as_echo_n "(cached
) " >&6
9077 lt_cv_prog_compiler_pic_works=no
9078 ac_outfile=conftest.$ac_objext
9079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9080 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9081 # Insert the option either (1) after the last *FLAGS variable, or
9082 # (2) before a word containing "conftest.
", or (3) at the end.
9083 # Note that $ac_compile itself does not contain backslashes and begins
9084 # with a dollar sign (not a hyphen), so the echo should work correctly.
9085 # The option is referenced via a variable to avoid confusing sed.
9086 lt_compile=`echo "$ac_compile" | $SED \
9087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9089 -e 's:$: $lt_compiler_flag:'`
9090 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9091 (eval "$lt_compile" 2>conftest.err)
9093 cat conftest.err >&5
9094 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9095 if (exit $ac_status) && test -s "$ac_outfile"; then
9096 # The compiler can only warn and ignore the option if not recognized
9097 # So say no if there are warnings other than the usual output.
9098 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9100 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9101 lt_cv_prog_compiler_pic_works=yes
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
9108 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9110 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9111 case $lt_prog_compiler_pic in
9113 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9116 lt_prog_compiler_pic=
9117 lt_prog_compiler_can_build_shared=no
9128 # Check to make sure the static flag actually works.
9130 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
9132 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
9133 if ${lt_cv_prog_compiler_static_works+:} false; then :
9134 $as_echo_n "(cached
) " >&6
9136 lt_cv_prog_compiler_static_works=no
9137 save_LDFLAGS="$LDFLAGS"
9138 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9139 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9140 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9141 # The linker can only warn and ignore the option if not recognized
9142 # So say no if there are warnings
9143 if test -s conftest.err; then
9144 # Append any errors to the config.log.
9145 cat conftest.err 1>&5
9146 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9147 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9148 if diff conftest.exp conftest.er2 >/dev/null; then
9149 lt_cv_prog_compiler_static_works=yes
9152 lt_cv_prog_compiler_static_works=yes
9156 LDFLAGS="$save_LDFLAGS"
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
9160 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9162 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9165 lt_prog_compiler_static=
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9175 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9176 if ${lt_cv_prog_compiler_c_o+:} false; then :
9177 $as_echo_n "(cached
) " >&6
9179 lt_cv_prog_compiler_c_o=no
9180 $RM -r conftest 2>/dev/null
9184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9186 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9187 # Insert the option either (1) after the last *FLAGS variable, or
9188 # (2) before a word containing "conftest.
", or (3) at the end.
9189 # Note that $ac_compile itself does not contain backslashes and begins
9190 # with a dollar sign (not a hyphen), so the echo should work correctly.
9191 lt_compile=`echo "$ac_compile" | $SED \
9192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9194 -e 's:$: $lt_compiler_flag:'`
9195 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9196 (eval "$lt_compile" 2>out/conftest.err)
9198 cat out/conftest.err >&5
9199 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9200 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9202 # The compiler can only warn and ignore the option if not recognized
9203 # So say no if there are warnings
9204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9205 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9206 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9207 lt_cv_prog_compiler_c_o=yes
9212 # SGI C++ compiler will create directory out/ii_files/ for
9213 # template instantiation
9214 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9215 $RM out/* && rmdir out
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9222 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9230 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9231 if ${lt_cv_prog_compiler_c_o+:} false; then :
9232 $as_echo_n "(cached
) " >&6
9234 lt_cv_prog_compiler_c_o=no
9235 $RM -r conftest 2>/dev/null
9239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9241 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9242 # Insert the option either (1) after the last *FLAGS variable, or
9243 # (2) before a word containing "conftest.
", or (3) at the end.
9244 # Note that $ac_compile itself does not contain backslashes and begins
9245 # with a dollar sign (not a hyphen), so the echo should work correctly.
9246 lt_compile=`echo "$ac_compile" | $SED \
9247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9249 -e 's:$: $lt_compiler_flag:'`
9250 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9251 (eval "$lt_compile" 2>out/conftest.err)
9253 cat out/conftest.err >&5
9254 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9255 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9257 # The compiler can only warn and ignore the option if not recognized
9258 # So say no if there are warnings
9259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9260 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9261 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9262 lt_cv_prog_compiler_c_o=yes
9267 # SGI C++ compiler will create directory out/ii_files/ for
9268 # template instantiation
9269 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9270 $RM out/* && rmdir out
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9277 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9282 hard_links="nottested
"
9283 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9284 # do not overwrite the value of need_locks provided by the user
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9286 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9289 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9291 ln conftest.a conftest.b 2>&5 || hard_links=no
9292 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9294 $as_echo "$hard_links" >&6; }
9295 if test "$hard_links" = no; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9297 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9310 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9313 allow_undefined_flag=
9314 always_export_symbols=no
9316 archive_expsym_cmds=
9317 compiler_needs_object=no
9318 enable_shared_with_static_runtimes=no
9319 export_dynamic_flag_spec=
9320 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9321 hardcode_automatic=no
9323 hardcode_direct_absolute=no
9324 hardcode_libdir_flag_spec=
9325 hardcode_libdir_flag_spec_ld=
9326 hardcode_libdir_separator=
9328 hardcode_shlibpath_var=unsupported
9330 link_all_deplibs=unknown
9333 old_archive_from_new_cmds=
9334 old_archive_from_expsyms_cmds=
9335 thread_safe_flag_spec=
9336 whole_archive_flag_spec=
9337 # include_expsyms should be a list of space-separated symbols to be *always*
9338 # included in the symbol list
9340 # exclude_expsyms can be an extended regexp of symbols to exclude
9341 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9342 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9343 # as well as any symbol that contains `d'.
9344 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9345 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9346 # platforms (ab)use it in PIC code, but their linkers get confused if
9347 # the symbol is explicitly referenced. Since portable code cannot
9348 # rely on this symbol name, it's probably fine to never include it in
9349 # preloaded symbol tables.
9350 # Exclude shared library initialization/finalization symbols.
9351 extract_expsyms_cmds=
9354 cygwin* | mingw* | pw32* | cegcc*)
9355 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9356 # When not using gcc, we currently assume that we are using
9357 # Microsoft Visual C++.
9358 if test "$GCC" != yes; then
9363 # we just hope/assume this is gcc and not c89 (= MSVC++)
9373 # On some targets, GNU ld is compatible enough with the native linker
9374 # that we're better off using the native interface for both.
9375 lt_use_gnu_ld_interface=no
9376 if test "$with_gnu_ld" = yes; then
9379 # The AIX port of GNU ld has always aspired to compatibility
9380 # with the native linker. However, as the warning in the GNU ld
9381 # block says, versions before 2.19.5* couldn't really create working
9382 # shared libraries, regardless of the interface used.
9383 case `$LD -v 2>&1` in
9384 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9385 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9386 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9388 lt_use_gnu_ld_interface=yes
9393 lt_use_gnu_ld_interface=yes
9398 if test "$lt_use_gnu_ld_interface" = yes; then
9399 # If archive_cmds runs LD, not CC, wlarc should be empty
9402 # Set some defaults for GNU ld with shared library support. These
9403 # are reset later if shared libraries are not supported. Putting them
9404 # here allows them to be overridden if necessary.
9405 runpath_var=LD_RUN_PATH
9406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9407 export_dynamic_flag_spec='${wl}--export-dynamic'
9408 # ancient GNU ld didn't support --whole-archive et. al.
9409 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9410 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9412 whole_archive_flag_spec=
9414 supports_anon_versioning=no
9415 case `$LD -v 2>&1` in
9416 *GNU\ gold*) supports_anon_versioning=yes ;;
9417 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9418 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9419 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9420 *\ 2.11.*) ;; # other 2.11 versions
9421 *) supports_anon_versioning=yes ;;
9424 # See if GNU ld supports shared libraries.
9427 # On AIX/PPC, the GNU linker is very broken
9428 if test "$host_cpu" != ia64; then
9432 *** Warning: the GNU linker, at least up to release 2.19, is reported
9433 *** to be unable to reliably create shared libraries on AIX.
9434 *** Therefore, libtool is disabling shared libraries support. If you
9435 *** really care for shared libraries, you may want to install binutils
9436 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9437 *** You will then need to restart the configuration process.
9446 # see comment about AmigaOS4 .so support
9447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9448 archive_expsym_cmds=''
9451 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)'
9452 hardcode_libdir_flag_spec
='-L$libdir'
9453 hardcode_minus_L
=yes
9459 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9460 allow_undefined_flag
=unsupported
9461 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9462 # support --undefined. This deserves some investigation. FIXME
9463 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9469 cygwin
* | mingw
* | pw32
* | cegcc
*)
9470 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9471 # as there is no search path for DLLs.
9472 hardcode_libdir_flag_spec
='-L$libdir'
9473 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9474 allow_undefined_flag
=unsupported
9475 always_export_symbols
=no
9476 enable_shared_with_static_runtimes
=yes
9477 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9479 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9480 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9481 # If the export-symbols file already is a .def file (1st line
9482 # is EXPORTS), use it as is; otherwise, prepend...
9483 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9484 cp $export_symbols $output_objdir/$soname.def;
9486 echo EXPORTS > $output_objdir/$soname.def;
9487 cat $export_symbols >> $output_objdir/$soname.def;
9489 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9496 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9497 link_all_deplibs
=yes
9502 hardcode_shlibpath_var
=no
9503 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9504 export_dynamic_flag_spec
='${wl}-E'
9505 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9506 # Instead, shared libraries are loaded at an image base (0x10000000 by
9507 # default) and relocated if they conflict, which is a slow very memory
9508 # consuming and fragmenting process. To avoid this, we pick a random,
9509 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9510 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9511 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9512 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'
9515 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9517 if test "$host_os" = linux-dietlibc
; then
9518 case $cc_basename in
9519 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9522 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9523 && test "$tmp_diet" = no
9525 tmp_addflag
=' $pic_flag'
9526 tmp_sharedflag
='-shared'
9527 case $cc_basename,$host_cpu in
9528 pgcc
*) # Portland Group C compiler
9529 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'
9530 tmp_addflag
=' $pic_flag'
9532 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9533 # Portland Group f77 and f90 compilers
9534 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'
9535 tmp_addflag
=' $pic_flag -Mnomain' ;;
9536 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9537 tmp_addflag
=' -i_dynamic' ;;
9538 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9539 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9540 ifc
* | ifort
*) # Intel Fortran compiler
9541 tmp_addflag
=' -nofor_main' ;;
9542 lf95
*) # Lahey Fortran 8.1
9543 whole_archive_flag_spec
=
9544 tmp_sharedflag
='--shared' ;;
9545 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9546 tmp_sharedflag
='-qmkshrobj'
9548 nvcc
*) # Cuda Compiler Driver 2.2
9549 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'
9550 compiler_needs_object
=yes
9553 case `$CC -V 2>&1 | sed 5q` in
9554 *Sun\ C
*) # Sun C 5.9
9555 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'
9556 compiler_needs_object
=yes
9557 tmp_sharedflag
='-G' ;;
9558 *Sun\ F
*) # Sun Fortran 8.3
9559 tmp_sharedflag
='-G' ;;
9561 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9563 if test "x$supports_anon_versioning" = xyes
; then
9564 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9565 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9566 echo "local: *; };" >> $output_objdir/$libname.ver~
9567 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9570 case $cc_basename in
9571 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9572 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9573 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9574 hardcode_libdir_flag_spec
=
9575 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9576 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9577 if test "x$supports_anon_versioning" = xyes
; then
9578 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9579 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9580 echo "local: *; };" >> $output_objdir/$libname.ver~
9581 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9591 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9592 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9595 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9596 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9601 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9605 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9606 *** create shared libraries on Solaris systems. Therefore, libtool
9607 *** is disabling shared libraries support. We urge you to upgrade GNU
9608 *** binutils to release 2.9.1 or newer. Another option is to modify
9609 *** your PATH or compiler configuration so that the native linker is
9610 *** used, and then restart.
9613 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9614 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9615 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9621 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9622 case `$LD -v 2>&1` in
9623 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9627 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9628 *** reliably create shared libraries on SCO systems. Therefore, libtool
9629 *** is disabling shared libraries support. We urge you to upgrade GNU
9630 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9631 *** your PATH or compiler configuration so that the native linker is
9632 *** used, and then restart.
9637 # For security reasons, it is highly recommended that you always
9638 # use absolute paths for naming shared libraries, and exclude the
9639 # DT_RUNPATH tag from executables and libraries. But doing so
9640 # requires that you compile everything twice, which is a pain.
9641 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9642 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9643 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9644 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9653 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9656 hardcode_shlibpath_var
=no
9660 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9661 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9662 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9669 if test "$ld_shlibs" = no
; then
9671 hardcode_libdir_flag_spec
=
9672 export_dynamic_flag_spec
=
9673 whole_archive_flag_spec
=
9676 # PORTME fill in a description of your system's linker (not GNU ld)
9679 allow_undefined_flag
=unsupported
9680 always_export_symbols
=yes
9681 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'
9682 # Note: this linker hardcodes the directories in LIBPATH if there
9683 # are no directories specified by -L.
9684 hardcode_minus_L
=yes
9685 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9686 # Neither direct hardcoding nor static linking is supported with a
9688 hardcode_direct
=unsupported
9693 if test "$host_cpu" = ia64
; then
9694 # On IA64, the linker does run time linking by default, so we don't
9695 # have to do anything special.
9696 aix_use_runtimelinking
=no
9697 exp_sym_flag
='-Bexport'
9700 # If we're using GNU nm, then we don't want the "-C" option.
9701 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9702 # Also, AIX nm treats weak defined symbols like other global
9703 # defined symbols, whereas GNU nm marks them as "W".
9704 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9705 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'
9707 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'
9709 aix_use_runtimelinking
=no
9711 # Test if we are trying to use run time linking or normal
9712 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9713 # need to do runtime linking.
9714 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9715 for ld_flag
in $LDFLAGS; do
9716 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9717 aix_use_runtimelinking
=yes
9724 exp_sym_flag
='-bexport'
9725 no_entry_flag
='-bnoentry'
9728 # When large executables or shared objects are built, AIX ld can
9729 # have problems creating the table of contents. If linking a library
9730 # or program results in "error TOC overflow" add -mminimal-toc to
9731 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9732 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9736 hardcode_direct_absolute
=yes
9737 hardcode_libdir_separator
=':'
9738 link_all_deplibs
=yes
9739 file_list_spec
='${wl}-f,'
9741 if test "$GCC" = yes; then
9742 case $host_os in aix4.
[012]|aix4.
[012].
*)
9743 # We only want to do this on AIX 4.2 and lower, the check
9744 # below for broken collect2 doesn't work under 4.3+
9745 collect2name
=`${CC} -print-prog-name=collect2`
9746 if test -f "$collect2name" &&
9747 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9749 # We have reworked collect2
9752 # We have old collect2
9753 hardcode_direct
=unsupported
9754 # It fails to find uninstalled libraries when the uninstalled
9755 # path is not listed in the libpath. Setting hardcode_minus_L
9756 # to unsupported forces relinking
9757 hardcode_minus_L
=yes
9758 hardcode_libdir_flag_spec
='-L$libdir'
9759 hardcode_libdir_separator
=
9763 shared_flag
='-shared'
9764 if test "$aix_use_runtimelinking" = yes; then
9765 shared_flag
="$shared_flag "'${wl}-G'
9769 if test "$host_cpu" = ia64
; then
9770 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9771 # chokes on -Wl,-G. The following line is correct:
9774 if test "$aix_use_runtimelinking" = yes; then
9775 shared_flag
='${wl}-G'
9777 shared_flag
='${wl}-bM:SRE'
9782 export_dynamic_flag_spec
='${wl}-bexpall'
9783 # It seems that -bexpall does not export symbols beginning with
9784 # underscore (_), so it is better to generate a list of symbols to export.
9785 always_export_symbols
=yes
9786 if test "$aix_use_runtimelinking" = yes; then
9787 # Warning - without using the other runtime loading flags (-brtl),
9788 # -berok will link without error, but may produce a broken library.
9789 allow_undefined_flag
='-berok'
9790 # Determine the default libpath from the value encoded in an
9792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h. */
9803 if ac_fn_c_try_link
"$LINENO"; then :
9805 lt_aix_libpath_sed
='
9806 /Import File Strings/,/^$/ {
9812 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9813 # Check for a 64-bit object if we didn't find anything.
9814 if test -z "$aix_libpath"; then
9815 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9818 rm -f core conftest.err conftest.
$ac_objext \
9819 conftest
$ac_exeext conftest.
$ac_ext
9820 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9822 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9823 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"
9825 if test "$host_cpu" = ia64
; then
9826 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9827 allow_undefined_flag
="-z nodefs"
9828 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"
9830 # Determine the default libpath from the value encoded in an
9832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9843 if ac_fn_c_try_link
"$LINENO"; then :
9845 lt_aix_libpath_sed
='
9846 /Import File Strings/,/^$/ {
9852 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9853 # Check for a 64-bit object if we didn't find anything.
9854 if test -z "$aix_libpath"; then
9855 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9858 rm -f core conftest.err conftest.
$ac_objext \
9859 conftest
$ac_exeext conftest.
$ac_ext
9860 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9862 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9863 # Warning - without using the other run time loading flags,
9864 # -berok will link without error, but may produce a broken library.
9865 no_undefined_flag
=' ${wl}-bernotok'
9866 allow_undefined_flag
=' ${wl}-berok'
9867 if test "$with_gnu_ld" = yes; then
9868 # We only use this code for GNU lds that support --whole-archive.
9869 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9871 # Exported symbols can be pulled into shared objects from archives
9872 whole_archive_flag_spec
='$convenience'
9874 archive_cmds_need_lc
=yes
9875 # This is similar to how AIX traditionally builds its shared libraries.
9876 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'
9884 # see comment about AmigaOS4 .so support
9885 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9886 archive_expsym_cmds
=''
9889 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)'
9890 hardcode_libdir_flag_spec
='-L$libdir'
9891 hardcode_minus_L
=yes
9897 export_dynamic_flag_spec
=-rdynamic
9900 cygwin
* | mingw
* | pw32
* | cegcc
*)
9901 # When not using gcc, we currently assume that we are using
9902 # Microsoft Visual C++.
9903 # hardcode_libdir_flag_spec is actually meaningless, as there is
9904 # no search path for DLLs.
9905 hardcode_libdir_flag_spec
=' '
9906 allow_undefined_flag
=unsupported
9907 # Tell ltmain to make .lib files, not .a files.
9909 # Tell ltmain to make .dll files, not .so files.
9911 # FIXME: Setting linknames here is a bad hack.
9912 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9913 # The linker will automatically build a .lib file if we build a DLL.
9914 old_archive_from_new_cmds
='true'
9915 # FIXME: Should let the user specify the lib program.
9916 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9917 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9918 enable_shared_with_static_runtimes
=yes
9921 darwin
* | rhapsody
*)
9924 archive_cmds_need_lc
=no
9926 hardcode_automatic
=yes
9927 hardcode_shlibpath_var
=unsupported
9928 if test "$lt_cv_ld_force_load" = "yes"; then
9929 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\"`'
9931 whole_archive_flag_spec
=''
9933 link_all_deplibs
=yes
9934 allow_undefined_flag
="$_lt_dar_allow_undefined"
9935 case $cc_basename in
9936 ifort
*) _lt_dar_can_shared
=yes ;;
9937 *) _lt_dar_can_shared
=$GCC ;;
9939 if test "$_lt_dar_can_shared" = "yes"; then
9940 output_verbose_link_cmd
=func_echo_all
9941 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9942 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9943 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}"
9944 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}"
9953 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9954 hardcode_libdir_flag_spec
='-L$libdir'
9955 hardcode_shlibpath_var
=no
9958 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9959 # support. Future versions do this automatically, but an explicit c++rt0.o
9960 # does not break anything, and helps significantly (at the cost of a little
9963 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9964 hardcode_libdir_flag_spec
='-R$libdir'
9966 hardcode_shlibpath_var
=no
9969 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9971 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9973 hardcode_minus_L
=yes
9974 hardcode_shlibpath_var
=no
9977 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9978 freebsd
* | dragonfly
*)
9979 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9980 hardcode_libdir_flag_spec
='-R$libdir'
9982 hardcode_shlibpath_var
=no
9986 if test "$GCC" = yes; then
9987 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'
9989 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'
9991 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9992 hardcode_libdir_separator
=:
9995 # hardcode_minus_L: Not really in the search PATH,
9996 # but as the default location of the library.
9997 hardcode_minus_L
=yes
9998 export_dynamic_flag_spec
='${wl}-E'
10002 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10003 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10005 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10007 if test "$with_gnu_ld" = no
; then
10008 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10009 hardcode_libdir_flag_spec_ld
='+b $libdir'
10010 hardcode_libdir_separator
=:
10011 hardcode_direct
=yes
10012 hardcode_direct_absolute
=yes
10013 export_dynamic_flag_spec
='${wl}-E'
10014 # hardcode_minus_L: Not really in the search PATH,
10015 # but as the default location of the library.
10016 hardcode_minus_L
=yes
10021 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10024 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10027 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10030 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10036 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10039 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10043 # Older versions of the 11.00 compiler do not understand -b yet
10044 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10046 $as_echo_n "checking if $CC understands -b... " >&6; }
10047 if ${lt_cv_prog_compiler__b+:} false
; then :
10048 $as_echo_n "(cached) " >&6
10050 lt_cv_prog_compiler__b
=no
10051 save_LDFLAGS
="$LDFLAGS"
10052 LDFLAGS
="$LDFLAGS -b"
10053 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10054 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10055 # The linker can only warn and ignore the option if not recognized
10056 # So say no if there are warnings
10057 if test -s conftest.err
; then
10058 # Append any errors to the config.log.
10059 cat conftest.err
1>&5
10060 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10061 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10062 if diff conftest.exp conftest.er2
>/dev
/null
; then
10063 lt_cv_prog_compiler__b
=yes
10066 lt_cv_prog_compiler__b
=yes
10070 LDFLAGS
="$save_LDFLAGS"
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10074 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10076 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
10077 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10079 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10085 if test "$with_gnu_ld" = no
; then
10086 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10087 hardcode_libdir_separator
=:
10092 hardcode_shlibpath_var
=no
10095 hardcode_direct
=yes
10096 hardcode_direct_absolute
=yes
10097 export_dynamic_flag_spec
='${wl}-E'
10099 # hardcode_minus_L: Not really in the search PATH,
10100 # but as the default location of the library.
10101 hardcode_minus_L
=yes
10107 irix5
* | irix6
* | nonstopux
*)
10108 if test "$GCC" = yes; then
10109 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'
10110 # Try to use the -exported_symbol ld option, if it does not
10111 # work, assume that -exports_file does not work either and
10112 # implicitly export all symbols.
10113 save_LDFLAGS
="$LDFLAGS"
10114 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10116 /* end confdefs.h. */
10119 if ac_fn_c_try_link
"$LINENO"; then :
10120 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'
10123 rm -f core conftest.err conftest.
$ac_objext \
10124 conftest
$ac_exeext conftest.
$ac_ext
10125 LDFLAGS
="$save_LDFLAGS"
10127 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'
10128 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'
10130 archive_cmds_need_lc
='no'
10131 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10132 hardcode_libdir_separator
=:
10134 link_all_deplibs
=yes
10138 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10139 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10141 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10143 hardcode_libdir_flag_spec
='-R$libdir'
10144 hardcode_direct
=yes
10145 hardcode_shlibpath_var
=no
10149 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150 hardcode_direct
=yes
10151 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10152 hardcode_libdir_separator
=:
10153 hardcode_shlibpath_var
=no
10160 if test -f /usr
/libexec
/ld.so
; then
10161 hardcode_direct
=yes
10162 hardcode_shlibpath_var
=no
10163 hardcode_direct_absolute
=yes
10164 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10165 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10166 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10167 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10168 export_dynamic_flag_spec
='${wl}-E'
10171 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10172 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10173 hardcode_libdir_flag_spec
='-R$libdir'
10176 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10177 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10187 hardcode_libdir_flag_spec
='-L$libdir'
10188 hardcode_minus_L
=yes
10189 allow_undefined_flag
=unsupported
10190 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'
10191 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10195 if test "$GCC" = yes; then
10196 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10197 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'
10199 allow_undefined_flag
=' -expect_unresolved \*'
10200 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'
10202 archive_cmds_need_lc
='no'
10203 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10204 hardcode_libdir_separator
=:
10207 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10208 if test "$GCC" = yes; then
10209 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10210 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'
10211 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10213 allow_undefined_flag
=' -expect_unresolved \*'
10214 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'
10215 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~
10216 $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'
10218 # Both c and cxx compiler support -rpath directly
10219 hardcode_libdir_flag_spec
='-rpath $libdir'
10221 archive_cmds_need_lc
='no'
10222 hardcode_libdir_separator
=:
10226 no_undefined_flag
=' -z defs'
10227 if test "$GCC" = yes; then
10229 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10230 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10231 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10233 case `$CC -V 2>&1` in
10236 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10237 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10238 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10242 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10243 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10244 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10248 hardcode_libdir_flag_spec
='-R$libdir'
10249 hardcode_shlibpath_var
=no
10251 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10253 # The compiler driver will combine and reorder linker options,
10254 # but understands `-z linker_flag'. GCC discards it without `$wl',
10255 # but is careful enough not to reorder.
10256 # Supported since Solaris 2.6 (maybe 2.5.1?)
10257 if test "$GCC" = yes; then
10258 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10260 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10264 link_all_deplibs
=yes
10268 if test "x$host_vendor" = xsequent
; then
10269 # Use $CC to link under sequent, because it throws in some extra .o
10270 # files that make .init and .fini sections work.
10271 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10273 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10275 hardcode_libdir_flag_spec
='-L$libdir'
10276 hardcode_direct
=yes
10277 hardcode_minus_L
=yes
10278 hardcode_shlibpath_var
=no
10282 case $host_vendor in
10284 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10285 hardcode_direct
=yes # is this really true???
10288 ## LD is ld it makes a PLAMLIB
10289 ## CC just makes a GrossModule.
10290 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10291 reload_cmds
='$CC -r -o $output$reload_objs'
10295 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10296 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10299 runpath_var
='LD_RUN_PATH'
10300 hardcode_shlibpath_var
=no
10304 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10305 hardcode_shlibpath_var
=no
10306 export_dynamic_flag_spec
='-Bexport'
10310 if test -d /usr
/nec
; then
10311 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10312 hardcode_shlibpath_var
=no
10313 runpath_var
=LD_RUN_PATH
10314 hardcode_runpath_var
=yes
10319 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10320 no_undefined_flag
='${wl}-z,text'
10321 archive_cmds_need_lc
=no
10322 hardcode_shlibpath_var
=no
10323 runpath_var
='LD_RUN_PATH'
10325 if test "$GCC" = yes; then
10326 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10327 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10329 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10330 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10334 sysv5
* | sco3.2v5
* | sco5v6
*)
10335 # Note: We can NOT use -z defs as we might desire, because we do not
10336 # link with -lc, and that would cause any symbols used from libc to
10337 # always be unresolved, which means just about no library would
10338 # ever link correctly. If we're not using GNU ld we use -z text
10339 # though, which does catch some bad symbols but isn't as heavy-handed
10341 no_undefined_flag
='${wl}-z,text'
10342 allow_undefined_flag
='${wl}-z,nodefs'
10343 archive_cmds_need_lc
=no
10344 hardcode_shlibpath_var
=no
10345 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10346 hardcode_libdir_separator
=':'
10347 link_all_deplibs
=yes
10348 export_dynamic_flag_spec
='${wl}-Bexport'
10349 runpath_var
='LD_RUN_PATH'
10351 if test "$GCC" = yes; then
10352 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10353 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10355 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10356 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10361 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362 hardcode_libdir_flag_spec
='-L$libdir'
10363 hardcode_shlibpath_var
=no
10371 if test x
$host_vendor = xsni
; then
10373 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10374 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10381 $as_echo "$ld_shlibs" >&6; }
10382 test "$ld_shlibs" = no
&& can_build_shared
=no
10384 with_gnu_ld
=$with_gnu_ld
10401 # Do we need to explicitly link libc?
10403 case "x$archive_cmds_need_lc" in
10405 # Assume -lc should be added
10406 archive_cmds_need_lc
=yes
10408 if test "$enable_shared" = yes && test "$GCC" = yes; then
10409 case $archive_cmds in
10411 # FIXME: we may have to deal with multi-command sequences.
10414 # Test whether the compiler implicitly links with -lc since on some
10415 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10416 # to ld, don't add -lc before -lgcc.
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10418 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10419 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10420 $as_echo_n "(cached) " >&6
10423 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10426 (eval $ac_compile) 2>&5
10428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10429 test $ac_status = 0; } 2>conftest.err
; then
10432 libobjs
=conftest.
$ac_objext
10434 wl
=$lt_prog_compiler_wl
10435 pic_flag
=$lt_prog_compiler_pic
10441 lt_save_allow_undefined_flag
=$allow_undefined_flag
10442 allow_undefined_flag
=
10443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10444 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10447 test $ac_status = 0; }
10449 lt_cv_archive_cmds_need_lc
=no
10451 lt_cv_archive_cmds_need_lc
=yes
10453 allow_undefined_flag
=$lt_save_allow_undefined_flag
10455 cat conftest.err
1>&5
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10461 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10462 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10626 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10628 if test "$GCC" = yes; then
10630 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10631 *) lt_awk_arg
="/^libraries:/" ;;
10634 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10635 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10637 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10638 case $lt_search_path_spec in
10640 # if the path contains ";" then we assume it to be the separator
10641 # otherwise default to the standard path separator (i.e. ":") - it is
10642 # assumed that no part of a normal pathname contains ";" but that should
10643 # okay in the real world where ";" in dirpaths is itself problematic.
10644 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10647 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10650 # Ok, now we have the path, separated by spaces, we can step through it
10651 # and add multilib dir if necessary.
10652 lt_tmp_lt_search_path_spec
=
10653 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10654 for lt_sys_path
in $lt_search_path_spec; do
10655 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10656 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10658 test -d "$lt_sys_path" && \
10659 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10662 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10663 BEGIN {RS=" "; FS="/|\n";} {
10666 for (lt_i = NF; lt_i > 0; lt_i--) {
10667 if ($lt_i != "" && $lt_i != ".") {
10668 if ($lt_i == "..") {
10671 if (lt_count == 0) {
10672 lt_foo="/" $lt_i lt_foo;
10679 if (lt_foo != "") { lt_freq[lt_foo]++; }
10680 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10682 # AWK program above erroneously prepends '/' to C:/dos/paths
10685 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10686 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10688 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10690 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10692 library_names_spec
=
10693 libname_spec
='lib$name'
10697 postuninstall_cmds
=
10701 shlibpath_overrides_runpath
=unknown
10703 dynamic_linker
="$host_os ld.so"
10704 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10705 need_lib_prefix
=unknown
10706 hardcode_into_libs
=no
10708 # when you set need_version to no, make sure it does not cause -set_version
10709 # flags to be left without arguments
10710 need_version
=unknown
10715 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10716 shlibpath_var
=LIBPATH
10718 # AIX 3 has no versioning support, so we append a major version to the name.
10719 soname_spec
='${libname}${release}${shared_ext}$major'
10726 hardcode_into_libs
=yes
10727 if test "$host_cpu" = ia64
; then
10728 # AIX 5 supports IA64
10729 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10730 shlibpath_var
=LD_LIBRARY_PATH
10732 # With GCC up to 2.95.x, collect2 would create an import file
10733 # for dependence libraries. The import file would start with
10734 # the line `#! .'. This would cause the generated library to
10735 # depend on `.', always an invalid library. This was fixed in
10736 # development snapshots of GCC prior to 3.0.
10738 aix4 | aix4.
[01] | aix4.
[01].
*)
10739 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10741 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10744 can_build_shared
=no
10748 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10749 # soname into executable. Probably we can add versioning support to
10750 # collect2, so additional links can be useful in future.
10751 if test "$aix_use_runtimelinking" = yes; then
10752 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10753 # instead of lib<name>.a to let people know that these are not
10754 # typical AIX shared libraries.
10755 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10757 # We preserve .a as extension for shared libraries through AIX4.2
10758 # and later when we are not doing run time linking.
10759 library_names_spec
='${libname}${release}.a $libname.a'
10760 soname_spec
='${libname}${release}${shared_ext}$major'
10762 shlibpath_var
=LIBPATH
10769 # Since July 2007 AmigaOS4 officially supports .so libraries.
10770 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10771 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774 library_names_spec
='$libname.ixlibrary $libname.a'
10775 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10776 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'
10782 library_names_spec
='${libname}${shared_ext}'
10783 dynamic_linker
="$host_os ld.so"
10784 shlibpath_var
=LIBRARY_PATH
10790 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791 soname_spec
='${libname}${release}${shared_ext}$major'
10792 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10793 shlibpath_var
=LD_LIBRARY_PATH
10794 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10795 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10796 # the default ld.so.conf also contains /usr/contrib/lib and
10797 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10798 # libtool to hard-code these into programs
10801 cygwin
* | mingw
* | pw32
* | cegcc
*)
10802 version_type
=windows
10807 case $GCC,$host_os in
10808 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10809 library_names_spec
='$libname.dll.a'
10810 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10811 postinstall_cmds
='base_file=`basename \${file}`~
10812 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10813 dldir=$destdir/`dirname \$dlpath`~
10814 test -d \$dldir || mkdir -p \$dldir~
10815 $install_prog $dir/$dlname \$dldir/$dlname~
10816 chmod a+x \$dldir/$dlname~
10817 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10818 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10820 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10821 dlpath=$dir/\$dldll~
10823 shlibpath_overrides_runpath
=yes
10827 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10828 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10830 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10833 # MinGW DLLs use traditional 'lib' prefix
10834 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10837 # pw32 DLLs use 'pw' prefix rather than 'lib'
10838 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10844 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10847 dynamic_linker
='Win32 ld.exe'
10848 # FIXME: first we should search . and the directory the executable is in
10852 darwin
* | rhapsody
*)
10853 dynamic_linker
="$host_os dyld"
10854 version_type
=darwin
10857 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10858 soname_spec
='${libname}${release}${major}$shared_ext'
10859 shlibpath_overrides_runpath
=yes
10860 shlibpath_var
=DYLD_LIBRARY_PATH
10861 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10863 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10864 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10871 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10872 soname_spec
='${libname}${release}${shared_ext}$major'
10873 shlibpath_var
=LD_LIBRARY_PATH
10876 freebsd
* | dragonfly
*)
10877 # DragonFly does not have aout. When/if they implement a new
10878 # versioning mechanism, adjust this.
10879 if test -x /usr
/bin
/objformat
; then
10880 objformat
=`/usr/bin/objformat`
10883 freebsd
[23].
*) objformat
=aout
;;
10884 *) objformat
=elf
;;
10887 version_type
=freebsd-
$objformat
10888 case $version_type in
10890 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10895 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10899 shlibpath_var
=LD_LIBRARY_PATH
10902 shlibpath_overrides_runpath
=yes
10904 freebsd3.
[01]* | freebsdelf3.
[01]*)
10905 shlibpath_overrides_runpath
=yes
10906 hardcode_into_libs
=yes
10908 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10909 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10910 shlibpath_overrides_runpath
=no
10911 hardcode_into_libs
=yes
10913 *) # from 4.6 on, and DragonFly
10914 shlibpath_overrides_runpath
=yes
10915 hardcode_into_libs
=yes
10924 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10925 soname_spec
='${libname}${release}${shared_ext}$major'
10926 shlibpath_var
=LD_LIBRARY_PATH
10927 hardcode_into_libs
=yes
10934 dynamic_linker
="$host_os runtime_loader"
10935 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10936 soname_spec
='${libname}${release}${shared_ext}$major'
10937 shlibpath_var
=LIBRARY_PATH
10938 shlibpath_overrides_runpath
=yes
10939 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10940 hardcode_into_libs
=yes
10943 hpux9
* | hpux10
* | hpux11
*)
10944 # Give a soname corresponding to the major version so that dld.sl refuses to
10945 # link against other versions.
10952 hardcode_into_libs
=yes
10953 dynamic_linker
="$host_os dld.so"
10954 shlibpath_var
=LD_LIBRARY_PATH
10955 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10956 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957 soname_spec
='${libname}${release}${shared_ext}$major'
10958 if test "X$HPUX_IA64_MODE" = X32
; then
10959 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10961 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10963 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10967 hardcode_into_libs
=yes
10968 dynamic_linker
="$host_os dld.sl"
10969 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10970 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10972 soname_spec
='${libname}${release}${shared_ext}$major'
10973 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10974 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10978 dynamic_linker
="$host_os dld.sl"
10979 shlibpath_var
=SHLIB_PATH
10980 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10981 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10982 soname_spec
='${libname}${release}${shared_ext}$major'
10985 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10986 postinstall_cmds
='chmod 555 $lib'
10987 # or fails outright, so override atomically:
10988 install_override_mode
=555
10995 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10996 soname_spec
='${libname}${release}${shared_ext}$major'
10997 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10998 shlibpath_var
=LD_LIBRARY_PATH
10999 shlibpath_overrides_runpath
=no
11000 hardcode_into_libs
=yes
11003 irix5
* | irix6
* | nonstopux
*)
11005 nonstopux
*) version_type
=nonstopux
;;
11007 if test "$lt_cv_prog_gnu_ld" = yes; then
11015 soname_spec
='${libname}${release}${shared_ext}$major'
11016 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11018 irix5
* | nonstopux
*)
11019 libsuff
= shlibsuff
=
11022 case $LD in # libtool.m4 will add one of these switches to LD
11023 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11024 libsuff
= shlibsuff
= libmagic
=32-bit;;
11025 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11026 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11027 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11028 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11029 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11033 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11034 shlibpath_overrides_runpath
=no
11035 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11036 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11037 hardcode_into_libs
=yes
11040 # No shared lib support for Linux oldld, aout, or coff.
11041 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11045 # This must be Linux ELF.
11047 # uclinux* changes (here and below) have been submitted to the libtool
11048 # project, but have not yet been accepted: they are GCC-local changes
11049 # for the time being. (See
11050 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11051 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
11055 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056 soname_spec
='${libname}${release}${shared_ext}$major'
11057 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11058 shlibpath_var
=LD_LIBRARY_PATH
11059 shlibpath_overrides_runpath
=no
11061 # Some binutils ld are patched to set DT_RUNPATH
11062 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11063 $as_echo_n "(cached) " >&6
11065 lt_cv_shlibpath_overrides_runpath
=no
11066 save_LDFLAGS
=$LDFLAGS
11067 save_libdir
=$libdir
11068 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11069 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11081 if ac_fn_c_try_link
"$LINENO"; then :
11082 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11083 lt_cv_shlibpath_overrides_runpath
=yes
11086 rm -f core conftest.err conftest.
$ac_objext \
11087 conftest
$ac_exeext conftest.
$ac_ext
11088 LDFLAGS
=$save_LDFLAGS
11089 libdir
=$save_libdir
11093 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11095 # This implies no fast_install, which is unacceptable.
11096 # Some rework will be needed to allow for fast_install
11097 # before this can be enabled.
11098 hardcode_into_libs
=yes
11100 # Append ld.so.conf contents to the search path
11101 if test -f /etc
/ld.so.conf
; then
11102 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' ' '`
11103 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11106 # We used to test for /lib/ld.so.1 and disable shared libraries on
11107 # powerpc, because MkLinux only supported shared libraries with the
11108 # GNU dynamic linker. Since this was broken with cross compilers,
11109 # most powerpc-linux boxes support dynamic linking these days and
11110 # people can always --disable-shared, the test was removed, and we
11111 # assume the GNU/Linux dynamic linker is in use.
11112 dynamic_linker
='GNU/Linux ld.so'
11119 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11120 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11121 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11122 dynamic_linker
='NetBSD (a.out) ld.so'
11124 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11125 soname_spec
='${libname}${release}${shared_ext}$major'
11126 dynamic_linker
='NetBSD ld.elf_so'
11128 shlibpath_var
=LD_LIBRARY_PATH
11129 shlibpath_overrides_runpath
=yes
11130 hardcode_into_libs
=yes
11135 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11136 shlibpath_var
=LD_LIBRARY_PATH
11137 shlibpath_overrides_runpath
=yes
11144 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145 soname_spec
='${libname}${release}${shared_ext}$major'
11146 shlibpath_var
=LD_LIBRARY_PATH
11147 shlibpath_overrides_runpath
=no
11148 hardcode_into_libs
=yes
11149 dynamic_linker
='ldqnx.so'
11154 sys_lib_dlsearch_path_spec
="/usr/lib"
11156 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11158 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11159 *) need_version
=no
;;
11161 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11162 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11163 shlibpath_var
=LD_LIBRARY_PATH
11164 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11166 openbsd2.
[89] | openbsd2.
[89].
*)
11167 shlibpath_overrides_runpath
=no
11170 shlibpath_overrides_runpath
=yes
11174 shlibpath_overrides_runpath
=yes
11179 libname_spec
='$name'
11182 library_names_spec
='$libname${shared_ext} $libname.a'
11183 dynamic_linker
='OS/2 ld.exe'
11184 shlibpath_var
=LIBPATH
11187 osf3
* | osf4
* | osf5
*)
11191 soname_spec
='${libname}${release}${shared_ext}$major'
11192 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193 shlibpath_var
=LD_LIBRARY_PATH
11194 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11195 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11206 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11207 soname_spec
='${libname}${release}${shared_ext}$major'
11208 shlibpath_var
=LD_LIBRARY_PATH
11209 shlibpath_overrides_runpath
=yes
11210 hardcode_into_libs
=yes
11211 # ldd complains unless libraries are executable
11212 postinstall_cmds
='chmod +x $lib'
11217 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11218 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11219 shlibpath_var
=LD_LIBRARY_PATH
11220 shlibpath_overrides_runpath
=yes
11221 if test "$with_gnu_ld" = yes; then
11229 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11230 soname_spec
='${libname}${release}${shared_ext}$major'
11231 shlibpath_var
=LD_LIBRARY_PATH
11232 case $host_vendor in
11234 shlibpath_overrides_runpath
=no
11236 runpath_var
=LD_RUN_PATH
11244 shlibpath_overrides_runpath
=no
11245 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11251 if test -d /usr
/nec
;then
11253 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11254 soname_spec
='$libname${shared_ext}.$major'
11255 shlibpath_var
=LD_LIBRARY_PATH
11259 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11260 version_type
=freebsd-elf
11263 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11264 soname_spec
='${libname}${release}${shared_ext}$major'
11265 shlibpath_var
=LD_LIBRARY_PATH
11266 shlibpath_overrides_runpath
=yes
11267 hardcode_into_libs
=yes
11268 if test "$with_gnu_ld" = yes; then
11269 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11271 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11274 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11278 sys_lib_dlsearch_path_spec
='/usr/lib'
11282 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11286 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11287 shlibpath_var
=LD_LIBRARY_PATH
11288 shlibpath_overrides_runpath
=no
11289 hardcode_into_libs
=yes
11294 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11295 soname_spec
='${libname}${release}${shared_ext}$major'
11296 shlibpath_var
=LD_LIBRARY_PATH
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11304 $as_echo "$dynamic_linker" >&6; }
11305 test "$dynamic_linker" = no
&& can_build_shared
=no
11307 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11308 if test "$GCC" = yes; then
11309 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11312 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11313 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11315 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11316 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11411 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11413 if test -n "$hardcode_libdir_flag_spec" ||
11414 test -n "$runpath_var" ||
11415 test "X$hardcode_automatic" = "Xyes" ; then
11417 # We can hardcode non-existent directories.
11418 if test "$hardcode_direct" != no
&&
11419 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11420 # have to relink, otherwise we might link with an installed library
11421 # when we should be linking with a yet-to-be-installed one
11422 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11423 test "$hardcode_minus_L" != no
; then
11424 # Linking always hardcodes the temporary library directory.
11425 hardcode_action
=relink
11427 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11428 hardcode_action
=immediate
11431 # We cannot hardcode anything, or else we can only hardcode existing
11433 hardcode_action
=unsupported
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11436 $as_echo "$hardcode_action" >&6; }
11438 if test "$hardcode_action" = relink ||
11439 test "$inherit_rpath" = yes; then
11440 # Fast installation is not supported
11441 enable_fast_install
=no
11442 elif test "$shlibpath_overrides_runpath" = yes ||
11443 test "$enable_shared" = no
; then
11444 # Fast installation is not necessary
11445 enable_fast_install
=needless
11453 if test "x$enable_dlopen" != xyes
; then
11454 enable_dlopen
=unknown
11455 enable_dlopen_self
=unknown
11456 enable_dlopen_self_static
=unknown
11463 lt_cv_dlopen
="load_add_on"
11465 lt_cv_dlopen_self
=yes
11468 mingw
* | pw32
* | cegcc
*)
11469 lt_cv_dlopen
="LoadLibrary"
11474 lt_cv_dlopen
="dlopen"
11479 # if libdl is installed we need to link against it
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11481 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11482 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11483 $as_echo_n "(cached) " >&6
11485 ac_check_lib_save_LIBS
=$LIBS
11487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11490 /* Override any GCC internal prototype to avoid an error.
11491 Use char because int might match the return type of a GCC
11492 builtin and then its argument prototype would still apply. */
11505 if ac_fn_c_try_link
"$LINENO"; then :
11506 ac_cv_lib_dl_dlopen
=yes
11508 ac_cv_lib_dl_dlopen
=no
11510 rm -f core conftest.err conftest.
$ac_objext \
11511 conftest
$ac_exeext conftest.
$ac_ext
11512 LIBS
=$ac_check_lib_save_LIBS
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11515 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11516 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11517 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11520 lt_cv_dlopen
="dyld"
11522 lt_cv_dlopen_self
=yes
11529 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11530 if test "x$ac_cv_func_shl_load" = xyes
; then :
11531 lt_cv_dlopen
="shl_load"
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11534 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11535 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11536 $as_echo_n "(cached) " >&6
11538 ac_check_lib_save_LIBS
=$LIBS
11540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h. */
11543 /* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
11553 return shl_load ();
11558 if ac_fn_c_try_link
"$LINENO"; then :
11559 ac_cv_lib_dld_shl_load
=yes
11561 ac_cv_lib_dld_shl_load
=no
11563 rm -f core conftest.err conftest.
$ac_objext \
11564 conftest
$ac_exeext conftest.
$ac_ext
11565 LIBS
=$ac_check_lib_save_LIBS
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11568 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11569 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11570 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11572 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11573 if test "x$ac_cv_func_dlopen" = xyes
; then :
11574 lt_cv_dlopen
="dlopen"
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11577 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11578 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11579 $as_echo_n "(cached) " >&6
11581 ac_check_lib_save_LIBS
=$LIBS
11583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11586 /* Override any GCC internal prototype to avoid an error.
11587 Use char because int might match the return type of a GCC
11588 builtin and then its argument prototype would still apply. */
11601 if ac_fn_c_try_link
"$LINENO"; then :
11602 ac_cv_lib_dl_dlopen
=yes
11604 ac_cv_lib_dl_dlopen
=no
11606 rm -f core conftest.err conftest.
$ac_objext \
11607 conftest
$ac_exeext conftest.
$ac_ext
11608 LIBS
=$ac_check_lib_save_LIBS
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11611 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11612 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11613 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11616 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11617 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11618 $as_echo_n "(cached) " >&6
11620 ac_check_lib_save_LIBS
=$LIBS
11621 LIBS
="-lsvld $LIBS"
11622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11623 /* end confdefs.h. */
11625 /* Override any GCC internal prototype to avoid an error.
11626 Use char because int might match the return type of a GCC
11627 builtin and then its argument prototype would still apply. */
11640 if ac_fn_c_try_link
"$LINENO"; then :
11641 ac_cv_lib_svld_dlopen
=yes
11643 ac_cv_lib_svld_dlopen
=no
11645 rm -f core conftest.err conftest.
$ac_objext \
11646 conftest
$ac_exeext conftest.
$ac_ext
11647 LIBS
=$ac_check_lib_save_LIBS
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11650 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11651 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11652 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11655 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11656 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11657 $as_echo_n "(cached) " >&6
11659 ac_check_lib_save_LIBS
=$LIBS
11661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h. */
11664 /* Override any GCC internal prototype to avoid an error.
11665 Use char because int might match the return type of a GCC
11666 builtin and then its argument prototype would still apply. */
11674 return dld_link ();
11679 if ac_fn_c_try_link
"$LINENO"; then :
11680 ac_cv_lib_dld_dld_link
=yes
11682 ac_cv_lib_dld_dld_link
=no
11684 rm -f core conftest.err conftest.
$ac_objext \
11685 conftest
$ac_exeext conftest.
$ac_ext
11686 LIBS
=$ac_check_lib_save_LIBS
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11689 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11690 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11691 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11712 if test "x$lt_cv_dlopen" != xno
; then
11718 case $lt_cv_dlopen in
11720 save_CPPFLAGS
="$CPPFLAGS"
11721 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11723 save_LDFLAGS
="$LDFLAGS"
11724 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11727 LIBS
="$lt_cv_dlopen_libs $LIBS"
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11730 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11731 if ${lt_cv_dlopen_self+:} false
; then :
11732 $as_echo_n "(cached) " >&6
11734 if test "$cross_compiling" = yes; then :
11735 lt_cv_dlopen_self
=cross
11737 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11738 lt_status
=$lt_dlunknown
11739 cat > conftest.
$ac_ext <<_LT_EOF
11740 #line 11740 "configure"
11741 #include "confdefs.h"
11750 # define LT_DLGLOBAL RTLD_GLOBAL
11753 # define LT_DLGLOBAL DL_GLOBAL
11755 # define LT_DLGLOBAL 0
11759 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11760 find out it does not work in some platform. */
11761 #ifndef LT_DLLAZY_OR_NOW
11763 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11766 # define LT_DLLAZY_OR_NOW DL_LAZY
11769 # define LT_DLLAZY_OR_NOW RTLD_NOW
11772 # define LT_DLLAZY_OR_NOW DL_NOW
11774 # define LT_DLLAZY_OR_NOW 0
11781 /* When -fvisbility=hidden is used, assume the code has been annotated
11782 correspondingly for the symbols needed. */
11783 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11784 void fnord () __attribute__((visibility("default")));
11787 void fnord () { int i=42; }
11790 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11791 int status = $lt_dlunknown;
11795 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11798 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11799 else puts (dlerror ());
11801 /* dlclose (self); */
11809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11810 (eval $ac_link) 2>&5
11812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11813 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11814 (.
/conftest
; exit; ) >&5 2>/dev
/null
11816 case x
$lt_status in
11817 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11818 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11819 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11822 # compilation failed
11823 lt_cv_dlopen_self
=no
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11831 $as_echo "$lt_cv_dlopen_self" >&6; }
11833 if test "x$lt_cv_dlopen_self" = xyes
; then
11834 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11836 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11837 if ${lt_cv_dlopen_self_static+:} false
; then :
11838 $as_echo_n "(cached) " >&6
11840 if test "$cross_compiling" = yes; then :
11841 lt_cv_dlopen_self_static
=cross
11843 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11844 lt_status
=$lt_dlunknown
11845 cat > conftest.
$ac_ext <<_LT_EOF
11846 #line 11846 "configure"
11847 #include "confdefs.h"
11856 # define LT_DLGLOBAL RTLD_GLOBAL
11859 # define LT_DLGLOBAL DL_GLOBAL
11861 # define LT_DLGLOBAL 0
11865 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11866 find out it does not work in some platform. */
11867 #ifndef LT_DLLAZY_OR_NOW
11869 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11872 # define LT_DLLAZY_OR_NOW DL_LAZY
11875 # define LT_DLLAZY_OR_NOW RTLD_NOW
11878 # define LT_DLLAZY_OR_NOW DL_NOW
11880 # define LT_DLLAZY_OR_NOW 0
11887 /* When -fvisbility=hidden is used, assume the code has been annotated
11888 correspondingly for the symbols needed. */
11889 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11890 void fnord () __attribute__((visibility("default")));
11893 void fnord () { int i=42; }
11896 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11897 int status = $lt_dlunknown;
11901 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11904 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11905 else puts (dlerror ());
11907 /* dlclose (self); */
11915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11916 (eval $ac_link) 2>&5
11918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11919 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11920 (.
/conftest
; exit; ) >&5 2>/dev
/null
11922 case x
$lt_status in
11923 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11924 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11925 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11928 # compilation failed
11929 lt_cv_dlopen_self_static
=no
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11937 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11940 CPPFLAGS
="$save_CPPFLAGS"
11941 LDFLAGS
="$save_LDFLAGS"
11946 case $lt_cv_dlopen_self in
11947 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11948 *) enable_dlopen_self
=unknown
;;
11951 case $lt_cv_dlopen_self_static in
11952 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11953 *) enable_dlopen_self_static
=unknown
;;
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11976 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11977 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11978 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11979 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11981 $as_echo "yes" >&6; }
11983 # FIXME - insert some real tests, host_os isn't really good enough
11986 if test -n "$STRIP" ; then
11987 striplib
="$STRIP -x"
11988 old_striplib
="$STRIP -S"
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11990 $as_echo "yes" >&6; }
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993 $as_echo "no" >&6; }
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11998 $as_echo "no" >&6; }
12014 # Report which library types will actually be built
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12016 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12018 $as_echo "$can_build_shared" >&6; }
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12021 $as_echo_n "checking whether to build shared libraries... " >&6; }
12022 test "$can_build_shared" = "no" && enable_shared
=no
12024 # On AIX, shared libraries and static libraries use the same namespace, and
12025 # are all built from PIC.
12028 test "$enable_shared" = yes && enable_static
=no
12029 if test -n "$RANLIB"; then
12030 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12031 postinstall_cmds
='$RANLIB $lib'
12036 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12037 test "$enable_shared" = yes && enable_static
=no
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12042 $as_echo "$enable_shared" >&6; }
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12045 $as_echo_n "checking whether to build static libraries... " >&6; }
12046 # Make sure either enable_shared or enable_static is yes.
12047 test "$enable_shared" = yes || enable_static
=yes
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12049 $as_echo "$enable_static" >&6; }
12056 ac_cpp
='$CPP $CPPFLAGS'
12057 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12058 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12059 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12075 ac_config_commands
="$ac_config_commands libtool"
12080 # Only expand once:
12086 gdc_save_DFLAGS
=$GDCFLAGS
12087 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
12090 # Source file extension for D test sources.
12093 # Object file extension for compiled D test sources.
12097 # Code to be used in simple compile tests
12098 lt_simple_compile_test_code
="\
12100 shared int some_variable = 0;
12103 # Code to be used in simple link tests
12104 lt_simple_link_test_code
="\
12106 extern(C) int main() { return 0; }
12109 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12116 # If no C compiler was specified, use CC.
12119 # If no C compiler flags were specified, use CFLAGS.
12120 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12122 # Allow CC to be a program name with arguments.
12126 # save warnings/boilerplate of simple test code
12127 ac_outfile
=conftest.
$ac_objext
12128 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12129 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12130 _lt_compiler_boilerplate
=`cat conftest.err`
12133 ac_outfile
=conftest.
$ac_objext
12134 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12135 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12136 _lt_linker_boilerplate
=`cat conftest.err`
12140 # Allow CC to be a program name with arguments.
12142 lt_save_CFLAGS
=$CFLAGS
12150 for cc_temp
in $compiler""; do
12152 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12153 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12158 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12161 # GDC did not exist at the time GCC didn't implicitly link libc in.
12162 archive_cmds_need_lc_D
=no
12164 old_archive_cmds_D
=$old_archive_cmds
12165 reload_flag_D
=$reload_flag
12166 reload_cmds_D
=$reload_cmds
12169 ## There is no encapsulation within the following macros, do not change
12170 ## the running order or otherwise move them around unless you know exactly
12171 ## what you are doing...
12172 if test -n "$compiler"; then
12174 lt_prog_compiler_no_builtin_flag_D
=
12176 if test "$GCC" = yes; then
12177 case $cc_basename in
12179 lt_prog_compiler_no_builtin_flag_D
=' -Xcompiler -fno-builtin' ;;
12181 lt_prog_compiler_no_builtin_flag_D
=' -fno-builtin' ;;
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12185 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12186 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
12187 $as_echo_n "(cached) " >&6
12189 lt_cv_prog_compiler_rtti_exceptions
=no
12190 ac_outfile
=conftest.
$ac_objext
12191 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12192 lt_compiler_flag
="-fno-rtti -fno-exceptions"
12193 # Insert the option either (1) after the last *FLAGS variable, or
12194 # (2) before a word containing "conftest.", or (3) at the end.
12195 # Note that $ac_compile itself does not contain backslashes and begins
12196 # with a dollar sign (not a hyphen), so the echo should work correctly.
12197 # The option is referenced via a variable to avoid confusing sed.
12198 lt_compile
=`echo "$ac_compile" | $SED \
12199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12201 -e 's:$: $lt_compiler_flag:'`
12202 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12203 (eval "$lt_compile" 2>conftest.err
)
12205 cat conftest.err
>&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 if (exit $ac_status) && test -s "$ac_outfile"; then
12208 # The compiler can only warn and ignore the option if not recognized
12209 # So say no if there are warnings other than the usual output.
12210 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12211 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12212 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12213 lt_cv_prog_compiler_rtti_exceptions
=yes
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12220 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12222 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
12223 lt_prog_compiler_no_builtin_flag_D
="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12232 lt_prog_compiler_wl_D
=
12233 lt_prog_compiler_pic_D
=
12234 lt_prog_compiler_static_D
=
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12237 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12239 if test "$GCC" = yes; then
12240 lt_prog_compiler_wl_D
='-Wl,'
12241 lt_prog_compiler_static_D
='-static'
12245 # All AIX code is PIC.
12246 if test "$host_cpu" = ia64
; then
12247 # AIX 5 now supports IA64 processor
12248 lt_prog_compiler_static_D
='-Bstatic'
12250 lt_prog_compiler_pic_D
='-fPIC'
12256 # see comment about AmigaOS4 .so support
12257 lt_prog_compiler_pic_D
='-fPIC'
12260 # FIXME: we need at least 68020 code to build shared libraries, but
12261 # adding the `-m68020' flag to GCC prevents building anything better,
12263 lt_prog_compiler_pic_D
='-m68020 -resident32 -malways-restore-a4'
12268 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12269 # PIC is the default for these OSes.
12272 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12273 # This hack is so that the source file can tell whether it is being
12274 # built for inclusion in a dll (and should export symbols for example).
12275 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12276 # (--disable-auto-import) libraries
12277 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12280 darwin
* | rhapsody
*)
12281 # PIC is the default on this platform
12282 # Common symbols not allowed in MH_DYLIB files
12283 lt_prog_compiler_pic_D
='-fno-common'
12287 # PIC is the default for Haiku.
12288 # The "-static" flag exists, but is broken.
12289 lt_prog_compiler_static_D
=
12293 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12294 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12295 # sets the default TLS model and affects inlining.
12301 lt_prog_compiler_pic_D
='-fPIC'
12307 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12308 # Instead, we relocate shared libraries at runtime.
12312 # Just because we use GCC doesn't mean we suddenly get shared libraries
12313 # on systems that don't support them.
12314 lt_prog_compiler_can_build_shared_D
=no
12319 # QNX uses GNU C++, but need to define -shared option too, otherwise
12320 # it will coredump.
12321 lt_prog_compiler_pic_D
='-fPIC -shared'
12325 if test -d /usr
/nec
; then
12326 lt_prog_compiler_pic_D
=-Kconform_pic
12331 lt_prog_compiler_pic_D
='-fPIC'
12335 case $cc_basename in
12336 nvcc
*) # Cuda Compiler Driver 2.2
12337 lt_prog_compiler_wl_D
='-Xlinker '
12338 lt_prog_compiler_pic_D
='-Xcompiler -fPIC'
12342 # PORTME Check for flag to pass linker flags through the system compiler.
12345 lt_prog_compiler_wl_D
='-Wl,'
12346 if test "$host_cpu" = ia64
; then
12347 # AIX 5 now supports IA64 processor
12348 lt_prog_compiler_static_D
='-Bstatic'
12350 lt_prog_compiler_static_D
='-bnso -bI:/lib/syscalls.exp'
12354 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12355 # This hack is so that the source file can tell whether it is being
12356 # built for inclusion in a dll (and should export symbols for example).
12357 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12360 hpux9
* | hpux10
* | hpux11
*)
12361 lt_prog_compiler_wl_D
='-Wl,'
12362 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12363 # not for PA HP-UX.
12369 lt_prog_compiler_pic_D
='+Z'
12372 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12373 lt_prog_compiler_static_D
='${wl}-a ${wl}archive'
12376 irix5
* | irix6
* | nonstopux
*)
12377 lt_prog_compiler_wl_D
='-Wl,'
12378 # PIC (with -KPIC) is the default.
12379 lt_prog_compiler_static_D
='-non_shared'
12382 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12383 case $cc_basename in
12384 # old Intel for x86_64 which still supported -KPIC.
12386 lt_prog_compiler_wl_D
='-Wl,'
12387 lt_prog_compiler_pic_D
='-KPIC'
12388 lt_prog_compiler_static_D
='-static'
12390 # icc used to be incompatible with GCC.
12391 # ICC 10 doesn't accept -KPIC any more.
12393 lt_prog_compiler_wl_D
='-Wl,'
12394 lt_prog_compiler_pic_D
='-fPIC'
12395 lt_prog_compiler_static_D
='-static'
12397 # Lahey Fortran 8.1.
12399 lt_prog_compiler_wl_D
='-Wl,'
12400 lt_prog_compiler_pic_D
='--shared'
12401 lt_prog_compiler_static_D
='--static'
12403 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12404 # Portland Group compilers (*not* the Pentium gcc compiler,
12405 # which looks to be a dead project)
12406 lt_prog_compiler_wl_D
='-Wl,'
12407 lt_prog_compiler_pic_D
='-fpic'
12408 lt_prog_compiler_static_D
='-Bstatic'
12411 lt_prog_compiler_wl_D
='-Wl,'
12412 # All Alpha code is PIC.
12413 lt_prog_compiler_static_D
='-non_shared'
12415 xl
* | bgxl
* | bgf
* | mpixl
*)
12416 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12417 lt_prog_compiler_wl_D
='-Wl,'
12418 lt_prog_compiler_pic_D
='-qpic'
12419 lt_prog_compiler_static_D
='-qstaticlink'
12422 case `$CC -V 2>&1 | sed 5q` in
12423 *Sun\ F
* |
*Sun
*Fortran
*)
12424 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12425 lt_prog_compiler_pic_D
='-KPIC'
12426 lt_prog_compiler_static_D
='-Bstatic'
12427 lt_prog_compiler_wl_D
=''
12431 lt_prog_compiler_pic_D
='-KPIC'
12432 lt_prog_compiler_static_D
='-Bstatic'
12433 lt_prog_compiler_wl_D
='-Wl,'
12441 lt_prog_compiler_pic_D
='-KPIC'
12442 lt_prog_compiler_static_D
='-Bstatic'
12446 # QNX uses GNU C++, but need to define -shared option too, otherwise
12447 # it will coredump.
12448 lt_prog_compiler_pic_D
='-fPIC -shared'
12451 osf3
* | osf4
* | osf5
*)
12452 lt_prog_compiler_wl_D
='-Wl,'
12453 # All OSF/1 code is PIC.
12454 lt_prog_compiler_static_D
='-non_shared'
12458 lt_prog_compiler_static_D
='-non_shared'
12462 lt_prog_compiler_pic_D
='-KPIC'
12463 lt_prog_compiler_static_D
='-Bstatic'
12464 case $cc_basename in
12465 f77
* | f90
* | f95
*)
12466 lt_prog_compiler_wl_D
='-Qoption ld ';;
12468 lt_prog_compiler_wl_D
='-Wl,';;
12473 lt_prog_compiler_wl_D
='-Qoption ld '
12474 lt_prog_compiler_pic_D
='-PIC'
12475 lt_prog_compiler_static_D
='-Bstatic'
12478 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12479 lt_prog_compiler_wl_D
='-Wl,'
12480 lt_prog_compiler_pic_D
='-KPIC'
12481 lt_prog_compiler_static_D
='-Bstatic'
12485 if test -d /usr
/nec
;then
12486 lt_prog_compiler_pic_D
='-Kconform_pic'
12487 lt_prog_compiler_static_D
='-Bstatic'
12491 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12492 lt_prog_compiler_wl_D
='-Wl,'
12493 lt_prog_compiler_pic_D
='-KPIC'
12494 lt_prog_compiler_static_D
='-Bstatic'
12498 lt_prog_compiler_wl_D
='-Wl,'
12499 lt_prog_compiler_can_build_shared_D
=no
12503 lt_prog_compiler_pic_D
='-pic'
12504 lt_prog_compiler_static_D
='-Bstatic'
12508 lt_prog_compiler_can_build_shared_D
=no
12514 # For platforms which do not support PIC, -DPIC is meaningless:
12516 lt_prog_compiler_pic_D
=
12519 lt_prog_compiler_pic_D
="$lt_prog_compiler_pic_D"
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12523 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12528 # Check to make sure the PIC flag actually works.
12530 if test -n "$lt_prog_compiler_pic_D"; then
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12532 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12533 if ${lt_cv_prog_compiler_pic_works_D+:} false
; then :
12534 $as_echo_n "(cached) " >&6
12536 lt_cv_prog_compiler_pic_works_D
=no
12537 ac_outfile
=conftest.
$ac_objext
12538 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12539 lt_compiler_flag
="$lt_prog_compiler_pic_D"
12540 # Insert the option either (1) after the last *FLAGS variable, or
12541 # (2) before a word containing "conftest.", or (3) at the end.
12542 # Note that $ac_compile itself does not contain backslashes and begins
12543 # with a dollar sign (not a hyphen), so the echo should work correctly.
12544 # The option is referenced via a variable to avoid confusing sed.
12545 lt_compile
=`echo "$ac_compile" | $SED \
12546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12548 -e 's:$: $lt_compiler_flag:'`
12549 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12550 (eval "$lt_compile" 2>conftest.err
)
12552 cat conftest.err
>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 if (exit $ac_status) && test -s "$ac_outfile"; then
12555 # The compiler can only warn and ignore the option if not recognized
12556 # So say no if there are warnings other than the usual output.
12557 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12558 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12559 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12560 lt_cv_prog_compiler_pic_works_D
=yes
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12567 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12569 if test x
"$lt_cv_prog_compiler_pic_works_D" = xyes
; then
12570 case $lt_prog_compiler_pic_D in
12572 *) lt_prog_compiler_pic_D
=" $lt_prog_compiler_pic_D" ;;
12575 lt_prog_compiler_pic_D
=
12576 lt_prog_compiler_can_build_shared_D
=no
12584 # Check to make sure the static flag actually works.
12586 wl
=$lt_prog_compiler_wl_D eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_D\"
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12588 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12589 if ${lt_cv_prog_compiler_static_works_D+:} false
; then :
12590 $as_echo_n "(cached) " >&6
12592 lt_cv_prog_compiler_static_works_D
=no
12593 save_LDFLAGS
="$LDFLAGS"
12594 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12595 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12596 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12597 # The linker can only warn and ignore the option if not recognized
12598 # So say no if there are warnings
12599 if test -s conftest.err
; then
12600 # Append any errors to the config.log.
12601 cat conftest.err
1>&5
12602 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12603 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12604 if diff conftest.exp conftest.er2
>/dev
/null
; then
12605 lt_cv_prog_compiler_static_works_D
=yes
12608 lt_cv_prog_compiler_static_works_D
=yes
12612 LDFLAGS
="$save_LDFLAGS"
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12616 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12618 if test x
"$lt_cv_prog_compiler_static_works_D" = xyes
; then
12621 lt_prog_compiler_static_D
=
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12628 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12629 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12630 $as_echo_n "(cached) " >&6
12632 lt_cv_prog_compiler_c_o_D
=no
12633 $RM -r conftest
2>/dev
/null
12637 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12639 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12640 # Insert the option either (1) after the last *FLAGS variable, or
12641 # (2) before a word containing "conftest.", or (3) at the end.
12642 # Note that $ac_compile itself does not contain backslashes and begins
12643 # with a dollar sign (not a hyphen), so the echo should work correctly.
12644 lt_compile
=`echo "$ac_compile" | $SED \
12645 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12647 -e 's:$: $lt_compiler_flag:'`
12648 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12649 (eval "$lt_compile" 2>out
/conftest.err
)
12651 cat out
/conftest.err
>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12655 # The compiler can only warn and ignore the option if not recognized
12656 # So say no if there are warnings
12657 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12658 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12659 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12660 lt_cv_prog_compiler_c_o_D
=yes
12665 # SGI C++ compiler will create directory out/ii_files/ for
12666 # template instantiation
12667 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12668 $RM out
/* && rmdir out
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12675 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12680 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12681 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12682 $as_echo_n "(cached) " >&6
12684 lt_cv_prog_compiler_c_o_D
=no
12685 $RM -r conftest
2>/dev
/null
12689 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12691 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12692 # Insert the option either (1) after the last *FLAGS variable, or
12693 # (2) before a word containing "conftest.", or (3) at the end.
12694 # Note that $ac_compile itself does not contain backslashes and begins
12695 # with a dollar sign (not a hyphen), so the echo should work correctly.
12696 lt_compile
=`echo "$ac_compile" | $SED \
12697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12699 -e 's:$: $lt_compiler_flag:'`
12700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12701 (eval "$lt_compile" 2>out
/conftest.err
)
12703 cat out
/conftest.err
>&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12707 # The compiler can only warn and ignore the option if not recognized
12708 # So say no if there are warnings
12709 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12710 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12711 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12712 lt_cv_prog_compiler_c_o_D
=yes
12717 # SGI C++ compiler will create directory out/ii_files/ for
12718 # template instantiation
12719 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12720 $RM out
/* && rmdir out
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12727 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12732 hard_links
="nottested"
12733 if test "$lt_cv_prog_compiler_c_o_D" = no
&& test "$need_locks" != no
; then
12734 # do not overwrite the value of need_locks provided by the user
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12736 $as_echo_n "checking if we can lock with hard links... " >&6; }
12739 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12741 ln conftest.a conftest.b
2>&5 || hard_links
=no
12742 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12744 $as_echo "$hard_links" >&6; }
12745 if test "$hard_links" = no
; then
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12747 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12757 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12760 allow_undefined_flag_D
=
12761 always_export_symbols_D
=no
12763 archive_expsym_cmds_D
=
12764 compiler_needs_object_D
=no
12765 enable_shared_with_static_runtimes_D
=no
12766 export_dynamic_flag_spec_D
=
12767 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12768 hardcode_automatic_D
=no
12769 hardcode_direct_D
=no
12770 hardcode_direct_absolute_D
=no
12771 hardcode_libdir_flag_spec_D
=
12772 hardcode_libdir_flag_spec_ld_D
=
12773 hardcode_libdir_separator_D
=
12774 hardcode_minus_L_D
=no
12775 hardcode_shlibpath_var_D
=unsupported
12777 link_all_deplibs_D
=unknown
12779 module_expsym_cmds_D
=
12780 old_archive_from_new_cmds_D
=
12781 old_archive_from_expsyms_cmds_D
=
12782 thread_safe_flag_spec_D
=
12783 whole_archive_flag_spec_D
=
12784 # include_expsyms should be a list of space-separated symbols to be *always*
12785 # included in the symbol list
12787 # exclude_expsyms can be an extended regexp of symbols to exclude
12788 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12789 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12790 # as well as any symbol that contains `d'.
12791 exclude_expsyms_D
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12792 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12793 # platforms (ab)use it in PIC code, but their linkers get confused if
12794 # the symbol is explicitly referenced. Since portable code cannot
12795 # rely on this symbol name, it's probably fine to never include it in
12796 # preloaded symbol tables.
12797 # Exclude shared library initialization/finalization symbols.
12798 extract_expsyms_cmds
=
12801 cygwin
* | mingw
* | pw32
* | cegcc
*)
12802 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12803 # When not using gcc, we currently assume that we are using
12804 # Microsoft Visual C++.
12805 if test "$GCC" != yes; then
12810 # we just hope/assume this is gcc and not c89 (= MSVC++)
12820 # On some targets, GNU ld is compatible enough with the native linker
12821 # that we're better off using the native interface for both.
12822 lt_use_gnu_ld_interface
=no
12823 if test "$with_gnu_ld" = yes; then
12826 # The AIX port of GNU ld has always aspired to compatibility
12827 # with the native linker. However, as the warning in the GNU ld
12828 # block says, versions before 2.19.5* couldn't really create working
12829 # shared libraries, regardless of the interface used.
12830 case `$LD -v 2>&1` in
12831 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12832 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12833 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12835 lt_use_gnu_ld_interface
=yes
12840 lt_use_gnu_ld_interface
=yes
12845 if test "$lt_use_gnu_ld_interface" = yes; then
12846 # If archive_cmds runs LD, not CC, wlarc should be empty
12849 # Set some defaults for GNU ld with shared library support. These
12850 # are reset later if shared libraries are not supported. Putting them
12851 # here allows them to be overridden if necessary.
12852 runpath_var
=LD_RUN_PATH
12853 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
12854 export_dynamic_flag_spec_D
='${wl}--export-dynamic'
12855 # ancient GNU ld didn't support --whole-archive et. al.
12856 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12857 whole_archive_flag_spec_D
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12859 whole_archive_flag_spec_D
=
12861 supports_anon_versioning
=no
12862 case `$LD -v 2>&1` in
12863 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12864 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12865 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12866 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12867 *\
2.11.
*) ;; # other 2.11 versions
12868 *) supports_anon_versioning
=yes ;;
12871 # See if GNU ld supports shared libraries.
12874 # On AIX/PPC, the GNU linker is very broken
12875 if test "$host_cpu" != ia64
; then
12879 *** Warning: the GNU linker, at least up to release 2.19, is reported
12880 *** to be unable to reliably create shared libraries on AIX.
12881 *** Therefore, libtool is disabling shared libraries support. If you
12882 *** really care for shared libraries, you may want to install binutils
12883 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12884 *** You will then need to restart the configuration process.
12893 # see comment about AmigaOS4 .so support
12894 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12895 archive_expsym_cmds_D
=''
12898 archive_cmds_D
='$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)'
12899 hardcode_libdir_flag_spec_D
='-L$libdir'
12900 hardcode_minus_L_D
=yes
12906 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12907 allow_undefined_flag_D
=unsupported
12908 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12909 # support --undefined. This deserves some investigation. FIXME
12910 archive_cmds_D
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12916 cygwin
* | mingw
* | pw32
* | cegcc
*)
12917 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12918 # as there is no search path for DLLs.
12919 hardcode_libdir_flag_spec_D
='-L$libdir'
12920 export_dynamic_flag_spec_D
='${wl}--export-all-symbols'
12921 allow_undefined_flag_D
=unsupported
12922 always_export_symbols_D
=no
12923 enable_shared_with_static_runtimes_D
=yes
12924 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12926 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12927 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12928 # If the export-symbols file already is a .def file (1st line
12929 # is EXPORTS), use it as is; otherwise, prepend...
12930 archive_expsym_cmds_D
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12931 cp $export_symbols $output_objdir/$soname.def;
12933 echo EXPORTS > $output_objdir/$soname.def;
12934 cat $export_symbols >> $output_objdir/$soname.def;
12936 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12943 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12944 link_all_deplibs_D
=yes
12948 hardcode_direct_D
=no
12949 hardcode_shlibpath_var_D
=no
12950 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
12951 export_dynamic_flag_spec_D
='${wl}-E'
12952 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12953 # Instead, shared libraries are loaded at an image base (0x10000000 by
12954 # default) and relocated if they conflict, which is a slow very memory
12955 # consuming and fragmenting process. To avoid this, we pick a random,
12956 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12957 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12958 archive_cmds_D
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12959 archive_expsym_cmds_D
='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'
12962 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
12964 if test "$host_os" = linux-dietlibc
; then
12965 case $cc_basename in
12966 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
12969 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
12970 && test "$tmp_diet" = no
12972 tmp_addflag
=' $pic_flag'
12973 tmp_sharedflag
='-shared'
12974 case $cc_basename,$host_cpu in
12975 pgcc
*) # Portland Group C compiler
12976 whole_archive_flag_spec_D
='${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'
12977 tmp_addflag
=' $pic_flag'
12979 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12980 # Portland Group f77 and f90 compilers
12981 whole_archive_flag_spec_D
='${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'
12982 tmp_addflag
=' $pic_flag -Mnomain' ;;
12983 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12984 tmp_addflag
=' -i_dynamic' ;;
12985 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12986 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12987 ifc
* | ifort
*) # Intel Fortran compiler
12988 tmp_addflag
=' -nofor_main' ;;
12989 lf95
*) # Lahey Fortran 8.1
12990 whole_archive_flag_spec_D
=
12991 tmp_sharedflag
='--shared' ;;
12992 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12993 tmp_sharedflag
='-qmkshrobj'
12995 nvcc
*) # Cuda Compiler Driver 2.2
12996 whole_archive_flag_spec_D
='${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'
12997 compiler_needs_object_D
=yes
13000 case `$CC -V 2>&1 | sed 5q` in
13001 *Sun\ C
*) # Sun C 5.9
13002 whole_archive_flag_spec_D
='${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'
13003 compiler_needs_object_D
=yes
13004 tmp_sharedflag
='-G' ;;
13005 *Sun\ F
*) # Sun Fortran 8.3
13006 tmp_sharedflag
='-G' ;;
13008 archive_cmds_D
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13010 if test "x$supports_anon_versioning" = xyes
; then
13011 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
13012 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13013 echo "local: *; };" >> $output_objdir/$libname.ver~
13014 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13017 case $cc_basename in
13018 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
13019 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13020 whole_archive_flag_spec_D
='--whole-archive$convenience --no-whole-archive'
13021 hardcode_libdir_flag_spec_D
=
13022 hardcode_libdir_flag_spec_ld_D
='-rpath $libdir'
13023 archive_cmds_D
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13024 if test "x$supports_anon_versioning" = xyes
; then
13025 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
13026 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13027 echo "local: *; };" >> $output_objdir/$libname.ver~
13028 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13038 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13039 archive_cmds_D
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13042 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13043 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13048 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
13052 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13053 *** create shared libraries on Solaris systems. Therefore, libtool
13054 *** is disabling shared libraries support. We urge you to upgrade GNU
13055 *** binutils to release 2.9.1 or newer. Another option is to modify
13056 *** your PATH or compiler configuration so that the native linker is
13057 *** used, and then restart.
13060 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13061 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13062 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13068 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
13069 case `$LD -v 2>&1` in
13070 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
13074 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13075 *** reliably create shared libraries on SCO systems. Therefore, libtool
13076 *** is disabling shared libraries support. We urge you to upgrade GNU
13077 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13078 *** your PATH or compiler configuration so that the native linker is
13079 *** used, and then restart.
13084 # For security reasons, it is highly recommended that you always
13085 # use absolute paths for naming shared libraries, and exclude the
13086 # DT_RUNPATH tag from executables and libraries. But doing so
13087 # requires that you compile everything twice, which is a pain.
13088 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13089 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13090 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13091 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13100 archive_cmds_D
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13102 hardcode_direct_D
=yes
13103 hardcode_shlibpath_var_D
=no
13107 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13108 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13109 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13116 if test "$ld_shlibs_D" = no
; then
13118 hardcode_libdir_flag_spec_D
=
13119 export_dynamic_flag_spec_D
=
13120 whole_archive_flag_spec_D
=
13123 # PORTME fill in a description of your system's linker (not GNU ld)
13126 allow_undefined_flag_D
=unsupported
13127 always_export_symbols_D
=yes
13128 archive_expsym_cmds_D
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13129 # Note: this linker hardcodes the directories in LIBPATH if there
13130 # are no directories specified by -L.
13131 hardcode_minus_L_D
=yes
13132 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13133 # Neither direct hardcoding nor static linking is supported with a
13135 hardcode_direct_D
=unsupported
13140 if test "$host_cpu" = ia64
; then
13141 # On IA64, the linker does run time linking by default, so we don't
13142 # have to do anything special.
13143 aix_use_runtimelinking
=no
13144 exp_sym_flag
='-Bexport'
13147 # If we're using GNU nm, then we don't want the "-C" option.
13148 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13149 # Also, AIX nm treats weak defined symbols like other global
13150 # defined symbols, whereas GNU nm marks them as "W".
13151 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13152 export_symbols_cmds_D
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13154 export_symbols_cmds_D
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13156 aix_use_runtimelinking
=no
13158 # Test if we are trying to use run time linking or normal
13159 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13160 # need to do runtime linking.
13161 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
13162 for ld_flag
in $LDFLAGS; do
13163 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13164 aix_use_runtimelinking
=yes
13171 exp_sym_flag
='-bexport'
13172 no_entry_flag
='-bnoentry'
13175 # When large executables or shared objects are built, AIX ld can
13176 # have problems creating the table of contents. If linking a library
13177 # or program results in "error TOC overflow" add -mminimal-toc to
13178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13182 hardcode_direct_D
=yes
13183 hardcode_direct_absolute_D
=yes
13184 hardcode_libdir_separator_D
=':'
13185 link_all_deplibs_D
=yes
13186 file_list_spec_D
='${wl}-f,'
13188 if test "$GCC" = yes; then
13189 case $host_os in aix4.
[012]|aix4.
[012].
*)
13190 # We only want to do this on AIX 4.2 and lower, the check
13191 # below for broken collect2 doesn't work under 4.3+
13192 collect2name
=`${CC} -print-prog-name=collect2`
13193 if test -f "$collect2name" &&
13194 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13196 # We have reworked collect2
13199 # We have old collect2
13200 hardcode_direct_D
=unsupported
13201 # It fails to find uninstalled libraries when the uninstalled
13202 # path is not listed in the libpath. Setting hardcode_minus_L
13203 # to unsupported forces relinking
13204 hardcode_minus_L_D
=yes
13205 hardcode_libdir_flag_spec_D
='-L$libdir'
13206 hardcode_libdir_separator_D
=
13210 shared_flag
='-shared'
13211 if test "$aix_use_runtimelinking" = yes; then
13212 shared_flag
="$shared_flag "'${wl}-G'
13216 if test "$host_cpu" = ia64
; then
13217 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13218 # chokes on -Wl,-G. The following line is correct:
13221 if test "$aix_use_runtimelinking" = yes; then
13222 shared_flag
='${wl}-G'
13224 shared_flag
='${wl}-bM:SRE'
13229 export_dynamic_flag_spec_D
='${wl}-bexpall'
13230 # It seems that -bexpall does not export symbols beginning with
13231 # underscore (_), so it is better to generate a list of symbols to export.
13232 always_export_symbols_D
=yes
13233 if test "$aix_use_runtimelinking" = yes; then
13234 # Warning - without using the other runtime loading flags (-brtl),
13235 # -berok will link without error, but may produce a broken library.
13236 allow_undefined_flag_D
='-berok'
13237 # Determine the default libpath from the value encoded in an
13238 # empty executable.
13239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13250 if ac_fn_c_try_link
"$LINENO"; then :
13252 lt_aix_libpath_sed
='
13253 /Import File Strings/,/^$/ {
13259 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13260 # Check for a 64-bit object if we didn't find anything.
13261 if test -z "$aix_libpath"; then
13262 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13265 rm -f core conftest.err conftest.
$ac_objext \
13266 conftest
$ac_exeext conftest.
$ac_ext
13267 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13269 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13270 archive_expsym_cmds_D
='$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"
13272 if test "$host_cpu" = ia64
; then
13273 hardcode_libdir_flag_spec_D
='${wl}-R $libdir:/usr/lib:/lib'
13274 allow_undefined_flag_D
="-z nodefs"
13275 archive_expsym_cmds_D
="\$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"
13277 # Determine the default libpath from the value encoded in an
13278 # empty executable.
13279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13280 /* end confdefs.h. */
13290 if ac_fn_c_try_link
"$LINENO"; then :
13292 lt_aix_libpath_sed
='
13293 /Import File Strings/,/^$/ {
13299 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13300 # Check for a 64-bit object if we didn't find anything.
13301 if test -z "$aix_libpath"; then
13302 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13305 rm -f core conftest.err conftest.
$ac_objext \
13306 conftest
$ac_exeext conftest.
$ac_ext
13307 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13309 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13310 # Warning - without using the other run time loading flags,
13311 # -berok will link without error, but may produce a broken library.
13312 no_undefined_flag_D
=' ${wl}-bernotok'
13313 allow_undefined_flag_D
=' ${wl}-berok'
13314 if test "$with_gnu_ld" = yes; then
13315 # We only use this code for GNU lds that support --whole-archive.
13316 whole_archive_flag_spec_D
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13318 # Exported symbols can be pulled into shared objects from archives
13319 whole_archive_flag_spec_D
='$convenience'
13321 archive_cmds_need_lc_D
=yes
13322 # This is similar to how AIX traditionally builds its shared libraries.
13323 archive_expsym_cmds_D
="\$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'
13331 # see comment about AmigaOS4 .so support
13332 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13333 archive_expsym_cmds_D
=''
13336 archive_cmds_D
='$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)'
13337 hardcode_libdir_flag_spec_D
='-L$libdir'
13338 hardcode_minus_L_D
=yes
13344 export_dynamic_flag_spec_D
=-rdynamic
13347 cygwin
* | mingw
* | pw32
* | cegcc
*)
13348 # When not using gcc, we currently assume that we are using
13349 # Microsoft Visual C++.
13350 # hardcode_libdir_flag_spec is actually meaningless, as there is
13351 # no search path for DLLs.
13352 hardcode_libdir_flag_spec_D
=' '
13353 allow_undefined_flag_D
=unsupported
13354 # Tell ltmain to make .lib files, not .a files.
13356 # Tell ltmain to make .dll files, not .so files.
13358 # FIXME: Setting linknames here is a bad hack.
13359 archive_cmds_D
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13360 # The linker will automatically build a .lib file if we build a DLL.
13361 old_archive_from_new_cmds_D
='true'
13362 # FIXME: Should let the user specify the lib program.
13363 old_archive_cmds_D
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13364 fix_srcfile_path_D
='`cygpath -w "$srcfile"`'
13365 enable_shared_with_static_runtimes_D
=yes
13368 darwin
* | rhapsody
*)
13371 archive_cmds_need_lc_D
=no
13372 hardcode_direct_D
=no
13373 hardcode_automatic_D
=yes
13374 hardcode_shlibpath_var_D
=unsupported
13375 if test "$lt_cv_ld_force_load" = "yes"; then
13376 whole_archive_flag_spec_D
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13378 whole_archive_flag_spec_D
=''
13380 link_all_deplibs_D
=yes
13381 allow_undefined_flag_D
="$_lt_dar_allow_undefined"
13382 case $cc_basename in
13383 ifort
*) _lt_dar_can_shared
=yes ;;
13384 *) _lt_dar_can_shared
=$GCC ;;
13386 if test "$_lt_dar_can_shared" = "yes"; then
13387 output_verbose_link_cmd
=func_echo_all
13388 archive_cmds_D
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13389 module_cmds_D
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13390 archive_expsym_cmds_D
="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}"
13391 module_expsym_cmds_D
="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}"
13400 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13401 hardcode_libdir_flag_spec_D
='-L$libdir'
13402 hardcode_shlibpath_var_D
=no
13405 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13406 # support. Future versions do this automatically, but an explicit c++rt0.o
13407 # does not break anything, and helps significantly (at the cost of a little
13410 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13411 hardcode_libdir_flag_spec_D
='-R$libdir'
13412 hardcode_direct_D
=yes
13413 hardcode_shlibpath_var_D
=no
13416 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13418 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13419 hardcode_direct_D
=yes
13420 hardcode_minus_L_D
=yes
13421 hardcode_shlibpath_var_D
=no
13424 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13425 freebsd
* | dragonfly
*)
13426 archive_cmds_D
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13427 hardcode_libdir_flag_spec_D
='-R$libdir'
13428 hardcode_direct_D
=yes
13429 hardcode_shlibpath_var_D
=no
13433 if test "$GCC" = yes; then
13434 archive_cmds_D
='$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'
13436 archive_cmds_D
='$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'
13438 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13439 hardcode_libdir_separator_D
=:
13440 hardcode_direct_D
=yes
13442 # hardcode_minus_L: Not really in the search PATH,
13443 # but as the default location of the library.
13444 hardcode_minus_L_D
=yes
13445 export_dynamic_flag_spec_D
='${wl}-E'
13449 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13450 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13452 archive_cmds_D
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13454 if test "$with_gnu_ld" = no
; then
13455 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13456 hardcode_libdir_flag_spec_ld_D
='+b $libdir'
13457 hardcode_libdir_separator_D
=:
13458 hardcode_direct_D
=yes
13459 hardcode_direct_absolute_D
=yes
13460 export_dynamic_flag_spec_D
='${wl}-E'
13461 # hardcode_minus_L: Not really in the search PATH,
13462 # but as the default location of the library.
13463 hardcode_minus_L_D
=yes
13468 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13471 archive_cmds_D
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13474 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13477 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13483 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13486 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13489 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13493 if test "$with_gnu_ld" = no
; then
13494 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13495 hardcode_libdir_separator_D
=:
13499 hardcode_direct_D
=no
13500 hardcode_shlibpath_var_D
=no
13503 hardcode_direct_D
=yes
13504 hardcode_direct_absolute_D
=yes
13505 export_dynamic_flag_spec_D
='${wl}-E'
13507 # hardcode_minus_L: Not really in the search PATH,
13508 # but as the default location of the library.
13509 hardcode_minus_L_D
=yes
13515 irix5
* | irix6
* | nonstopux
*)
13516 if test "$GCC" = yes; then
13517 archive_cmds_D
='$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'
13518 # Try to use the -exported_symbol ld option, if it does not
13519 # work, assume that -exports_file does not work either and
13520 # implicitly export all symbols.
13521 save_LDFLAGS
="$LDFLAGS"
13522 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13527 if ac_fn_c_try_link
"$LINENO"; then :
13528 archive_expsym_cmds_D
='$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'
13531 rm -f core conftest.err conftest.
$ac_objext \
13532 conftest
$ac_exeext conftest.
$ac_ext
13533 LDFLAGS
="$save_LDFLAGS"
13535 archive_cmds_D
='$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'
13536 archive_expsym_cmds_D
='$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'
13538 archive_cmds_need_lc_D
='no'
13539 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13540 hardcode_libdir_separator_D
=:
13541 inherit_rpath_D
=yes
13542 link_all_deplibs_D
=yes
13546 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13547 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13549 archive_cmds_D
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13551 hardcode_libdir_flag_spec_D
='-R$libdir'
13552 hardcode_direct_D
=yes
13553 hardcode_shlibpath_var_D
=no
13557 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13558 hardcode_direct_D
=yes
13559 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13560 hardcode_libdir_separator_D
=:
13561 hardcode_shlibpath_var_D
=no
13568 if test -f /usr
/libexec
/ld.so
; then
13569 hardcode_direct_D
=yes
13570 hardcode_shlibpath_var_D
=no
13571 hardcode_direct_absolute_D
=yes
13572 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13573 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13574 archive_expsym_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13575 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13576 export_dynamic_flag_spec_D
='${wl}-E'
13579 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13580 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13581 hardcode_libdir_flag_spec_D
='-R$libdir'
13584 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13585 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13595 hardcode_libdir_flag_spec_D
='-L$libdir'
13596 hardcode_minus_L_D
=yes
13597 allow_undefined_flag_D
=unsupported
13598 archive_cmds_D
='$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'
13599 old_archive_from_new_cmds_D
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13603 if test "$GCC" = yes; then
13604 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13605 archive_cmds_D
='$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'
13607 allow_undefined_flag_D
=' -expect_unresolved \*'
13608 archive_cmds_D
='$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'
13610 archive_cmds_need_lc_D
='no'
13611 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13612 hardcode_libdir_separator_D
=:
13615 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13616 if test "$GCC" = yes; then
13617 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13618 archive_cmds_D
='$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'
13619 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13621 allow_undefined_flag_D
=' -expect_unresolved \*'
13622 archive_cmds_D
='$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'
13623 archive_expsym_cmds_D
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13624 $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'
13626 # Both c and cxx compiler support -rpath directly
13627 hardcode_libdir_flag_spec_D
='-rpath $libdir'
13629 archive_cmds_need_lc_D
='no'
13630 hardcode_libdir_separator_D
=:
13634 no_undefined_flag_D
=' -z defs'
13635 if test "$GCC" = yes; then
13637 archive_cmds_D
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13638 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13639 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13641 case `$CC -V 2>&1` in
13644 archive_cmds_D
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13645 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13646 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13650 archive_cmds_D
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13651 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13652 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13656 hardcode_libdir_flag_spec_D
='-R$libdir'
13657 hardcode_shlibpath_var_D
=no
13659 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13661 # The compiler driver will combine and reorder linker options,
13662 # but understands `-z linker_flag'. GCC discards it without `$wl',
13663 # but is careful enough not to reorder.
13664 # Supported since Solaris 2.6 (maybe 2.5.1?)
13665 if test "$GCC" = yes; then
13666 whole_archive_flag_spec_D
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13668 whole_archive_flag_spec_D
='-z allextract$convenience -z defaultextract'
13672 link_all_deplibs_D
=yes
13676 if test "x$host_vendor" = xsequent
; then
13677 # Use $CC to link under sequent, because it throws in some extra .o
13678 # files that make .init and .fini sections work.
13679 archive_cmds_D
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13681 archive_cmds_D
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13683 hardcode_libdir_flag_spec_D
='-L$libdir'
13684 hardcode_direct_D
=yes
13685 hardcode_minus_L_D
=yes
13686 hardcode_shlibpath_var_D
=no
13690 case $host_vendor in
13692 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13693 hardcode_direct_D
=yes # is this really true???
13696 ## LD is ld it makes a PLAMLIB
13697 ## CC just makes a GrossModule.
13698 archive_cmds_D
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13699 reload_cmds_D
='$CC -r -o $output$reload_objs'
13700 hardcode_direct_D
=no
13703 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13704 hardcode_direct_D
=no
#Motorola manual says yes, but my tests say they lie
13707 runpath_var
='LD_RUN_PATH'
13708 hardcode_shlibpath_var_D
=no
13712 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13713 hardcode_shlibpath_var_D
=no
13714 export_dynamic_flag_spec_D
='-Bexport'
13718 if test -d /usr
/nec
; then
13719 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13720 hardcode_shlibpath_var_D
=no
13721 runpath_var
=LD_RUN_PATH
13722 hardcode_runpath_var
=yes
13727 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13728 no_undefined_flag_D
='${wl}-z,text'
13729 archive_cmds_need_lc_D
=no
13730 hardcode_shlibpath_var_D
=no
13731 runpath_var
='LD_RUN_PATH'
13733 if test "$GCC" = yes; then
13734 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13735 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13737 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13738 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13742 sysv5
* | sco3.2v5
* | sco5v6
*)
13743 # Note: We can NOT use -z defs as we might desire, because we do not
13744 # link with -lc, and that would cause any symbols used from libc to
13745 # always be unresolved, which means just about no library would
13746 # ever link correctly. If we're not using GNU ld we use -z text
13747 # though, which does catch some bad symbols but isn't as heavy-handed
13749 no_undefined_flag_D
='${wl}-z,text'
13750 allow_undefined_flag_D
='${wl}-z,nodefs'
13751 archive_cmds_need_lc_D
=no
13752 hardcode_shlibpath_var_D
=no
13753 hardcode_libdir_flag_spec_D
='${wl}-R,$libdir'
13754 hardcode_libdir_separator_D
=':'
13755 link_all_deplibs_D
=yes
13756 export_dynamic_flag_spec_D
='${wl}-Bexport'
13757 runpath_var
='LD_RUN_PATH'
13759 if test "$GCC" = yes; then
13760 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13761 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13763 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13764 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13769 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13770 hardcode_libdir_flag_spec_D
='-L$libdir'
13771 hardcode_shlibpath_var_D
=no
13779 if test x
$host_vendor = xsni
; then
13781 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13782 export_dynamic_flag_spec_D
='${wl}-Blargedynsym'
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13789 $as_echo "$ld_shlibs_D" >&6; }
13790 test "$ld_shlibs_D" = no
&& can_build_shared
=no
13792 with_gnu_ld_D
=$with_gnu_ld
13800 # Do we need to explicitly link libc?
13802 case "x$archive_cmds_need_lc_D" in
13804 # Assume -lc should be added
13805 archive_cmds_need_lc_D
=yes
13807 if test "$enable_shared" = yes && test "$GCC" = yes; then
13808 case $archive_cmds_D in
13810 # FIXME: we may have to deal with multi-command sequences.
13813 # Test whether the compiler implicitly links with -lc since on some
13814 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13815 # to ld, don't add -lc before -lgcc.
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13817 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13818 if ${lt_cv_archive_cmds_need_lc_D+:} false
; then :
13819 $as_echo_n "(cached) " >&6
13822 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13825 (eval $ac_compile) 2>&5
13827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13828 test $ac_status = 0; } 2>conftest.err
; then
13831 libobjs
=conftest.
$ac_objext
13833 wl
=$lt_prog_compiler_wl_D
13834 pic_flag
=$lt_prog_compiler_pic_D
13840 lt_save_allow_undefined_flag
=$allow_undefined_flag_D
13841 allow_undefined_flag_D
=
13842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13843 (eval $archive_cmds_D 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13846 test $ac_status = 0; }
13848 lt_cv_archive_cmds_need_lc_D
=no
13850 lt_cv_archive_cmds_need_lc_D
=yes
13852 allow_undefined_flag_D
=$lt_save_allow_undefined_flag
13854 cat conftest.err
1>&5
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13860 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13861 archive_cmds_need_lc_D
=$lt_cv_archive_cmds_need_lc_D
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13932 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13934 if test -n "$hardcode_libdir_flag_spec_D" ||
13935 test -n "$runpath_var_D" ||
13936 test "X$hardcode_automatic_D" = "Xyes" ; then
13938 # We can hardcode non-existent directories.
13939 if test "$hardcode_direct_D" != no
&&
13940 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13941 # have to relink, otherwise we might link with an installed library
13942 # when we should be linking with a yet-to-be-installed one
13943 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13944 test "$hardcode_minus_L_D" != no
; then
13945 # Linking always hardcodes the temporary library directory.
13946 hardcode_action_D
=relink
13948 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13949 hardcode_action_D
=immediate
13952 # We cannot hardcode anything, or else we can only hardcode existing
13954 hardcode_action_D
=unsupported
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13957 $as_echo "$hardcode_action_D" >&6; }
13959 if test "$hardcode_action_D" = relink ||
13960 test "$inherit_rpath_D" = yes; then
13961 # Fast installation is not supported
13962 enable_fast_install
=no
13963 elif test "$shlibpath_overrides_runpath" = yes ||
13964 test "$enable_shared" = no
; then
13965 # Fast installation is not necessary
13966 enable_fast_install
=needless
13978 ac_cpp
='$CPP $CPPFLAGS'
13979 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13980 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13981 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13986 CFLAGS
=$lt_save_CFLAGS
13988 GDCFLAGS
=$gdc_save_DFLAGS
13991 # libtool variables for Phobos shared and position-independent compiles.
13993 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13994 # creating shared objects. Default: -fversion=Shared.
13996 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13997 # creating position-independent objects. This varies with the target
13998 # hardware and operating system, but is often: -fPIC.
14000 # The distinction between pic and shared compilation flags is not present in
14001 # libtool, and so we make it here. How it is handled is that in shared
14002 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
14003 # ensure that conditional compilation of shared runtime code is compiled in.
14004 # The original PIC flags are then used in the compilation of every object.
14006 # Why are objects destined for libgphobos.a compiled with -fPIC?
14007 # Because -fPIC is not harmful to use for objects destined for static
14008 # libraries. In addition, using -fPIC will allow the use of static
14009 # libgphobos.a in the creation of other D shared libraries.
14010 if test "$enable_shared" = yes; then
14011 phobos_compiler_pic_flag
="$lt_prog_compiler_pic_D"
14012 phobos_compiler_shared_flag
="-fversion=Shared"
14014 phobos_compiler_pic_flag
=
14015 phobos_compiler_shared_flag
=
14020 # Override the libtool's pic_flag and pic_mode.
14021 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
14022 # NB: this impacts --with-pic and --without-pic.
14023 lt_prog_compiler_pic_D
="$phobos_compiler_shared_flag"
14026 # Determine what GCC version number to use in filesystem paths.
14028 get_gcc_base_ver
="cat"
14030 # Check whether --with-gcc-major-version-only was given.
14031 if test "${with_gcc_major_version_only+set}" = set; then :
14032 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
14033 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
14041 # libphobos/libdruntime specific options and feature detection
14043 # These need to be absolute paths, yet at the same time need to
14044 # canonicalize only relative paths, because then amd will not unmount
14045 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
14046 libphobos_builddir
=`${PWDCMD-pwd}`
14048 \\/$
* | ?
:\\/*) libphobos_srcdir
=${srcdir} ;;
14049 *) libphobos_srcdir
=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
14055 if test ${multilib} = yes; then
14056 multilib_arg
="--enable-multilib"
14062 # Check whether --enable-werror was given.
14063 if test "${enable_werror+set}" = set; then :
14064 enableval
=$enable_werror;
14068 if test "x$enable_werror" = "xyes"; then
14069 WERROR_FLAG
="-Werror"
14073 druntime_target_cpu_parsed
=""
14074 case "$target_cpu" in
14076 druntime_target_cpu_parsed
="aarch64"
14078 arm
*) druntime_target_cpu_parsed
="arm"
14080 mips
*) druntime_target_cpu_parsed
="mips"
14083 druntime_target_cpu_parsed
="powerpc"
14086 druntime_target_cpu_parsed
="x86"
14089 druntime_target_cpu_parsed
="s390x"
14092 druntime_target_cpu_parsed
="s390"
14095 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14096 DRUNTIME_CPU_AARCH64_TRUE
=
14097 DRUNTIME_CPU_AARCH64_FALSE
='#'
14099 DRUNTIME_CPU_AARCH64_TRUE
='#'
14100 DRUNTIME_CPU_AARCH64_FALSE
=
14103 if test "$druntime_target_cpu_parsed" = "arm"; then
14104 DRUNTIME_CPU_ARM_TRUE
=
14105 DRUNTIME_CPU_ARM_FALSE
='#'
14107 DRUNTIME_CPU_ARM_TRUE
='#'
14108 DRUNTIME_CPU_ARM_FALSE
=
14111 if test "$druntime_target_cpu_parsed" = "mips"; then
14112 DRUNTIME_CPU_MIPS_TRUE
=
14113 DRUNTIME_CPU_MIPS_FALSE
='#'
14115 DRUNTIME_CPU_MIPS_TRUE
='#'
14116 DRUNTIME_CPU_MIPS_FALSE
=
14119 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14120 DRUNTIME_CPU_POWERPC_TRUE
=
14121 DRUNTIME_CPU_POWERPC_FALSE
='#'
14123 DRUNTIME_CPU_POWERPC_TRUE
='#'
14124 DRUNTIME_CPU_POWERPC_FALSE
=
14127 if test "$druntime_target_cpu_parsed" = "x86"; then
14128 DRUNTIME_CPU_X86_TRUE
=
14129 DRUNTIME_CPU_X86_FALSE
='#'
14131 DRUNTIME_CPU_X86_TRUE
='#'
14132 DRUNTIME_CPU_X86_FALSE
=
14135 if test "$druntime_target_cpu_parsed" = "s390x"; then
14136 DRUNTIME_CPU_SYSTEMZ_TRUE
=
14137 DRUNTIME_CPU_SYSTEMZ_FALSE
='#'
14139 DRUNTIME_CPU_SYSTEMZ_TRUE
='#'
14140 DRUNTIME_CPU_SYSTEMZ_FALSE
=
14143 if test "$druntime_target_cpu_parsed" = "s390"; then
14144 DRUNTIME_CPU_S390_TRUE
=
14145 DRUNTIME_CPU_S390_FALSE
='#'
14147 DRUNTIME_CPU_S390_TRUE
='#'
14148 DRUNTIME_CPU_S390_FALSE
=
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14154 $as_echo_n "checking for target OS... " >&6; }
14155 if ${druntime_cv_target_os+:} false
; then :
14156 $as_echo_n "(cached) " >&6
14158 druntime_cv_target_os
=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14161 $as_echo "$druntime_cv_target_os" >&6; }
14162 if test -z "$druntime_cv_target_os"; then :
14163 as_fn_error $?
"can't detect target OS" "$LINENO" 5
14169 druntime_target_os_parsed
=""
14170 case "$druntime_cv_target_os" in
14171 aix
*) druntime_target_os_parsed
="aix"
14174 druntime_target_os_parsed
="android"
14176 darwin
*) druntime_target_os_parsed
="darwin"
14179 druntime_target_os_parsed
="dragonflybsd"
14181 freebsd
*|k
*bsd
*-gnu)
14182 druntime_target_os_parsed
="freebsd"
14185 druntime_target_os_parsed
="openbsd"
14188 druntime_target_os_parsed
="netbsd"
14190 linux
*) druntime_target_os_parsed
="linux"
14192 mingw
*) druntime_target_os_parsed
="mingw"
14194 *solaris
*) druntime_target_os_parsed
="solaris"
14196 if test "$druntime_target_os_parsed" = "aix"; then
14197 DRUNTIME_OS_AIX_TRUE
=
14198 DRUNTIME_OS_AIX_FALSE
='#'
14200 DRUNTIME_OS_AIX_TRUE
='#'
14201 DRUNTIME_OS_AIX_FALSE
=
14204 if test "$druntime_target_os_parsed" = "android"; then
14205 DRUNTIME_OS_ANDROID_TRUE
=
14206 DRUNTIME_OS_ANDROID_FALSE
='#'
14208 DRUNTIME_OS_ANDROID_TRUE
='#'
14209 DRUNTIME_OS_ANDROID_FALSE
=
14212 if test "$druntime_target_os_parsed" = "darwin"; then
14213 DRUNTIME_OS_DARWIN_TRUE
=
14214 DRUNTIME_OS_DARWIN_FALSE
='#'
14216 DRUNTIME_OS_DARWIN_TRUE
='#'
14217 DRUNTIME_OS_DARWIN_FALSE
=
14220 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14221 DRUNTIME_OS_DRAGONFLYBSD_TRUE
=
14222 DRUNTIME_OS_DRAGONFLYBSD_FALSE
='#'
14224 DRUNTIME_OS_DRAGONFLYBSD_TRUE
='#'
14225 DRUNTIME_OS_DRAGONFLYBSD_FALSE
=
14228 if test "$druntime_target_os_parsed" = "freebsd"; then
14229 DRUNTIME_OS_FREEBSD_TRUE
=
14230 DRUNTIME_OS_FREEBSD_FALSE
='#'
14232 DRUNTIME_OS_FREEBSD_TRUE
='#'
14233 DRUNTIME_OS_FREEBSD_FALSE
=
14236 if test "$druntime_target_os_parsed" = "netbsd"; then
14237 DRUNTIME_OS_NETBSD_TRUE
=
14238 DRUNTIME_OS_NETBSD_FALSE
='#'
14240 DRUNTIME_OS_NETBSD_TRUE
='#'
14241 DRUNTIME_OS_NETBSD_FALSE
=
14244 if test "$druntime_target_os_parsed" = "openbsd"; then
14245 DRUNTIME_OS_OPENBSD_TRUE
=
14246 DRUNTIME_OS_OPENBSD_FALSE
='#'
14248 DRUNTIME_OS_OPENBSD_TRUE
='#'
14249 DRUNTIME_OS_OPENBSD_FALSE
=
14252 if test "$druntime_target_os_parsed" = "linux"; then
14253 DRUNTIME_OS_LINUX_TRUE
=
14254 DRUNTIME_OS_LINUX_FALSE
='#'
14256 DRUNTIME_OS_LINUX_TRUE
='#'
14257 DRUNTIME_OS_LINUX_FALSE
=
14260 if test "$druntime_target_os_parsed" = "mingw"; then
14261 DRUNTIME_OS_MINGW_TRUE
=
14262 DRUNTIME_OS_MINGW_FALSE
='#'
14264 DRUNTIME_OS_MINGW_TRUE
='#'
14265 DRUNTIME_OS_MINGW_FALSE
=
14268 if test "$druntime_target_os_parsed" = "solaris"; then
14269 DRUNTIME_OS_SOLARIS_TRUE
=
14270 DRUNTIME_OS_SOLARIS_FALSE
='#'
14272 DRUNTIME_OS_SOLARIS_TRUE
='#'
14273 DRUNTIME_OS_SOLARIS_FALSE
=
14277 druntime_target_posix
="no"
14278 case "$druntime_cv_target_os" in
14279 aix
*|
*bsd
*|cygwin
*|darwin
*|gnu
*|linux
*|skyos
*|
*solaris
*|sysv
*)
14280 druntime_target_posix
="yes"
14283 if test "$druntime_target_posix" = "yes"; then
14284 DRUNTIME_OS_POSIX_TRUE
=
14285 DRUNTIME_OS_POSIX_FALSE
='#'
14287 DRUNTIME_OS_POSIX_TRUE
='#'
14288 DRUNTIME_OS_POSIX_FALSE
=
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14295 $as_echo_n "checking for thread model used by GDC... " >&6; }
14296 d_thread_model
=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14298 $as_echo "$d_thread_model" >&6; }
14300 # Map from thread model to thread interface.
14302 case $d_thread_model in
14303 aix
) DCFG_THREAD_MODEL
="Posix" ;;
14304 lynx
) DCFG_THREAD_MODEL
="Posix" ;;
14305 posix
) DCFG_THREAD_MODEL
="Posix" ;;
14306 single
) DCFG_THREAD_MODEL
="Single" ;;
14307 win32
) DCFG_THREAD_MODEL
="Win32" ;;
14308 # TODO: These targets need porting.
14309 dce|mipssde|rtems|tpf|vxworks
)
14310 DCFG_THREAD_MODEL
="Single" ;;
14311 *) as_fn_error
"Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14318 ac_cpp
='$CPP $CPPFLAGS'
14319 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14320 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14321 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14324 $as_echo_n "checking for ARM unwinder... " >&6; }
14325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14326 /* end confdefs.h. */
14327 #include <unwind.h>
14332 #if __ARM_EABI_UNWINDER__
14340 if ac_fn_c_try_compile
"$LINENO"; then :
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342 $as_echo "no" >&6; }
14343 DCFG_ARM_EABI_UNWINDER
=false
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14346 $as_echo "yes" >&6; }
14347 DCFG_ARM_EABI_UNWINDER
=true
14349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14351 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14352 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
=
14353 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
='#'
14355 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
='#'
14356 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
=
14360 ac_cpp
='$CPP $CPPFLAGS'
14361 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14362 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14363 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14368 ac_cpp
='$CPP $CPPFLAGS'
14369 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14370 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14371 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14374 $as_echo_n "checking for minfo section bracketing... " >&6; }
14375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14378 void* module_info_ptr __attribute__((section ("minfo")));
14379 extern void* __start_minfo __attribute__((visibility ("hidden")));
14380 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14384 // Never run, just to prevent compiler from optimizing access
14385 return &__start_minfo == &__stop_minfo;
14389 if ac_fn_c_try_link
"$LINENO"; then :
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14391 $as_echo "yes" >&6; }
14392 DCFG_MINFO_BRACKETING
=true
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14395 $as_echo "no" >&6; }
14396 DCFG_MINFO_BRACKETING
=false
14398 rm -f core conftest.err conftest.
$ac_objext \
14399 conftest
$ac_exeext conftest.
$ac_ext
14401 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14402 DRUNTIME_OS_MINFO_BRACKETING_TRUE
=
14403 DRUNTIME_OS_MINFO_BRACKETING_FALSE
='#'
14405 DRUNTIME_OS_MINFO_BRACKETING_TRUE
='#'
14406 DRUNTIME_OS_MINFO_BRACKETING_FALSE
=
14410 ac_cpp
='$CPP $CPPFLAGS'
14411 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14412 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14413 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14418 ac_cpp
='$CPP $CPPFLAGS'
14419 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14420 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14421 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14423 ac_fn_c_check_member
"$LINENO" "struct dl_phdr_info" "dlpi_tls_modid" "ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" "#include <link.h>
14425 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes
; then :
14426 DCFG_DLPI_TLS_MODID
=true
14428 DCFG_DLPI_TLS_MODID
=false
14433 ac_cpp
='$CPP $CPPFLAGS'
14434 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14435 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14436 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14441 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
14442 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14443 # relocs. Work around by disabling TLS transitions. Not necessary
14444 # on 32-bit x86, but cannot be distinguished reliably in specs.
14445 druntime_ld_prog
=`$CC -print-prog-name=ld`
14447 druntime_ld_relax_transtls
=no
14448 if test -n "$druntime_ld_prog" \
14449 && $druntime_ld_prog -v 2>&1 |
grep GNU
> /dev
/null
2>&1; then
14450 druntime_ld_gld
=yes
14452 echo 'int main (void) { return 0; }' > conftest.c
14453 save_LDFLAGS
="$LDFLAGS"
14454 LDFLAGS
="$LDFLAGS -Wl,-z,relax=transtls"
14455 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c
> /dev
/null
2>&1; then
14456 druntime_ld_relax_transtls
=yes
14458 LDFLAGS
="$save_LDFLAGS"
14459 rm -f conftest.c conftest
14461 if test "$druntime_ld_relax_transtls" = "yes"; then
14462 OS_LINK_SPEC
='-z relax=transtls'
14470 ac_cpp
='$CPP $CPPFLAGS'
14471 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14472 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14473 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14475 DCFG_HAVE_QSORT_R
=false
14476 ac_fn_c_check_func
"$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14477 if test "x$ac_cv_func_qsort_r" = xyes
; then :
14478 DCFG_HAVE_QSORT_R
=true
14483 ac_cpp
='$CPP $CPPFLAGS'
14484 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14485 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14486 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14492 gdc_save_DFLAGS
=$GDCFLAGS
14493 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14496 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14497 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14498 ac_compiler_gnu
=yes
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14501 $as_echo_n "checking for library containing malloc... " >&6; }
14502 if ${ac_cv_search_malloc+:} false
; then :
14503 $as_echo_n "(cached) " >&6
14505 ac_func_search_save_LIBS
=$LIBS
14506 cat > conftest.
$ac_ext <<_ACEOF
14508 extern(C) int malloc();
14510 extern(C) int main() {
14511 malloc(); return 0;
14514 for ac_lib
in '' c
; do
14515 if test -z "$ac_lib"; then
14516 ac_res
="none required"
14519 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14521 if ac_fn_d_try_link
"$LINENO"; then :
14522 ac_cv_search_malloc
=$ac_res
14524 rm -f core conftest.err conftest.
$ac_objext \
14526 if ${ac_cv_search_malloc+:} false
; then :
14530 if ${ac_cv_search_malloc+:} false
; then :
14533 ac_cv_search_malloc
=no
14535 rm conftest.
$ac_ext
14536 LIBS
=$ac_func_search_save_LIBS
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14539 $as_echo "$ac_cv_search_malloc" >&6; }
14540 ac_res
=$ac_cv_search_malloc
14541 if test "$ac_res" != no
; then :
14542 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14547 $as_echo_n "checking for library containing pthread_create... " >&6; }
14548 if ${ac_cv_search_pthread_create+:} false
; then :
14549 $as_echo_n "(cached) " >&6
14551 ac_func_search_save_LIBS
=$LIBS
14552 cat > conftest.
$ac_ext <<_ACEOF
14554 extern(C) int pthread_create();
14556 extern(C) int main() {
14557 pthread_create(); return 0;
14560 for ac_lib
in '' pthread
; do
14561 if test -z "$ac_lib"; then
14562 ac_res
="none required"
14565 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14567 if ac_fn_d_try_link
"$LINENO"; then :
14568 ac_cv_search_pthread_create
=$ac_res
14570 rm -f core conftest.err conftest.
$ac_objext \
14572 if ${ac_cv_search_pthread_create+:} false
; then :
14576 if ${ac_cv_search_pthread_create+:} false
; then :
14579 ac_cv_search_pthread_create
=no
14581 rm conftest.
$ac_ext
14582 LIBS
=$ac_func_search_save_LIBS
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14585 $as_echo "$ac_cv_search_pthread_create" >&6; }
14586 ac_res
=$ac_cv_search_pthread_create
14587 if test "$ac_res" != no
; then :
14588 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14593 $as_echo_n "checking for library containing cosf... " >&6; }
14594 if ${ac_cv_search_cosf+:} false
; then :
14595 $as_echo_n "(cached) " >&6
14597 ac_func_search_save_LIBS
=$LIBS
14598 cat > conftest.
$ac_ext <<_ACEOF
14600 extern(C) int cosf();
14602 extern(C) int main() {
14606 for ac_lib
in '' m
; do
14607 if test -z "$ac_lib"; then
14608 ac_res
="none required"
14611 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14613 if ac_fn_d_try_link
"$LINENO"; then :
14614 ac_cv_search_cosf
=$ac_res
14616 rm -f core conftest.err conftest.
$ac_objext \
14618 if ${ac_cv_search_cosf+:} false
; then :
14622 if ${ac_cv_search_cosf+:} false
; then :
14625 ac_cv_search_cosf
=no
14627 rm conftest.
$ac_ext
14628 LIBS
=$ac_func_search_save_LIBS
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14631 $as_echo "$ac_cv_search_cosf" >&6; }
14632 ac_res
=$ac_cv_search_cosf
14633 if test "$ac_res" != no
; then :
14634 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14639 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14640 if ${ac_cv_search_clock_gettime+:} false
; then :
14641 $as_echo_n "(cached) " >&6
14643 ac_func_search_save_LIBS
=$LIBS
14644 cat > conftest.
$ac_ext <<_ACEOF
14646 extern(C) int clock_gettime();
14648 extern(C) int main() {
14649 clock_gettime(); return 0;
14652 for ac_lib
in '' rt
; do
14653 if test -z "$ac_lib"; then
14654 ac_res
="none required"
14657 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14659 if ac_fn_d_try_link
"$LINENO"; then :
14660 ac_cv_search_clock_gettime
=$ac_res
14662 rm -f core conftest.err conftest.
$ac_objext \
14664 if ${ac_cv_search_clock_gettime+:} false
; then :
14668 if ${ac_cv_search_clock_gettime+:} false
; then :
14671 ac_cv_search_clock_gettime
=no
14673 rm conftest.
$ac_ext
14674 LIBS
=$ac_func_search_save_LIBS
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14677 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14678 ac_res
=$ac_cv_search_clock_gettime
14679 if test "$ac_res" != no
; then :
14680 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14685 # This checks to see if the host supports the compiler-generated builtins
14686 # for atomic operations for various integral sizes. Note, this is intended
14687 # to be an all-or-nothing switch, so all the atomic operations that are
14688 # used should be checked.
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14690 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14691 if ${druntime_cv_atomic_byte+:} false
; then :
14692 $as_echo_n "(cached) " >&6
14695 cat > conftest.
$ac_ext <<_ACEOF
14697 import gcc.builtins;
14699 extern(C) int main() {
14703 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14704 __atomic_load_1(&c1, 5);
14705 __atomic_store_1(&c1, c2, 5);
14710 if ac_fn_d_try_link
"$LINENO"; then :
14711 druntime_cv_atomic_byte
=yes
14713 druntime_cv_atomic_byte
=no
14715 rm -f core conftest.err conftest.
$ac_objext \
14716 conftest
$ac_exeext conftest.
$ac_ext
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14721 $as_echo "$druntime_cv_atomic_byte" >&6; }
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14724 $as_echo_n "checking for atomic builtins for short... " >&6; }
14725 if ${druntime_cv_atomic_short+:} false
; then :
14726 $as_echo_n "(cached) " >&6
14729 cat > conftest.
$ac_ext <<_ACEOF
14731 import gcc.builtins;
14733 extern(C) int main() {
14737 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14738 __atomic_load_2(&c1, 5);
14739 __atomic_store_2(&c1, c2, 5);
14744 if ac_fn_d_try_link
"$LINENO"; then :
14745 druntime_cv_atomic_short
=yes
14747 druntime_cv_atomic_short
=no
14749 rm -f core conftest.err conftest.
$ac_objext \
14750 conftest
$ac_exeext conftest.
$ac_ext
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14755 $as_echo "$druntime_cv_atomic_short" >&6; }
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14758 $as_echo_n "checking for atomic builtins for int... " >&6; }
14759 if ${druntime_cv_atomic_int+:} false
; then :
14760 $as_echo_n "(cached) " >&6
14763 cat > conftest.
$ac_ext <<_ACEOF
14765 import gcc.builtins;
14767 extern(C) int main() {
14771 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14772 __atomic_load_4(&c1, 5);
14773 __atomic_store_4(&c1, c2, 5);
14778 if ac_fn_d_try_link
"$LINENO"; then :
14779 druntime_cv_atomic_int
=yes
14781 druntime_cv_atomic_int
=no
14783 rm -f core conftest.err conftest.
$ac_objext \
14784 conftest
$ac_exeext conftest.
$ac_ext
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14789 $as_echo "$druntime_cv_atomic_int" >&6; }
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14792 $as_echo_n "checking for atomic builtins for long... " >&6; }
14793 if ${druntime_cv_atomic_long+:} false
; then :
14794 $as_echo_n "(cached) " >&6
14797 cat > conftest.
$ac_ext <<_ACEOF
14799 import gcc.builtins;
14801 extern(C) int main() {
14805 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14806 __atomic_load_8(&c1, 5);
14807 __atomic_store_8(&c1, c2, 5);
14812 if ac_fn_d_try_link
"$LINENO"; then :
14813 druntime_cv_atomic_long
=yes
14815 druntime_cv_atomic_long
=no
14817 rm -f core conftest.err conftest.
$ac_objext \
14818 conftest
$ac_exeext conftest.
$ac_ext
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14823 $as_echo "$druntime_cv_atomic_long" >&6; }
14825 # Have atomic builtin support if all but the long test above passes.
14826 DCFG_HAVE_ATOMIC_BUILTINS
=false
14827 if test "$druntime_cv_atomic_byte" = yes \
14828 && test "$druntime_cv_atomic_short" = yes \
14829 && test "$druntime_cv_atomic_int" = yes; then \
14830 DCFG_HAVE_ATOMIC_BUILTINS
=true
14833 # Have 64-bit atomic support if the long test above passes.
14834 DCFG_HAVE_64BIT_ATOMICS
=false
14835 if test "$druntime_cv_atomic_long" = yes; then
14836 DCFG_HAVE_64BIT_ATOMICS
=true
14843 ac_cpp
='$CPP $CPPFLAGS'
14844 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14845 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14846 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14849 GDCFLAGS
=$gdc_save_DFLAGS
14854 # Check whether --with-libatomic was given.
14855 if test "${with_libatomic+set}" = set; then :
14856 withval
=$with_libatomic;
14860 DCFG_HAVE_LIBATOMIC
=false
14862 if test "x$with_libatomic" != "xno"; then :
14864 DCFG_HAVE_LIBATOMIC
=true
14865 LIBATOMIC
=..
/..
/libatomic
/libatomic_convenience.la
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14870 $as_echo_n "checking for libatomic... " >&6; }
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14872 $as_echo "disabled" >&6; }
14881 ac_cpp
='$CPP $CPPFLAGS'
14882 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14883 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14884 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14886 BACKTRACE_SUPPORTED
=false
14887 BACKTRACE_USES_MALLOC
=false
14888 BACKTRACE_SUPPORTS_THREADS
=false
14892 # Check whether --with-libbacktrace was given.
14893 if test "${with_libbacktrace+set}" = set; then :
14894 withval
=$with_libbacktrace;
14898 if test "x$with_libbacktrace" != "xno"; then :
14900 LIBBACKTRACE
=..
/..
/libbacktrace
/libbacktrace.la
14902 gdc_save_CPPFLAGS
=$CPPFLAGS
14903 CPPFLAGS
="$CPPFLAGS -I../libbacktrace "
14905 ac_fn_c_check_header_mongrel
"$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14906 if test "x$ac_cv_header_backtrace_supported_h" = xyes
; then :
14907 have_libbacktrace_h
=true
14909 have_libbacktrace_h
=false
14914 if $have_libbacktrace_h; then
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14916 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14918 /* end confdefs.h. */
14920 #include <backtrace-supported.h>
14921 #if BACKTRACE_SUPPORTED
14922 FOUND_LIBBACKTRACE_RESULT_GDC
14926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14927 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14928 BACKTRACE_SUPPORTED
=true
14930 BACKTRACE_SUPPORTED
=false
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14935 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14938 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14940 /* end confdefs.h. */
14942 #include <backtrace-supported.h>
14943 #if BACKTRACE_USES_MALLOC
14944 FOUND_LIBBACKTRACE_RESULT_GDC
14948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14949 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14950 BACKTRACE_USES_MALLOC
=true
14952 BACKTRACE_USES_MALLOC
=false
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14957 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14960 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14964 #include <backtrace-supported.h>
14965 #if BACKTRACE_SUPPORTS_THREADS
14966 FOUND_LIBBACKTRACE_RESULT_GDC
14970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14971 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14972 BACKTRACE_SUPPORTS_THREADS
=true
14974 BACKTRACE_SUPPORTS_THREADS
=false
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14979 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14981 CPPFLAGS
=$gdc_save_CPPFLAGS
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14986 $as_echo_n "checking for libbacktrace... " >&6; }
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14988 $as_echo "disabled" >&6; }
14997 ac_cpp
='$CPP $CPPFLAGS'
14998 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14999 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15000 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15004 # Libtool has already checked this, so re-use the inferred dlopen lib.
15005 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
15007 LIBS
="$LIBS $lt_cv_dlopen_libs"
15012 druntime_check_both
=no
15013 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
15014 if test "x$ac_cv_func_connect" = xyes
; then :
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15018 $as_echo_n "checking for connect in -lsocket... " >&6; }
15019 if ${ac_cv_lib_socket_connect+:} false
; then :
15020 $as_echo_n "(cached) " >&6
15022 ac_check_lib_save_LIBS
=$LIBS
15023 LIBS
="-lsocket $LIBS"
15024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15025 /* end confdefs.h. */
15027 /* Override any GCC internal prototype to avoid an error.
15028 Use char because int might match the return type of a GCC
15029 builtin and then its argument prototype would still apply. */
15042 if ac_fn_c_try_link
"$LINENO"; then :
15043 ac_cv_lib_socket_connect
=yes
15045 ac_cv_lib_socket_connect
=no
15047 rm -f core conftest.err conftest.
$ac_objext \
15048 conftest
$ac_exeext conftest.
$ac_ext
15049 LIBS
=$ac_check_lib_save_LIBS
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15052 $as_echo "$ac_cv_lib_socket_connect" >&6; }
15053 if test "x$ac_cv_lib_socket_connect" = xyes
; then :
15054 LIBS
="$LIBS -lsocket"
15056 druntime_check_both
=yes
15061 if test "$druntime_check_both" = "yes"; then
15062 druntime_old_libs
=$LIBS
15063 LIBS
="$LIBS -lsocket -lnsl"
15064 ac_fn_c_check_func
"$LINENO" "accept" "ac_cv_func_accept"
15065 if test "x$ac_cv_func_accept" = xyes
; then :
15068 LIBS
=$druntime_old_libs
15072 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15073 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15077 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15078 if ${ac_cv_lib_nsl_gethostbyname+:} false
; then :
15079 $as_echo_n "(cached) " >&6
15081 ac_check_lib_save_LIBS
=$LIBS
15083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15084 /* end confdefs.h. */
15086 /* Override any GCC internal prototype to avoid an error.
15087 Use char because int might match the return type of a GCC
15088 builtin and then its argument prototype would still apply. */
15092 char gethostbyname ();
15096 return gethostbyname ();
15101 if ac_fn_c_try_link
"$LINENO"; then :
15102 ac_cv_lib_nsl_gethostbyname
=yes
15104 ac_cv_lib_nsl_gethostbyname
=no
15106 rm -f core conftest.err conftest.
$ac_objext \
15107 conftest
$ac_exeext conftest.
$ac_ext
15108 LIBS
=$ac_check_lib_save_LIBS
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15111 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15112 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
; then :
15120 # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15121 # "yes" for targets that have 'version = AsmExternal'.
15122 druntime_fiber_asm_external
=no
15123 case "$target_cpu" in
15126 i
[34567]86|x86_64 | \
15128 druntime_fiber_asm_external
=yes
15131 if test "$druntime_fiber_asm_external" = no
; then
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15133 $as_echo_n "checking for library containing swapcontext... " >&6; }
15134 if ${ac_cv_search_swapcontext+:} false
; then :
15135 $as_echo_n "(cached) " >&6
15137 ac_func_search_save_LIBS
=$LIBS
15138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15141 /* Override any GCC internal prototype to avoid an error.
15142 Use char because int might match the return type of a GCC
15143 builtin and then its argument prototype would still apply. */
15147 char swapcontext ();
15151 return swapcontext ();
15156 for ac_lib
in '' c ucontext
; do
15157 if test -z "$ac_lib"; then
15158 ac_res
="none required"
15161 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15163 if ac_fn_c_try_link
"$LINENO"; then :
15164 ac_cv_search_swapcontext
=$ac_res
15166 rm -f core conftest.err conftest.
$ac_objext \
15168 if ${ac_cv_search_swapcontext+:} false
; then :
15172 if ${ac_cv_search_swapcontext+:} false
; then :
15175 ac_cv_search_swapcontext
=no
15177 rm conftest.
$ac_ext
15178 LIBS
=$ac_func_search_save_LIBS
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15181 $as_echo "$ac_cv_search_swapcontext" >&6; }
15182 ac_res
=$ac_cv_search_swapcontext
15183 if test "$ac_res" != no
; then :
15184 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15187 as_fn_error $?
"swapcontext required but not found" "$LINENO" 5
15194 ac_cpp
='$CPP $CPPFLAGS'
15195 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15196 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15197 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15202 # Check whether --with-target-system-zlib was given.
15203 if test "${with_target_system_zlib+set}" = set; then :
15204 withval
=$with_target_system_zlib;
15206 with_target_system_zlib
=no
15210 case "$with_target_system_zlib" in
15212 *) as_fn_error $?
"Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15216 $as_echo_n "checking for system zlib... " >&6; }
15219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15220 /* end confdefs.h. */
15225 gzopen("none", "rb")
15230 if ac_fn_c_try_link
"$LINENO"; then :
15232 if test "$cross_compiling" = yes; then :
15233 system_zlib_found
=no
15236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h. */
15241 gzFile file = gzopen("none", "rb");
15246 if ac_fn_c_try_run
"$LINENO"; then :
15247 system_zlib_found
=yes
15249 system_zlib_found
=no
15251 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15252 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15257 system_zlib_found
=no
15259 rm -f core conftest.err conftest.
$ac_objext \
15260 conftest
$ac_exeext conftest.
$ac_ext
15263 if test x
$system_zlib_found = xyes
&& test x
$with_target_system_zlib != xno
; then
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15265 $as_echo "found" >&6; }
15267 elif test x
$system_zlib_found = xno
&& test x
$with_target_system_zlib = xyes
; then
15268 as_fn_error $?
"system zlib required but not found" "$LINENO" 5
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15271 $as_echo "just compiled" >&6; }
15272 LIBZ
=..
/..
/zlib
/libz_convenience.la
15277 ac_cpp
='$CPP $CPPFLAGS'
15278 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15279 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15280 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15287 $as_echo_n "checking D GCC version... " >&6; }
15288 gcc_version
=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15290 $as_echo "$gcc_version" >&6; }
15294 # Check whether --with-cross-host was given.
15295 if test "${with_cross_host+set}" = set; then :
15296 withval
=$with_cross_host;
15300 libphobos_toolexecdir
=no
15301 libphobos_toolexeclibdir
=no
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15304 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15305 # Check whether --enable-version-specific-runtime-libs was given.
15306 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15307 enableval
=$enable_version_specific_runtime_libs; case "$enableval" in
15308 yes) version_specific_libs
=yes ;;
15309 no
) version_specific_libs
=no
;;
15310 *) as_fn_error $?
"Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15313 version_specific_libs
=no
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15317 $as_echo "$version_specific_libs" >&6; }
15320 # Check whether --with-toolexeclibdir was given.
15321 if test "${with_toolexeclibdir+set}" = set; then :
15322 withval
=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15326 with_toolexeclibdir
=`echo $with_toolexeclibdir | sed 's,/$,,'`
15330 with_toolexeclibdir
=no
15335 # Version-specific runtime libs processing.
15336 if test $version_specific_libs = yes; then
15337 libphobos_toolexecdir
='${libdir}/gcc/${host_alias}'
15338 libphobos_toolexeclibdir
='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15340 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15341 # Install a library built with a cross compiler in tooldir, not libdir.
15342 if test -n "$with_cross_host" && test x
"$with_cross_host" != x
"no"; then
15343 libphobos_toolexecdir
='${exec_prefix}/${host_alias}'
15344 case ${with_toolexeclibdir} in
15346 libphobos_toolexeclibdir
='${toolexecdir}/lib'
15349 libphobos_toolexeclibdir
=${with_toolexeclibdir}
15353 libphobos_toolexecdir
='${libdir}/gcc/${host_alias}'
15354 libphobos_toolexeclibdir
='${libdir}'
15356 multi_os_directory
=`$GDC -print-multi-os-directory`
15357 case $multi_os_directory in
15358 .
) ;; # Avoid trailing /.
15359 *) libphobos_toolexeclibdir
=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15365 # Default case for install directory for D sources files.
15366 gdc_include_dir
='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15371 $as_echo_n "checking for --enable-libphobos... " >&6; }
15372 # Check whether --enable-libphobos was given.
15373 if test "${enable_libphobos+set}" = set; then :
15374 enableval
=$enable_libphobos;
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15378 $as_echo "$enable_libphobos" >&6; }
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15381 $as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15383 # Check whether --with-libphobos-druntime-only was given.
15384 if test "${with_libphobos_druntime_only+set}" = set; then :
15385 withval
=$with_libphobos_druntime_only;
15387 with_libphobos_druntime_only
=auto
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15391 $as_echo "$with_libphobos_druntime_only" >&6; }
15393 case "$with_libphobos_druntime_only" in
15395 *) as_fn_error $?
"Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15398 # See if supported.
15399 unset LIBPHOBOS_SUPPORTED
15400 unset LIBDRUNTIME_ONLY
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15402 $as_echo_n "checking for host support for libphobos... " >&6; }
15403 .
${srcdir}/configure.tgt
15405 x86_64-
*-solaris2.
* | i?
86-*-solaris2.
*)
15406 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15407 # relatively low linelength limit.
15408 as_prog
=`$CC -print-prog-name=as`
15409 if test -n "$as_prog" && $as_prog -v /dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
15410 druntime_cv_use_gas
=yes;
15412 druntime_cv_use_gas
=no
;
15415 if test x
$druntime_cv_use_gas = xno
; then
15416 LIBPHOBOS_SUPPORTED
=no
15418 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15419 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15420 LIBPHOBOS_SUPPORTED
=no
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15425 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15427 # Decide if it's usable.
15428 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15429 *:no
) use_libphobos
=no
;;
15430 *:yes) use_libphobos
=yes ;;
15431 yes:*) use_libphobos
=yes ;;
15432 *:*) use_libphobos
=no
;;
15434 if test x
$use_libphobos = xyes
; then
15435 ENABLE_LIBPHOBOS_TRUE
=
15436 ENABLE_LIBPHOBOS_FALSE
='#'
15438 ENABLE_LIBPHOBOS_TRUE
='#'
15439 ENABLE_LIBPHOBOS_FALSE
=
15443 # Decide if only libdruntime should be built.
15444 case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
15445 *:no
) only_libdruntime
=no
;;
15446 *:yes) only_libdruntime
=yes ;;
15447 yes:*) only_libdruntime
=yes ;;
15448 *:*) only_libdruntime
=no
;;
15450 if test x
$only_libdruntime = xyes
; then
15451 ENABLE_LIBDRUNTIME_ONLY_TRUE
=
15452 ENABLE_LIBDRUNTIME_ONLY_FALSE
='#'
15454 ENABLE_LIBDRUNTIME_ONLY_TRUE
='#'
15455 ENABLE_LIBDRUNTIME_ONLY_FALSE
=
15459 # Enable expensive internal checks
15460 # Check whether --enable-libphobos-checking was given.
15461 if test "${enable_libphobos_checking+set}" = set; then :
15462 enableval
=$enable_libphobos_checking; ac_checking_flags
="${enableval}"
15464 ac_checking_flags
=release
15467 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
15468 for check
in release
$ac_checking_flags
15471 # These set all the flags to specific states
15472 yes|all
) RELEASE_FLAG
="-fno-release" ; ASSERT_FLAG
= ;;
15473 no|none|release
) RELEASE_FLAG
="-frelease" ; ASSERT_FLAG
= ;;
15474 # These enable particular checks
15475 assert
) ASSERT_FLAG
="-fassert" ;;
15481 CHECKING_DFLAGS
="$RELEASE_FLAG $ASSERT_FLAG"
15484 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15485 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15486 DRTSTUFF_SPEC
=$srcdir/src
/drtstuff.spec
15488 DRTSTUFF_SPEC
=/dev
/null
15492 # Add dependencies for libgphobos.spec file
15493 SPEC_PHOBOS_DEPS
="$LIBS"
15496 # Libdruntime / phobos soname version
15497 libtool_VERSION
=1:0:0
15500 # Set default flags (after DRUNTIME_WERROR!)
15501 if test -z "$GDCFLAGS"; then
15506 WARN_DFLAGS
="-Wall $WERROR_FLAG"
15509 # Sanity check for the cross-compilation case:
15510 ac_fn_c_check_header_mongrel
"$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15511 if test "x$ac_cv_header_stdio_h" = xyes
; then :
15514 as_fn_error $?
"cannot find stdio.h." "$LINENO" 5
15519 ac_config_files
="$ac_config_files Makefile"
15522 ac_config_files
="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15524 ac_config_files
="$ac_config_files src/libgphobos.spec"
15526 ac_config_files
="$ac_config_files testsuite/testsuite_flags"
15529 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15530 # that multilib installs will end up installed in the correct place.
15531 # The testsuite needs it for multilib-aware ABI baseline files.
15532 # To work around this not being passed down from config-ml.in ->
15533 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15534 # append it here. Only modify Makefiles that have just been created.
15536 # Also, get rid of this simulated-VPATH thing that automake does.
15537 ac_config_files
="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15540 cat >confcache
<<\_ACEOF
15541 # This file is a shell script that caches the results of configure
15542 # tests run on this system so they can be shared between configure
15543 # scripts and configure runs, see configure's option --config-cache.
15544 # It is not useful on other systems. If it contains results you don't
15545 # want to keep, you may remove or edit it.
15547 # config.status only pays attention to the cache file if you give it
15548 # the --recheck option to rerun configure.
15550 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15551 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15552 # following values.
15556 # The following way of writing the cache mishandles newlines in values,
15557 # but we know of no workaround that is simple, portable, and efficient.
15558 # So, we kill variables containing newlines.
15559 # Ultrix sh set writes to stderr and can't be redirected directly,
15560 # and sets the high bit in the cache file unless we assign to the vars.
15562 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15563 eval ac_val
=\$
$ac_var
15567 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15568 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15571 _ | IFS | as_nl
) ;; #(
15572 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15573 *) { eval $ac_var=; unset $ac_var;} ;;
15579 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15580 *${as_nl}ac_space
=\
*)
15581 # `set' does not quote correctly, so add quotes: double-quote
15582 # substitution turns \\\\ into \\, and sed turns \\ into \.
15585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15588 # `set' quotes correctly as required by POSIX, so do not add quotes.
15589 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15598 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15600 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15602 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15603 if test -w "$cache_file"; then
15604 if test "x$cache_file" != "x/dev/null"; then
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15606 $as_echo "$as_me: updating cache $cache_file" >&6;}
15607 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15608 cat confcache
>"$cache_file"
15610 case $cache_file in #(
15612 mv -f confcache
"$cache_file"$$
&&
15613 mv -f "$cache_file"$$
"$cache_file" ;; #(
15615 mv -f confcache
"$cache_file" ;;
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15621 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15626 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15627 # Let make expand exec_prefix.
15628 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15630 DEFS
=-DHAVE_CONFIG_H
15635 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15636 # 1. Remove the extension, and $U if already installed.
15637 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15638 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15639 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15640 # will be set to the directory where LIBOBJS objects are built.
15641 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15642 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15644 LIBOBJS
=$ac_libobjs
15646 LTLIBOBJS
=$ac_ltlibobjs
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15650 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15651 if test -n "$am_sleep_pid"; then
15652 # Hide warnings about reused PIDs.
15653 wait $am_sleep_pid 2>/dev
/null
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15656 $as_echo "done" >&6; }
15657 if test -n "$EXEEXT"; then
15659 am__EXEEXT_FALSE
='#'
15661 am__EXEEXT_TRUE
='#'
15665 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15666 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
15667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15669 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15670 as_fn_error $?
"conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15673 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15674 as_fn_error $?
"conditional \"DRUNTIME_CPU_ARM\" was never defined.
15675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15677 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15678 as_fn_error $?
"conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15681 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15682 as_fn_error $?
"conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15685 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15686 as_fn_error $?
"conditional \"DRUNTIME_CPU_X86\" was never defined.
15687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15689 if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15690 as_fn_error $?
"conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15693 if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15694 as_fn_error $?
"conditional \"DRUNTIME_CPU_S390\" was never defined.
15695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15697 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15698 as_fn_error $?
"conditional \"DRUNTIME_OS_AIX\" was never defined.
15699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15701 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15702 as_fn_error $?
"conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15705 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15706 as_fn_error $?
"conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15709 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15710 as_fn_error $?
"conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15713 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15714 as_fn_error $?
"conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15717 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15718 as_fn_error $?
"conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15721 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15722 as_fn_error $?
"conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15725 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15726 as_fn_error $?
"conditional \"DRUNTIME_OS_LINUX\" was never defined.
15727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15729 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15730 as_fn_error $?
"conditional \"DRUNTIME_OS_MINGW\" was never defined.
15731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15733 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15734 as_fn_error $?
"conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15737 if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15738 as_fn_error $?
"conditional \"DRUNTIME_OS_POSIX\" was never defined.
15739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15741 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15742 as_fn_error $?
"conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15745 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15746 as_fn_error $?
"conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15749 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15750 as_fn_error $?
"conditional \"ENABLE_LIBPHOBOS\" was never defined.
15751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15753 if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
15754 as_fn_error $?
"conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
15755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15758 : "${CONFIG_STATUS=./config.status}"
15760 ac_clean_files_save
=$ac_clean_files
15761 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15763 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15765 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15767 # Generated by $as_me.
15768 # Run this file to recreate the current configuration.
15769 # Compiler output produced by configure, useful for debugging
15770 # configure, is in config.log if it exists.
15773 ac_cs_recheck=false
15776 SHELL=\${CONFIG_SHELL-$SHELL}
15779 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15780 ## -------------------- ##
15781 ## M4sh Initialization. ##
15782 ## -------------------- ##
15784 # Be more Bourne compatible
15785 DUALCASE
=1; export DUALCASE
# for MKS sh
15786 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15789 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15790 # is contrary to our usage. Disable this feature.
15791 alias -g '${1+"$@"}'='"$@"'
15792 setopt NO_GLOB_SUBST
15794 case `(set -o) 2>/dev/null` in #(
15806 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15807 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15808 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15809 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15810 # Prefer a ksh shell builtin over an external printf program on Solaris,
15811 # but without wasting forks for bash or zsh.
15812 if test -z "$BASH_VERSION$ZSH_VERSION" \
15813 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15814 as_echo='print
-r --'
15815 as_echo_n='print
-rn --'
15816 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15817 as_echo='printf %s
\n'
15818 as_echo_n='printf %s
'
15820 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15821 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15822 as_echo_n='/usr
/ucb
/echo -n'
15824 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15825 as_echo_n_body='eval
15829 expr "X$arg" : "X\\(.*\\)$as_nl";
15830 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15832 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15834 export as_echo_n_body
15835 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15837 export as_echo_body
15838 as_echo='sh
-c $as_echo_body as_echo
'
15841 # The user is always right.
15842 if test "${PATH_SEPARATOR+set}" != set; then
15844 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15845 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15852 # We need space, tab and new line, in precisely that order. Quoting is
15853 # there to prevent editors from complaining about space-tab.
15854 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15855 # splitting by setting IFS to empty value.)
15858 # Find who we are. Look in the path if we contain no directory separator.
15861 *[\\/]* ) as_myself=$0 ;;
15862 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15863 for as_dir in $PATH
15866 test -z "$as_dir" && as_dir=.
15867 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15873 # We did not find ourselves, most probably we were run as `sh COMMAND'
15874 # in which case we are not to be found in the path.
15875 if test "x$as_myself" = x
; then
15878 if test ! -f "$as_myself"; then
15879 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15883 # Unset variables that we do not need and which cause bugs (e.g. in
15884 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15885 # suppresses any "Segmentation fault" message there. '((' could
15886 # trigger a bug in pdksh 5.2.14.
15887 for as_var
in BASH_ENV ENV MAIL MAILPATH
15888 do eval test x\
${$as_var+set} = xset \
15889 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15902 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15905 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15906 # ----------------------------------------
15907 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15908 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15909 # script with STATUS, using 1 if that was 0.
15912 as_status
=$1; test $as_status -eq 0 && as_status
=1
15914 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15915 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15917 $as_echo "$as_me: error: $2" >&2
15918 as_fn_exit
$as_status
15922 # as_fn_set_status STATUS
15923 # -----------------------
15924 # Set $? to STATUS, without forking.
15925 as_fn_set_status
()
15928 } # as_fn_set_status
15930 # as_fn_exit STATUS
15931 # -----------------
15932 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15936 as_fn_set_status
$1
15942 # Portably unset VAR.
15945 { eval $1=; unset $1;}
15947 as_unset
=as_fn_unset
15948 # as_fn_append VAR VALUE
15949 # ----------------------
15950 # Append the text in VALUE to the end of the definition contained in VAR. Take
15951 # advantage of any shell optimizations that allow amortized linear growth over
15952 # repeated appends, instead of the typical quadratic growth present in naive
15954 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15955 eval 'as_fn_append ()
15966 # as_fn_arith ARG...
15967 # ------------------
15968 # Perform arithmetic evaluation on the ARGs, and store the result in the
15969 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15970 # must be portable across $(()) and expr.
15971 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15972 eval 'as_fn_arith ()
15979 as_val
=`expr "$@" || test $? -eq 1`
15984 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15985 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15991 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15992 as_basename
=basename
15997 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16003 as_me
=`$as_basename -- "$0" ||
16004 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16005 X"$0" : 'X\(//\)$' \| \
16006 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16008 sed '/^.*\/\([^/][^/]*\)\/*$/{
16022 # Avoid depending upon Character Ranges.
16023 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16024 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16025 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16026 as_cr_digits
='0123456789'
16027 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16029 ECHO_C
= ECHO_N
= ECHO_T
=
16030 case `echo -n x` in #(((((
16032 case `echo 'xy\c'` in
16033 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16035 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16042 rm -f conf$$ conf$$.exe conf$$.
file
16043 if test -d conf$$.dir
; then
16044 rm -f conf$$.dir
/conf$$.
file
16047 mkdir conf$$.dir
2>/dev
/null
16049 if (echo >conf$$.
file) 2>/dev
/null
; then
16050 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16052 # ... but there are two gotchas:
16053 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16054 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16055 # In both cases, we have to default to `cp -pR'.
16056 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16058 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16066 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16067 rmdir conf$$.dir
2>/dev
/null
16072 # Create "$as_dir" as a directory, including parents if necessary.
16077 -*) as_dir
=.
/$as_dir;;
16079 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16083 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16084 *) as_qdir
=$as_dir;;
16086 as_dirs
="'$as_qdir' $as_dirs"
16087 as_dir
=`$as_dirname -- "$as_dir" ||
16088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16089 X"$as_dir" : 'X\(//\)[^/]' \| \
16090 X"$as_dir" : 'X\(//\)$' \| \
16091 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16092 $as_echo X"$as_dir" |
16093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16097 /^X\(\/\/\)[^/].*/{
16110 test -d "$as_dir" && break
16112 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16113 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16117 if mkdir
-p .
2>/dev
/null
; then
16118 as_mkdir_p
='mkdir -p "$as_dir"'
16120 test -d .
/-p && rmdir .
/-p
16125 # as_fn_executable_p FILE
16126 # -----------------------
16127 # Test if FILE is an executable regular file.
16128 as_fn_executable_p
()
16130 test -f "$1" && test -x "$1"
16131 } # as_fn_executable_p
16132 as_test_x
='test -x'
16133 as_executable_p
=as_fn_executable_p
16135 # Sed expression to map a string onto a valid CPP name.
16136 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16138 # Sed expression to map a string onto a valid variable name.
16139 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16143 ## ----------------------------------- ##
16144 ## Main body of $CONFIG_STATUS script. ##
16145 ## ----------------------------------- ##
16147 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16150 # Save the log message, to keep $0 and so on meaningful, and to
16151 # report actual input values of CONFIG_FILES etc. instead of their
16152 # values after options handling.
16154 This file was extended by package-unused $as_me version-unused, which was
16155 generated by GNU Autoconf 2.69. Invocation command line was
16157 CONFIG_FILES = $CONFIG_FILES
16158 CONFIG_HEADERS = $CONFIG_HEADERS
16159 CONFIG_LINKS = $CONFIG_LINKS
16160 CONFIG_COMMANDS = $CONFIG_COMMANDS
16163 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16168 case $ac_config_files in *"
16169 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16172 case $ac_config_headers in *"
16173 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16178 # Files that config.status was made for.
16179 config_files="$ac_config_files"
16180 config_headers="$ac_config_headers"
16181 config_commands="$ac_config_commands"
16185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16187 \`$as_me' instantiates files and other configuration actions
16188 from templates according to the current configuration. Unless the files
16189 and actions are specified as TAGs, all are instantiated by default.
16191 Usage: $0 [OPTION]... [TAG]...
16193 -h, --help print this help, then exit
16194 -V, --version print version number and configuration settings, then exit
16195 --config print configuration, then exit
16196 -q, --quiet, --silent
16197 do not print progress messages
16198 -d, --debug don't remove temporary files
16199 --recheck update $as_me by reconfiguring in the same conditions
16200 --file=FILE[:TEMPLATE]
16201 instantiate the configuration file FILE
16202 --header=FILE[:TEMPLATE]
16203 instantiate the configuration header FILE
16205 Configuration files:
16208 Configuration headers:
16211 Configuration commands:
16214 Report bugs to the package provider."
16217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16218 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16220 package-unused config.status version-unused
16221 configured by $0, generated by GNU Autoconf 2.69,
16222 with options \\"\$ac_cs_config\\"
16224 Copyright (C) 2012 Free Software Foundation, Inc.
16225 This config.status script is free software; the Free Software Foundation
16226 gives unlimited permission to copy, distribute and modify it."
16233 test -n "\$AWK" || AWK=awk
16236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16237 # The default lists apply if the user does not specify any file.
16243 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16244 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16248 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16260 # Handling of the options.
16261 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16263 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16264 $as_echo "$ac_cs_version"; exit ;;
16265 --config |
--confi |
--conf |
--con |
--co |
--c )
16266 $as_echo "$ac_cs_config"; exit ;;
16267 --debug |
--debu |
--deb |
--de |
--d |
-d )
16269 --file |
--fil |
--fi |
--f )
16272 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16273 '') as_fn_error $?
"missing file argument" ;;
16275 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16276 ac_need_defaults
=false
;;
16277 --header |
--heade |
--head |
--hea )
16280 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16282 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16283 ac_need_defaults
=false
;;
16285 # Conflict between --help and --header
16286 as_fn_error $?
"ambiguous option: \`$1'
16287 Try \`$0 --help' for more information.";;
16288 --help |
--hel |
-h )
16289 $as_echo "$ac_cs_usage"; exit ;;
16290 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16291 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16294 # This is an error.
16295 -*) as_fn_error $?
"unrecognized option: \`$1'
16296 Try \`$0 --help' for more information." ;;
16298 *) as_fn_append ac_config_targets
" $1"
16299 ac_need_defaults
=false
;;
16305 ac_configure_extra_args
=
16307 if $ac_cs_silent; then
16309 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16314 if \$ac_cs_recheck; then
16315 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16317 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16318 CONFIG_SHELL='$SHELL'
16319 export CONFIG_SHELL
16324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16328 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16329 ## Running $as_me. ##
16335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16343 with_multisubdir="$with_multisubdir"
16344 with_multisrctop="$with_multisrctop"
16345 with_target_subdir="$with_target_subdir"
16346 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16347 multi_basedir="$multi_basedir"
16348 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16351 GFORTRAN="$GFORTRAN"
16355 # The HP-UX ksh and POSIX shell print the target directory to stdout
16356 # if CDPATH is set.
16357 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16359 sed_quote_subst='$sed_quote_subst'
16360 double_quote_subst='$double_quote_subst'
16361 delay_variable_subst='$delay_variable_subst'
16362 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16363 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16364 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16365 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16366 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16367 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16368 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16369 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16370 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16371 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16372 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16373 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16374 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16375 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16376 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16377 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16378 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16379 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16380 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16381 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16382 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16383 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16384 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16385 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16386 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16387 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16388 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16389 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16390 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16391 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16392 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16393 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16394 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16395 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16396 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16397 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16398 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16399 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16400 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16401 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16402 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16403 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16404 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16405 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16406 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16407 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16408 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16409 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16410 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"`'
16411 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16412 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16413 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16414 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16415 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16416 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16417 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16418 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16419 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16420 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16421 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16422 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16423 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16424 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16425 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16426 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16427 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16428 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16429 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16430 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16431 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16432 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16433 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16434 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16435 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16436 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16437 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16438 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16439 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16440 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16441 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16442 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16443 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16444 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16445 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16446 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16447 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16448 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16449 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16450 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16451 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16452 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16453 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16454 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16455 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16456 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16457 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16458 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16459 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16460 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16461 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16462 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16463 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16464 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16465 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16466 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16467 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16468 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16469 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16470 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16471 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16472 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16473 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16474 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16475 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16476 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16477 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16478 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16479 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16480 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16481 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16482 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16483 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16484 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16485 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16486 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16487 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16488 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16489 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16490 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16491 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16492 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16493 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16494 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16495 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16496 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16497 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16498 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16499 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16500 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16501 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16502 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16503 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16504 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16505 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16506 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16507 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16508 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16509 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16510 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16511 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16512 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16513 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16514 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16515 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16516 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16517 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16518 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16519 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16520 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16521 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16522 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16523 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16524 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16527 LTCFLAGS='$LTCFLAGS'
16528 compiler='$compiler_DEFAULT'
16530 # A function that is used when there is no print builtin or printf.
16531 func_fallback_echo ()
16533 eval 'cat <<_LTECHO_EOF
16538 # Quote evaled strings.
16552 deplibs_check_method \
16561 lt_cv_sys_global_symbol_pipe \
16562 lt_cv_sys_global_symbol_to_cdecl \
16563 lt_cv_sys_global_symbol_to_c_name_address \
16564 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16565 lt_prog_compiler_no_builtin_flag \
16566 lt_prog_compiler_wl \
16567 lt_prog_compiler_pic \
16568 lt_prog_compiler_static \
16569 lt_cv_prog_compiler_c_o \
16577 export_dynamic_flag_spec \
16578 whole_archive_flag_spec \
16579 compiler_needs_object \
16581 allow_undefined_flag \
16582 no_undefined_flag \
16583 hardcode_libdir_flag_spec \
16584 hardcode_libdir_flag_spec_ld \
16585 hardcode_libdir_separator \
16590 variables_saved_for_relink \
16592 library_names_spec \
16594 install_override_mode \
16601 lt_prog_compiler_no_builtin_flag_D \
16602 lt_prog_compiler_wl_D \
16603 lt_prog_compiler_pic_D \
16604 lt_prog_compiler_static_D \
16605 lt_cv_prog_compiler_c_o_D \
16606 export_dynamic_flag_spec_D \
16607 whole_archive_flag_spec_D \
16608 compiler_needs_object_D \
16610 allow_undefined_flag_D \
16611 no_undefined_flag_D \
16612 hardcode_libdir_flag_spec_D \
16613 hardcode_libdir_flag_spec_ld_D \
16614 hardcode_libdir_separator_D \
16615 fix_srcfile_path_D \
16616 exclude_expsyms_D \
16617 include_expsyms_D \
16618 file_list_spec_D; do
16619 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16620 *[\\\\\\\`\\"\\\$]*)
16621 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16624 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16629 # Double-quote double-evaled strings.
16630 for var in reload_cmds \
16631 old_postinstall_cmds \
16632 old_postuninstall_cmds \
16634 extract_expsyms_cmds \
16635 old_archive_from_new_cmds \
16636 old_archive_from_expsyms_cmds \
16638 archive_expsym_cmds \
16640 module_expsym_cmds \
16641 export_symbols_cmds \
16644 postuninstall_cmds \
16646 sys_lib_search_path_spec \
16647 sys_lib_dlsearch_path_spec \
16649 old_archive_cmds_D \
16650 old_archive_from_new_cmds_D \
16651 old_archive_from_expsyms_cmds_D \
16653 archive_expsym_cmds_D \
16655 module_expsym_cmds_D \
16656 export_symbols_cmds_D \
16658 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16659 *[\\\\\\\`\\"\\\$]*)
16660 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16663 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16668 ac_aux_dir='$ac_aux_dir'
16669 xsi_shell='$xsi_shell'
16670 lt_shell_append='$lt_shell_append'
16672 # See if we are running on zsh, and set the options which allow our
16673 # commands through without removal of \ escapes INIT.
16674 if test -n "\${ZSH_VERSION+set}" ; then
16675 setopt NO_GLOB_SUBST
16681 TIMESTAMP='$TIMESTAMP'
16692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16694 # Handling of arguments.
16695 for ac_config_target
in $ac_config_targets
16697 case $ac_config_target in
16698 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
16699 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
16700 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
16701 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16702 "libdruntime/gcc/config.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16703 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16704 "src/libgphobos.spec") CONFIG_FILES
="$CONFIG_FILES src/libgphobos.spec" ;;
16705 "testsuite/testsuite_flags") CONFIG_FILES
="$CONFIG_FILES testsuite/testsuite_flags" ;;
16706 "libdruntime/Makefile") CONFIG_FILES
="$CONFIG_FILES libdruntime/Makefile" ;;
16707 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
16708 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
16710 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16715 # If the user did not use the arguments to specify the items to instantiate,
16716 # then the envvar interface is used. Set only those that are not.
16717 # We use the long form for the default assignment because of an extremely
16718 # bizarre bug on SunOS 4.1.3.
16719 if $ac_need_defaults; then
16720 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16721 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16722 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16725 # Have a temporary directory for convenience. Make it in the build tree
16726 # simply because there is no reason against having it here, and in addition,
16727 # creating and moving files from /tmp can sometimes cause problems.
16728 # Hook for its removal unless debugging.
16729 # Note that there is a small window in which the directory will not be cleaned:
16730 # after its creation but before its name has been assigned to `$tmp'.
16734 trap 'exit_status=$?
16735 : "${ac_tmp:=$tmp}"
16736 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16738 trap 'as_fn_exit 1' 1 2 13 15
16740 # Create a (secure) tmp directory for tmp files.
16743 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16747 tmp
=.
/conf$$
-$RANDOM
16748 (umask 077 && mkdir
"$tmp")
16749 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16752 # Set up the scripts for CONFIG_FILES section.
16753 # No need to generate them if there are no CONFIG_FILES.
16754 # This happens for instance with `./config.status config.h'.
16755 if test -n "$CONFIG_FILES"; then
16757 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16758 ac_cs_awk_getline
=:
16759 ac_cs_awk_pipe_init
=
16760 ac_cs_awk_read_file
='
16761 while ((getline aline < (F[key])) > 0)
16764 ac_cs_awk_pipe_fini
=
16766 ac_cs_awk_getline
=false
16767 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16768 ac_cs_awk_read_file
='
16770 print "cat " F[key] " &&"
16771 '$ac_cs_awk_pipe_init
16772 # The final `:' finishes the AND list.
16773 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16775 ac_cr
=`echo X | tr X '\015'`
16776 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16777 # But we know of no other shell where ac_cr would be empty at this
16778 # point, so we can use a bashism as a fallback.
16779 if test "x$ac_cr" = x
; then
16780 eval ac_cr
=\$
\'\\r
\'
16782 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16783 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16786 ac_cs_awk_cr
=$ac_cr
16789 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16792 # Create commands to substitute file output variables.
16794 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16795 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16796 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16799 } >conf$
$files.sh
&&
16800 . .
/conf$
$files.sh ||
16801 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
16802 rm -f conf$
$files.sh
16805 echo "cat >conf$$subs.awk <<_ACEOF" &&
16806 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16808 } >conf$$subs.sh ||
16809 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16810 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16812 for ac_last_try in false false false false false :; do
16813 . ./conf$$subs.sh ||
16814 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16816 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16817 if test $ac_delim_n = $ac_delim_num; then
16819 elif $ac_last_try; then
16820 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16822 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16825 rm -f conf$$subs.sh
16827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16828 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16832 s/^/S["/; s
/!.
*/"]=/
16842 s/\(.\{148\}\)..*/\1/
16844 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16849 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16856 s/\(.\{148\}\)..*/\1/
16858 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16862 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16867 ' <conf$$subs.awk | sed '
16872 ' >>$CONFIG_STATUS || ac_write_fail=1
16873 rm -f conf$$subs.awk
16874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16876 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16877 for (key in S) S_is_set[key] = 1
16879 \$ac_cs_awk_pipe_init
16883 nfields = split(line, field, "@
")
16885 len = length(field[1])
16886 for (i = 2; i < nfields; i++) {
16888 keylen = length(key)
16889 if (S_is_set[key]) {
16891 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16892 len += length(value) + length(field[++i])
16897 if (nfields == 3 && !substed) {
16899 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16900 \$ac_cs_awk_read_file
16906 \$ac_cs_awk_pipe_fini
16909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16910 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16911 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16914 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16915 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16918 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16919 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16920 # trailing colons and then remove the whole line if VPATH becomes empty
16921 # (actually we leave an empty line to preserve line numbers).
16922 if test "x
$srcdir" = x.; then
16923 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16942 fi # test -n "$CONFIG_FILES"
16944 # Set up the scripts for CONFIG_HEADERS section.
16945 # No need to generate them if there are no CONFIG_HEADERS.
16946 # This happens for instance with `./config.status Makefile'.
16947 if test -n "$CONFIG_HEADERS"; then
16948 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16952 # Transform confdefs.h into an awk script `defines.awk', embedded as
16953 # here-document in config.status, that substitutes the proper values into
16954 # config.h.in to produce config.h.
16956 # Create a delimiter string that does not exist in confdefs.h, to ease
16957 # handling of long lines.
16959 for ac_last_try in false false :; do
16960 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16961 if test -z "$ac_tt"; then
16963 elif $ac_last_try; then
16964 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16966 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16970 # For the awk script, D is an array of macro values keyed by name,
16971 # likewise P contains macro parameters if any. Preserve backslash
16972 # newline sequences.
16974 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16976 s/.\{148\}/&'"$ac_delim"'/g
16979 s/^[ ]*#[ ]*define[ ][ ]*/ /
16986 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16988 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16992 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16993 D["\
1"]=" \
3\\\\\\n
"\\/p
16995 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17000 s/.\{148\}/&'"$ac_delim"'/g
17005 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17008 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17010 ' <confdefs.h | sed '
17011 s/'"$ac_delim"'/"\\\
17012 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17015 for (key in D) D_is_set[key] = 1
17018 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17020 split(line, arg, " ")
17021 if (arg[1] == "#") {
17025 defundef
= substr
(arg
[1], 2)
17028 split(mac1
, mac2
, "(") #)
17030 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17031 if (D_is_set
[macro
]) {
17032 # Preserve the white space surrounding the "#".
17033 print prefix
"define", macro P
[macro
] D
[macro
]
17036 # Replace #undef with comments. This is necessary, for example,
17037 # in the case of _POSIX_SOURCE, which is predefined and required
17038 # on some systems where configure will not decide to define it.
17039 if (defundef
== "undef") {
17040 print
"/*", prefix defundef
, macro
, "*/"
17048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17049 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
17050 fi # test -n "$CONFIG_HEADERS"
17053 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17058 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17060 case $ac_mode$ac_tag in
17062 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17063 :[FH
]-) ac_tag
=-:-;;
17064 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17081 -) ac_f
="$ac_tmp/stdin";;
17082 *) # Look for the file first in the build tree, then in the source tree
17083 # (if the path is not absolute). The absolute path cannot be DOS-style,
17084 # because $ac_f cannot contain `:'.
17088 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17090 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17092 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17093 as_fn_append ac_file_inputs
" '$ac_f'"
17096 # Let's still pretend it is `configure' which instantiates (i.e., don't
17097 # use $as_me), people would be surprised to read:
17098 # /* config.h. Generated by config.status. */
17099 configure_input
='Generated from '`
17100 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17102 if test x
"$ac_file" != x-
; then
17103 configure_input
="$ac_file. $configure_input"
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17105 $as_echo "$as_me: creating $ac_file" >&6;}
17107 # Neutralize special characters interpreted by sed in replacement strings.
17108 case $configure_input in #(
17109 *\
&* |
*\|
* |
*\\* )
17110 ac_sed_conf_input
=`$as_echo "$configure_input" |
17111 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17112 *) ac_sed_conf_input
=$configure_input;;
17116 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17117 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17122 ac_dir
=`$as_dirname -- "$ac_file" ||
17123 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17124 X"$ac_file" : 'X\(//\)[^/]' \| \
17125 X"$ac_file" : 'X\(//\)$' \| \
17126 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17127 $as_echo X"$ac_file" |
17128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17132 /^X\(\/\/\)[^/].*/{
17145 as_dir
="$ac_dir"; as_fn_mkdir_p
17149 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17151 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17152 # A ".." for each directory in $ac_dir_suffix.
17153 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17154 case $ac_top_builddir_sub in
17155 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17156 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17159 ac_abs_top_builddir
=$ac_pwd
17160 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17161 # for backward compatibility:
17162 ac_top_builddir
=$ac_top_build_prefix
17165 .
) # We are building in place.
17167 ac_top_srcdir
=$ac_top_builddir_sub
17168 ac_abs_top_srcdir
=$ac_pwd ;;
17169 [\\/]* | ?
:[\\/]* ) # Absolute name.
17170 ac_srcdir
=$srcdir$ac_dir_suffix;
17171 ac_top_srcdir
=$srcdir
17172 ac_abs_top_srcdir
=$srcdir ;;
17173 *) # Relative name.
17174 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17175 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17176 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17178 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17188 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17189 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17191 ac_MKDIR_P
=$MKDIR_P
17193 [\\/$
]* | ?
:[\\/]* ) ;;
17194 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17199 # If the template does not know about datarootdir, expand it.
17200 # FIXME: This hack should be removed a few years after 2.60.
17201 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17212 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17213 *datarootdir
*) ac_datarootdir_seen
=yes;;
17214 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17216 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17219 ac_datarootdir_hack='
17220 s&@datadir@&$datadir&g
17221 s&@docdir@&$docdir&g
17222 s&@infodir@&$infodir&g
17223 s&@localedir@&$localedir&g
17224 s&@mandir@&$mandir&g
17225 s&\\\${datarootdir}&$datarootdir&g' ;;
17229 # Neutralize VPATH when `$srcdir' = `.'.
17230 # Shell code in configure.ac might set extrasub.
17231 # FIXME: do we really want to maintain this feature?
17232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17233 ac_sed_extra="$ac_vpsub
17236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17238 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17239 s|@configure_input@|
$ac_sed_conf_input|
;t t
17240 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17241 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17242 s
&@srcdir@
&$ac_srcdir&;t t
17243 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17244 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17245 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17246 s
&@builddir@
&$ac_builddir&;t t
17247 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17248 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17249 s
&@INSTALL@
&$ac_INSTALL&;t t
17250 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17251 $ac_datarootdir_hack
17253 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17254 if $ac_cs_awk_getline; then
17255 $AWK -f "$ac_tmp/subs.
awk"
17257 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
17259 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17261 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17262 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17263 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17264 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17266 which seems to be undefined. Please make sure it is defined" >&5
17267 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17268 which seems to be undefined. Please make sure it is defined" >&2;}
17270 rm -f "$ac_tmp/stdin"
17272 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17273 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17275 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17281 if test x"$ac_file" != x-; then
17283 $as_echo "/* $configure_input */" \
17284 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17285 } >"$ac_tmp/config.h" \
17286 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17287 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17289 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17292 mv "$ac_tmp/config.h" "$ac_file" \
17293 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17296 $as_echo "/* $configure_input */" \
17297 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17298 || as_fn_error $? "could not create -" "$LINENO" 5
17300 # Compute "$ac_file"'s index
in $config_headers.
17303 for _am_header
in $config_headers :; do
17304 case $_am_header in
17305 $_am_arg |
$_am_arg:* )
17308 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17311 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17312 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17313 X"$_am_arg" : 'X\(//\)[^/]' \| \
17314 X"$_am_arg" : 'X\(//\)$' \| \
17315 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17316 $as_echo X"$_am_arg" |
17317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17321 /^X\(\/\/\)[^/].*/{
17333 s/.*/./; q'`/stamp-h
$_am_stamp_count
17336 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17337 $as_echo "$as_me: executing $ac_file commands" >&6;}
17342 case $ac_file$ac_mode in
17344 # Only add multilib support code if we just rebuilt the top-level
17346 case " $CONFIG_FILES " in
17348 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
17353 # See if we are running on zsh, and set the options which allow our
17354 # commands through without removal of \ escapes.
17355 if test -n "${ZSH_VERSION+set}" ; then
17356 setopt NO_GLOB_SUBST
17359 cfgfile
="${ofile}T"
17360 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17363 cat <<_LT_EOF >> "$cfgfile"
17366 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17367 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17368 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17369 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17371 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17372 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17373 # Written by Gordon Matzigkeit, 1996
17375 # This file is part of GNU Libtool.
17377 # GNU Libtool is free software; you can redistribute it and/or
17378 # modify it under the terms of the GNU General Public License as
17379 # published by the Free Software Foundation; either version 2 of
17380 # the License, or (at your option) any later version.
17382 # As a special exception to the GNU General Public License,
17383 # if you distribute this file as part of a program or library that
17384 # is built using GNU Libtool, you may include this file under the
17385 # same distribution terms that you use for the rest of that program.
17387 # GNU Libtool is distributed in the hope that it will be useful,
17388 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17389 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17390 # GNU General Public License for more details.
17392 # You should have received a copy of the GNU General Public License
17393 # along with GNU Libtool; see the file COPYING. If not, a copy
17394 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17395 # obtained by writing to the Free Software Foundation, Inc.,
17396 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17399 # The names of the tagged configurations supported by this script.
17400 available_tags="D "
17402 # ### BEGIN LIBTOOL CONFIG
17404 # Which release of libtool.m4 was used?
17405 macro_version=$macro_version
17406 macro_revision=$macro_revision
17408 # Whether or not to build shared libraries.
17409 build_libtool_libs=$enable_shared
17411 # Whether or not to build static libraries.
17412 build_old_libs=$enable_static
17414 # What type of objects to build.
17417 # Whether or not to optimize for fast installation.
17418 fast_install=$enable_fast_install
17420 # Shell to use when invoking shell scripts.
17423 # An echo program that protects backslashes.
17427 host_alias=$host_alias
17431 # The build system.
17432 build_alias=$build_alias
17436 # A sed program that does not truncate output.
17439 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17440 Xsed="\$SED -e 1s/^X//"
17442 # A grep program that handles long lines.
17448 # A literal string matcher.
17451 # A BSD- or MS-compatible name lister.
17454 # Whether we need soft or hard links.
17457 # What is the maximum length of a command?
17458 max_cmd_len=$max_cmd_len
17460 # Object file suffix (normally "o").
17463 # Executable file suffix (normally "").
17466 # whether the shell understands "unset".
17469 # turn spaces into newlines.
17472 # turn newlines into spaces.
17475 # An object symbol dumper.
17476 OBJDUMP=$lt_OBJDUMP
17478 # Method to check whether dependent libraries are shared objects.
17479 deplibs_check_method=$lt_deplibs_check_method
17481 # Command to use when deplibs_check_method == "file_magic".
17482 file_magic_cmd=$lt_file_magic_cmd
17486 AR_FLAGS=$lt_AR_FLAGS
17488 # A symbol stripping program.
17491 # Commands used to install an old-style archive.
17493 old_postinstall_cmds=$lt_old_postinstall_cmds
17494 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17496 # Whether to use a lock for old archive extraction.
17497 lock_old_archive_extraction=$lock_old_archive_extraction
17502 # LTCC compiler flags.
17503 LTCFLAGS=$lt_CFLAGS
17505 # Take the output of nm and produce a listing of raw symbols and C names.
17506 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17508 # Transform the output of nm in a proper C declaration.
17509 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17511 # Transform the output of nm in a C name address pair.
17512 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17514 # Transform the output of nm in a C name address pair when lib prefix is needed.
17515 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17517 # The name of the directory that contains temporary libtool files.
17520 # Used to examine libraries when file_magic_cmd begins with "file".
17521 MAGIC_CMD=$MAGIC_CMD
17523 # Must we lock files when doing compilation?
17524 need_locks=$lt_need_locks
17526 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17527 DSYMUTIL=$lt_DSYMUTIL
17529 # Tool to change global to local symbols on Mac OS X.
17532 # Tool to manipulate fat objects and archives on Mac OS X.
17535 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17538 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17539 OTOOL64=$lt_OTOOL64
17541 # Old archive suffix (normally "a").
17544 # Shared library suffix (normally ".so").
17545 shrext_cmds=$lt_shrext_cmds
17547 # The commands to extract the exported symbol list from a shared archive.
17548 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17550 # Variables whose values should be saved in libtool wrapper scripts and
17551 # restored at link time.
17552 variables_saved_for_relink=$lt_variables_saved_for_relink
17554 # Do we need the "lib" prefix for modules?
17555 need_lib_prefix=$need_lib_prefix
17557 # Do we need a version for libraries?
17558 need_version=$need_version
17560 # Library versioning type.
17561 version_type=$version_type
17563 # Shared library runtime path variable.
17564 runpath_var=$runpath_var
17566 # Shared library path variable.
17567 shlibpath_var=$shlibpath_var
17569 # Is shlibpath searched before the hard-coded library search path?
17570 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17572 # Format of library name prefix.
17573 libname_spec=$lt_libname_spec
17575 # List of archive names. First name is the real one, the rest are links.
17576 # The last name is the one that the linker finds with -lNAME
17577 library_names_spec=$lt_library_names_spec
17579 # The coded name of the library, if different from the real name.
17580 soname_spec=$lt_soname_spec
17582 # Permission mode override for installation of shared libraries.
17583 install_override_mode=$lt_install_override_mode
17585 # Command to use after installation of a shared archive.
17586 postinstall_cmds=$lt_postinstall_cmds
17588 # Command to use after uninstallation of a shared archive.
17589 postuninstall_cmds=$lt_postuninstall_cmds
17591 # Commands used to finish a libtool library installation in a directory.
17592 finish_cmds=$lt_finish_cmds
17594 # As "finish_cmds", except a single script fragment to be evaled but
17596 finish_eval=$lt_finish_eval
17598 # Whether we should hardcode library paths into libraries.
17599 hardcode_into_libs=$hardcode_into_libs
17601 # Compile-time system search path for libraries.
17602 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17604 # Run-time system search path for libraries.
17605 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17607 # Whether dlopen is supported.
17608 dlopen_support=$enable_dlopen
17610 # Whether dlopen of programs is supported.
17611 dlopen_self=$enable_dlopen_self
17613 # Whether dlopen of statically linked programs is supported.
17614 dlopen_self_static=$enable_dlopen_self_static
17616 # Commands to strip libraries.
17617 old_striplib=$lt_old_striplib
17618 striplib=$lt_striplib
17621 # The linker used to build libraries.
17624 # How to create reloadable object files.
17625 reload_flag=$lt_reload_flag
17626 reload_cmds=$lt_reload_cmds
17628 # Commands used to build an old-style archive.
17629 old_archive_cmds=$lt_old_archive_cmds
17631 # A language specific compiler.
17634 # Is the compiler the GNU compiler?
17637 # Compiler flag to turn off builtin functions.
17638 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17640 # How to pass a linker flag through the compiler.
17641 wl=$lt_lt_prog_compiler_wl
17643 # Additional compiler flags for building library objects.
17644 pic_flag=$lt_lt_prog_compiler_pic
17646 # Compiler flag to prevent dynamic linking.
17647 link_static_flag=$lt_lt_prog_compiler_static
17649 # Does compiler simultaneously support -c and -o options?
17650 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17652 # Whether or not to add -lc for building shared libraries.
17653 build_libtool_need_lc=$archive_cmds_need_lc
17655 # Whether or not to disallow shared libs when runtime libs are static.
17656 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17658 # Compiler flag to allow reflexive dlopens.
17659 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17661 # Compiler flag to generate shared objects directly from archives.
17662 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17664 # Whether the compiler copes with passing no objects directly.
17665 compiler_needs_object=$lt_compiler_needs_object
17667 # Create an old-style archive from a shared archive.
17668 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17670 # Create a temporary old-style archive to link instead of a shared archive.
17671 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17673 # Commands used to build a shared archive.
17674 archive_cmds=$lt_archive_cmds
17675 archive_expsym_cmds=$lt_archive_expsym_cmds
17677 # Commands used to build a loadable module if different from building
17678 # a shared archive.
17679 module_cmds=$lt_module_cmds
17680 module_expsym_cmds=$lt_module_expsym_cmds
17682 # Whether we are building with GNU ld or not.
17683 with_gnu_ld=$lt_with_gnu_ld
17685 # Flag that allows shared libraries with undefined symbols to be built.
17686 allow_undefined_flag=$lt_allow_undefined_flag
17688 # Flag that enforces no undefined symbols.
17689 no_undefined_flag=$lt_no_undefined_flag
17691 # Flag to hardcode \$libdir into a binary during linking.
17692 # This must work even if \$libdir does not exist
17693 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17695 # If ld is used when linking, flag to hardcode \$libdir into a binary
17696 # during linking. This must work even if \$libdir does not exist.
17697 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17699 # Whether we need a single "-rpath" flag with a separated argument.
17700 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17702 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17703 # DIR into the resulting binary.
17704 hardcode_direct=$hardcode_direct
17706 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17707 # DIR into the resulting binary and the resulting library dependency is
17708 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17709 # library is relocated.
17710 hardcode_direct_absolute=$hardcode_direct_absolute
17712 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17713 # into the resulting binary.
17714 hardcode_minus_L=$hardcode_minus_L
17716 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17717 # into the resulting binary.
17718 hardcode_shlibpath_var=$hardcode_shlibpath_var
17720 # Set to "yes" if building a shared library automatically hardcodes DIR
17721 # into the library and all subsequent libraries and executables linked
17723 hardcode_automatic=$hardcode_automatic
17725 # Set to yes if linker adds runtime paths of dependent libraries
17726 # to runtime path list.
17727 inherit_rpath=$inherit_rpath
17729 # Whether libtool must link a program against all its dependency libraries.
17730 link_all_deplibs=$link_all_deplibs
17732 # Fix the shell variable \$srcfile for the compiler.
17733 fix_srcfile_path=$lt_fix_srcfile_path
17735 # Set to "yes" if exported symbols are required.
17736 always_export_symbols=$always_export_symbols
17738 # The commands to list exported symbols.
17739 export_symbols_cmds=$lt_export_symbols_cmds
17741 # Symbols that should not be listed in the preloaded symbols.
17742 exclude_expsyms=$lt_exclude_expsyms
17744 # Symbols that must always be exported.
17745 include_expsyms=$lt_include_expsyms
17747 # Commands necessary for linking programs (against libraries) with templates.
17748 prelink_cmds=$lt_prelink_cmds
17750 # Specify filename containing input files.
17751 file_list_spec=$lt_file_list_spec
17753 # How to hardcode a shared library path into an executable.
17754 hardcode_action=$hardcode_action
17756 # ### END LIBTOOL CONFIG
17762 cat <<\_LT_EOF
>> "$cfgfile"
17763 # AIX sometimes has problems with the GCC collect2 program. For some
17764 # reason, if we set the COLLECT_NAMES environment variable, the problems
17765 # vanish in a puff of smoke.
17766 if test "X${COLLECT_NAMES+set}" != Xset
; then
17768 export COLLECT_NAMES
17775 ltmain
="$ac_aux_dir/ltmain.sh"
17778 # We use sed instead of cat because bash on DJGPP gets confused if
17779 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17780 # text mode, it properly converts lines to CR/LF. This bash problem
17781 # is reportedly fixed, but why not run on old versions too?
17782 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17783 ||
(rm -f "$cfgfile"; exit 1)
17787 cat << \_LT_EOF
>> "$cfgfile"
17789 # func_dirname file append nondir_replacement
17790 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17791 # otherwise set result to NONDIR_REPLACEMENT.
17795 */*) func_dirname_result
="${1%/*}${2}" ;;
17796 * ) func_dirname_result
="${3}" ;;
17800 # func_basename file
17803 func_basename_result
="${1##*/}"
17806 # func_dirname_and_basename file append nondir_replacement
17807 # perform func_basename and func_dirname in a single function
17809 # dirname: Compute the dirname of FILE. If nonempty,
17810 # add APPEND to the result, otherwise set result
17811 # to NONDIR_REPLACEMENT.
17812 # value returned in "$func_dirname_result"
17813 # basename: Compute filename of FILE.
17814 # value retuned in "$func_basename_result"
17815 # Implementation must be kept synchronized with func_dirname
17816 # and func_basename. For efficiency, we do not delegate to
17817 # those functions but instead duplicate the functionality here.
17818 func_dirname_and_basename
()
17821 */*) func_dirname_result
="${1%/*}${2}" ;;
17822 * ) func_dirname_result
="${3}" ;;
17824 func_basename_result
="${1##*/}"
17827 # func_stripname prefix suffix name
17828 # strip PREFIX and SUFFIX off of NAME.
17829 # PREFIX and SUFFIX must not contain globbing or regex special
17830 # characters, hashes, percent signs, but SUFFIX may contain a leading
17831 # dot (in which case that matches only a dot).
17834 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17835 # positional parameters, so assign one to ordinary parameter first.
17836 func_stripname_result
=${3}
17837 func_stripname_result
=${func_stripname_result#"${1}"}
17838 func_stripname_result
=${func_stripname_result%"${2}"}
17844 func_opt_split_opt
=${1%%=*}
17845 func_opt_split_arg
=${1#*=}
17852 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
17853 *) func_lo2o_result
=${1} ;;
17857 # func_xform libobj-or-source
17860 func_xform_result
=${1%.*}.lo
17863 # func_arith arithmetic-term...
17866 func_arith_result
=$
(( $
* ))
17870 # STRING may not start with a hyphen.
17873 func_len_result
=${#1}
17878 *) # Bourne compatible functions.
17879 cat << \_LT_EOF
>> "$cfgfile"
17881 # func_dirname file append nondir_replacement
17882 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17883 # otherwise set result to NONDIR_REPLACEMENT.
17886 # Extract subdirectory from the argument.
17887 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
17888 if test "X$func_dirname_result" = "X${1}"; then
17889 func_dirname_result
="${3}"
17891 func_dirname_result
="$func_dirname_result${2}"
17895 # func_basename file
17898 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
17902 # func_stripname prefix suffix name
17903 # strip PREFIX and SUFFIX off of NAME.
17904 # PREFIX and SUFFIX must not contain globbing or regex special
17905 # characters, hashes, percent signs, but SUFFIX may contain a leading
17906 # dot (in which case that matches only a dot).
17907 # func_strip_suffix prefix name
17911 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17912 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17917 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
17918 my_sed_long_arg
='1s/^-[^=]*=//'
17923 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17924 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17930 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
17933 # func_xform libobj-or-source
17936 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17939 # func_arith arithmetic-term...
17942 func_arith_result
=`expr "$@"`
17946 # STRING may not start with a hyphen.
17949 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17955 case $lt_shell_append in
17957 cat << \_LT_EOF
>> "$cfgfile"
17959 # func_append var value
17960 # Append VALUE to the end of shell variable VAR.
17968 cat << \_LT_EOF
>> "$cfgfile"
17970 # func_append var value
17971 # Append VALUE to the end of shell variable VAR.
17982 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17983 ||
(rm -f "$cfgfile"; exit 1)
17985 mv -f "$cfgfile" "$ofile" ||
17986 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17990 cat <<_LT_EOF >> "$ofile"
17992 # ### BEGIN LIBTOOL TAG CONFIG: D
17994 # The linker used to build libraries.
17997 # How to create reloadable object files.
17998 reload_flag=$lt_reload_flag_D
17999 reload_cmds=$lt_reload_cmds_D
18001 # Commands used to build an old-style archive.
18002 old_archive_cmds=$lt_old_archive_cmds_D
18004 # A language specific compiler.
18007 # Is the compiler the GNU compiler?
18010 # Compiler flag to turn off builtin functions.
18011 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
18013 # How to pass a linker flag through the compiler.
18014 wl=$lt_lt_prog_compiler_wl_D
18016 # Additional compiler flags for building library objects.
18017 pic_flag=$lt_lt_prog_compiler_pic_D
18019 # Compiler flag to prevent dynamic linking.
18020 link_static_flag=$lt_lt_prog_compiler_static_D
18022 # Does compiler simultaneously support -c and -o options?
18023 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
18025 # Whether or not to add -lc for building shared libraries.
18026 build_libtool_need_lc=$archive_cmds_need_lc_D
18028 # Whether or not to disallow shared libs when runtime libs are static.
18029 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
18031 # Compiler flag to allow reflexive dlopens.
18032 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
18034 # Compiler flag to generate shared objects directly from archives.
18035 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
18037 # Whether the compiler copes with passing no objects directly.
18038 compiler_needs_object=$lt_compiler_needs_object_D
18040 # Create an old-style archive from a shared archive.
18041 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
18043 # Create a temporary old-style archive to link instead of a shared archive.
18044 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
18046 # Commands used to build a shared archive.
18047 archive_cmds=$lt_archive_cmds_D
18048 archive_expsym_cmds=$lt_archive_expsym_cmds_D
18050 # Commands used to build a loadable module if different from building
18051 # a shared archive.
18052 module_cmds=$lt_module_cmds_D
18053 module_expsym_cmds=$lt_module_expsym_cmds_D
18055 # Whether we are building with GNU ld or not.
18056 with_gnu_ld=$lt_with_gnu_ld_D
18058 # Flag that allows shared libraries with undefined symbols to be built.
18059 allow_undefined_flag=$lt_allow_undefined_flag_D
18061 # Flag that enforces no undefined symbols.
18062 no_undefined_flag=$lt_no_undefined_flag_D
18064 # Flag to hardcode \$libdir into a binary during linking.
18065 # This must work even if \$libdir does not exist
18066 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
18068 # If ld is used when linking, flag to hardcode \$libdir into a binary
18069 # during linking. This must work even if \$libdir does not exist.
18070 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
18072 # Whether we need a single "-rpath" flag with a separated argument.
18073 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
18075 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18076 # DIR into the resulting binary.
18077 hardcode_direct=$hardcode_direct_D
18079 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18080 # DIR into the resulting binary and the resulting library dependency is
18081 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18082 # library is relocated.
18083 hardcode_direct_absolute=$hardcode_direct_absolute_D
18085 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18086 # into the resulting binary.
18087 hardcode_minus_L=$hardcode_minus_L_D
18089 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18090 # into the resulting binary.
18091 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18093 # Set to "yes" if building a shared library automatically hardcodes DIR
18094 # into the library and all subsequent libraries and executables linked
18096 hardcode_automatic=$hardcode_automatic_D
18098 # Set to yes if linker adds runtime paths of dependent libraries
18099 # to runtime path list.
18100 inherit_rpath=$inherit_rpath_D
18102 # Whether libtool must link a program against all its dependency libraries.
18103 link_all_deplibs=$link_all_deplibs_D
18105 # Fix the shell variable \$srcfile for the compiler.
18106 fix_srcfile_path=$lt_fix_srcfile_path_D
18108 # Set to "yes" if exported symbols are required.
18109 always_export_symbols=$always_export_symbols_D
18111 # The commands to list exported symbols.
18112 export_symbols_cmds=$lt_export_symbols_cmds_D
18114 # Symbols that should not be listed in the preloaded symbols.
18115 exclude_expsyms=$lt_exclude_expsyms_D
18117 # Symbols that must always be exported.
18118 include_expsyms=$lt_include_expsyms_D
18120 # Commands necessary for linking programs (against libraries) with templates.
18121 prelink_cmds=$lt_prelink_cmds_D
18123 # Specify filename containing input files.
18124 file_list_spec=$lt_file_list_spec_D
18126 # How to hardcode a shared library path into an executable.
18127 hardcode_action=$hardcode_action_D
18129 # ### END LIBTOOL TAG CONFIG: D
18133 "testsuite/testsuite_flags":F
) chmod +x testsuite
/testsuite_flags
;;
18134 "libdruntime/Makefile":F
) cat > vpsed$$
<< \_EOF
18135 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18137 sed -f vpsed$$
$ac_file > tmp$$
18140 echo 'MULTISUBDIR =' >> $ac_file
18142 .
${multi_basedir}/config-ml.
in
18143 { ml_norecursion
=; unset ml_norecursion
;}
18145 "src/Makefile":F
) cat > vpsed$$
<< \_EOF
18146 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18148 sed -f vpsed$$
$ac_file > tmp$$
18151 echo 'MULTISUBDIR =' >> $ac_file
18153 .
${multi_basedir}/config-ml.
in
18154 { ml_norecursion
=; unset ml_norecursion
;}
18156 "testsuite/Makefile":F
) cat > vpsed$$
<< \_EOF
18157 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18159 sed -f vpsed$$
$ac_file > tmp$$
18162 echo 'MULTISUBDIR =' >> $ac_file
18164 .
${multi_basedir}/config-ml.
in
18165 { ml_norecursion
=; unset ml_norecursion
;}
18174 ac_clean_files
=$ac_clean_files_save
18176 test $ac_write_fail = 0 ||
18177 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18180 # configure is writing to config.log, and then calls config.status.
18181 # config.status does its own redirection, appending to config.log.
18182 # Unfortunately, on DOS this fails, as config.log is still kept open
18183 # by configure, so config.status won't be able to write to it; its
18184 # output is simply discarded. So we exec the FD to /dev/null,
18185 # effectively closing config.log, so it can be properly (re)opened and
18186 # appended to by config.status. When coming back to configure, we
18187 # need to make the FD available again.
18188 if test "$no_create" != yes; then
18190 ac_config_status_args
=
18191 test "$silent" = yes &&
18192 ac_config_status_args
="$ac_config_status_args --quiet"
18194 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18196 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18197 # would make configure fail if this is the last instruction.
18198 $ac_cs_success || as_fn_exit
1
18200 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18202 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}