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_LOONGARCH_FALSE
700 DRUNTIME_CPU_LOONGARCH_TRUE
701 DRUNTIME_CPU_ARM_FALSE
702 DRUNTIME_CPU_ARM_TRUE
703 DRUNTIME_CPU_AARCH64_FALSE
704 DRUNTIME_CPU_AARCH64_TRUE
709 phobos_compiler_shared_flag
710 phobos_compiler_pic_flag
712 ENABLE_DARWIN_AT_RPATH_FALSE
713 ENABLE_DARWIN_AT_RPATH_TRUE
738 MAINTAINER_MODE_FALSE
756 INSTALL_STRIP_PROGRAM
821 program_transform_name
832 ac_subst_files
='DRTSTUFF_SPEC'
834 enable_option_checking
837 enable_maintainer_mode
845 enable_darwin_at_rpath
846 with_gcc_major_version_only
850 with_target_system_zlib
852 enable_version_specific_runtime_libs
855 with_libphobos_druntime_only
856 enable_libphobos_checking
858 ac_precious_vars
='build_alias
869 # Initialize some variables set by options.
871 ac_init_version
=false
872 ac_unrecognized_opts
=
874 # The variables have the same names as the options, with
875 # dashes changed to underlines.
883 program_transform_name
=s
,x
,x
,
891 # Installation directory options.
892 # These are left unexpanded so users can "make install exec_prefix=/foo"
893 # and all the variables that are supposed to be based on exec_prefix
894 # by default will actually change.
895 # Use braces instead of parens because sh, perl, etc. also accept them.
896 # (The list follows the same order as the GNU Coding Standards.)
897 bindir
='${exec_prefix}/bin'
898 sbindir
='${exec_prefix}/sbin'
899 libexecdir
='${exec_prefix}/libexec'
900 datarootdir
='${prefix}/share'
901 datadir
='${datarootdir}'
902 sysconfdir
='${prefix}/etc'
903 sharedstatedir
='${prefix}/com'
904 localstatedir
='${prefix}/var'
905 includedir
='${prefix}/include'
906 oldincludedir
='/usr/include'
907 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
908 infodir
='${datarootdir}/info'
913 libdir
='${exec_prefix}/lib'
914 localedir
='${datarootdir}/locale'
915 mandir
='${datarootdir}/man'
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
923 eval $ac_prev=\
$ac_option
929 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934 # Accept the important Cygnus configure options, so we can diagnose typos.
936 case $ac_dashdash$ac_option in
940 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
942 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
945 -build |
--build |
--buil |
--bui |
--bu)
946 ac_prev
=build_alias
;;
947 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
948 build_alias
=$ac_optarg ;;
950 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
951 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
952 ac_prev
=cache_file
;;
953 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
954 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
955 cache_file
=$ac_optarg ;;
958 cache_file
=config.cache
;;
960 -datadir |
--datadir |
--datadi |
--datad)
962 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
963 datadir
=$ac_optarg ;;
965 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
966 |
--dataroo |
--dataro |
--datar)
967 ac_prev
=datarootdir
;;
968 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
969 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
970 datarootdir
=$ac_optarg ;;
972 -disable-* |
--disable-*)
973 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
976 as_fn_error $?
"invalid feature name: $ac_useropt"
977 ac_useropt_orig
=$ac_useropt
978 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
983 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
984 ac_unrecognized_sep
=', ';;
986 eval enable_
$ac_useropt=no
;;
988 -docdir |
--docdir |
--docdi |
--doc |
--do)
990 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
993 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
995 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
998 -enable-* |
--enable-*)
999 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1002 as_fn_error $?
"invalid feature name: $ac_useropt"
1003 ac_useropt_orig
=$ac_useropt
1004 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "enable_
$ac_useropt"
1009 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010 ac_unrecognized_sep
=', ';;
1012 eval enable_
$ac_useropt=\
$ac_optarg ;;
1014 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1015 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1016 |
--exec |
--exe |
--ex)
1017 ac_prev
=exec_prefix
;;
1018 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1019 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1020 |
--exec=* |
--exe=* |
--ex=*)
1021 exec_prefix
=$ac_optarg ;;
1023 -gas |
--gas |
--ga |
--g)
1024 # Obsolete; use --with-gas.
1027 -help |
--help |
--hel |
--he |
-h)
1028 ac_init_help
=long
;;
1029 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1030 ac_init_help
=recursive
;;
1031 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1032 ac_init_help
=short
;;
1034 -host |
--host |
--hos |
--ho)
1035 ac_prev
=host_alias
;;
1036 -host=* |
--host=* |
--hos=* |
--ho=*)
1037 host_alias
=$ac_optarg ;;
1039 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1041 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1043 htmldir
=$ac_optarg ;;
1045 -includedir |
--includedir |
--includedi |
--included |
--include \
1046 |
--includ |
--inclu |
--incl |
--inc)
1047 ac_prev
=includedir
;;
1048 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1049 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1050 includedir
=$ac_optarg ;;
1052 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1054 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1055 infodir
=$ac_optarg ;;
1057 -libdir |
--libdir |
--libdi |
--libd)
1059 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1060 libdir
=$ac_optarg ;;
1062 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1063 |
--libexe |
--libex |
--libe)
1064 ac_prev
=libexecdir
;;
1065 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1066 |
--libexe=* |
--libex=* |
--libe=*)
1067 libexecdir
=$ac_optarg ;;
1069 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1070 ac_prev
=localedir
;;
1071 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1072 localedir
=$ac_optarg ;;
1074 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1075 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1076 ac_prev
=localstatedir
;;
1077 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1078 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1079 localstatedir
=$ac_optarg ;;
1081 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1083 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1084 mandir
=$ac_optarg ;;
1086 -nfp |
--nfp |
--nf)
1087 # Obsolete; use --without-fp.
1090 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1091 |
--no-cr |
--no-c |
-n)
1094 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1095 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1098 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1099 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1100 |
--oldin |
--oldi |
--old |
--ol |
--o)
1101 ac_prev
=oldincludedir
;;
1102 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1103 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1104 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1105 oldincludedir
=$ac_optarg ;;
1107 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1109 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1110 prefix
=$ac_optarg ;;
1112 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1113 |
--program-pre |
--program-pr |
--program-p)
1114 ac_prev
=program_prefix
;;
1115 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1116 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1117 program_prefix
=$ac_optarg ;;
1119 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1120 |
--program-suf |
--program-su |
--program-s)
1121 ac_prev
=program_suffix
;;
1122 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1123 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1124 program_suffix
=$ac_optarg ;;
1126 -program-transform-name |
--program-transform-name \
1127 |
--program-transform-nam |
--program-transform-na \
1128 |
--program-transform-n |
--program-transform- \
1129 |
--program-transform |
--program-transfor \
1130 |
--program-transfo |
--program-transf \
1131 |
--program-trans |
--program-tran \
1132 |
--progr-tra |
--program-tr |
--program-t)
1133 ac_prev
=program_transform_name
;;
1134 -program-transform-name=* |
--program-transform-name=* \
1135 |
--program-transform-nam=* |
--program-transform-na=* \
1136 |
--program-transform-n=* |
--program-transform-=* \
1137 |
--program-transform=* |
--program-transfor=* \
1138 |
--program-transfo=* |
--program-transf=* \
1139 |
--program-trans=* |
--program-tran=* \
1140 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1141 program_transform_name
=$ac_optarg ;;
1143 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1145 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1146 pdfdir
=$ac_optarg ;;
1148 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1150 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1153 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1154 |
-silent |
--silent |
--silen |
--sile |
--sil)
1157 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1159 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1161 sbindir
=$ac_optarg ;;
1163 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1164 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1165 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1167 ac_prev
=sharedstatedir
;;
1168 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1169 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1170 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1172 sharedstatedir
=$ac_optarg ;;
1174 -site |
--site |
--sit)
1176 -site=* |
--site=* |
--sit=*)
1179 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1181 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1182 srcdir
=$ac_optarg ;;
1184 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1185 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1186 ac_prev
=sysconfdir
;;
1187 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1188 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1189 sysconfdir
=$ac_optarg ;;
1191 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1192 ac_prev
=target_alias
;;
1193 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1194 target_alias
=$ac_optarg ;;
1196 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1199 -version |
--version |
--versio |
--versi |
--vers |
-V)
1200 ac_init_version
=: ;;
1203 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1206 as_fn_error $?
"invalid package name: $ac_useropt"
1207 ac_useropt_orig
=$ac_useropt
1208 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1213 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1214 ac_unrecognized_sep
=', ';;
1216 eval with_
$ac_useropt=\
$ac_optarg ;;
1218 -without-* |
--without-*)
1219 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1222 as_fn_error $?
"invalid package name: $ac_useropt"
1223 ac_useropt_orig
=$ac_useropt
1224 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1229 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230 ac_unrecognized_sep
=', ';;
1232 eval with_
$ac_useropt=no
;;
1235 # Obsolete; use --with-x.
1238 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1239 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1240 ac_prev
=x_includes
;;
1241 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1242 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1243 x_includes
=$ac_optarg ;;
1245 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1246 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1247 ac_prev
=x_libraries
;;
1248 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1249 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1250 x_libraries
=$ac_optarg ;;
1252 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1253 Try \`$0 --help' for more information"
1257 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 case $ac_envvar in #(
1260 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1261 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1263 eval $ac_envvar=\
$ac_optarg
1264 export $ac_envvar ;;
1267 # FIXME: should be removed in autoconf 3.0.
1268 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1270 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1277 if test -n "$ac_prev"; then
1278 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1279 as_fn_error $?
"missing argument to $ac_option"
1282 if test -n "$ac_unrecognized_opts"; then
1283 case $enable_option_checking in
1285 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290 # Check all directory arguments for consistency.
1291 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir
1296 eval ac_val
=\$
$ac_var
1297 # Remove trailing slashes.
1300 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301 eval $ac_var=\
$ac_val;;
1303 # Be sure to have absolute directory names.
1305 [\\/$
]* | ?
:[\\/]* ) continue;;
1306 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1308 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1316 target
=$target_alias
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x
; then
1320 if test "x$build_alias" = x
; then
1321 cross_compiling
=maybe
1322 elif test "x$build_alias" != "x$host_alias"; then
1328 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1330 test "$silent" = yes && exec 6>/dev
/null
1333 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di
=`ls -di .` &&
1335 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1336 as_fn_error $?
"working directory cannot be determined"
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338 as_fn_error $?
"pwd does not report name of working directory"
1341 # Find the source files, if location was not specified.
1342 if test -z "$srcdir"; then
1343 ac_srcdir_defaulted
=yes
1344 # Try the directory containing this script, then the parent directory.
1345 ac_confdir
=`$as_dirname -- "$as_myself" ||
1346 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347 X"$as_myself" : 'X\(//\)[^/]' \| \
1348 X"$as_myself" : 'X\(//\)$' \| \
1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350 $as_echo X"$as_myself" |
1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1373 ac_srcdir_defaulted
=no
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1377 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1379 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1383 # When building in place, set srcdir=.
1384 if test "$ac_abs_confdir" = "$ac_pwd"; then
1387 # Remove unnecessary trailing slashes from srcdir.
1388 # Double slashes in file names in object file debugging info
1389 # mess up M-x gdb in Emacs.
1391 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393 for ac_var
in $ac_precious_vars; do
1394 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1395 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1396 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1397 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1401 # Report the --help message.
1403 if test "$ac_init_help" = "long"; then
1404 # Omit some internal or obsolete options to make the list less imposing.
1405 # This message is too long to be a string in the A/UX 3.1 sh.
1407 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1409 Usage: $0 [OPTION]... [VAR=VALUE]...
1411 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412 VAR=VALUE. See below for descriptions of some of the useful variables.
1414 Defaults for the options are specified in brackets.
1417 -h, --help display this help and exit
1418 --help=short display options specific to this package
1419 --help=recursive display the short help of all the included packages
1420 -V, --version display version information and exit
1421 -q, --quiet, --silent do not print \`checking ...' messages
1422 --cache-file=FILE cache test results in FILE [disabled]
1423 -C, --config-cache alias for \`--cache-file=config.cache'
1424 -n, --no-create do not create output files
1425 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1427 Installation directories:
1428 --prefix=PREFIX install architecture-independent files in PREFIX
1429 [$ac_default_prefix]
1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1433 By default, \`make install' will install all the files in
1434 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1435 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436 for instance \`--prefix=\$HOME'.
1438 For better control, use the options below.
1440 Fine tuning of the installation directories:
1441 --bindir=DIR user executables [EPREFIX/bin]
1442 --sbindir=DIR system admin executables [EPREFIX/sbin]
1443 --libexecdir=DIR program executables [EPREFIX/libexec]
1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1447 --libdir=DIR object code libraries [EPREFIX/lib]
1448 --includedir=DIR C header files [PREFIX/include]
1449 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1450 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1451 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1452 --infodir=DIR info documentation [DATAROOTDIR/info]
1453 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1454 --mandir=DIR man documentation [DATAROOTDIR/man]
1455 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1456 --htmldir=DIR html documentation [DOCDIR]
1457 --dvidir=DIR dvi documentation [DOCDIR]
1458 --pdfdir=DIR pdf documentation [DOCDIR]
1459 --psdir=DIR ps documentation [DOCDIR]
1465 --program-prefix=PREFIX prepend PREFIX to installed program names
1466 --program-suffix=SUFFIX append SUFFIX to installed program names
1467 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1470 --build=BUILD configure
for building on BUILD
[guessed
]
1471 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1472 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1476 if test -n "$ac_init_help"; then
1477 case $ac_init_help in
1478 short | recursive
) echo "Configuration of package-unused version-unused:";;
1483 --disable-option-checking ignore unrecognized
--enable/--with options
1484 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1485 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1486 --enable-multilib build many library versions
(default
)
1487 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1488 --disable-silent-rules verbose build output
(undo
: "make V=0")
1489 --enable-maintainer-mode
1490 enable make rules and dependencies not useful
(and
1491 sometimes confusing
) to the casual installer
1492 --enable-cet enable Intel CET
in target libraries
[default
=auto
]
1493 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1494 --enable-static[=PKGS
] build static libraries
[default
=yes]
1495 --enable-fast-install[=PKGS
]
1496 optimize
for fast installation
[default
=yes]
1497 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1498 --enable-darwin-at-rpath
1499 install libraries with @rpath
/library-name
, requires
1500 rpaths to be added to executables
1501 --enable-werror turns on
-Werror [default
=no
]
1502 --enable-version-specific-runtime-libs
1503 Specify that runtime libraries should be installed
1504 in a compiler-specific directory
1505 --enable-libphobos Enable libphobos
1506 --enable-libphobos-checking[=LIST
]
1507 enable expensive run-time checks. With LIST
, enable
1508 only specific categories of checks. Categories are
:
1509 yes,no
,all
,none
,release. Flags are
: assert
,valgrind
1513 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1514 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1515 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1517 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1518 --with-gcc-major-version-only
1519 use only GCC major number
in filesystem paths
1520 --without-libatomic Do not use libatomic
in core.atomic
(default
: auto
)
1521 --without-libbacktrace Do not use libbacktrace
in core.runtime
(default
:
1523 --with-target-system-zlib={yes,no
,auto
}
1524 use installed libz
(default
: no
)
1525 --with-cross-host=HOST configuring with a cross compiler
1526 --with-toolexeclibdir=DIR
1527 install libraries built with a cross compiler within
1529 --with-libphobos-druntime-only={yes,no
,auto
}
1530 build only the druntime library
(default
: auto
)
1532 Some influential environment variables
:
1533 CC C compiler
command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1536 nonstandard directory
<lib dir
>
1537 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1538 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1539 you have headers
in a nonstandard directory
<include dir
>
1541 CCAS assembler compiler
command (defaults to CC
)
1542 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1543 GDC D compiler
command
1544 GDCFLAGS D compiler flags
1546 Use these variables to override the choices made by
`configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1549 Report bugs to the package provider.
1554 if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 test -d "$ac_dir" ||
1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1579 .) # We are building in place.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1612 package-unused configure version-unused
1613 generated by GNU Autoconf 2.69
1615 Copyright (C) 2012 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1622 ## ------------------------ ##
1623 ## Autoconf initialization. ##
1624 ## ------------------------ ##
1626 # ac_fn_c_try_compile LINENO
1627 # --------------------------
1628 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_compile ()
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext
1633 if { { ac_try="$ac_compile"
1635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1636 *) ac_try_echo
=$ac_try;;
1638 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_compile") 2>conftest.err
1642 if test -s conftest.err
; then
1643 grep -v '^ *+' conftest.err
>conftest.er1
1644 cat conftest.er1
>&5
1645 mv -f conftest.er1 conftest.err
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest.
$ac_objext; then :
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.
$ac_ext >&5
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status
$ac_retval
1662 } # ac_fn_c_try_compile
1664 # ac_fn_c_try_cpp LINENO
1665 # ----------------------
1666 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1669 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1670 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } > conftest.i && {
1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1701 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1704 # the include files in INCLUDES and setting the cache variable VAR
1706 ac_fn_c_check_header_mongrel ()
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if eval \${$3+:} false; then :
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1719 # Is the header compilable?
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1721 $as_echo_n "checking $2 usability... " >&6; }
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1727 if ac_fn_c_try_compile "$LINENO"; then :
1728 ac_header_compiler=yes
1730 ac_header_compiler=no
1732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1734 $as_echo "$ac_header_compiler" >&6; }
1736 # Is the header present?
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1738 $as_echo_n "checking $2 presence... " >&6; }
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1743 if ac_fn_c_try_cpp "$LINENO"; then :
1744 ac_header_preproc=yes
1746 ac_header_preproc=no
1748 rm -f conftest.err conftest.i conftest.$ac_ext
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1750 $as_echo "$ac_header_preproc" >&6; }
1752 # So? What about this header?
1753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1756 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1758 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1762 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1764 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1766 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1768 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1770 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval \${$3+:} false; then :
1776 $as_echo_n "(cached) " >&6
1778 eval "$3=\$ac_header_compiler"
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 } # ac_fn_c_check_header_mongrel
1788 # ac_fn_c_try_run LINENO
1789 # ----------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1791 # that executables *can* be run.
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 if { { ac_try="$ac_link"
1797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1798 *) ac_try_echo
=$ac_try;;
1800 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>&5
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1806 { { case "(($ac_try" in
1807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_try") 2>&5
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; }; }; then :
1818 $as_echo "$as_me: program exited with status $ac_status" >&5
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1822 ac_retval=$ac_status
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1830 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1831 # -------------------------------------------------------
1832 # Tests whether HEADER exists and can be compiled using the include files in
1833 # INCLUDES, setting the cache variable VAR accordingly.
1834 ac_fn_c_check_header_compile ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1847 if ac_fn_c_try_compile "$LINENO"; then :
1852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 } # ac_fn_c_check_header_compile
1861 # ac_fn_d_try_compile LINENO
1862 # --------------------------
1863 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_d_try_compile ()
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 rm -f conftest.$ac_objext
1868 if { { ac_try="$ac_compile"
1870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1871 *) ac_try_echo
=$ac_try;;
1873 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_compile") 2>conftest.err
1877 if test -s conftest.err
; then
1878 grep -v '^ *+' conftest.err
>conftest.er1
1879 cat conftest.er1
>&5
1880 mv -f conftest.er1 conftest.err
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && {
1884 test -z "$ac_d_werror_flag" ||
1885 test ! -s conftest.err
1886 } && test -s conftest.
$ac_objext; then :
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.
$ac_ext >&5
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status
$ac_retval
1897 } # ac_fn_d_try_compile
1899 # ac_fn_c_try_link LINENO
1900 # -----------------------
1901 # Try to link conftest.$ac_ext, and return whether this succeeded.
1904 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1905 rm -f conftest.
$ac_objext conftest
$ac_exeext
1906 if { { ac_try
="$ac_link"
1908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_link") 2>conftest.err
1915 if test -s conftest.err; then
1916 grep -v '^ *+' conftest.err >conftest.er1
1917 cat conftest.er1 >&5
1918 mv -f conftest.er1 conftest.err
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } && {
1922 test -z "$ac_c_werror_flag" ||
1923 test ! -s conftest.err
1924 } && test -s conftest$ac_exeext && {
1925 test "$cross_compiling" = yes ||
1926 test -x conftest$ac_exeext
1930 $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1935 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1936 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1937 # interfere with the next link command; also delete a directory that is
1938 # left behind by Apple's compiler. We do this before executing the actions.
1939 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1943 } # ac_fn_c_try_link
1945 # ac_fn_c_check_func LINENO FUNC VAR
1946 # ----------------------------------
1947 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1948 ac_fn_c_check_func ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1958 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1960 #define $2 innocuous_$2
1962 /* System header to define __stub macros and hopefully few prototypes,
1963 which can conflict with char $2 (); below.
1964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1965 <limits.h> exists even on freestanding compilers. */
1968 # include <limits.h>
1970 # include <assert.h>
1975 /* Override any GCC internal prototype to avoid an error.
1976 Use char because int might match the return type of a GCC
1977 builtin and then its argument prototype would still apply. */
1982 /* The GNU C library defines this for functions which it implements
1983 to always fail with ENOSYS. Some functions are actually named
1984 something starting with __ and the normal name is an alias. */
1985 #if defined __stub_$2 || defined __stub___$2
1997 if ac_fn_c_try_link "$LINENO"; then :
2002 rm -f core conftest.err conftest.$ac_objext \
2003 conftest$ac_exeext conftest.$ac_ext
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 } # ac_fn_c_check_func
2012 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2013 # ----------------------------------------------------
2014 # Tries to find if the field MEMBER exists in type AGGR, after including
2015 # INCLUDES, setting cache variable VAR accordingly.
2016 ac_fn_c_check_member ()
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2020 $as_echo_n "checking for $2.$3... " >&6; }
2021 if eval \${$4+:} false; then :
2022 $as_echo_n "(cached) " >&6
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2037 if ac_fn_c_try_compile "$LINENO"; then :
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2047 if (sizeof ac_aggr.$3)
2053 if ac_fn_c_try_compile "$LINENO"; then :
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 } # ac_fn_c_check_member
2069 # ac_fn_d_try_link LINENO
2070 # -----------------------
2071 # Try to link conftest.$ac_ext, and return whether this succeeded.
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 rm -f conftest.$ac_objext conftest$ac_exeext
2076 if { { ac_try="$ac_link"
2078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2079 *) ac_try_echo
=$ac_try;;
2081 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_link") 2>conftest.err
2085 if test -s conftest.err
; then
2086 grep -v '^ *+' conftest.err
>conftest.er1
2087 cat conftest.er1
>&5
2088 mv -f conftest.er1 conftest.err
2090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091 test $ac_status = 0; } && {
2092 test -z "$ac_d_werror_flag" ||
2093 test ! -s conftest.err
2094 } && test -s conftest
$ac_exeext && {
2095 test "$cross_compiling" = yes ||
2096 test -x conftest
$ac_exeext
2100 $as_echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.
$ac_ext >&5
2105 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2106 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2107 # interfere with the next link command; also delete a directory that is
2108 # left behind by Apple's compiler. We do this before executing the actions.
2109 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111 as_fn_set_status
$ac_retval
2113 } # ac_fn_d_try_link
2114 cat >config.log
<<_ACEOF
2115 This file contains any messages produced by compilers while
2116 running configure, to aid debugging if configure makes a mistake.
2118 It was created by package-unused $as_me version-unused, which was
2119 generated by GNU Autoconf 2.69. Invocation command line was
2131 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2132 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2133 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2134 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2135 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2137 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2138 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2140 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2141 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2142 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2143 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2144 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2145 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2146 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2154 test -z "$as_dir" && as_dir
=.
2155 $as_echo "PATH: $as_dir"
2171 # Keep a trace of the command line.
2172 # Strip out --no-create and --no-recursion so they do not pile up.
2173 # Strip out --silent because we don't want to record it for future runs.
2174 # Also quote any args containing shell meta-characters.
2175 # Make two passes to allow for proper duplicate-argument suppression.
2179 ac_must_keep_next
=false
2185 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2186 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2187 |
-silent |
--silent |
--silen |
--sile |
--sil)
2190 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2193 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2195 as_fn_append ac_configure_args1
" '$ac_arg'"
2196 if test $ac_must_keep_next = true
; then
2197 ac_must_keep_next
=false
# Got value, back to normal.
2200 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2201 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2202 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2203 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2204 case "$ac_configure_args0 " in
2205 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2208 -* ) ac_must_keep_next
=true
;;
2211 as_fn_append ac_configure_args
" '$ac_arg'"
2216 { ac_configure_args0
=; unset ac_configure_args0
;}
2217 { ac_configure_args1
=; unset ac_configure_args1
;}
2219 # When interrupted or exit'd, cleanup temporary files, and complete
2220 # config.log. We remove comments because anyway the quotes in there
2221 # would cause problems or look ugly.
2222 # WARNING: Use '\'' to represent an apostrophe within the trap.
2223 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2224 trap 'exit_status=$?
2225 # Save into config.log some information that might help in debugging.
2229 $as_echo "## ---------------- ##
2230 ## Cache variables. ##
2231 ## ---------------- ##"
2233 # The following way of writing the cache mishandles newlines in values,
2235 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2236 eval ac_val=\$$ac_var
2240 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2241 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2244 _ | IFS | as_nl) ;; #(
2245 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2246 *) { eval $ac_var=; unset $ac_var;} ;;
2251 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2252 *${as_nl}ac_space=\ *)
2254 "s/'\''/'\''\\\\'\'''\''/g;
2255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2258 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2265 $as_echo "## ----------------- ##
2266 ## Output variables. ##
2267 ## ----------------- ##"
2269 for ac_var in $ac_subst_vars
2271 eval ac_val=\$$ac_var
2273 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2275 $as_echo "$ac_var='\''$ac_val'\''"
2279 if test -n "$ac_subst_files"; then
2280 $as_echo "## ------------------- ##
2281 ## File substitutions. ##
2282 ## ------------------- ##"
2284 for ac_var
in $ac_subst_files
2286 eval ac_val
=\$
$ac_var
2288 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2290 $as_echo "$ac_var='\''$ac_val'\''"
2295 if test -s confdefs.h; then
2296 $as_echo "## ----------- ##
2303 test "$ac_signal" != 0 &&
2304 $as_echo "$as_me: caught signal $ac_signal"
2305 $as_echo "$as_me: exit $exit_status"
2307 rm -f core *.core core.conftest.* &&
2308 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2311 for ac_signal
in 1 2 13 15; do
2312 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2316 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2317 rm -f -r conftest
* confdefs.h
2319 $as_echo "/* confdefs.h */" > confdefs.h
2321 # Predefined preprocessor variables.
2323 cat >>confdefs.h
<<_ACEOF
2324 #define PACKAGE_NAME "$PACKAGE_NAME"
2327 cat >>confdefs.h
<<_ACEOF
2328 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2331 cat >>confdefs.h
<<_ACEOF
2332 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2335 cat >>confdefs.h
<<_ACEOF
2336 #define PACKAGE_STRING "$PACKAGE_STRING"
2339 cat >>confdefs.h
<<_ACEOF
2340 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2343 cat >>confdefs.h
<<_ACEOF
2344 #define PACKAGE_URL "$PACKAGE_URL"
2348 # Let the site file select an alternate cache file if it wants to.
2349 # Prefer an explicitly selected file to automatically selected ones.
2352 if test -n "$CONFIG_SITE"; then
2353 # We do not want a PATH search for config.site.
2354 case $CONFIG_SITE in #((
2355 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2356 */*) ac_site_file1
=$CONFIG_SITE;;
2357 *) ac_site_file1
=.
/$CONFIG_SITE;;
2359 elif test "x$prefix" != xNONE
; then
2360 ac_site_file1
=$prefix/share
/config.site
2361 ac_site_file2
=$prefix/etc
/config.site
2363 ac_site_file1
=$ac_default_prefix/share
/config.site
2364 ac_site_file2
=$ac_default_prefix/etc
/config.site
2366 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2368 test "x$ac_site_file" = xNONE
&& continue
2369 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2371 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2372 sed 's/^/| /' "$ac_site_file" >&5
2374 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2376 as_fn_error $?
"failed to load site script $ac_site_file
2377 See \`config.log' for more details" "$LINENO" 5; }
2381 if test -r "$cache_file"; then
2382 # Some versions of bash will fail to source /dev/null (special files
2383 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2384 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2386 $as_echo "$as_me: loading cache $cache_file" >&6;}
2388 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2389 *) .
"./$cache_file";;
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2394 $as_echo "$as_me: creating cache $cache_file" >&6;}
2398 # Check that the precious variables saved in the cache have kept the same
2400 ac_cache_corrupted
=false
2401 for ac_var
in $ac_precious_vars; do
2402 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2403 eval ac_new_set
=\
$ac_env_${ac_var}_set
2404 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2405 eval ac_new_val
=\
$ac_env_${ac_var}_value
2406 case $ac_old_set,$ac_new_set in
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2409 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2410 ac_cache_corrupted
=: ;;
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2413 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2414 ac_cache_corrupted
=: ;;
2417 if test "x$ac_old_val" != "x$ac_new_val"; then
2418 # differences in whitespace do not lead to failure.
2419 ac_old_val_w
=`echo x $ac_old_val`
2420 ac_new_val_w
=`echo x $ac_new_val`
2421 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2423 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2424 ac_cache_corrupted
=:
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2427 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2428 eval $ac_var=\
$ac_old_val
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2431 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2433 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2436 # Pass precious variables to config.status.
2437 if test "$ac_new_set" = set; then
2439 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2440 *) ac_arg
=$ac_var=$ac_new_val ;;
2442 case " $ac_configure_args " in
2443 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2444 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2448 if $ac_cache_corrupted; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2452 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2453 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2455 ## -------------------- ##
2456 ## Main body of script. ##
2457 ## -------------------- ##
2460 ac_cpp
='$CPP $CPPFLAGS'
2461 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2462 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2463 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2470 ac_config_headers
="$ac_config_headers config.h"
2473 # Default to --enable-multilib
2474 # Check whether --enable-multilib was given.
2475 if test "${enable_multilib+set}" = set; then :
2476 enableval
=$enable_multilib; case "$enableval" in
2477 yes) multilib
=yes ;;
2479 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
2486 # We may get other options which we leave undocumented:
2487 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2488 # See config-ml.in if you want the gory details.
2490 if test "$srcdir" = "."; then
2491 if test "$with_target_subdir" != "."; then
2492 multi_basedir
="$srcdir/$with_multisrctop../.."
2494 multi_basedir
="$srcdir/$with_multisrctop.."
2497 multi_basedir
="$srcdir/.."
2501 # Even if the default multilib is not a cross compilation,
2502 # it may be that some of the other multilibs are.
2503 if test $cross_compiling = no
&& test $multilib = yes \
2504 && test "x${with_multisubdir}" != x
; then
2505 cross_compiling
=maybe
2508 ac_config_commands
="$ac_config_commands default-1"
2511 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2512 if test -f "$ac_dir/install-sh"; then
2514 ac_install_sh
="$ac_aux_dir/install-sh -c"
2516 elif test -f "$ac_dir/install.sh"; then
2518 ac_install_sh
="$ac_aux_dir/install.sh -c"
2520 elif test -f "$ac_dir/shtool"; then
2522 ac_install_sh
="$ac_aux_dir/shtool install -c"
2526 if test -z "$ac_aux_dir"; then
2527 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2530 # These three variables are undocumented and unsupported,
2531 # and are intended to be withdrawn in a future Autoconf release.
2532 # They can cause serious problems if a builder's source tree is in a directory
2533 # whose full name contains unusual characters.
2534 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2535 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2536 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2539 # Make sure we can run config.sub.
2540 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2541 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2544 $as_echo_n "checking build system type... " >&6; }
2545 if ${ac_cv_build+:} false
; then :
2546 $as_echo_n "(cached) " >&6
2548 ac_build_alias
=$build_alias
2549 test "x$ac_build_alias" = x
&&
2550 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2551 test "x$ac_build_alias" = x
&&
2552 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2553 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2554 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2558 $as_echo "$ac_cv_build" >&6; }
2559 case $ac_cv_build in
2561 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2564 ac_save_IFS
=$IFS; IFS
='-'
2570 # Remember, the first character of IFS is used to create $*,
2571 # except with old shells:
2574 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2578 $as_echo_n "checking host system type... " >&6; }
2579 if ${ac_cv_host+:} false
; then :
2580 $as_echo_n "(cached) " >&6
2582 if test "x$host_alias" = x
; then
2583 ac_cv_host
=$ac_cv_build
2585 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2586 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2591 $as_echo "$ac_cv_host" >&6; }
2594 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2597 ac_save_IFS
=$IFS; IFS
='-'
2603 # Remember, the first character of IFS is used to create $*,
2604 # except with old shells:
2607 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2611 $as_echo_n "checking target system type... " >&6; }
2612 if ${ac_cv_target+:} false
; then :
2613 $as_echo_n "(cached) " >&6
2615 if test "x$target_alias" = x
; then
2616 ac_cv_target
=$ac_cv_host
2618 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2619 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2624 $as_echo "$ac_cv_target" >&6; }
2625 case $ac_cv_target in
2627 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2629 target
=$ac_cv_target
2630 ac_save_IFS
=$IFS; IFS
='-'
2636 # Remember, the first character of IFS is used to create $*,
2637 # except with old shells:
2640 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2643 # The aliases save the names the user supplied, while $host etc.
2644 # will get canonicalized.
2645 test -n "$target_alias" &&
2646 test "$program_prefix$program_suffix$program_transform_name" = \
2648 program_prefix
=${target_alias}-
2650 # Expand $ac_aux_dir to an absolute path.
2651 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2654 ac_cpp
='$CPP $CPPFLAGS'
2655 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2658 if test -n "$ac_tool_prefix"; then
2659 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2660 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_CC+:} false
; then :
2664 $as_echo_n "(cached) " >&6
2666 if test -n "$CC"; then
2667 ac_cv_prog_CC
="$CC" # Let the user override the test.
2669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir
=.
2674 for ac_exec_ext
in '' $ac_executable_extensions; do
2675 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2676 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 if test -n "$CC"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2689 $as_echo "$CC" >&6; }
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2697 if test -z "$ac_cv_prog_CC"; then
2699 # Extract the first word of "gcc", so it can be a program name with args.
2700 set dummy gcc
; ac_word
=$2
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2704 $as_echo_n "(cached) " >&6
2706 if test -n "$ac_ct_CC"; then
2707 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2713 test -z "$as_dir" && as_dir
=.
2714 for ac_exec_ext
in '' $ac_executable_extensions; do
2715 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_ac_ct_CC
="gcc"
2717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2727 if test -n "$ac_ct_CC"; then
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2729 $as_echo "$ac_ct_CC" >&6; }
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732 $as_echo "no" >&6; }
2735 if test "x$ac_ct_CC" = x
; then
2738 case $cross_compiling:$ac_tool_warned in
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2742 ac_tool_warned
=yes ;;
2750 if test -z "$CC"; then
2751 if test -n "$ac_tool_prefix"; then
2752 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2753 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if ${ac_cv_prog_CC+:} false
; then :
2757 $as_echo_n "(cached) " >&6
2759 if test -n "$CC"; then
2760 ac_cv_prog_CC
="$CC" # Let the user override the test.
2762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2766 test -z "$as_dir" && as_dir
=.
2767 for ac_exec_ext
in '' $ac_executable_extensions; do
2768 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2769 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 if test -n "$CC"; then
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2782 $as_echo "$CC" >&6; }
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785 $as_echo "no" >&6; }
2791 if test -z "$CC"; then
2792 # Extract the first word of "cc", so it can be a program name with args.
2793 set dummy cc
; ac_word
=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if ${ac_cv_prog_CC+:} false
; then :
2797 $as_echo_n "(cached) " >&6
2799 if test -n "$CC"; then
2800 ac_cv_prog_CC
="$CC" # Let the user override the test.
2803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2807 test -z "$as_dir" && as_dir
=.
2808 for ac_exec_ext
in '' $ac_executable_extensions; do
2809 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2810 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2811 ac_prog_rejected
=yes
2815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 if test $ac_prog_rejected = yes; then
2823 # We found a bogon in the path, so make sure we never use it.
2824 set dummy
$ac_cv_prog_CC
2826 if test $# != 0; then
2827 # We chose a different compiler from the bogus one.
2828 # However, it has the same basename, so the bogon will be chosen
2829 # first if we set CC to just the basename; use the full file name.
2831 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2837 if test -n "$CC"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2839 $as_echo "$CC" >&6; }
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2847 if test -z "$CC"; then
2848 if test -n "$ac_tool_prefix"; then
2849 for ac_prog
in cl.exe
2851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2852 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_prog_CC+:} false
; then :
2856 $as_echo_n "(cached) " >&6
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC
="$CC" # Let the user override the test.
2861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2865 test -z "$as_dir" && as_dir
=.
2866 for ac_exec_ext
in '' $ac_executable_extensions; do
2867 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2868 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 if test -n "$CC"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2881 $as_echo "$CC" >&6; }
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2888 test -n "$CC" && break
2891 if test -z "$CC"; then
2893 for ac_prog
in cl.exe
2895 # Extract the first word of "$ac_prog", so it can be a program name with args.
2896 set dummy
$ac_prog; ac_word
=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2900 $as_echo_n "(cached) " >&6
2902 if test -n "$ac_ct_CC"; then
2903 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir
=.
2910 for ac_exec_ext
in '' $ac_executable_extensions; do
2911 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_ac_ct_CC
="$ac_prog"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2925 $as_echo "$ac_ct_CC" >&6; }
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2932 test -n "$ac_ct_CC" && break
2935 if test "x$ac_ct_CC" = x
; then
2938 case $cross_compiling:$ac_tool_warned in
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2942 ac_tool_warned
=yes ;;
2951 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2953 as_fn_error $?
"no acceptable C compiler found in \$PATH
2954 See \`config.log' for more details" "$LINENO" 5; }
2956 # Provide some information about the compiler.
2957 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2960 for ac_option
in --version -v -V -qversion; do
2961 { { ac_try
="$ac_compiler $ac_option >&5"
2963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2967 $as_echo "$ac_try_echo"; } >&5
2968 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2970 if test -s conftest.err; then
2972 ... rest of stderr output deleted ...
2973 10q' conftest.err >conftest.er1
2974 cat conftest.er1 >&5
2976 rm -f conftest.er1 conftest.err
2977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2978 test $ac_status = 0; }
2981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2982 /* end confdefs.h. */
2992 ac_clean_files_save=$ac_clean_files
2993 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2994 # Try to create an executable without -o first, disregard a.out.
2995 # It will help us diagnose broken compilers, and finding out an intuition
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2998 $as_echo_n "checking whether the C compiler works... " >&6; }
2999 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3001 # The possible output files:
3002 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3005 for ac_file in $ac_files
3008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3009 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3014 if { { ac_try="$ac_link_default"
3016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3017 *) ac_try_echo
=$ac_try;;
3019 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3020 $as_echo "$ac_try_echo"; } >&5
3021 (eval "$ac_link_default") 2>&5
3023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3024 test $ac_status = 0; }; then :
3025 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3026 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3027 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3028 # so that the user can short-circuit this test for compilers unknown to
3030 for ac_file
in $ac_files ''
3032 test -f "$ac_file" ||
continue
3034 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3037 # We found the default executable, but exeext='' is most
3041 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3043 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3045 # We set ac_cv_exeext here because the later test for it is not
3046 # safe: cross compilers may not add the suffix if given an `-o'
3047 # argument, so we may need to know it at that point already.
3048 # Even if this section looks crufty: it has the advantage of
3055 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3060 if test -z "$ac_file"; then :
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3063 $as_echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.
$ac_ext >&5
3066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3068 as_fn_error
77 "C compiler cannot create executables
3069 See \`config.log' for more details" "$LINENO" 5; }
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3072 $as_echo "yes" >&6; }
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3075 $as_echo_n "checking for C compiler default output file name... " >&6; }
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3077 $as_echo "$ac_file" >&6; }
3078 ac_exeext
=$ac_cv_exeext
3080 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3081 ac_clean_files
=$ac_clean_files_save
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3083 $as_echo_n "checking for suffix of executables... " >&6; }
3084 if { { ac_try
="$ac_link"
3086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_link") 2>&5
3093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094 test $ac_status = 0; }; then :
3095 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3096 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3097 # work properly (i.e., refer to `conftest.exe'), while it won't with
3099 for ac_file
in conftest.exe conftest conftest.
*; do
3100 test -f "$ac_file" ||
continue
3102 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3103 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3111 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3112 See \`config.log' for more details" "$LINENO" 5; }
3114 rm -f conftest conftest
$ac_cv_exeext
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3116 $as_echo "$ac_cv_exeext" >&6; }
3118 rm -f conftest.
$ac_ext
3119 EXEEXT
=$ac_cv_exeext
3121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3122 /* end confdefs.h. */
3127 FILE *f = fopen ("conftest.out", "w");
3128 return ferror (f) || fclose (f) != 0;
3134 ac_clean_files
="$ac_clean_files conftest.out"
3135 # Check that the compiler produces executables we can run. If not, either
3136 # the compiler is broken, or we cross compile.
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3138 $as_echo_n "checking whether we are cross compiling... " >&6; }
3139 if test "$cross_compiling" != yes; then
3140 { { ac_try
="$ac_link"
3142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3146 $as_echo "$ac_try_echo"; } >&5
3147 (eval "$ac_link") 2>&5
3149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150 test $ac_status = 0; }
3151 if { ac_try='./conftest$ac_cv_exeext'
3152 { { case "(($ac_try" in
3153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3154 *) ac_try_echo
=$ac_try;;
3156 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_try") 2>&5
3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161 test $ac_status = 0; }; }; then
3164 if test "$cross_compiling" = maybe
; then
3167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 as_fn_error $?
"cannot run C compiled programs.
3170 If you meant to cross compile, use \`--host'.
3171 See \`config.log' for more details" "$LINENO" 5; }
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3176 $as_echo "$cross_compiling" >&6; }
3178 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3179 ac_clean_files
=$ac_clean_files_save
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3181 $as_echo_n "checking for suffix of object files... " >&6; }
3182 if ${ac_cv_objext+:} false
; then :
3183 $as_echo_n "(cached) " >&6
3185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3196 rm -f conftest.o conftest.obj
3197 if { { ac_try
="$ac_compile"
3199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203 $as_echo "$ac_try_echo"; } >&5
3204 (eval "$ac_compile") 2>&5
3206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207 test $ac_status = 0; }; then :
3208 for ac_file in conftest.o conftest.obj conftest.*; do
3209 test -f "$ac_file" || continue;
3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3212 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3217 $as_echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3223 See \
`config.log' for more details" "$LINENO" 5; }
3225 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3228 $as_echo "$ac_cv_objext" >&6; }
3229 OBJEXT=$ac_cv_objext
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3232 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3233 if ${ac_cv_c_compiler_gnu+:} false; then :
3234 $as_echo_n "(cached) " >&6
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h. */
3250 if ac_fn_c_try_compile "$LINENO"; then :
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3260 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3261 if test $ac_compiler_gnu = yes; then
3266 ac_test_CFLAGS=${CFLAGS+set}
3267 ac_save_CFLAGS=$CFLAGS
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3269 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3270 if ${ac_cv_prog_cc_g+:} false; then :
3271 $as_echo_n "(cached) " >&6
3273 ac_save_c_werror_flag=$ac_c_werror_flag
3274 ac_c_werror_flag=yes
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3288 if ac_fn_c_try_compile "$LINENO"; then :
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3303 if ac_fn_c_try_compile "$LINENO"; then :
3306 ac_c_werror_flag=$ac_save_c_werror_flag
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3319 if ac_fn_c_try_compile "$LINENO"; then :
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 ac_c_werror_flag=$ac_save_c_werror_flag
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3330 $as_echo "$ac_cv_prog_cc_g" >&6; }
3331 if test "$ac_test_CFLAGS" = set; then
3332 CFLAGS=$ac_save_CFLAGS
3333 elif test $ac_cv_prog_cc_g = yes; then
3334 if test "$GCC" = yes; then
3340 if test "$GCC" = yes; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3347 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3348 if ${ac_cv_prog_cc_c89+:} false; then :
3349 $as_echo_n "(cached) " >&6
3351 ac_cv_prog_cc_c89=no
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3358 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3359 struct buf { int x; };
3360 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3361 static char *e (p, i)
3367 static char *f (char * (*g) (char **, int), char **p, ...)
3372 s = g (p, va_arg (v,int));
3377 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3378 function prototypes and stuff, but not '\xHH' hex character constants.
3379 These don't provoke an error unfortunately, instead are silently treated
3380 as 'x'. The following induces an error, until -std is added to get
3381 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3382 array size at least. It's necessary to write '\x00'==0 to get something
3383 that's true only with -std. */
3384 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3386 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3387 inside strings and character constants. */
3389 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3391 int test (int i, double x);
3392 struct s1 {int (*f) (int a);};
3393 struct s2 {int (*f) (double a);};
3394 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3400 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3405 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3406 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3408 CC="$ac_save_CC $ac_arg"
3409 if ac_fn_c_try_compile "$LINENO"; then :
3410 ac_cv_prog_cc_c89=$ac_arg
3412 rm -f core conftest.err conftest.$ac_objext
3413 test "x$ac_cv_prog_cc_c89" != "xno" && break
3415 rm -f conftest.$ac_ext
3420 case "x$ac_cv_prog_cc_c89" in
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3423 $as_echo "none needed" >&6; } ;;
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3426 $as_echo "unsupported" >&6; } ;;
3428 CC="$CC $ac_cv_prog_cc_c89"
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3430 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3432 if test "x$ac_cv_prog_cc_c89" != xno; then :
3437 ac_cpp='$CPP $CPPFLAGS'
3438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3448 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3449 if ${am_cv_prog_cc_c_o+:} false; then :
3450 $as_echo_n "(cached) " >&6
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3463 # Make sure it works both with $CC and with simple cc.
3464 # Following AC_PROG_CC_C_O, we do the test twice because some
3465 # compilers refuse to overwrite an existing .o file with -o,
3466 # though they will create one.
3467 am_cv_prog_cc_c_o=yes
3469 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3470 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } \
3474 && test -f conftest2.$ac_objext; then
3477 am_cv_prog_cc_c_o=no
3481 rm -f core conftest*
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3485 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3486 if test "$am_cv_prog_cc_c_o" != yes; then
3487 # Losing compiler, so override with the script.
3488 # FIXME: It is wrong to rewrite CC.
3489 # But if we don't then we get into trouble of one sort or another.
3490 # A longer-term fix would be to have automake use am__CC in this case,
3491 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3492 CC="$am_aux_dir/compile $CC"
3495 ac_cpp='$CPP $CPPFLAGS'
3496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3503 ac_cpp='$CPP $CPPFLAGS'
3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3508 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3509 # On Suns, sometimes $CPP names a directory.
3510 if test -n "$CPP" && test -d "$CPP"; then
3513 if test -z "$CPP"; then
3514 if ${ac_cv_prog_CPP+:} false; then :
3515 $as_echo_n "(cached) " >&6
3517 # Double quotes because CPP needs to be expanded
3518 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3521 for ac_c_preproc_warn_flag in '' yes
3523 # Use a header file that comes with gcc, so configuring glibc
3524 # with a fresh cross-compiler works.
3525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3526 # <limits.h> exists even on freestanding compilers.
3527 # On the NeXT, cc -E runs the code through the compiler's parser,
3528 # not just through cpp. "Syntax error" is here to catch this case.
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3532 # include <limits.h>
3534 # include <assert.h>
3538 if ac_fn_c_try_cpp "$LINENO"; then :
3541 # Broken: fails on valid input.
3544 rm -f conftest.err conftest.i conftest.$ac_ext
3546 # OK, works on sane cases. Now check whether nonexistent headers
3547 # can be detected and how.
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550 #include <ac_nonexistent.h>
3552 if ac_fn_c_try_cpp "$LINENO"; then :
3553 # Broken: success on invalid input.
3556 # Passes both tests.
3560 rm -f conftest.err conftest.i conftest.$ac_ext
3563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564 rm -f conftest.i conftest.err conftest.
$ac_ext
3565 if $ac_preproc_ok; then :
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3578 $as_echo "$CPP" >&6; }
3580 for ac_c_preproc_warn_flag
in '' yes
3582 # Use a header file that comes with gcc, so configuring glibc
3583 # with a fresh cross-compiler works.
3584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3585 # <limits.h> exists even on freestanding compilers.
3586 # On the NeXT, cc -E runs the code through the compiler's parser,
3587 # not just through cpp. "Syntax error" is here to catch this case.
3588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3591 # include <limits.h>
3593 # include <assert.h>
3597 if ac_fn_c_try_cpp
"$LINENO"; then :
3600 # Broken: fails on valid input.
3603 rm -f conftest.err conftest.i conftest.
$ac_ext
3605 # OK, works on sane cases. Now check whether nonexistent headers
3606 # can be detected and how.
3607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3609 #include <ac_nonexistent.h>
3611 if ac_fn_c_try_cpp
"$LINENO"; then :
3612 # Broken: success on invalid input.
3615 # Passes both tests.
3619 rm -f conftest.err conftest.i conftest.
$ac_ext
3622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3623 rm -f conftest.i conftest.err conftest.
$ac_ext
3624 if $ac_preproc_ok; then :
3627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3630 See \`config.log' for more details" "$LINENO" 5; }
3634 ac_cpp
='$CPP $CPPFLAGS'
3635 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3641 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3642 if ${ac_cv_path_GREP+:} false
; then :
3643 $as_echo_n "(cached) " >&6
3645 if test -z "$GREP"; then
3646 ac_path_GREP_found
=false
3647 # Loop through the user's path and test for each of PROGNAME-LIST
3648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3649 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3652 test -z "$as_dir" && as_dir
=.
3653 for ac_prog
in grep ggrep
; do
3654 for ac_exec_ext
in '' $ac_executable_extensions; do
3655 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3656 as_fn_executable_p
"$ac_path_GREP" ||
continue
3657 # Check for GNU ac_path_GREP and select it if it is found.
3658 # Check for GNU $ac_path_GREP
3659 case `"$ac_path_GREP" --version 2>&1` in
3661 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3664 $as_echo_n 0123456789 >"conftest.in"
3667 cat "conftest.in" "conftest.in" >"conftest.tmp"
3668 mv "conftest.tmp" "conftest.in"
3669 cp "conftest.in" "conftest.nl"
3670 $as_echo 'GREP' >> "conftest.nl"
3671 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3672 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3673 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3674 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3675 # Best one so far, save it but keep looking for a better one
3676 ac_cv_path_GREP
="$ac_path_GREP"
3677 ac_path_GREP_max
=$ac_count
3679 # 10*(2^10) chars as input seems more than enough
3680 test $ac_count -gt 10 && break
3682 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3685 $ac_path_GREP_found && break 3
3690 if test -z "$ac_cv_path_GREP"; then
3691 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3694 ac_cv_path_GREP
=$GREP
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3699 $as_echo "$ac_cv_path_GREP" >&6; }
3700 GREP
="$ac_cv_path_GREP"
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3704 $as_echo_n "checking for egrep... " >&6; }
3705 if ${ac_cv_path_EGREP+:} false
; then :
3706 $as_echo_n "(cached) " >&6
3708 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3709 then ac_cv_path_EGREP
="$GREP -E"
3711 if test -z "$EGREP"; then
3712 ac_path_EGREP_found
=false
3713 # Loop through the user's path and test for each of PROGNAME-LIST
3714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3715 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3718 test -z "$as_dir" && as_dir
=.
3719 for ac_prog
in egrep; do
3720 for ac_exec_ext
in '' $ac_executable_extensions; do
3721 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3722 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3723 # Check for GNU ac_path_EGREP and select it if it is found.
3724 # Check for GNU $ac_path_EGREP
3725 case `"$ac_path_EGREP" --version 2>&1` in
3727 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3730 $as_echo_n 0123456789 >"conftest.in"
3733 cat "conftest.in" "conftest.in" >"conftest.tmp"
3734 mv "conftest.tmp" "conftest.in"
3735 cp "conftest.in" "conftest.nl"
3736 $as_echo 'EGREP' >> "conftest.nl"
3737 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3738 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3739 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3740 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3741 # Best one so far, save it but keep looking for a better one
3742 ac_cv_path_EGREP
="$ac_path_EGREP"
3743 ac_path_EGREP_max
=$ac_count
3745 # 10*(2^10) chars as input seems more than enough
3746 test $ac_count -gt 10 && break
3748 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3751 $ac_path_EGREP_found && break 3
3756 if test -z "$ac_cv_path_EGREP"; then
3757 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3760 ac_cv_path_EGREP
=$EGREP
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3766 $as_echo "$ac_cv_path_EGREP" >&6; }
3767 EGREP
="$ac_cv_path_EGREP"
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3771 $as_echo_n "checking for ANSI C header files... " >&6; }
3772 if ${ac_cv_header_stdc+:} false
; then :
3773 $as_echo_n "(cached) " >&6
3775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3790 if ac_fn_c_try_compile
"$LINENO"; then :
3791 ac_cv_header_stdc
=yes
3793 ac_cv_header_stdc
=no
3795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3797 if test $ac_cv_header_stdc = yes; then
3798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805 $EGREP "memchr" >/dev
/null
2>&1; then :
3808 ac_cv_header_stdc
=no
3814 if test $ac_cv_header_stdc = yes; then
3815 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3822 $EGREP "free" >/dev
/null
2>&1; then :
3825 ac_cv_header_stdc
=no
3831 if test $ac_cv_header_stdc = yes; then
3832 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3833 if test "$cross_compiling" = yes; then :
3836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3840 #if ((' ' & 0x0FF) == 0x020)
3841 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3842 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3844 # define ISLOWER(c) \
3845 (('a' <= (c) && (c) <= 'i') \
3846 || ('j' <= (c) && (c) <= 'r') \
3847 || ('s' <= (c) && (c) <= 'z'))
3848 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3851 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3856 for (i = 0; i < 256; i++)
3857 if (XOR (islower (i), ISLOWER (i))
3858 || toupper (i) != TOUPPER (i))
3863 if ac_fn_c_try_run
"$LINENO"; then :
3866 ac_cv_header_stdc
=no
3868 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3869 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3875 $as_echo "$ac_cv_header_stdc" >&6; }
3876 if test $ac_cv_header_stdc = yes; then
3878 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3882 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3883 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3884 inttypes.h stdint.h unistd.h
3886 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3887 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3889 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3890 cat >>confdefs.h
<<_ACEOF
3891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3900 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3901 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3908 if test "$MINIX" = yes; then
3910 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3913 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3916 $as_echo "#define _MINIX 1" >>confdefs.h
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3922 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3923 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3924 $as_echo_n "(cached) " >&6
3926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3929 # define __EXTENSIONS__ 1
3930 $ac_includes_default
3939 if ac_fn_c_try_compile
"$LINENO"; then :
3940 ac_cv_safe_to_define___extensions__
=yes
3942 ac_cv_safe_to_define___extensions__
=no
3944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3947 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3948 test $ac_cv_safe_to_define___extensions__ = yes &&
3949 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3951 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3953 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3955 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3957 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3961 target_alias
=${target_alias-$target}
3964 # 1.11.1: Require that version of automake.
3965 # foreign: Don't require README, INSTALL, NEWS, etc.
3966 # no-define: Don't define PACKAGE and VERSION.
3967 # no-dependencies: Don't generate automatic dependencies.
3968 # (because it breaks when using bootstrap-lean, since some of the
3969 # headers are gone at "make install" time).
3970 # subdir-objects: Build objects in sub-directories.
3971 # -Wall: Issue all automake warnings.
3972 # -Wno-portability: Don't warn about constructs supported by GNU make.
3973 # (because GCC requires GNU make anyhow).
3974 # -Wno-override: Overrides used in testsuite.
3975 am__api_version
='1.15'
3977 # Find a good install program. We prefer a C program (faster),
3978 # so one script is as good as another. But avoid the broken or
3979 # incompatible versions:
3980 # SysV /etc/install, /usr/sbin/install
3981 # SunOS /usr/etc/install
3982 # IRIX /sbin/install
3984 # AmigaOS /C/install, which installs bootblocks on floppy discs
3985 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3986 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3987 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3988 # OS/2's system install, which has a completely different semantic
3989 # ./install, which can be erroneously created by make from ./install.sh.
3990 # Reject install programs that cannot install multiple files.
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3992 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3993 if test -z "$INSTALL"; then
3994 if ${ac_cv_path_install+:} false
; then :
3995 $as_echo_n "(cached) " >&6
3997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4001 test -z "$as_dir" && as_dir
=.
4002 # Account for people who put trailing slashes in PATH elements.
4003 case $as_dir/ in #((
4004 .
/ | .
// |
/[cC
]/* | \
4005 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4006 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4009 # OSF1 and SCO ODT 3.0 have their own names for install.
4010 # Don't use installbsd from OSF since it installs stuff as root
4012 for ac_prog
in ginstall scoinst
install; do
4013 for ac_exec_ext
in '' $ac_executable_extensions; do
4014 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4015 if test $ac_prog = install &&
4016 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4017 # AIX install. It has an incompatible calling convention.
4019 elif test $ac_prog = install &&
4020 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4021 # program-specific install script used by HP pwplus--don't use.
4024 rm -rf conftest.one conftest.two conftest.dir
4025 echo one
> conftest.one
4026 echo two
> conftest.two
4028 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4029 test -s conftest.one
&& test -s conftest.two
&&
4030 test -s conftest.dir
/conftest.one
&&
4031 test -s conftest.dir
/conftest.two
4033 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4046 rm -rf conftest.one conftest.two conftest.dir
4049 if test "${ac_cv_path_install+set}" = set; then
4050 INSTALL
=$ac_cv_path_install
4052 # As a last resort, use the slow shell script. Don't cache a
4053 # value for INSTALL within a source directory, because that will
4054 # break other packages using the cache if that directory is
4055 # removed, or if the value is a relative name.
4056 INSTALL
=$ac_install_sh
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4060 $as_echo "$INSTALL" >&6; }
4062 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4063 # It thinks the first close brace ends the variable substitution.
4064 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4066 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4068 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4071 $as_echo_n "checking whether build environment is sane... " >&6; }
4072 # Reject unsafe characters in $srcdir or the absolute working directory
4073 # name. Accept space and tab only in the latter.
4077 *[\\\"\
#\$\&\'\`$am_lf]*)
4078 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
4081 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
4082 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4085 # Do 'set' in a subshell so we don't clobber the current shell's
4086 # arguments. Must try -L first in case configure is actually a
4087 # symlink; some systems play weird games with the mod time of symlinks
4088 # (eg FreeBSD returns the mod time of the symlink's containing
4092 for am_try
in 1 2; do
4093 echo "timestamp, slept: $am_has_slept" > conftest.
file
4094 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4095 if test "$*" = "X"; then
4097 set X
`ls -t "$srcdir/configure" conftest.file`
4099 if test "$*" != "X $srcdir/configure conftest.file" \
4100 && test "$*" != "X conftest.file $srcdir/configure"; then
4102 # If neither matched, then we have a broken ls. This can happen
4103 # if, for instance, CONFIG_SHELL is bash and it inherits a
4104 # broken ls alias from the environment. This has actually
4105 # happened. Such a system could not be considered "sane".
4106 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
4107 alias in your environment" "$LINENO" 5
4109 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
4116 test "$2" = conftest.
file
4122 as_fn_error $?
"newly created file is older than distributed files!
4123 Check your system clock" "$LINENO" 5
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4126 $as_echo "yes" >&6; }
4127 # If we didn't sleep, we still need to ensure time stamps of config.status and
4128 # generated files are strictly newer.
4130 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
4137 test "$program_prefix" != NONE
&&
4138 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4139 # Use a double $ so make ignores it.
4140 test "$program_suffix" != NONE
&&
4141 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4142 # Double any \ or $.
4143 # By default was `s,x,x', remove it if useless.
4144 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4145 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4147 if test x
"${MISSING+set}" != xset
; then
4150 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
4152 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
4155 # Use eval to expand $SHELL
4156 if eval "$MISSING --is-lightweight"; then
4157 am_missing_run
="$MISSING "
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4161 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4164 if test x
"${install_sh+set}" != xset
; then
4167 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4169 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4173 # Installed binaries are usually stripped using 'strip' when the user
4174 # run "make install-strip". However 'strip' might not be the right
4175 # tool to use in cross-compilation environments, therefore Automake
4176 # will honor the 'STRIP' environment variable to overrule this program.
4177 if test "$cross_compiling" != no
; then
4178 if test -n "$ac_tool_prefix"; then
4179 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4180 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if ${ac_cv_prog_STRIP+:} false
; then :
4184 $as_echo_n "(cached) " >&6
4186 if test -n "$STRIP"; then
4187 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4193 test -z "$as_dir" && as_dir
=.
4194 for ac_exec_ext
in '' $ac_executable_extensions; do
4195 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4196 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 STRIP
=$ac_cv_prog_STRIP
4207 if test -n "$STRIP"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4209 $as_echo "$STRIP" >&6; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4217 if test -z "$ac_cv_prog_STRIP"; then
4219 # Extract the first word of "strip", so it can be a program name with args.
4220 set dummy strip
; ac_word
=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4224 $as_echo_n "(cached) " >&6
4226 if test -n "$ac_ct_STRIP"; then
4227 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4233 test -z "$as_dir" && as_dir
=.
4234 for ac_exec_ext
in '' $ac_executable_extensions; do
4235 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4236 ac_cv_prog_ac_ct_STRIP
="strip"
4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4247 if test -n "$ac_ct_STRIP"; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4249 $as_echo "$ac_ct_STRIP" >&6; }
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4255 if test "x$ac_ct_STRIP" = x
; then
4258 case $cross_compiling:$ac_tool_warned in
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4262 ac_tool_warned
=yes ;;
4267 STRIP
="$ac_cv_prog_STRIP"
4271 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4274 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4275 if test -z "$MKDIR_P"; then
4276 if ${ac_cv_path_mkdir+:} false
; then :
4277 $as_echo_n "(cached) " >&6
4279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4280 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
4283 test -z "$as_dir" && as_dir
=.
4284 for ac_prog
in mkdir gmkdir
; do
4285 for ac_exec_ext
in '' $ac_executable_extensions; do
4286 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
4287 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4288 'mkdir (GNU coreutils) '* | \
4289 'mkdir (coreutils) '* | \
4290 'mkdir (fileutils) '4.1*)
4291 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
4301 test -d .
/--version && rmdir .
/--version
4302 if test "${ac_cv_path_mkdir+set}" = set; then
4303 MKDIR_P
="$ac_cv_path_mkdir -p"
4305 # As a last resort, use the slow shell script. Don't cache a
4306 # value for MKDIR_P within a source directory, because that will
4307 # break other packages using the cache if that directory is
4308 # removed, or if the value is a relative name.
4309 MKDIR_P
="$ac_install_sh -d"
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4313 $as_echo "$MKDIR_P" >&6; }
4315 for ac_prog
in gawk mawk nawk
awk
4317 # Extract the first word of "$ac_prog", so it can be a program name with args.
4318 set dummy
$ac_prog; ac_word
=$2
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 $as_echo_n "checking for $ac_word... " >&6; }
4321 if ${ac_cv_prog_AWK+:} false
; then :
4322 $as_echo_n "(cached) " >&6
4324 if test -n "$AWK"; then
4325 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4331 test -z "$as_dir" && as_dir
=.
4332 for ac_exec_ext
in '' $ac_executable_extensions; do
4333 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4334 ac_cv_prog_AWK
="$ac_prog"
4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 if test -n "$AWK"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4347 $as_echo "$AWK" >&6; }
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4354 test -n "$AWK" && break
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4358 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4360 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4361 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
4362 $as_echo_n "(cached) " >&6
4364 cat >conftest.
make <<\_ACEOF
4367 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4369 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4370 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4372 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4374 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4378 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4380 $as_echo "yes" >&6; }
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4385 SET_MAKE
="MAKE=${MAKE-make}"
4388 rm -rf .tst
2>/dev
/null
4389 mkdir .tst
2>/dev
/null
4390 if test -d .tst
; then
4395 rmdir .tst
2>/dev
/null
4397 # Check whether --enable-silent-rules was given.
4398 if test "${enable_silent_rules+set}" = set; then :
4399 enableval
=$enable_silent_rules;
4402 case $enable_silent_rules in # (((
4403 yes) AM_DEFAULT_VERBOSITY
=0;;
4404 no
) AM_DEFAULT_VERBOSITY
=1;;
4405 *) AM_DEFAULT_VERBOSITY
=1;;
4407 am_make
=${MAKE-make}
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4409 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4410 if ${am_cv_make_support_nested_variables+:} false
; then :
4411 $as_echo_n "(cached) " >&6
4413 if $as_echo 'TRUE=$(BAR$(V))
4419 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
4420 am_cv_make_support_nested_variables
=yes
4422 am_cv_make_support_nested_variables
=no
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4426 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4427 if test $am_cv_make_support_nested_variables = yes; then
4429 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
4431 AM_V
=$AM_DEFAULT_VERBOSITY
4432 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
4436 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4437 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4438 # is not polluted with repeated "-I."
4439 am__isrc
=' -I$(srcdir)'
4440 # test to see if srcdir already configured
4441 if test -f $srcdir/config.status
; then
4442 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4446 # test whether we have cygpath
4447 if test -z "$CYGPATH_W"; then
4448 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
4449 CYGPATH_W
='cygpath -w'
4456 # Define the identity of the package.
4458 VERSION
='version-unused'
4461 # Some tools Automake needs.
4463 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4466 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4469 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4472 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4475 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4477 # For better backward compatibility. To be removed once Automake 1.9.x
4478 # dies out for good. For more background, see:
4479 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4480 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4481 mkdir_p
='$(MKDIR_P)'
4483 # We need awk for the "check" target (and possibly the TAP driver). The
4484 # system "awk" is bad on some platforms.
4485 # Always define AMTAR for backward compatibility. Yes, it's still used
4486 # in the wild :-( We should find a proper way to deprecate it ...
4490 # We'll loop over all known methods to create a tar archive until one works.
4491 _am_tools
='gnutar pax cpio none'
4493 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
4500 # POSIX will say in a future version that running "rm -f" with no argument
4501 # is OK; and we want to be able to make that assumption in our Makefile
4502 # recipes. So use an aggressive probe to check that the usage we want is
4503 # actually supported "in the wild" to an acceptable degree.
4504 # See automake bug#10828.
4505 # To make any issue more visible, cause the running configure to be aborted
4506 # by default if the 'rm' program in use doesn't match our expectations; the
4507 # user can still override this though.
4508 if rm -f && rm -fr && rm -rf; then : OK
; else
4512 Your 'rm' program seems unable to run without file operands specified
4513 on the command line, even when the '-f' option is present. This is contrary
4514 to the behaviour of most rm programs out there, and not conforming with
4515 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4517 Please tell bug-automake@gnu.org about your system, including the value
4518 of your $PATH and any error possibly output before this message. This
4519 can help us improve future automake versions.
4522 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
4523 echo 'Configuration will proceed anyway, since you have set the' >&2
4524 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4528 Aborting the configuration process, to ensure you take notice of the issue.
4530 You can download and install GNU coreutils to get an 'rm' implementation
4531 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4533 If you want to complete the configuration process using your problematic
4534 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4535 to "yes", and re-run configure.
4538 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
4545 # By default we simply use the C compiler to build assembly code.
4547 test "${CCAS+set}" = set || CCAS
=$CC
4548 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
4553 ac_cpp
='$CPP $CPPFLAGS'
4554 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4557 if test -n "$ac_tool_prefix"; then
4558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4559 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561 $as_echo_n "checking for $ac_word... " >&6; }
4562 if ${ac_cv_prog_CC+:} false
; then :
4563 $as_echo_n "(cached) " >&6
4565 if test -n "$CC"; then
4566 ac_cv_prog_CC
="$CC" # Let the user override the test.
4568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4572 test -z "$as_dir" && as_dir
=.
4573 for ac_exec_ext
in '' $ac_executable_extensions; do
4574 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4575 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 if test -n "$CC"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4588 $as_echo "$CC" >&6; }
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4596 if test -z "$ac_cv_prog_CC"; then
4598 # Extract the first word of "gcc", so it can be a program name with args.
4599 set dummy gcc
; ac_word
=$2
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601 $as_echo_n "checking for $ac_word... " >&6; }
4602 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4603 $as_echo_n "(cached) " >&6
4605 if test -n "$ac_ct_CC"; then
4606 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4612 test -z "$as_dir" && as_dir
=.
4613 for ac_exec_ext
in '' $ac_executable_extensions; do
4614 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_ac_ct_CC
="gcc"
4616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4626 if test -n "$ac_ct_CC"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4628 $as_echo "$ac_ct_CC" >&6; }
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4634 if test "x$ac_ct_CC" = x
; then
4637 case $cross_compiling:$ac_tool_warned in
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4641 ac_tool_warned
=yes ;;
4649 if test -z "$CC"; then
4650 if test -n "$ac_tool_prefix"; then
4651 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4652 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if ${ac_cv_prog_CC+:} false
; then :
4656 $as_echo_n "(cached) " >&6
4658 if test -n "$CC"; then
4659 ac_cv_prog_CC
="$CC" # Let the user override the test.
4661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir
=.
4666 for ac_exec_ext
in '' $ac_executable_extensions; do
4667 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 if test -n "$CC"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4681 $as_echo "$CC" >&6; }
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4690 if test -z "$CC"; then
4691 # Extract the first word of "cc", so it can be a program name with args.
4692 set dummy cc
; ac_word
=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if ${ac_cv_prog_CC+:} false
; then :
4696 $as_echo_n "(cached) " >&6
4698 if test -n "$CC"; then
4699 ac_cv_prog_CC
="$CC" # Let the user override the test.
4702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4706 test -z "$as_dir" && as_dir
=.
4707 for ac_exec_ext
in '' $ac_executable_extensions; do
4708 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4710 ac_prog_rejected
=yes
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 if test $ac_prog_rejected = yes; then
4722 # We found a bogon in the path, so make sure we never use it.
4723 set dummy
$ac_cv_prog_CC
4725 if test $# != 0; then
4726 # We chose a different compiler from the bogus one.
4727 # However, it has the same basename, so the bogon will be chosen
4728 # first if we set CC to just the basename; use the full file name.
4730 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4736 if test -n "$CC"; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4738 $as_echo "$CC" >&6; }
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 $as_echo "no" >&6; }
4746 if test -z "$CC"; then
4747 if test -n "$ac_tool_prefix"; then
4748 for ac_prog
in cl.exe
4750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4751 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if ${ac_cv_prog_CC+:} false
; then :
4755 $as_echo_n "(cached) " >&6
4757 if test -n "$CC"; then
4758 ac_cv_prog_CC
="$CC" # Let the user override the test.
4760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4764 test -z "$as_dir" && as_dir
=.
4765 for ac_exec_ext
in '' $ac_executable_extensions; do
4766 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4767 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 if test -n "$CC"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4780 $as_echo "$CC" >&6; }
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4787 test -n "$CC" && break
4790 if test -z "$CC"; then
4792 for ac_prog
in cl.exe
4794 # Extract the first word of "$ac_prog", so it can be a program name with args.
4795 set dummy
$ac_prog; ac_word
=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4799 $as_echo_n "(cached) " >&6
4801 if test -n "$ac_ct_CC"; then
4802 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4808 test -z "$as_dir" && as_dir
=.
4809 for ac_exec_ext
in '' $ac_executable_extensions; do
4810 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4811 ac_cv_prog_ac_ct_CC
="$ac_prog"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4822 if test -n "$ac_ct_CC"; then
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4824 $as_echo "$ac_ct_CC" >&6; }
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4831 test -n "$ac_ct_CC" && break
4834 if test "x$ac_ct_CC" = x
; then
4837 case $cross_compiling:$ac_tool_warned in
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4841 ac_tool_warned
=yes ;;
4850 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4852 as_fn_error $?
"no acceptable C compiler found in \$PATH
4853 See \`config.log' for more details" "$LINENO" 5; }
4855 # Provide some information about the compiler.
4856 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4859 for ac_option
in --version -v -V -qversion; do
4860 { { ac_try
="$ac_compiler $ac_option >&5"
4862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4866 $as_echo "$ac_try_echo"; } >&5
4867 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4869 if test -s conftest.err; then
4871 ... rest of stderr output deleted ...
4872 10q' conftest.err >conftest.er1
4873 cat conftest.er1 >&5
4875 rm -f conftest.er1 conftest.err
4876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4877 test $ac_status = 0; }
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4881 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4882 if ${ac_cv_c_compiler_gnu+:} false; then :
4883 $as_echo_n "(cached) " >&6
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4899 if ac_fn_c_try_compile "$LINENO"; then :
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4909 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4910 if test $ac_compiler_gnu = yes; then
4915 ac_test_CFLAGS=${CFLAGS+set}
4916 ac_save_CFLAGS=$CFLAGS
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4918 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4919 if ${ac_cv_prog_cc_g+:} false; then :
4920 $as_echo_n "(cached) " >&6
4922 ac_save_c_werror_flag=$ac_c_werror_flag
4923 ac_c_werror_flag=yes
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4937 if ac_fn_c_try_compile "$LINENO"; then :
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4952 if ac_fn_c_try_compile "$LINENO"; then :
4955 ac_c_werror_flag=$ac_save_c_werror_flag
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4968 if ac_fn_c_try_compile "$LINENO"; then :
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976 ac_c_werror_flag=$ac_save_c_werror_flag
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4979 $as_echo "$ac_cv_prog_cc_g" >&6; }
4980 if test "$ac_test_CFLAGS" = set; then
4981 CFLAGS=$ac_save_CFLAGS
4982 elif test $ac_cv_prog_cc_g = yes; then
4983 if test "$GCC" = yes; then
4989 if test "$GCC" = yes; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4996 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4997 if ${ac_cv_prog_cc_c89+:} false; then :
4998 $as_echo_n "(cached) " >&6
5000 ac_cv_prog_cc_c89=no
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5007 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5008 struct buf { int x; };
5009 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5010 static char *e (p, i)
5016 static char *f (char * (*g) (char **, int), char **p, ...)
5021 s = g (p, va_arg (v,int));
5026 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5027 function prototypes and stuff, but not '\xHH' hex character constants.
5028 These don't provoke an error unfortunately, instead are silently treated
5029 as 'x'. The following induces an error, until -std is added to get
5030 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5031 array size at least. It's necessary to write '\x00'==0 to get something
5032 that's true only with -std. */
5033 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5035 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5036 inside strings and character constants. */
5038 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5040 int test (int i, double x);
5041 struct s1 {int (*f) (int a);};
5042 struct s2 {int (*f) (double a);};
5043 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5049 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5054 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5055 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5057 CC="$ac_save_CC $ac_arg"
5058 if ac_fn_c_try_compile "$LINENO"; then :
5059 ac_cv_prog_cc_c89=$ac_arg
5061 rm -f core conftest.err conftest.$ac_objext
5062 test "x$ac_cv_prog_cc_c89" != "xno" && break
5064 rm -f conftest.$ac_ext
5069 case "x$ac_cv_prog_cc_c89" in
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5072 $as_echo "none needed" >&6; } ;;
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5075 $as_echo "unsupported" >&6; } ;;
5077 CC="$CC $ac_cv_prog_cc_c89"
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5079 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5081 if test "x$ac_cv_prog_cc_c89" != xno; then :
5086 ac_cpp='$CPP $CPPFLAGS'
5087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5092 ac_cpp='$CPP $CPPFLAGS'
5093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5097 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5098 if ${am_cv_prog_cc_c_o+:} false; then :
5099 $as_echo_n "(cached) " >&6
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5112 # Make sure it works both with $CC and with simple cc.
5113 # Following AC_PROG_CC_C_O, we do the test twice because some
5114 # compilers refuse to overwrite an existing .o file with -o,
5115 # though they will create one.
5116 am_cv_prog_cc_c_o=yes
5118 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5119 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } \
5123 && test -f conftest2.$ac_objext; then
5126 am_cv_prog_cc_c_o=no
5130 rm -f core conftest*
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5134 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5135 if test "$am_cv_prog_cc_c_o" != yes; then
5136 # Losing compiler, so override with the script.
5137 # FIXME: It is wrong to rewrite CC.
5138 # But if we don't then we get into trouble of one sort or another.
5139 # A longer-term fix would be to have automake use am__CC in this case,
5140 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5141 CC="$am_aux_dir/compile $CC"
5144 ac_cpp='$CPP $CPPFLAGS'
5145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5151 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5152 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154 if test -n "$ac_tool_prefix"; then
5155 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5156 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if ${ac_cv_prog_GDC+:} false; then :
5160 $as_echo_n "(cached) " >&6
5162 if test -n "$GDC"; then
5163 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 if test -n "$GDC"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5185 $as_echo "$GDC" >&6; }
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5193 if test -z "$ac_cv_prog_GDC"; then
5195 # Extract the first word of "gdc", so it can be a program name with args.
5196 set dummy gdc; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5200 $as_echo_n "(cached) " >&6
5202 if test -n "$ac_ct_GDC"; then
5203 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212 ac_cv_prog_ac_ct_GDC="gdc"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5223 if test -n "$ac_ct_GDC"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5225 $as_echo "$ac_ct_GDC" >&6; }
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5231 if test "x$ac_ct_GDC" = x; then
5234 case $cross_compiling:$ac_tool_warned in
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5238 ac_tool_warned=yes ;;
5243 GDC="$ac_cv_prog_GDC"
5246 if test -z "$GDC"; then
5247 if test -n "$ac_tool_prefix"; then
5248 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5249 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if ${ac_cv_prog_GDC+:} false; then :
5253 $as_echo_n "(cached) " >&6
5255 if test -n "$GDC"; then
5256 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5265 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 if test -n "$GDC"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5278 $as_echo "$GDC" >&6; }
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5287 if test -z "$GDC"; then
5288 # Extract the first word of "gdc", so it can be a program name with args.
5289 set dummy gdc; ac_word=$2
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 $as_echo_n "checking for $ac_word... " >&6; }
5292 if ${ac_cv_prog_GDC+:} false; then :
5293 $as_echo_n "(cached) " >&6
5295 if test -n "$GDC"; then
5296 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5306 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5307 ac_prog_rejected=yes
5310 ac_cv_prog_GDC="gdc"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 if test $ac_prog_rejected = yes; then
5319 # We found a bogon in the path, so make sure we never use it.
5320 set dummy $ac_cv_prog_GDC
5322 if test $# != 0; then
5323 # We chose a different compiler from the bogus one.
5324 # However, it has the same basename, so the bogon will be chosen
5325 # first if we set GDC to just the basename; use the full file name.
5327 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5333 if test -n "$GDC"; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5335 $as_echo "$GDC" >&6; }
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5345 # Provide some information about the compiler.
5346 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5349 { { ac_try="$ac_compiler --version >&5"
5351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5352 *) ac_try_echo
=$ac_try;;
5354 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5355 $as_echo "$ac_try_echo"; } >&5
5356 (eval "$ac_compiler --version >&5") 2>conftest.err
5358 if test -s conftest.err
; then
5360 ... rest of stderr output deleted ...
5361 10q' conftest.err
>conftest.er1
5362 cat conftest.er1
>&5
5364 rm -f conftest.er1 conftest.err
5365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5366 test $ac_status = 0; }
5368 ac_cpp
='$CPP $CPPFLAGS'
5369 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5375 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5376 if ${phobos_cv_abs_srcdir+:} false
; then :
5377 $as_echo_n "(cached) " >&6
5379 phobos_cv_abs_srcdir
=`cd $srcdir && pwd`
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5382 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5383 if test -d "$phobos_cv_abs_srcdir"; then :
5386 as_fn_error $?
"can't find absolute libphobos source path" "$LINENO" 5
5392 gdc_save_DFLAGS
=$GDCFLAGS
5393 GDCFLAGS
="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5396 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5397 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5401 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5402 cat > conftest.
$ac_ext <<_ACEOF
5406 extern(C) int main() {
5410 if ac_fn_d_try_compile
"$LINENO"; then :
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5412 $as_echo "yes" >&6; }
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5416 as_fn_error $?
"can't compile D sources!" "$LINENO" 5
5418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5420 ac_cpp
='$CPP $CPPFLAGS'
5421 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5426 GDCFLAGS
=$gdc_save_DFLAGS
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5434 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5435 # Check whether --enable-maintainer-mode was given.
5436 if test "${enable_maintainer_mode+set}" = set; then :
5437 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
5439 USE_MAINTAINER_MODE
=no
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5443 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5444 if test $USE_MAINTAINER_MODE = yes; then
5445 MAINTAINER_MODE_TRUE
=
5446 MAINTAINER_MODE_FALSE
='#'
5448 MAINTAINER_MODE_TRUE
='#'
5449 MAINTAINER_MODE_FALSE
=
5452 MAINT
=$MAINTAINER_MODE_TRUE
5455 if test -n "$ac_tool_prefix"; then
5456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5457 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_prog_RANLIB+:} false
; then :
5461 $as_echo_n "(cached) " >&6
5463 if test -n "$RANLIB"; then
5464 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5470 test -z "$as_dir" && as_dir
=.
5471 for ac_exec_ext
in '' $ac_executable_extensions; do
5472 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 RANLIB
=$ac_cv_prog_RANLIB
5484 if test -n "$RANLIB"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5486 $as_echo "$RANLIB" >&6; }
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5494 if test -z "$ac_cv_prog_RANLIB"; then
5495 ac_ct_RANLIB
=$RANLIB
5496 # Extract the first word of "ranlib", so it can be a program name with args.
5497 set dummy ranlib
; ac_word
=$2
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499 $as_echo_n "checking for $ac_word... " >&6; }
5500 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5501 $as_echo_n "(cached) " >&6
5503 if test -n "$ac_ct_RANLIB"; then
5504 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5510 test -z "$as_dir" && as_dir
=.
5511 for ac_exec_ext
in '' $ac_executable_extensions; do
5512 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5513 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5524 if test -n "$ac_ct_RANLIB"; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5526 $as_echo "$ac_ct_RANLIB" >&6; }
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5532 if test "x$ac_ct_RANLIB" = x
; then
5535 case $cross_compiling:$ac_tool_warned in
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5539 ac_tool_warned
=yes ;;
5541 RANLIB
=$ac_ct_RANLIB
5544 RANLIB
="$ac_cv_prog_RANLIB"
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5549 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5551 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5552 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5553 $as_echo_n "(cached) " >&6
5555 cat >conftest.
make <<\_ACEOF
5558 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5560 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5561 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5563 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5565 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5569 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5571 $as_echo "yes" >&6; }
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }
5576 SET_MAKE
="MAKE=${MAKE-make}"
5580 # Add CET specific flags if CET is enabled
5581 # Check whether --enable-cet was given.
5582 if test "${enable_cet+set}" = set; then :
5583 enableval
=$enable_cet;
5584 case "$enableval" in
5586 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5595 $as_echo_n "checking for CET support... " >&6; }
5597 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
5599 i
[34567]86-*-linux* | x86_64-
*-linux*)
5600 case "$enable_cet" in
5602 # Check if target supports multi-byte NOPs
5603 # and if compiler and assembler support CET insn.
5604 cet_save_CFLAGS
="$CFLAGS"
5605 CFLAGS
="$CFLAGS -fcf-protection"
5606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5613 #if !defined(__SSE2__)
5614 #error target does not support multi-byte NOPs
5623 if ac_fn_c_try_compile
"$LINENO"; then :
5628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5629 CFLAGS
="$cet_save_CFLAGS"
5632 # Check if assembler supports CET.
5633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5644 if ac_fn_c_try_compile
"$LINENO"; then :
5647 as_fn_error $?
"assembler with CET support is required for --enable-cet" "$LINENO" 5
5649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5657 if test x
$enable_cet = xyes
; then
5658 CET_FLAGS
="-fcf-protection -mshstk"
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5660 $as_echo "yes" >&6; }
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5667 # To ensure that runtime code for CET is compiled in, add in D version flags.
5668 if test x
$enable_cet = xyes
; then :
5670 CET_DFLAGS
="$CET_FLAGS -fversion=CET"
5671 DCFG_ENABLE_CET
=true
5676 DCFG_ENABLE_CET
=false
5682 # This should be inherited in the recursive make, but ensure it is defined.
5686 CC_FOR_BUILD
=${CC_FOR_BUILD:-gcc}
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5694 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5699 macro_version
='2.2.7a'
5700 macro_revision
='1.3134'
5714 ltmain
="$ac_aux_dir/ltmain.sh"
5716 # Backslashify metacharacters that are still active within
5717 # double-quoted strings.
5718 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5720 # Same as above, but do not quote variable references.
5721 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5723 # Sed substitution to delay expansion of an escaped shell variable in a
5724 # double_quote_subst'ed string.
5725 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5727 # Sed substitution to delay expansion of an escaped single quote.
5728 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5730 # Sed substitution to avoid accidental globbing in evaled expressions
5731 no_glob_subst
='s/\*/\\\*/g'
5733 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5734 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5735 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5738 $as_echo_n "checking how to print strings... " >&6; }
5739 # Test print first, because it will be a builtin if present.
5740 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5741 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5743 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5746 # Use this function as a fallback that always works.
5747 func_fallback_echo ()
5749 eval 'cat <<_LTECHO_EOF
5753 ECHO='func_fallback_echo
'
5756 # func_echo_all arg...
5757 # Invoke $ECHO with all args, space-separated.
5764 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5765 $as_echo "printf" >&6; } ;;
5766 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5767 $as_echo "print -r" >&6; } ;;
5768 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5769 $as_echo "cat" >&6; } ;;
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5786 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5787 if ${ac_cv_path_SED+:} false; then :
5788 $as_echo_n "(cached) " >&6
5790 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5791 for ac_i in 1 2 3 4 5 6 7; do
5792 ac_script="$ac_script$as_nl$ac_script"
5794 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5795 { ac_script=; unset ac_script;}
5796 if test -z "$SED"; then
5797 ac_path_SED_found=false
5798 # Loop through the user's path and
test for each of PROGNAME-LIST
5799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5803 test -z "$as_dir" && as_dir
=.
5804 for ac_prog
in sed gsed
; do
5805 for ac_exec_ext
in '' $ac_executable_extensions; do
5806 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5807 as_fn_executable_p
"$ac_path_SED" ||
continue
5808 # Check for GNU ac_path_SED and select it if it is found.
5809 # Check for GNU $ac_path_SED
5810 case `"$ac_path_SED" --version 2>&1` in
5812 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5815 $as_echo_n 0123456789 >"conftest.in"
5818 cat "conftest.in" "conftest.in" >"conftest.tmp"
5819 mv "conftest.tmp" "conftest.in"
5820 cp "conftest.in" "conftest.nl"
5821 $as_echo '' >> "conftest.nl"
5822 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5823 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5824 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5825 if test $ac_count -gt ${ac_path_SED_max-0}; then
5826 # Best one so far, save it but keep looking for a better one
5827 ac_cv_path_SED
="$ac_path_SED"
5828 ac_path_SED_max
=$ac_count
5830 # 10*(2^10) chars as input seems more than enough
5831 test $ac_count -gt 10 && break
5833 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5836 $ac_path_SED_found && break 3
5841 if test -z "$ac_cv_path_SED"; then
5842 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5850 $as_echo "$ac_cv_path_SED" >&6; }
5851 SED
="$ac_cv_path_SED"
5854 test -z "$SED" && SED
=sed
5855 Xsed
="$SED -e 1s/^X//"
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5868 $as_echo_n "checking for fgrep... " >&6; }
5869 if ${ac_cv_path_FGREP+:} false
; then :
5870 $as_echo_n "(cached) " >&6
5872 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5873 then ac_cv_path_FGREP
="$GREP -F"
5875 if test -z "$FGREP"; then
5876 ac_path_FGREP_found
=false
5877 # Loop through the user's path and test for each of PROGNAME-LIST
5878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5879 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5882 test -z "$as_dir" && as_dir
=.
5883 for ac_prog
in fgrep
; do
5884 for ac_exec_ext
in '' $ac_executable_extensions; do
5885 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5886 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5887 # Check for GNU ac_path_FGREP and select it if it is found.
5888 # Check for GNU $ac_path_FGREP
5889 case `"$ac_path_FGREP" --version 2>&1` in
5891 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5894 $as_echo_n 0123456789 >"conftest.in"
5897 cat "conftest.in" "conftest.in" >"conftest.tmp"
5898 mv "conftest.tmp" "conftest.in"
5899 cp "conftest.in" "conftest.nl"
5900 $as_echo 'FGREP' >> "conftest.nl"
5901 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5902 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5903 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5904 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5905 # Best one so far, save it but keep looking for a better one
5906 ac_cv_path_FGREP
="$ac_path_FGREP"
5907 ac_path_FGREP_max
=$ac_count
5909 # 10*(2^10) chars as input seems more than enough
5910 test $ac_count -gt 10 && break
5912 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5915 $ac_path_FGREP_found && break 3
5920 if test -z "$ac_cv_path_FGREP"; then
5921 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5924 ac_cv_path_FGREP
=$FGREP
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5930 $as_echo "$ac_cv_path_FGREP" >&6; }
5931 FGREP
="$ac_cv_path_FGREP"
5934 test -z "$GREP" && GREP
=grep
5954 # Check whether --with-gnu-ld was given.
5955 if test "${with_gnu_ld+set}" = set; then :
5956 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5962 if test "$GCC" = yes; then
5963 # Check if gcc -print-prog-name=ld gives a path.
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5965 $as_echo_n "checking for ld used by $CC... " >&6; }
5968 # gcc leaves a trailing carriage return which upsets mingw
5969 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5971 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5974 # Accept absolute paths.
5976 re_direlt
='/[^/][^/]*/\.\./'
5977 # Canonicalize the pathname of ld
5978 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5979 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5980 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5982 test -z "$LD" && LD
="$ac_prog"
5985 # If it fails, then pretend we aren't using GCC.
5989 # If it is relative, then search for the first ld in PATH.
5993 elif test "$with_gnu_ld" = yes; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5995 $as_echo_n "checking for GNU ld... " >&6; }
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5998 $as_echo_n "checking for non-GNU ld... " >&6; }
6000 if ${lt_cv_path_LD+:} false
; then :
6001 $as_echo_n "(cached) " >&6
6003 if test -z "$LD"; then
6004 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6005 for ac_dir
in $PATH; do
6007 test -z "$ac_dir" && ac_dir
=.
6008 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6009 lt_cv_path_LD
="$ac_dir/$ac_prog"
6010 # Check to see if the program is GNU ld. I'd rather use --version,
6011 # but apparently some variants of GNU ld only accept -v.
6012 # Break only if it was the GNU/non-GNU ld that we prefer.
6013 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6014 *GNU
* |
*'with BFD'*)
6015 test "$with_gnu_ld" != no
&& break
6018 test "$with_gnu_ld" != yes && break
6025 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6030 if test -n "$LD"; then
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6032 $as_echo "$LD" >&6; }
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035 $as_echo "no" >&6; }
6037 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6039 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6040 if ${lt_cv_prog_gnu_ld+:} false
; then :
6041 $as_echo_n "(cached) " >&6
6043 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6044 case `$LD -v 2>&1 </dev/null` in
6045 *GNU
* |
*'with BFD'*)
6046 lt_cv_prog_gnu_ld
=yes
6049 lt_cv_prog_gnu_ld
=no
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6054 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6055 with_gnu_ld
=$lt_cv_prog_gnu_ld
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6066 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6067 if ${lt_cv_path_NM+:} false
; then :
6068 $as_echo_n "(cached) " >&6
6070 if test -n "$NM"; then
6071 # Let the user override the nm to test.
6072 lt_nm_to_check
="$NM"
6074 lt_nm_to_check
="${ac_tool_prefix}nm"
6075 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6076 lt_nm_to_check
="$lt_nm_to_check nm"
6079 for lt_tmp_nm
in "$lt_nm_to_check"; do
6080 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6081 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6083 test -z "$ac_dir" && ac_dir
=.
6084 # Strip out any user-provided options from the nm to test twice,
6085 # the first time to test to see if nm (rather than its options) has
6086 # an explicit path, the second time to yield a file which can be
6088 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6089 case "$tmp_nm_path" in
6090 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
6091 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
6093 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6094 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
6095 # Check to see if the nm accepts a BSD-compat flag.
6096 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6097 # nm: unknown option "B" ignored
6098 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6099 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
6103 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6105 lt_cv_path_NM
="$tmp_nm -p"
6109 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6110 continue # so that we can try to find one that supports BSD flags
6119 : ${lt_cv_path_NM=no}
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6122 $as_echo "$lt_cv_path_NM" >&6; }
6123 if test "$lt_cv_path_NM" != "no"; then
6126 # Didn't find any BSD compatible name lister, look for dumpbin.
6127 if test -n "$DUMPBIN"; then :
6128 # Let the user override the test.
6130 if test -n "$ac_tool_prefix"; then
6131 for ac_prog
in dumpbin
"link -dump"
6133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6134 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 $as_echo_n "checking for $ac_word... " >&6; }
6137 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6138 $as_echo_n "(cached) " >&6
6140 if test -n "$DUMPBIN"; then
6141 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6147 test -z "$as_dir" && as_dir
=.
6148 for ac_exec_ext
in '' $ac_executable_extensions; do
6149 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6150 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 DUMPBIN
=$ac_cv_prog_DUMPBIN
6161 if test -n "$DUMPBIN"; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6163 $as_echo "$DUMPBIN" >&6; }
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166 $as_echo "no" >&6; }
6170 test -n "$DUMPBIN" && break
6173 if test -z "$DUMPBIN"; then
6174 ac_ct_DUMPBIN
=$DUMPBIN
6175 for ac_prog
in dumpbin
"link -dump"
6177 # Extract the first word of "$ac_prog", so it can be a program name with args.
6178 set dummy
$ac_prog; ac_word
=$2
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180 $as_echo_n "checking for $ac_word... " >&6; }
6181 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6182 $as_echo_n "(cached) " >&6
6184 if test -n "$ac_ct_DUMPBIN"; then
6185 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6191 test -z "$as_dir" && as_dir
=.
6192 for ac_exec_ext
in '' $ac_executable_extensions; do
6193 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6194 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6205 if test -n "$ac_ct_DUMPBIN"; then
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6207 $as_echo "$ac_ct_DUMPBIN" >&6; }
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210 $as_echo "no" >&6; }
6214 test -n "$ac_ct_DUMPBIN" && break
6217 if test "x$ac_ct_DUMPBIN" = x
; then
6220 case $cross_compiling:$ac_tool_warned in
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6224 ac_tool_warned
=yes ;;
6226 DUMPBIN
=$ac_ct_DUMPBIN
6230 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6232 DUMPBIN
="$DUMPBIN -symbols"
6240 if test "$DUMPBIN" != ":"; then
6244 test -z "$NM" && NM
=nm
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6252 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6253 if ${lt_cv_nm_interface+:} false
; then :
6254 $as_echo_n "(cached) " >&6
6256 lt_cv_nm_interface
="BSD nm"
6257 echo "int some_variable = 0;" > conftest.
$ac_ext
6258 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6259 (eval "$ac_compile" 2>conftest.err
)
6260 cat conftest.err
>&5
6261 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6262 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6263 cat conftest.err
>&5
6264 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6265 cat conftest.out
>&5
6266 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6267 lt_cv_nm_interface
="MS dumpbin"
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6272 $as_echo "$lt_cv_nm_interface" >&6; }
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6275 $as_echo_n "checking whether ln -s works... " >&6; }
6277 if test "$LN_S" = "ln -s"; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6279 $as_echo "yes" >&6; }
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6282 $as_echo "no, using $LN_S" >&6; }
6285 # find the maximum length of command line arguments
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6287 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6288 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6289 $as_echo_n "(cached) " >&6
6296 # On DJGPP, this test can blow up pretty badly due to problems in libc
6297 # (any single argument exceeding 2000 bytes causes a buffer overrun
6298 # during glob expansion). Even if it were fixed, the result of this
6299 # check would be larger than it should be.
6300 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6304 # Under GNU Hurd, this test is not required because there is
6305 # no limit to the length of command line arguments.
6306 # Libtool will interpret -1 as no limit whatsoever
6307 lt_cv_sys_max_cmd_len
=-1;
6310 cygwin
* | mingw
* | cegcc
*)
6311 # On Win9x/ME, this test blows up -- it succeeds, but takes
6312 # about 5 minutes as the teststring grows exponentially.
6313 # Worse, since 9x/ME are not pre-emptively multitasking,
6314 # you end up with a "frozen" computer, even though with patience
6315 # the test eventually succeeds (with a max line length of 256k).
6316 # Instead, let's just punt: use the minimum linelength reported by
6317 # all of the supported platforms: 8192 (on NT/2K/XP).
6318 lt_cv_sys_max_cmd_len
=8192;
6322 # On MiNT this can take a long time and run out of memory.
6323 lt_cv_sys_max_cmd_len
=8192;
6327 # On AmigaOS with pdksh, this test takes hours, literally.
6328 # So we just punt and use a minimum line length of 8192.
6329 lt_cv_sys_max_cmd_len
=8192;
6332 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6333 # This has been around since 386BSD, at least. Likely further.
6334 if test -x /sbin
/sysctl
; then
6335 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6336 elif test -x /usr
/sbin
/sysctl
; then
6337 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6339 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6341 # And add a safety zone
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`
6347 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6348 lt_cv_sys_max_cmd_len
=196608
6352 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6353 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6354 # nice to cause kernel panics so lets avoid the loop below.
6355 # First set a reasonable default.
6356 lt_cv_sys_max_cmd_len
=16384
6358 if test -x /sbin
/sysconfig
; then
6359 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6360 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6365 lt_cv_sys_max_cmd_len
=102400
6367 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6368 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6369 if test -n "$kargmax"; then
6370 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6372 lt_cv_sys_max_cmd_len
=32768
6376 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6377 if test -n "$lt_cv_sys_max_cmd_len"; then
6378 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6379 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6381 # Make teststring a little bigger before we do anything with it.
6382 # a 1K string should be a reasonable start.
6383 for i
in 1 2 3 4 5 6 7 8 ; do
6384 teststring
=$teststring$teststring
6386 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6387 # If test is not a shell built-in, we'll probably end up computing a
6388 # maximum length that is only half of the actual maximum length, but
6390 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6391 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6392 test $i != 17 # 1/2 MB should be enough
6395 teststring
=$teststring$teststring
6397 # Only check the string length outside the loop.
6398 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6400 # Add a significant safety factor because C++ compilers can tack on
6401 # massive amounts of additional arguments before passing them to the
6402 # linker. It appears as though 1/2 is a usable value.
6403 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6410 if test -n $lt_cv_sys_max_cmd_len ; then
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6412 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6415 $as_echo "none" >&6; }
6417 max_cmd_len
=$lt_cv_sys_max_cmd_len
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6429 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6430 # Try some XSI features
6433 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6435 && eval 'test $(( 1 + 1 )) -eq 2 \
6436 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6439 $as_echo "$xsi_shell" >&6; }
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6443 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6445 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6447 && lt_shell_append=yes
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6449 $as_echo "$lt_shell_append" >&6; }
6452 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6462 # test EBCDIC or ASCII
6463 case `echo X|tr X '\101'` in
6464 A) # ASCII based system
6465 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6466 lt_SP2NL='tr \040 \012'
6467 lt_NL2SP='tr \015\012 \040\040'
6469 *) # EBCDIC based system
6470 lt_SP2NL='tr \100 \n'
6471 lt_NL2SP='tr \r\n \100\100'
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6484 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6485 if ${lt_cv_ld_reload_flag+:} false; then :
6486 $as_echo_n "(cached
) " >&6
6488 lt_cv_ld_reload_flag='-r'
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6491 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6492 reload_flag=$lt_cv_ld_reload_flag
6493 case $reload_flag in
6495 *) reload_flag=" $reload_flag" ;;
6497 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6500 if test "$GCC" = yes; then
6501 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6503 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6516 if test -n "$ac_tool_prefix"; then
6517 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6518 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6520 $as_echo_n "checking
for $ac_word...
" >&6; }
6521 if ${ac_cv_prog_OBJDUMP+:} false; then :
6522 $as_echo_n "(cached
) " >&6
6524 if test -n "$OBJDUMP"; then
6525 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6534 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6535 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6544 OBJDUMP=$ac_cv_prog_OBJDUMP
6545 if test -n "$OBJDUMP"; then
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6547 $as_echo "$OBJDUMP" >&6; }
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6550 $as_echo "no
" >&6; }
6555 if test -z "$ac_cv_prog_OBJDUMP"; then
6556 ac_ct_OBJDUMP=$OBJDUMP
6557 # Extract the first word of "objdump
", so it can be a program name with args.
6558 set dummy objdump; ac_word=$2
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6560 $as_echo_n "checking
for $ac_word...
" >&6; }
6561 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6562 $as_echo_n "(cached
) " >&6
6564 if test -n "$ac_ct_OBJDUMP"; then
6565 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 test -z "$as_dir" && as_dir=.
6572 for ac_exec_ext in '' $ac_executable_extensions; do
6573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6574 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6575 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6584 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6585 if test -n "$ac_ct_OBJDUMP"; then
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6587 $as_echo "$ac_ct_OBJDUMP" >&6; }
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6590 $as_echo "no
" >&6; }
6593 if test "x
$ac_ct_OBJDUMP" = x; then
6596 case $cross_compiling:$ac_tool_warned in
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6599 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6600 ac_tool_warned=yes ;;
6602 OBJDUMP=$ac_ct_OBJDUMP
6605 OBJDUMP="$ac_cv_prog_OBJDUMP"
6608 test -z "$OBJDUMP" && OBJDUMP=objdump
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6619 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6620 if ${lt_cv_deplibs_check_method+:} false; then :
6621 $as_echo_n "(cached
) " >&6
6623 lt_cv_file_magic_cmd='$MAGIC_CMD'
6624 lt_cv_file_magic_test_file=
6625 lt_cv_deplibs_check_method='unknown'
6626 # Need to set the preceding variable on all platforms that support
6627 # interlibrary dependencies.
6628 # 'none' -- dependencies not supported.
6629 # `unknown' -- same as none, but documents that we really don't know.
6630 # 'pass_all' -- all dependencies passed with no checks.
6631 # 'test_compile' -- check by making test program.
6632 # 'file_magic [[regex]]' -- check by looking for files in library path
6633 # which responds to the $file_magic_cmd with a given extended regex.
6634 # If you have `file' or equivalent on your system and you're not sure
6635 # whether `pass_all' will *always* work, you probably want this one.
6639 lt_cv_deplibs_check_method=pass_all
6643 lt_cv_deplibs_check_method=pass_all
6647 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6648 lt_cv_file_magic_cmd='/usr/bin/file -L'
6649 lt_cv_file_magic_test_file=/shlib/libc.so
6653 # func_win32_libid is a shell function defined in ltmain.sh
6654 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6655 lt_cv_file_magic_cmd='func_win32_libid'
6659 # Base MSYS/MinGW do not provide the 'file' command needed by
6660 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6661 # unless we find 'file', for example because we are cross-compiling.
6662 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6663 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6664 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6665 lt_cv_file_magic_cmd='func_win32_libid'
6667 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6668 lt_cv_file_magic_cmd='$OBJDUMP -f'
6673 # use the weaker test based on 'objdump'. See mingw*.
6674 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6675 lt_cv_file_magic_cmd='$OBJDUMP -f'
6678 darwin* | rhapsody*)
6679 lt_cv_deplibs_check_method=pass_all
6682 freebsd* | dragonfly*)
6683 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6686 # Not sure whether the presence of OpenBSD here was a mistake.
6687 # Let's accept both of them until this is cleared up.
6688 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6689 lt_cv_file_magic_cmd=/usr/bin/file
6690 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6694 lt_cv_deplibs_check_method=pass_all
6699 lt_cv_deplibs_check_method=pass_all
6703 lt_cv_deplibs_check_method=pass_all
6706 hpux10.20* | hpux11*)
6707 lt_cv_file_magic_cmd=/usr/bin/file
6710 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6711 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6714 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]'
6715 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6718 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6719 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6725 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6729 irix5* | irix6* | nonstopux*)
6731 *-32|*"-32 ") libmagic=32-bit;;
6732 *-n32|*"-n32 ") libmagic=N32;;
6733 *-64|*"-64 ") libmagic=64-bit;;
6734 *) libmagic=never-match;;
6736 lt_cv_deplibs_check_method=pass_all
6739 # This must be Linux ELF.
6740 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6741 lt_cv_deplibs_check_method=pass_all
6745 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6746 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6753 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6754 lt_cv_file_magic_cmd=/usr/bin/file
6755 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6759 lt_cv_deplibs_check_method=pass_all
6763 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6764 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6766 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6770 osf3* | osf4* | osf5*)
6771 lt_cv_deplibs_check_method=pass_all
6775 lt_cv_deplibs_check_method=pass_all
6779 lt_cv_deplibs_check_method=pass_all
6782 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6783 lt_cv_deplibs_check_method=pass_all
6787 case $host_vendor in
6789 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]'
6790 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6793 lt_cv_deplibs_check_method=pass_all
6796 lt_cv_file_magic_cmd='/bin/file'
6797 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6800 lt_cv_file_magic_cmd='/bin/file'
6801 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6802 lt_cv_file_magic_test_file=/lib/libc.so
6805 lt_cv_deplibs_check_method=pass_all
6808 lt_cv_deplibs_check_method=pass_all
6814 lt_cv_deplibs_check_method=pass_all
6817 # Assume VxWorks cross toolchains are built on Linux, possibly
6818 # as canadian for Windows hosts.
6819 lt_cv_deplibs_check_method=pass_all
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6825 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6826 file_magic_cmd=$lt_cv_file_magic_cmd
6827 deplibs_check_method=$lt_cv_deplibs_check_method
6828 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6842 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
6843 for plugin in $plugin_names; do
6844 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6845 if test x$plugin_so = x$plugin; then
6846 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6848 if test x$plugin_so != x$plugin; then
6849 plugin_option="--plugin $plugin_so"
6854 if test -n "$ac_tool_prefix"; then
6855 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}ar; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6858 $as_echo_n "checking
for $ac_word...
" >&6; }
6859 if ${ac_cv_prog_AR+:} false; then :
6860 $as_echo_n "(cached
) " >&6
6862 if test -n "$AR"; then
6863 ac_cv_prog_AR="$AR" # Let the user override the test.
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872 ac_cv_prog_AR="${ac_tool_prefix}ar"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6883 if test -n "$AR"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6885 $as_echo "$AR" >&6; }
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6888 $as_echo "no
" >&6; }
6893 if test -z "$ac_cv_prog_AR"; then
6895 # Extract the first word of "ar", so it can be a program name with args.
6896 set dummy ar; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6898 $as_echo_n "checking
for $ac_word...
" >&6; }
6899 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6900 $as_echo_n "(cached
) " >&6
6902 if test -n "$ac_ct_AR"; then
6903 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6912 ac_cv_prog_ac_ct_AR="ar"
6913 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6922 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6923 if test -n "$ac_ct_AR"; then
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6925 $as_echo "$ac_ct_AR" >&6; }
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6928 $as_echo "no
" >&6; }
6931 if test "x
$ac_ct_AR" = x; then
6934 case $cross_compiling:$ac_tool_warned in
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6937 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6938 ac_tool_warned=yes ;;
6946 test -z "$AR" && AR=ar
6947 if test -n "$plugin_option"; then
6948 if $AR --help 2>&1 | grep -q "\
--plugin"; then
6950 $AR $plugin_option rc conftest.a conftest.c
6951 if test "$?
" != 0; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
6953 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
6955 AR="$AR $plugin_option"
6960 test -z "$AR_FLAGS" && AR_FLAGS=cru
6972 if test -n "$ac_tool_prefix"; then
6973 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6974 set dummy ${ac_tool_prefix}strip; ac_word=$2
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6976 $as_echo_n "checking
for $ac_word...
" >&6; }
6977 if ${ac_cv_prog_STRIP+:} false; then :
6978 $as_echo_n "(cached
) " >&6
6980 if test -n "$STRIP"; then
6981 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6991 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7000 STRIP=$ac_cv_prog_STRIP
7001 if test -n "$STRIP"; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
7003 $as_echo "$STRIP" >&6; }
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7006 $as_echo "no
" >&6; }
7011 if test -z "$ac_cv_prog_STRIP"; then
7013 # Extract the first word of "strip
", so it can be a program name with args.
7014 set dummy strip; ac_word=$2
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7016 $as_echo_n "checking
for $ac_word...
" >&6; }
7017 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7018 $as_echo_n "(cached
) " >&6
7020 if test -n "$ac_ct_STRIP"; then
7021 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7030 ac_cv_prog_ac_ct_STRIP="strip
"
7031 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7040 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7041 if test -n "$ac_ct_STRIP"; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
7043 $as_echo "$ac_ct_STRIP" >&6; }
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7046 $as_echo "no
" >&6; }
7049 if test "x
$ac_ct_STRIP" = x; then
7052 case $cross_compiling:$ac_tool_warned in
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7055 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7056 ac_tool_warned=yes ;;
7061 STRIP="$ac_cv_prog_STRIP"
7064 test -z "$STRIP" && STRIP=:
7071 if test -n "$ac_tool_prefix"; then
7072 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
7073 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7075 $as_echo_n "checking
for $ac_word...
" >&6; }
7076 if ${ac_cv_prog_RANLIB+:} false; then :
7077 $as_echo_n "(cached
) " >&6
7079 if test -n "$RANLIB"; then
7080 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7089 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
7090 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7099 RANLIB=$ac_cv_prog_RANLIB
7100 if test -n "$RANLIB"; then
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
7102 $as_echo "$RANLIB" >&6; }
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7105 $as_echo "no
" >&6; }
7110 if test -z "$ac_cv_prog_RANLIB"; then
7111 ac_ct_RANLIB=$RANLIB
7112 # Extract the first word of "ranlib
", so it can be a program name with args.
7113 set dummy ranlib; ac_word=$2
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7115 $as_echo_n "checking
for $ac_word...
" >&6; }
7116 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7117 $as_echo_n "(cached
) " >&6
7119 if test -n "$ac_ct_RANLIB"; then
7120 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129 ac_cv_prog_ac_ct_RANLIB="ranlib
"
7130 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7139 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7140 if test -n "$ac_ct_RANLIB"; then
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
7142 $as_echo "$ac_ct_RANLIB" >&6; }
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7145 $as_echo "no
" >&6; }
7148 if test "x
$ac_ct_RANLIB" = x; then
7151 case $cross_compiling:$ac_tool_warned in
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7154 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7155 ac_tool_warned=yes ;;
7157 RANLIB=$ac_ct_RANLIB
7160 RANLIB="$ac_cv_prog_RANLIB"
7163 test -z "$RANLIB" && RANLIB=:
7164 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7165 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
7166 RANLIB="$RANLIB $plugin_option"
7175 # Determine commands to create old-style static archives.
7176 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7177 old_postinstall_cmds='chmod 644 $oldlib'
7178 old_postuninstall_cmds=
7180 if test -n "$RANLIB"; then
7183 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
7186 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
7189 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
7194 lock_old_archive_extraction=yes ;;
7196 lock_old_archive_extraction=no ;;
7237 # If no C compiler was specified, use CC.
7240 # If no C compiler flags were specified, use CFLAGS.
7241 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7243 # Allow CC to be a program name with arguments.
7247 # Check for command to grab the raw symbol name followed by C symbol from nm.
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7249 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7250 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7251 $as_echo_n "(cached
) " >&6
7254 # These are sane defaults that work on at least a few old systems.
7255 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7257 # Character class describing NM global symbol codes.
7258 symcode='[BCDEGRST]'
7260 # Regexp to match symbols that can be accessed directly from C.
7261 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7263 # Define system-specific variables.
7268 cygwin* | mingw* | pw32* | cegcc*)
7269 symcode='[ABCDGISTW]'
7272 if test "$host_cpu" = ia64; then
7273 symcode='[ABCDEGRST]'
7277 symcode='[BCDEGRST]'
7280 symcode='[BCDEGQRST]'
7291 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7299 # If we're using GNU nm, then use its standard symbol codes.
7300 case `$NM -V 2>&1` in
7301 *GNU* | *'with BFD'*)
7302 symcode='[ABCDGIRSTW]' ;;
7305 # Transform an extracted symbol line into a proper C declaration.
7306 # Some systems (esp. on ia64) link data and code symbols differently,
7307 # so use this general approach.
7308 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7310 # Transform an extracted symbol line into symbol name and symbol address
7311 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7312 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'"
7314 # Handle CRLF in mingw tool chain
7318 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7322 # Try without a prefix underscore, then with it.
7323 for ac_symprfx in "" "_
"; do
7325 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7326 symxfrm="\\1 $ac_symprfx\\2 \\2"
7328 # Write the raw and C identifiers.
7329 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7330 # Fake it for dumpbin and say T for any non-static function
7331 # and D for any global variable.
7332 # Also find C++ and __fastcall symbols from MSVC++,
7333 # which start with @ or ?.
7334 lt_cv_sys_global_symbol_pipe="$AWK '"\
7335 " {last_section=section; section=\$ 3};"\
7336 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7337 " \$ 0!~/External *\|/{next};"\
7338 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7339 " {if(hide[section]) next};"\
7340 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7341 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7342 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7343 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7344 " ' prfx
=^
$ac_symprfx"
7346 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7349 # Check to see that the pipe works correctly.
7353 cat > conftest.$ac_ext <<_LT_EOF
7358 void nm_test_func(void);
7359 void nm_test_func(void){}
7363 int main(){nm_test_var='a';nm_test_func();return(0);}
7366 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7367 (eval $ac_compile) 2>&5
7369 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7370 test $ac_status = 0; }; then
7371 # Now try to grab the symbols.
7373 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7374 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7376 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7377 test $ac_status = 0; } && test -s "$nlist"; then
7378 # Try sorting and uniquifying the output.
7379 if sort "$nlist" | uniq > "$nlist"T; then
7380 mv -f "$nlist"T "$nlist"
7385 # Make sure that we snagged all the symbols we need.
7386 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7387 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7388 cat <<_LT_EOF > conftest.$ac_ext
7394 # Now generate the symbol file.
7395 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7397 cat <<_LT_EOF >> conftest.$ac_ext
7399 /* The mapping between symbol names and symbols. */
7404 lt__PROGRAM__LTX_preloaded_symbols[] =
7406 { "@PROGRAM@
", (void *) 0 },
7408 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7409 cat <<\_LT_EOF >> conftest.$ac_ext
7413 /* This works around a problem in FreeBSD linker */
7414 #ifdef FREEBSD_WORKAROUND
7415 static const void *lt_preloaded_setup() {
7416 return lt__PROGRAM__LTX_preloaded_symbols;
7424 # Now try linking the two files.
7425 mv conftest.$ac_objext conftstm.$ac_objext
7426 lt_save_LIBS="$LIBS"
7427 lt_save_CFLAGS="$CFLAGS"
7428 LIBS="conftstm.
$ac_objext"
7429 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7430 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7431 (eval $ac_link) 2>&5
7433 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7434 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7437 LIBS="$lt_save_LIBS"
7438 CFLAGS="$lt_save_CFLAGS"
7440 echo "cannot
find nm_test_func
in $nlist" >&5
7443 echo "cannot
find nm_test_var
in $nlist" >&5
7446 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7449 echo "$progname: failed program was
:" >&5
7450 cat conftest.$ac_ext >&5
7452 rm -rf conftest* conftst*
7454 # Do not use the global_symbol_pipe unless it works.
7455 if test "$pipe_works" = yes; then
7458 lt_cv_sys_global_symbol_pipe=
7464 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7465 lt_cv_sys_global_symbol_to_cdecl=
7467 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7469 $as_echo "failed
" >&6; }
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7472 $as_echo "ok
" >&6; }
7496 # Check whether --enable-libtool-lock was given.
7497 if test "${enable_libtool_lock+set}" = set; then :
7498 enableval=$enable_libtool_lock;
7501 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7503 # Some flags need to be propagated to the compiler or linker for good
7507 # Find out which ABI we are using.
7508 echo 'int i;' > conftest.$ac_ext
7509 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7510 (eval $ac_compile) 2>&5
7512 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7513 test $ac_status = 0; }; then
7514 case `/usr/bin/file conftest.$ac_objext` in
7526 # Find out which ABI we are using.
7527 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7528 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7529 (eval $ac_compile) 2>&5
7531 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7532 test $ac_status = 0; }; then
7533 if test "$lt_cv_prog_gnu_ld" = yes; then
7534 case `/usr/bin/file conftest.$ac_objext` in
7536 LD="${LD-ld} -melf32bsmip"
7539 LD="${LD-ld} -melf32bmipn32"
7542 LD="${LD-ld} -melf64bmip"
7546 case `/usr/bin/file conftest.$ac_objext` in
7562 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7563 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7564 # Find out which ABI we are using.
7565 echo 'int i;' > conftest.$ac_ext
7566 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7567 (eval $ac_compile) 2>&5
7569 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7570 test $ac_status = 0; }; then
7571 case `/usr/bin/file conftest.o` in
7574 x86_64-*kfreebsd*-gnu)
7575 LD="${LD-ld} -m elf_i386_fbsd
"
7578 case `/usr/bin/file conftest.o` in
7580 LD="${LD-ld} -m elf32_x86_64
"
7583 LD="${LD-ld} -m elf_i386
"
7587 powerpc64le-*linux*)
7588 LD="${LD-ld} -m elf32lppclinux
"
7591 LD="${LD-ld} -m elf32ppclinux
"
7594 LD="${LD-ld} -m elf_s390
"
7597 LD="${LD-ld} -m elf32_sparc
"
7603 x86_64-*kfreebsd*-gnu)
7604 LD="${LD-ld} -m elf_x86_64_fbsd
"
7607 LD="${LD-ld} -m elf_x86_64
"
7610 LD="${LD-ld} -m elf64lppc
"
7613 LD="${LD-ld} -m elf64ppc
"
7615 s390*-*linux*|s390*-*tpf*)
7616 LD="${LD-ld} -m elf64_s390
"
7619 LD="${LD-ld} -m elf64_sparc
"
7629 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7630 SAVE_CFLAGS="$CFLAGS"
7631 CFLAGS="$CFLAGS -belf"
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7633 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7634 if ${lt_cv_cc_needs_belf+:} false; then :
7635 $as_echo_n "(cached
) " >&6
7638 ac_cpp='$CPP $CPPFLAGS'
7639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7654 if ac_fn_c_try_link "$LINENO"; then :
7655 lt_cv_cc_needs_belf=yes
7657 lt_cv_cc_needs_belf=no
7659 rm -f core conftest.err conftest.$ac_objext \
7660 conftest$ac_exeext conftest.$ac_ext
7662 ac_cpp='$CPP $CPPFLAGS'
7663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7669 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7670 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7671 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7672 CFLAGS="$SAVE_CFLAGS"
7676 # Find out which ABI we are using.
7677 echo 'int i;' > conftest.$ac_ext
7678 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7679 (eval $ac_compile) 2>&5
7681 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7682 test $ac_status = 0; }; then
7683 case `/usr/bin/file conftest.o` in
7685 case $lt_cv_prog_gnu_ld in
7686 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7688 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7700 need_locks="$enable_libtool_lock"
7704 rhapsody* | darwin*)
7705 if test -n "$ac_tool_prefix"; then
7706 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7707 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7709 $as_echo_n "checking
for $ac_word...
" >&6; }
7710 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7711 $as_echo_n "(cached
) " >&6
7713 if test -n "$DSYMUTIL"; then
7714 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7723 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7724 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7733 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7734 if test -n "$DSYMUTIL"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7736 $as_echo "$DSYMUTIL" >&6; }
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7739 $as_echo "no
" >&6; }
7744 if test -z "$ac_cv_prog_DSYMUTIL"; then
7745 ac_ct_DSYMUTIL=$DSYMUTIL
7746 # Extract the first word of "dsymutil
", so it can be a program name with args.
7747 set dummy dsymutil; ac_word=$2
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7749 $as_echo_n "checking
for $ac_word...
" >&6; }
7750 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7751 $as_echo_n "(cached
) " >&6
7753 if test -n "$ac_ct_DSYMUTIL"; then
7754 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7763 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7764 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7773 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7774 if test -n "$ac_ct_DSYMUTIL"; then
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7776 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7779 $as_echo "no
" >&6; }
7782 if test "x
$ac_ct_DSYMUTIL" = x; then
7785 case $cross_compiling:$ac_tool_warned in
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7788 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7789 ac_tool_warned=yes ;;
7791 DSYMUTIL=$ac_ct_DSYMUTIL
7794 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7797 if test -n "$ac_tool_prefix"; then
7798 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7799 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7801 $as_echo_n "checking
for $ac_word...
" >&6; }
7802 if ${ac_cv_prog_NMEDIT+:} false; then :
7803 $as_echo_n "(cached
) " >&6
7805 if test -n "$NMEDIT"; then
7806 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 test -z "$as_dir" && as_dir=.
7813 for ac_exec_ext in '' $ac_executable_extensions; do
7814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7815 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7816 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7825 NMEDIT=$ac_cv_prog_NMEDIT
7826 if test -n "$NMEDIT"; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7828 $as_echo "$NMEDIT" >&6; }
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7831 $as_echo "no
" >&6; }
7836 if test -z "$ac_cv_prog_NMEDIT"; then
7837 ac_ct_NMEDIT=$NMEDIT
7838 # Extract the first word of "nmedit
", so it can be a program name with args.
7839 set dummy nmedit; ac_word=$2
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7841 $as_echo_n "checking
for $ac_word...
" >&6; }
7842 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7843 $as_echo_n "(cached
) " >&6
7845 if test -n "$ac_ct_NMEDIT"; then
7846 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 test -z "$as_dir" && as_dir=.
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7855 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7856 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7865 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7866 if test -n "$ac_ct_NMEDIT"; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7868 $as_echo "$ac_ct_NMEDIT" >&6; }
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7871 $as_echo "no
" >&6; }
7874 if test "x
$ac_ct_NMEDIT" = x; then
7877 case $cross_compiling:$ac_tool_warned in
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7880 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7881 ac_tool_warned=yes ;;
7883 NMEDIT=$ac_ct_NMEDIT
7886 NMEDIT="$ac_cv_prog_NMEDIT"
7889 if test -n "$ac_tool_prefix"; then
7890 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7891 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7893 $as_echo_n "checking
for $ac_word...
" >&6; }
7894 if ${ac_cv_prog_LIPO+:} false; then :
7895 $as_echo_n "(cached
) " >&6
7897 if test -n "$LIPO"; then
7898 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 test -z "$as_dir" && as_dir=.
7905 for ac_exec_ext in '' $ac_executable_extensions; do
7906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7907 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7908 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7917 LIPO=$ac_cv_prog_LIPO
7918 if test -n "$LIPO"; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7920 $as_echo "$LIPO" >&6; }
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7923 $as_echo "no
" >&6; }
7928 if test -z "$ac_cv_prog_LIPO"; then
7930 # Extract the first word of "lipo
", so it can be a program name with args.
7931 set dummy lipo; ac_word=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7933 $as_echo_n "checking
for $ac_word...
" >&6; }
7934 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7935 $as_echo_n "(cached
) " >&6
7937 if test -n "$ac_ct_LIPO"; then
7938 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7947 ac_cv_prog_ac_ct_LIPO="lipo
"
7948 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7957 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7958 if test -n "$ac_ct_LIPO"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7960 $as_echo "$ac_ct_LIPO" >&6; }
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7963 $as_echo "no
" >&6; }
7966 if test "x
$ac_ct_LIPO" = x; then
7969 case $cross_compiling:$ac_tool_warned in
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7972 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7973 ac_tool_warned=yes ;;
7978 LIPO="$ac_cv_prog_LIPO"
7981 if test -n "$ac_tool_prefix"; then
7982 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7983 set dummy ${ac_tool_prefix}otool; ac_word=$2
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7985 $as_echo_n "checking
for $ac_word...
" >&6; }
7986 if ${ac_cv_prog_OTOOL+:} false; then :
7987 $as_echo_n "(cached
) " >&6
7989 if test -n "$OTOOL"; then
7990 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7999 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
8000 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8009 OTOOL=$ac_cv_prog_OTOOL
8010 if test -n "$OTOOL"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
8012 $as_echo "$OTOOL" >&6; }
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8015 $as_echo "no
" >&6; }
8020 if test -z "$ac_cv_prog_OTOOL"; then
8022 # Extract the first word of "otool
", so it can be a program name with args.
8023 set dummy otool; ac_word=$2
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8025 $as_echo_n "checking
for $ac_word...
" >&6; }
8026 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8027 $as_echo_n "(cached
) " >&6
8029 if test -n "$ac_ct_OTOOL"; then
8030 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 test -z "$as_dir" && as_dir=.
8037 for ac_exec_ext in '' $ac_executable_extensions; do
8038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8039 ac_cv_prog_ac_ct_OTOOL="otool
"
8040 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8049 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8050 if test -n "$ac_ct_OTOOL"; then
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
8052 $as_echo "$ac_ct_OTOOL" >&6; }
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8055 $as_echo "no
" >&6; }
8058 if test "x
$ac_ct_OTOOL" = x; then
8061 case $cross_compiling:$ac_tool_warned in
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8064 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8065 ac_tool_warned=yes ;;
8070 OTOOL="$ac_cv_prog_OTOOL"
8073 if test -n "$ac_tool_prefix"; then
8074 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
8075 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8077 $as_echo_n "checking
for $ac_word...
" >&6; }
8078 if ${ac_cv_prog_OTOOL64+:} false; then :
8079 $as_echo_n "(cached
) " >&6
8081 if test -n "$OTOOL64"; then
8082 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 test -z "$as_dir" && as_dir=.
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8091 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
8092 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8101 OTOOL64=$ac_cv_prog_OTOOL64
8102 if test -n "$OTOOL64"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
8104 $as_echo "$OTOOL64" >&6; }
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8107 $as_echo "no
" >&6; }
8112 if test -z "$ac_cv_prog_OTOOL64"; then
8113 ac_ct_OTOOL64=$OTOOL64
8114 # Extract the first word of "otool64
", so it can be a program name with args.
8115 set dummy otool64; ac_word=$2
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8117 $as_echo_n "checking
for $ac_word...
" >&6; }
8118 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8119 $as_echo_n "(cached
) " >&6
8121 if test -n "$ac_ct_OTOOL64"; then
8122 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128 test -z "$as_dir" && as_dir=.
8129 for ac_exec_ext in '' $ac_executable_extensions; do
8130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8131 ac_cv_prog_ac_ct_OTOOL64="otool64
"
8132 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8141 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8142 if test -n "$ac_ct_OTOOL64"; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
8144 $as_echo "$ac_ct_OTOOL64" >&6; }
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8147 $as_echo "no
" >&6; }
8150 if test "x
$ac_ct_OTOOL64" = x; then
8153 case $cross_compiling:$ac_tool_warned in
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8156 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8157 ac_tool_warned=yes ;;
8159 OTOOL64=$ac_ct_OTOOL64
8162 OTOOL64="$ac_cv_prog_OTOOL64"
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8192 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8193 if ${lt_cv_apple_cc_single_mod+:} false; then :
8194 $as_echo_n "(cached
) " >&6
8196 lt_cv_apple_cc_single_mod=no
8197 if test -z "${LT_MULTI_MODULE}"; then
8198 # By default we will add the -single_module flag. You can override
8199 # by either setting the environment variable LT_MULTI_MODULE
8200 # non-empty at configure time, or by adding -multi_module to the
8202 rm -rf libconftest.dylib*
8203 echo "int foo
(void
){return 1;}" > conftest.c
8204 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8205 -dynamiclib -Wl,-single_module conftest.c
" >&5
8206 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8207 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8209 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8210 lt_cv_apple_cc_single_mod=yes
8212 cat conftest.err >&5
8214 rm -rf libconftest.dylib*
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8219 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8221 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8222 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8223 $as_echo_n "(cached
) " >&6
8225 lt_cv_ld_exported_symbols_list=no
8226 save_LDFLAGS=$LDFLAGS
8227 echo "_main
" > conftest.sym
8228 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8240 if ac_fn_c_try_link "$LINENO"; then :
8241 lt_cv_ld_exported_symbols_list=yes
8243 lt_cv_ld_exported_symbols_list=no
8245 rm -f core conftest.err conftest.$ac_objext \
8246 conftest$ac_exeext conftest.$ac_ext
8247 LDFLAGS="$save_LDFLAGS"
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
8251 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
8253 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
8254 if ${lt_cv_ld_force_load+:} false; then :
8255 $as_echo_n "(cached
) " >&6
8257 lt_cv_ld_force_load=no
8258 cat > conftest.c << _LT_EOF
8259 int forced_loaded() { return 2;}
8261 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
8262 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8263 echo "$AR cru libconftest.a conftest.o
" >&5
8264 $AR cru libconftest.a conftest.o 2>&5
8265 cat > conftest.c << _LT_EOF
8266 int main() { return 0;}
8268 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
8269 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8271 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8272 lt_cv_ld_force_load=yes
8274 cat conftest.err >&5
8276 rm -f conftest.err libconftest.a conftest conftest.c
8277 rm -rf conftest.dSYM
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8281 $as_echo "$lt_cv_ld_force_load" >&6; }
8282 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8283 # build without first building modern cctools / linker.
8284 case $host_cpu-$host_os in
8285 *-rhapsody* | *-darwin1.[012])
8286 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8288 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8290 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8291 # deployment target is forced to an earlier version.
8292 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8293 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
8296 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8303 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8304 _lt_dar_single_mod='$single_module'
8306 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8307 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8309 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8311 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8312 _lt_dsymutil='~$DSYMUTIL $lib || :'
8319 for ac_header in dlfcn.h
8321 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8323 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8324 cat >>confdefs.h <<_ACEOF
8325 #define HAVE_DLFCN_H 1
8345 # Check whether --enable-shared was given.
8346 if test "${enable_shared+set}" = set; then :
8347 enableval=$enable_shared; p=${PACKAGE-default}
8349 yes) enable_shared=yes ;;
8350 no) enable_shared=no ;;
8353 # Look at the argument we got. We use all the common list separators.
8354 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8355 for pkg in $enableval; do
8357 if test "X
$pkg" = "X
$p"; then
8376 # Check whether --enable-static was given.
8377 if test "${enable_static+set}" = set; then :
8378 enableval=$enable_static; p=${PACKAGE-default}
8380 yes) enable_static=yes ;;
8381 no) enable_static=no ;;
8384 # Look at the argument we got. We use all the common list separators.
8385 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8386 for pkg in $enableval; do
8388 if test "X
$pkg" = "X
$p"; then
8408 # Check whether --with-pic was given.
8409 if test "${with_pic+set}" = set; then :
8410 withval=$with_pic; pic_mode="$withval"
8416 test -z "$pic_mode" && pic_mode=default
8424 # Check whether --enable-fast-install was given.
8425 if test "${enable_fast_install+set}" = set; then :
8426 enableval=$enable_fast_install; p=${PACKAGE-default}
8428 yes) enable_fast_install=yes ;;
8429 no) enable_fast_install=no ;;
8431 enable_fast_install=no
8432 # Look at the argument we got. We use all the common list separators.
8433 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8434 for pkg in $enableval; do
8436 if test "X
$pkg" = "X
$p"; then
8437 enable_fast_install=yes
8444 enable_fast_install=yes
8457 # This can be used to rebuild libtool when needed
8458 LIBTOOL_DEPS="$ltmain"
8460 # Always use our own libtool.
8461 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8488 test -z "$LN_S" && LN_S="ln -s"
8503 if test -n "${ZSH_VERSION+set}" ; then
8504 setopt NO_GLOB_SUBST
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8508 $as_echo_n "checking
for objdir...
" >&6; }
8509 if ${lt_cv_objdir+:} false; then :
8510 $as_echo_n "(cached
) " >&6
8512 rm -f .libs 2>/dev/null
8513 mkdir .libs 2>/dev/null
8514 if test -d .libs; then
8517 # MS-DOS does not allow filenames that begin with a dot.
8520 rmdir .libs 2>/dev/null
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8523 $as_echo "$lt_cv_objdir" >&6; }
8524 objdir=$lt_cv_objdir
8530 cat >>confdefs.h <<_ACEOF
8531 #define LT_OBJDIR "$lt_cv_objdir/"
8539 # AIX sometimes has problems with the GCC collect2 program. For some
8540 # reason, if we set the COLLECT_NAMES environment variable, the problems
8541 # vanish in a puff of smoke.
8542 if test "X
${COLLECT_NAMES+set}" != Xset; then
8544 export COLLECT_NAMES
8551 can_build_shared=yes
8553 # All known linkers require a `.a' archive for static linking (except MSVC,
8554 # which needs '.lib').
8557 with_gnu_ld="$lt_cv_prog_gnu_ld"
8560 old_CFLAGS="$CFLAGS"
8562 # Set sane defaults for various variables
8563 test -z "$CC" && CC=cc
8564 test -z "$LTCC" && LTCC=$CC
8565 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8566 test -z "$LD" && LD=ld
8567 test -z "$ac_objext" && ac_objext=o
8569 for cc_temp in $compiler""; do
8571 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8572 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8577 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8580 # Only perform the check for file, if the check method requires it
8581 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8582 case $deplibs_check_method in
8584 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8586 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8587 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8588 $as_echo_n "(cached
) " >&6
8592 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8595 lt_save_MAGIC_CMD="$MAGIC_CMD"
8596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8597 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8598 for ac_dir in $ac_dummy; do
8600 test -z "$ac_dir" && ac_dir=.
8601 if test -f $ac_dir/${ac_tool_prefix}file; then
8602 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8603 if test -n "$file_magic_test_file"; then
8604 case $deplibs_check_method in
8606 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8608 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8609 $EGREP "$file_magic_regex" > /dev/null; then
8614 *** Warning: the command libtool uses to detect shared libraries,
8615 *** $file_magic_cmd, produces output that libtool cannot recognize.
8616 *** The result is that libtool may fail to recognize shared libraries
8617 *** as such. This will affect the creation of libtool libraries that
8618 *** depend on shared libraries, but programs linked with such libtool
8619 *** libraries will work regardless of this problem. Nevertheless, you
8620 *** may want to report the problem to your system manager and/or to
8621 *** bug-libtool@gnu.org
8631 MAGIC_CMD="$lt_save_MAGIC_CMD"
8636 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8637 if test -n "$MAGIC_CMD"; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8639 $as_echo "$MAGIC_CMD" >&6; }
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8642 $as_echo "no
" >&6; }
8649 if test -z "$lt_cv_path_MAGIC_CMD"; then
8650 if test -n "$ac_tool_prefix"; then
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8652 $as_echo_n "checking
for file...
" >&6; }
8653 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8654 $as_echo_n "(cached
) " >&6
8658 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8661 lt_save_MAGIC_CMD="$MAGIC_CMD"
8662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8663 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8664 for ac_dir in $ac_dummy; do
8666 test -z "$ac_dir" && ac_dir=.
8667 if test -f $ac_dir/file; then
8668 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8669 if test -n "$file_magic_test_file"; then
8670 case $deplibs_check_method in
8672 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8675 $EGREP "$file_magic_regex" > /dev/null; then
8680 *** Warning: the command libtool uses to detect shared libraries,
8681 *** $file_magic_cmd, produces output that libtool cannot recognize.
8682 *** The result is that libtool may fail to recognize shared libraries
8683 *** as such. This will affect the creation of libtool libraries that
8684 *** depend on shared libraries, but programs linked with such libtool
8685 *** libraries will work regardless of this problem. Nevertheless, you
8686 *** may want to report the problem to your system manager and/or to
8687 *** bug-libtool@gnu.org
8697 MAGIC_CMD="$lt_save_MAGIC_CMD"
8702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8703 if test -n "$MAGIC_CMD"; then
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8705 $as_echo "$MAGIC_CMD" >&6; }
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8708 $as_echo "no
" >&6; }
8721 # Use C for the default configuration in the libtool script
8725 ac_cpp='$CPP $CPPFLAGS'
8726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8731 # Source file extension for C test sources.
8734 # Object file extension for compiled C test sources.
8738 # Code to be used in simple compile tests
8739 lt_simple_compile_test_code="int some_variable
= 0;"
8741 # Code to be used in simple link tests
8742 lt_simple_link_test_code='int main(){return(0);}'
8750 # If no C compiler was specified, use CC.
8753 # If no C compiler flags were specified, use CFLAGS.
8754 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8756 # Allow CC to be a program name with arguments.
8759 # Save the default compiler, since it gets overwritten when the other
8760 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8761 compiler_DEFAULT=$CC
8763 # save warnings/boilerplate of simple test code
8764 ac_outfile=conftest.$ac_objext
8765 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8766 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8767 _lt_compiler_boilerplate=`cat conftest.err`
8770 ac_outfile=conftest.$ac_objext
8771 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8772 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8773 _lt_linker_boilerplate=`cat conftest.err`
8778 ## There is no encapsulation within the following macros, do not change
8779 ## the running order or otherwise move them around unless you know exactly
8780 ## what you are doing...
8781 if test -n "$compiler"; then
8783 lt_prog_compiler_no_builtin_flag=
8785 if test "$GCC" = yes; then
8786 case $cc_basename in
8788 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8790 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
8794 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
8795 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8796 $as_echo_n "(cached
) " >&6
8798 lt_cv_prog_compiler_rtti_exceptions=no
8799 ac_outfile=conftest.$ac_objext
8800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8801 lt_compiler_flag="-fno-rtti -fno-exceptions"
8802 # Insert the option either (1) after the last *FLAGS variable, or
8803 # (2) before a word containing "conftest.
", or (3) at the end.
8804 # Note that $ac_compile itself does not contain backslashes and begins
8805 # with a dollar sign (not a hyphen), so the echo should work correctly.
8806 # The option is referenced via a variable to avoid confusing sed.
8807 lt_compile=`echo "$ac_compile" | $SED \
8808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8810 -e 's:$: $lt_compiler_flag:'`
8811 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8812 (eval "$lt_compile" 2>conftest.err)
8814 cat conftest.err >&5
8815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8816 if (exit $ac_status) && test -s "$ac_outfile"; then
8817 # The compiler can only warn and ignore the option if not recognized
8818 # So say no if there are warnings other than the usual output.
8819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8821 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8822 lt_cv_prog_compiler_rtti_exceptions=yes
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
8829 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8831 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8832 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8844 lt_prog_compiler_wl=
8845 lt_prog_compiler_pic=
8846 lt_prog_compiler_static=
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
8849 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
8851 if test "$GCC" = yes; then
8852 lt_prog_compiler_wl='-Wl,'
8853 lt_prog_compiler_static='-static'
8857 # All AIX code is PIC.
8858 if test "$host_cpu" = ia64; then
8859 # AIX 5 now supports IA64 processor
8860 lt_prog_compiler_static='-Bstatic'
8862 lt_prog_compiler_pic='-fPIC'
8868 # see comment about AmigaOS4 .so support
8869 lt_prog_compiler_pic='-fPIC'
8872 # FIXME: we need at least 68020 code to build shared libraries, but
8873 # adding the `-m68020' flag to GCC prevents building anything better,
8875 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8880 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8881 # PIC is the default for these OSes.
8884 mingw* | cygwin* | pw32* | os2* | cegcc*)
8885 # This hack is so that the source file can tell whether it is being
8886 # built for inclusion in a dll (and should export symbols for example).
8887 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8888 # (--disable-auto-import) libraries
8889 lt_prog_compiler_pic='-DDLL_EXPORT'
8892 darwin* | rhapsody*)
8893 # PIC is the default on this platform
8894 # Common symbols not allowed in MH_DYLIB files
8895 lt_prog_compiler_pic='-fno-common'
8899 # PIC is the default for Haiku.
8900 # The "-static" flag exists, but is broken.
8901 lt_prog_compiler_static=
8905 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8906 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8907 # sets the default TLS model and affects inlining.
8913 lt_prog_compiler_pic='-fPIC'
8919 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8920 # Instead, we relocate shared libraries at runtime.
8924 # Just because we use GCC doesn't mean we suddenly get shared libraries
8925 # on systems that don't support them.
8926 lt_prog_compiler_can_build_shared=no
8931 # QNX uses GNU C++, but need to define -shared option too, otherwise
8933 lt_prog_compiler_pic='-fPIC -shared'
8937 if test -d /usr/nec; then
8938 lt_prog_compiler_pic=-Kconform_pic
8943 lt_prog_compiler_pic='-fPIC'
8947 case $cc_basename in
8948 nvcc*) # Cuda Compiler Driver 2.2
8949 lt_prog_compiler_wl='-Xlinker '
8950 lt_prog_compiler_pic='-Xcompiler -fPIC'
8954 # PORTME Check for flag to pass linker flags through the system compiler.
8957 lt_prog_compiler_wl='-Wl,'
8958 if test "$host_cpu" = ia64; then
8959 # AIX 5 now supports IA64 processor
8960 lt_prog_compiler_static='-Bstatic'
8962 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8966 mingw* | cygwin* | pw32* | os2* | cegcc*)
8967 # This hack is so that the source file can tell whether it is being
8968 # built for inclusion in a dll (and should export symbols for example).
8969 lt_prog_compiler_pic='-DDLL_EXPORT'
8972 hpux9* | hpux10* | hpux11*)
8973 lt_prog_compiler_wl='-Wl,'
8974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8981 lt_prog_compiler_pic='+Z'
8984 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8985 lt_prog_compiler_static='${wl}-a ${wl}archive'
8988 irix5* | irix6* | nonstopux*)
8989 lt_prog_compiler_wl='-Wl,'
8990 # PIC (with -KPIC) is the default.
8991 lt_prog_compiler_static='-non_shared'
8994 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8995 case $cc_basename in
8996 # old Intel for x86_64 which still supported -KPIC.
8998 lt_prog_compiler_wl='-Wl,'
8999 lt_prog_compiler_pic='-KPIC'
9000 lt_prog_compiler_static='-static'
9002 # icc used to be incompatible with GCC.
9003 # ICC 10 doesn't accept -KPIC any more.
9005 lt_prog_compiler_wl='-Wl,'
9006 lt_prog_compiler_pic='-fPIC'
9007 lt_prog_compiler_static='-static'
9009 # Lahey Fortran 8.1.
9011 lt_prog_compiler_wl='-Wl,'
9012 lt_prog_compiler_pic='--shared'
9013 lt_prog_compiler_static='--static'
9015 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9016 # Portland Group compilers (*not* the Pentium gcc compiler,
9017 # which looks to be a dead project)
9018 lt_prog_compiler_wl='-Wl,'
9019 lt_prog_compiler_pic='-fpic'
9020 lt_prog_compiler_static='-Bstatic'
9023 lt_prog_compiler_wl='-Wl,'
9024 # All Alpha code is PIC.
9025 lt_prog_compiler_static='-non_shared'
9027 xl* | bgxl* | bgf* | mpixl*)
9028 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9029 lt_prog_compiler_wl='-Wl,'
9030 lt_prog_compiler_pic='-qpic'
9031 lt_prog_compiler_static='-qstaticlink'
9034 case `$CC -V 2>&1 | sed 5q` in
9035 *Sun\ F* | *Sun*Fortran*)
9036 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9037 lt_prog_compiler_pic='-KPIC'
9038 lt_prog_compiler_static='-Bstatic'
9039 lt_prog_compiler_wl=''
9043 lt_prog_compiler_pic='-KPIC'
9044 lt_prog_compiler_static='-Bstatic'
9045 lt_prog_compiler_wl='-Wl,'
9053 lt_prog_compiler_pic='-KPIC'
9054 lt_prog_compiler_static='-Bstatic'
9058 # QNX uses GNU C++, but need to define -shared option too, otherwise
9060 lt_prog_compiler_pic='-fPIC -shared'
9063 osf3* | osf4* | osf5*)
9064 lt_prog_compiler_wl='-Wl,'
9065 # All OSF/1 code is PIC.
9066 lt_prog_compiler_static='-non_shared'
9070 lt_prog_compiler_static='-non_shared'
9074 lt_prog_compiler_pic='-KPIC'
9075 lt_prog_compiler_static='-Bstatic'
9076 case $cc_basename in
9078 lt_prog_compiler_wl='-Qoption ld ';;
9080 lt_prog_compiler_wl='-Wl,';;
9085 lt_prog_compiler_wl='-Qoption ld '
9086 lt_prog_compiler_pic='-PIC'
9087 lt_prog_compiler_static='-Bstatic'
9090 sysv4 | sysv4.2uw2* | sysv4.3*)
9091 lt_prog_compiler_wl='-Wl,'
9092 lt_prog_compiler_pic='-KPIC'
9093 lt_prog_compiler_static='-Bstatic'
9097 if test -d /usr/nec ;then
9098 lt_prog_compiler_pic='-Kconform_pic'
9099 lt_prog_compiler_static='-Bstatic'
9103 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9104 lt_prog_compiler_wl='-Wl,'
9105 lt_prog_compiler_pic='-KPIC'
9106 lt_prog_compiler_static='-Bstatic'
9110 lt_prog_compiler_wl='-Wl,'
9111 lt_prog_compiler_can_build_shared=no
9115 lt_prog_compiler_pic='-pic'
9116 lt_prog_compiler_static='-Bstatic'
9120 lt_prog_compiler_can_build_shared=no
9126 # For platforms which do not support PIC, -DPIC is meaningless:
9128 lt_prog_compiler_pic=
9131 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
9135 $as_echo "$lt_prog_compiler_pic" >&6; }
9143 # Check to make sure the PIC flag actually works.
9145 if test -n "$lt_prog_compiler_pic"; then
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
9147 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
9148 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9149 $as_echo_n "(cached
) " >&6
9151 lt_cv_prog_compiler_pic_works=no
9152 ac_outfile=conftest.$ac_objext
9153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9154 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9155 # Insert the option either (1) after the last *FLAGS variable, or
9156 # (2) before a word containing "conftest.
", or (3) at the end.
9157 # Note that $ac_compile itself does not contain backslashes and begins
9158 # with a dollar sign (not a hyphen), so the echo should work correctly.
9159 # The option is referenced via a variable to avoid confusing sed.
9160 lt_compile=`echo "$ac_compile" | $SED \
9161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9163 -e 's:$: $lt_compiler_flag:'`
9164 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9165 (eval "$lt_compile" 2>conftest.err)
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9169 if (exit $ac_status) && test -s "$ac_outfile"; then
9170 # The compiler can only warn and ignore the option if not recognized
9171 # So say no if there are warnings other than the usual output.
9172 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9175 lt_cv_prog_compiler_pic_works=yes
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
9182 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9184 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9185 case $lt_prog_compiler_pic in
9187 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9190 lt_prog_compiler_pic=
9191 lt_prog_compiler_can_build_shared=no
9202 # Check to make sure the static flag actually works.
9204 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
9206 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
9207 if ${lt_cv_prog_compiler_static_works+:} false; then :
9208 $as_echo_n "(cached
) " >&6
9210 lt_cv_prog_compiler_static_works=no
9211 save_LDFLAGS="$LDFLAGS"
9212 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9213 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9214 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9215 # The linker can only warn and ignore the option if not recognized
9216 # So say no if there are warnings
9217 if test -s conftest.err; then
9218 # Append any errors to the config.log.
9219 cat conftest.err 1>&5
9220 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9222 if diff conftest.exp conftest.er2 >/dev/null; then
9223 lt_cv_prog_compiler_static_works=yes
9226 lt_cv_prog_compiler_static_works=yes
9230 LDFLAGS="$save_LDFLAGS"
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
9234 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9236 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9239 lt_prog_compiler_static=
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9249 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9250 if ${lt_cv_prog_compiler_c_o+:} false; then :
9251 $as_echo_n "(cached
) " >&6
9253 lt_cv_prog_compiler_c_o=no
9254 $RM -r conftest 2>/dev/null
9258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9260 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9261 # Insert the option either (1) after the last *FLAGS variable, or
9262 # (2) before a word containing "conftest.
", or (3) at the end.
9263 # Note that $ac_compile itself does not contain backslashes and begins
9264 # with a dollar sign (not a hyphen), so the echo should work correctly.
9265 lt_compile=`echo "$ac_compile" | $SED \
9266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9268 -e 's:$: $lt_compiler_flag:'`
9269 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9270 (eval "$lt_compile" 2>out/conftest.err)
9272 cat out/conftest.err >&5
9273 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9274 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9276 # The compiler can only warn and ignore the option if not recognized
9277 # So say no if there are warnings
9278 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9279 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9280 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9281 lt_cv_prog_compiler_c_o=yes
9286 # SGI C++ compiler will create directory out/ii_files/ for
9287 # template instantiation
9288 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9289 $RM out/* && rmdir out
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9296 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9304 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9305 if ${lt_cv_prog_compiler_c_o+:} false; then :
9306 $as_echo_n "(cached
) " >&6
9308 lt_cv_prog_compiler_c_o=no
9309 $RM -r conftest 2>/dev/null
9313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9315 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9316 # Insert the option either (1) after the last *FLAGS variable, or
9317 # (2) before a word containing "conftest.
", or (3) at the end.
9318 # Note that $ac_compile itself does not contain backslashes and begins
9319 # with a dollar sign (not a hyphen), so the echo should work correctly.
9320 lt_compile=`echo "$ac_compile" | $SED \
9321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9323 -e 's:$: $lt_compiler_flag:'`
9324 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9325 (eval "$lt_compile" 2>out/conftest.err)
9327 cat out/conftest.err >&5
9328 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9329 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9331 # The compiler can only warn and ignore the option if not recognized
9332 # So say no if there are warnings
9333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9334 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9335 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9336 lt_cv_prog_compiler_c_o=yes
9341 # SGI C++ compiler will create directory out/ii_files/ for
9342 # template instantiation
9343 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9344 $RM out/* && rmdir out
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9351 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9356 hard_links="nottested
"
9357 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9358 # do not overwrite the value of need_locks provided by the user
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9360 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9363 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9365 ln conftest.a conftest.b 2>&5 || hard_links=no
9366 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9368 $as_echo "$hard_links" >&6; }
9369 if test "$hard_links" = no; then
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9371 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9384 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9387 allow_undefined_flag=
9388 always_export_symbols=no
9390 archive_expsym_cmds=
9391 compiler_needs_object=no
9392 enable_shared_with_static_runtimes=no
9393 export_dynamic_flag_spec=
9394 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9395 hardcode_automatic=no
9397 hardcode_direct_absolute=no
9398 hardcode_libdir_flag_spec=
9399 hardcode_libdir_flag_spec_ld=
9400 hardcode_libdir_separator=
9402 hardcode_shlibpath_var=unsupported
9404 link_all_deplibs=unknown
9407 old_archive_from_new_cmds=
9408 old_archive_from_expsyms_cmds=
9409 thread_safe_flag_spec=
9410 whole_archive_flag_spec=
9411 # include_expsyms should be a list of space-separated symbols to be *always*
9412 # included in the symbol list
9414 # exclude_expsyms can be an extended regexp of symbols to exclude
9415 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9416 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9417 # as well as any symbol that contains `d'.
9418 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9419 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9420 # platforms (ab)use it in PIC code, but their linkers get confused if
9421 # the symbol is explicitly referenced. Since portable code cannot
9422 # rely on this symbol name, it's probably fine to never include it in
9423 # preloaded symbol tables.
9424 # Exclude shared library initialization/finalization symbols.
9425 extract_expsyms_cmds=
9428 cygwin* | mingw* | pw32* | cegcc*)
9429 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9430 # When not using gcc, we currently assume that we are using
9431 # Microsoft Visual C++.
9432 if test "$GCC" != yes; then
9437 # we just hope/assume this is gcc and not c89 (= MSVC++)
9447 # On some targets, GNU ld is compatible enough with the native linker
9448 # that we're better off using the native interface for both.
9449 lt_use_gnu_ld_interface=no
9450 if test "$with_gnu_ld" = yes; then
9453 # The AIX port of GNU ld has always aspired to compatibility
9454 # with the native linker. However, as the warning in the GNU ld
9455 # block says, versions before 2.19.5* couldn't really create working
9456 # shared libraries, regardless of the interface used.
9457 case `$LD -v 2>&1` in
9458 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9459 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9460 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9462 lt_use_gnu_ld_interface=yes
9467 lt_use_gnu_ld_interface=yes
9472 if test "$lt_use_gnu_ld_interface" = yes; then
9473 # If archive_cmds runs LD, not CC, wlarc should be empty
9476 # Set some defaults for GNU ld with shared library support. These
9477 # are reset later if shared libraries are not supported. Putting them
9478 # here allows them to be overridden if necessary.
9479 runpath_var=LD_RUN_PATH
9480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9481 export_dynamic_flag_spec='${wl}--export-dynamic'
9482 # ancient GNU ld didn't support --whole-archive et. al.
9483 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9484 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9486 whole_archive_flag_spec=
9488 supports_anon_versioning=no
9489 case `$LD -v 2>&1` in
9490 *GNU\ gold*) supports_anon_versioning=yes ;;
9491 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9492 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9493 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9494 *\ 2.11.*) ;; # other 2.11 versions
9495 *) supports_anon_versioning=yes ;;
9498 # See if GNU ld supports shared libraries.
9501 # On AIX/PPC, the GNU linker is very broken
9502 if test "$host_cpu" != ia64; then
9506 *** Warning: the GNU linker, at least up to release 2.19, is reported
9507 *** to be unable to reliably create shared libraries on AIX.
9508 *** Therefore, libtool is disabling shared libraries support. If you
9509 *** really care for shared libraries, you may want to install binutils
9510 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9511 *** You will then need to restart the configuration process.
9520 # see comment about AmigaOS4 .so support
9521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9522 archive_expsym_cmds=''
9525 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)'
9526 hardcode_libdir_flag_spec
='-L$libdir'
9527 hardcode_minus_L
=yes
9533 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9534 allow_undefined_flag
=unsupported
9535 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9536 # support --undefined. This deserves some investigation. FIXME
9537 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9543 cygwin
* | mingw
* | pw32
* | cegcc
*)
9544 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9545 # as there is no search path for DLLs.
9546 hardcode_libdir_flag_spec
='-L$libdir'
9547 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9548 allow_undefined_flag
=unsupported
9549 always_export_symbols
=no
9550 enable_shared_with_static_runtimes
=yes
9551 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9553 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9554 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9555 # If the export-symbols file already is a .def file (1st line
9556 # is EXPORTS), use it as is; otherwise, prepend...
9557 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9558 cp $export_symbols $output_objdir/$soname.def;
9560 echo EXPORTS > $output_objdir/$soname.def;
9561 cat $export_symbols >> $output_objdir/$soname.def;
9563 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9570 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9571 link_all_deplibs
=yes
9576 hardcode_shlibpath_var
=no
9577 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9578 export_dynamic_flag_spec
='${wl}-E'
9579 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9580 # Instead, shared libraries are loaded at an image base (0x10000000 by
9581 # default) and relocated if they conflict, which is a slow very memory
9582 # consuming and fragmenting process. To avoid this, we pick a random,
9583 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9584 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9585 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9586 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'
9589 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9591 if test "$host_os" = linux-dietlibc
; then
9592 case $cc_basename in
9593 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9596 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9597 && test "$tmp_diet" = no
9599 tmp_addflag
=' $pic_flag'
9600 tmp_sharedflag
='-shared'
9601 case $cc_basename,$host_cpu in
9602 pgcc
*) # Portland Group C compiler
9603 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'
9604 tmp_addflag
=' $pic_flag'
9606 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9607 # Portland Group f77 and f90 compilers
9608 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'
9609 tmp_addflag
=' $pic_flag -Mnomain' ;;
9610 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9611 tmp_addflag
=' -i_dynamic' ;;
9612 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9613 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9614 ifc
* | ifort
*) # Intel Fortran compiler
9615 tmp_addflag
=' -nofor_main' ;;
9616 lf95
*) # Lahey Fortran 8.1
9617 whole_archive_flag_spec
=
9618 tmp_sharedflag
='--shared' ;;
9619 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9620 tmp_sharedflag
='-qmkshrobj'
9622 nvcc
*) # Cuda Compiler Driver 2.2
9623 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'
9624 compiler_needs_object
=yes
9627 case `$CC -V 2>&1 | sed 5q` in
9628 *Sun\ C
*) # Sun C 5.9
9629 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'
9630 compiler_needs_object
=yes
9631 tmp_sharedflag
='-G' ;;
9632 *Sun\ F
*) # Sun Fortran 8.3
9633 tmp_sharedflag
='-G' ;;
9635 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9637 if test "x$supports_anon_versioning" = xyes
; then
9638 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9639 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9640 echo "local: *; };" >> $output_objdir/$libname.ver~
9641 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9644 case $cc_basename in
9645 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9646 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9647 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9648 hardcode_libdir_flag_spec
=
9649 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9650 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9651 if test "x$supports_anon_versioning" = xyes
; then
9652 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9653 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9654 echo "local: *; };" >> $output_objdir/$libname.ver~
9655 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9665 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9666 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9669 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9670 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9675 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9679 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9680 *** create shared libraries on Solaris systems. Therefore, libtool
9681 *** is disabling shared libraries support. We urge you to upgrade GNU
9682 *** binutils to release 2.9.1 or newer. Another option is to modify
9683 *** your PATH or compiler configuration so that the native linker is
9684 *** used, and then restart.
9687 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9688 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9689 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9695 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9696 case `$LD -v 2>&1` in
9697 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9701 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9702 *** reliably create shared libraries on SCO systems. Therefore, libtool
9703 *** is disabling shared libraries support. We urge you to upgrade GNU
9704 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9705 *** your PATH or compiler configuration so that the native linker is
9706 *** used, and then restart.
9711 # For security reasons, it is highly recommended that you always
9712 # use absolute paths for naming shared libraries, and exclude the
9713 # DT_RUNPATH tag from executables and libraries. But doing so
9714 # requires that you compile everything twice, which is a pain.
9715 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9716 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9717 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9718 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9727 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9730 hardcode_shlibpath_var
=no
9734 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9735 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9736 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9743 if test "$ld_shlibs" = no
; then
9745 hardcode_libdir_flag_spec
=
9746 export_dynamic_flag_spec
=
9747 whole_archive_flag_spec
=
9750 # PORTME fill in a description of your system's linker (not GNU ld)
9753 allow_undefined_flag
=unsupported
9754 always_export_symbols
=yes
9755 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'
9756 # Note: this linker hardcodes the directories in LIBPATH if there
9757 # are no directories specified by -L.
9758 hardcode_minus_L
=yes
9759 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9760 # Neither direct hardcoding nor static linking is supported with a
9762 hardcode_direct
=unsupported
9767 if test "$host_cpu" = ia64
; then
9768 # On IA64, the linker does run time linking by default, so we don't
9769 # have to do anything special.
9770 aix_use_runtimelinking
=no
9771 exp_sym_flag
='-Bexport'
9774 # If we're using GNU nm, then we don't want the "-C" option.
9775 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9776 # Also, AIX nm treats weak defined symbols like other global
9777 # defined symbols, whereas GNU nm marks them as "W".
9778 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9779 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'
9781 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'
9783 aix_use_runtimelinking
=no
9785 # Test if we are trying to use run time linking or normal
9786 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9787 # need to do runtime linking.
9788 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9789 for ld_flag
in $LDFLAGS; do
9790 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9791 aix_use_runtimelinking
=yes
9798 exp_sym_flag
='-bexport'
9799 no_entry_flag
='-bnoentry'
9802 # When large executables or shared objects are built, AIX ld can
9803 # have problems creating the table of contents. If linking a library
9804 # or program results in "error TOC overflow" add -mminimal-toc to
9805 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9806 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9810 hardcode_direct_absolute
=yes
9811 hardcode_libdir_separator
=':'
9812 link_all_deplibs
=yes
9813 file_list_spec
='${wl}-f,'
9815 if test "$GCC" = yes; then
9816 case $host_os in aix4.
[012]|aix4.
[012].
*)
9817 # We only want to do this on AIX 4.2 and lower, the check
9818 # below for broken collect2 doesn't work under 4.3+
9819 collect2name
=`${CC} -print-prog-name=collect2`
9820 if test -f "$collect2name" &&
9821 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9823 # We have reworked collect2
9826 # We have old collect2
9827 hardcode_direct
=unsupported
9828 # It fails to find uninstalled libraries when the uninstalled
9829 # path is not listed in the libpath. Setting hardcode_minus_L
9830 # to unsupported forces relinking
9831 hardcode_minus_L
=yes
9832 hardcode_libdir_flag_spec
='-L$libdir'
9833 hardcode_libdir_separator
=
9837 shared_flag
='-shared'
9838 if test "$aix_use_runtimelinking" = yes; then
9839 shared_flag
="$shared_flag "'${wl}-G'
9843 if test "$host_cpu" = ia64
; then
9844 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9845 # chokes on -Wl,-G. The following line is correct:
9848 if test "$aix_use_runtimelinking" = yes; then
9849 shared_flag
='${wl}-G'
9851 shared_flag
='${wl}-bM:SRE'
9856 export_dynamic_flag_spec
='${wl}-bexpall'
9857 # It seems that -bexpall does not export symbols beginning with
9858 # underscore (_), so it is better to generate a list of symbols to export.
9859 always_export_symbols
=yes
9860 if test "$aix_use_runtimelinking" = yes; then
9861 # Warning - without using the other runtime loading flags (-brtl),
9862 # -berok will link without error, but may produce a broken library.
9863 allow_undefined_flag
='-berok'
9864 # Determine the default libpath from the value encoded in an
9866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9877 if ac_fn_c_try_link
"$LINENO"; then :
9879 lt_aix_libpath_sed
='
9880 /Import File Strings/,/^$/ {
9886 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9887 # Check for a 64-bit object if we didn't find anything.
9888 if test -z "$aix_libpath"; then
9889 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9892 rm -f core conftest.err conftest.
$ac_objext \
9893 conftest
$ac_exeext conftest.
$ac_ext
9894 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9896 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9897 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"
9899 if test "$host_cpu" = ia64
; then
9900 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9901 allow_undefined_flag
="-z nodefs"
9902 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"
9904 # Determine the default libpath from the value encoded in an
9906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9917 if ac_fn_c_try_link
"$LINENO"; then :
9919 lt_aix_libpath_sed
='
9920 /Import File Strings/,/^$/ {
9926 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9927 # Check for a 64-bit object if we didn't find anything.
9928 if test -z "$aix_libpath"; then
9929 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9932 rm -f core conftest.err conftest.
$ac_objext \
9933 conftest
$ac_exeext conftest.
$ac_ext
9934 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9936 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9937 # Warning - without using the other run time loading flags,
9938 # -berok will link without error, but may produce a broken library.
9939 no_undefined_flag
=' ${wl}-bernotok'
9940 allow_undefined_flag
=' ${wl}-berok'
9941 if test "$with_gnu_ld" = yes; then
9942 # We only use this code for GNU lds that support --whole-archive.
9943 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9945 # Exported symbols can be pulled into shared objects from archives
9946 whole_archive_flag_spec
='$convenience'
9948 archive_cmds_need_lc
=yes
9949 # This is similar to how AIX traditionally builds its shared libraries.
9950 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'
9958 # see comment about AmigaOS4 .so support
9959 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9960 archive_expsym_cmds
=''
9963 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)'
9964 hardcode_libdir_flag_spec
='-L$libdir'
9965 hardcode_minus_L
=yes
9971 export_dynamic_flag_spec
=-rdynamic
9974 cygwin
* | mingw
* | pw32
* | cegcc
*)
9975 # When not using gcc, we currently assume that we are using
9976 # Microsoft Visual C++.
9977 # hardcode_libdir_flag_spec is actually meaningless, as there is
9978 # no search path for DLLs.
9979 hardcode_libdir_flag_spec
=' '
9980 allow_undefined_flag
=unsupported
9981 # Tell ltmain to make .lib files, not .a files.
9983 # Tell ltmain to make .dll files, not .so files.
9985 # FIXME: Setting linknames here is a bad hack.
9986 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9987 # The linker will automatically build a .lib file if we build a DLL.
9988 old_archive_from_new_cmds
='true'
9989 # FIXME: Should let the user specify the lib program.
9990 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9991 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9992 enable_shared_with_static_runtimes
=yes
9995 darwin
* | rhapsody
*)
9999 # Publish an arg to allow the user to select that Darwin host (and target)
10000 # libraries should be given install-names like @rpath/libfoo.dylib. This
10001 # requires that the user of the library then adds an 'rpath' to the DSO that
10003 # NOTE: there are defaults below, for systems that support rpaths. The person
10004 # configuring can override the defaults for any system version that supports
10005 # them - they are, however, forced off for system versions without support.
10006 # Check whether --enable-darwin-at-rpath was given.
10007 if test "${enable_darwin_at_rpath+set}" = set; then :
10008 enableval
=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
10009 # This is not supported before macOS 10.5 / Darwin9.
10010 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10011 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
10013 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
10014 enable_darwin_at_rpath
=no
10019 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10020 # As above, before 10.5 / Darwin9 this does not work.
10021 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
10022 enable_darwin_at_rpath
=no
10025 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
10026 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
10027 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
10028 UNSET
,darwin1
[5-9]*|UNSET
,darwin2
*|
10.1[1-9][,.
]*|
1[1-9].
*[,.
]* )
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
10030 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
10031 enable_darwin_at_rpath
=yes
10033 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
10034 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
10041 archive_cmds_need_lc
=no
10043 hardcode_automatic
=yes
10044 hardcode_shlibpath_var
=unsupported
10045 if test "$lt_cv_ld_force_load" = "yes"; then
10046 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\"`'
10048 whole_archive_flag_spec
=''
10050 link_all_deplibs
=yes
10051 allow_undefined_flag
="$_lt_dar_allow_undefined"
10052 case $cc_basename in
10053 ifort
*) _lt_dar_can_shared
=yes ;;
10054 *) _lt_dar_can_shared
=$GCC ;;
10056 if test "$_lt_dar_can_shared" = "yes"; then
10057 output_verbose_link_cmd
=func_echo_all
10058 _lt_install_name
='\$rpath/\$soname'
10059 if test "x$enable_darwin_at_rpath" = "xyes"; then
10060 _lt_install_name
='@rpath/\$soname'
10062 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
10063 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10064 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
10065 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}"
10074 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10075 hardcode_libdir_flag_spec
='-L$libdir'
10076 hardcode_shlibpath_var
=no
10079 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10080 # support. Future versions do this automatically, but an explicit c++rt0.o
10081 # does not break anything, and helps significantly (at the cost of a little
10084 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10085 hardcode_libdir_flag_spec
='-R$libdir'
10086 hardcode_direct
=yes
10087 hardcode_shlibpath_var
=no
10090 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10092 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10093 hardcode_direct
=yes
10094 hardcode_minus_L
=yes
10095 hardcode_shlibpath_var
=no
10098 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10099 freebsd
* | dragonfly
*)
10100 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10101 hardcode_libdir_flag_spec
='-R$libdir'
10102 hardcode_direct
=yes
10103 hardcode_shlibpath_var
=no
10107 if test "$GCC" = yes; then
10108 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'
10110 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'
10112 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10113 hardcode_libdir_separator
=:
10114 hardcode_direct
=yes
10116 # hardcode_minus_L: Not really in the search PATH,
10117 # but as the default location of the library.
10118 hardcode_minus_L
=yes
10119 export_dynamic_flag_spec
='${wl}-E'
10123 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10124 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10126 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10128 if test "$with_gnu_ld" = no
; then
10129 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10130 hardcode_libdir_flag_spec_ld
='+b $libdir'
10131 hardcode_libdir_separator
=:
10132 hardcode_direct
=yes
10133 hardcode_direct_absolute
=yes
10134 export_dynamic_flag_spec
='${wl}-E'
10135 # hardcode_minus_L: Not really in the search PATH,
10136 # but as the default location of the library.
10137 hardcode_minus_L
=yes
10142 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10145 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10148 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10151 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10157 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10160 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10164 # Older versions of the 11.00 compiler do not understand -b yet
10165 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10167 $as_echo_n "checking if $CC understands -b... " >&6; }
10168 if ${lt_cv_prog_compiler__b+:} false
; then :
10169 $as_echo_n "(cached) " >&6
10171 lt_cv_prog_compiler__b
=no
10172 save_LDFLAGS
="$LDFLAGS"
10173 LDFLAGS
="$LDFLAGS -b"
10174 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10175 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10176 # The linker can only warn and ignore the option if not recognized
10177 # So say no if there are warnings
10178 if test -s conftest.err
; then
10179 # Append any errors to the config.log.
10180 cat conftest.err
1>&5
10181 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10182 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10183 if diff conftest.exp conftest.er2
>/dev
/null
; then
10184 lt_cv_prog_compiler__b
=yes
10187 lt_cv_prog_compiler__b
=yes
10191 LDFLAGS
="$save_LDFLAGS"
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10195 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10197 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
10198 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10200 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10206 if test "$with_gnu_ld" = no
; then
10207 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10208 hardcode_libdir_separator
=:
10213 hardcode_shlibpath_var
=no
10216 hardcode_direct
=yes
10217 hardcode_direct_absolute
=yes
10218 export_dynamic_flag_spec
='${wl}-E'
10220 # hardcode_minus_L: Not really in the search PATH,
10221 # but as the default location of the library.
10222 hardcode_minus_L
=yes
10228 irix5
* | irix6
* | nonstopux
*)
10229 if test "$GCC" = yes; then
10230 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'
10231 # Try to use the -exported_symbol ld option, if it does not
10232 # work, assume that -exports_file does not work either and
10233 # implicitly export all symbols.
10234 save_LDFLAGS
="$LDFLAGS"
10235 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10237 /* end confdefs.h. */
10240 if ac_fn_c_try_link
"$LINENO"; then :
10241 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'
10244 rm -f core conftest.err conftest.
$ac_objext \
10245 conftest
$ac_exeext conftest.
$ac_ext
10246 LDFLAGS
="$save_LDFLAGS"
10248 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'
10249 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'
10251 archive_cmds_need_lc
='no'
10252 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10253 hardcode_libdir_separator
=:
10255 link_all_deplibs
=yes
10259 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10260 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10262 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10264 hardcode_libdir_flag_spec
='-R$libdir'
10265 hardcode_direct
=yes
10266 hardcode_shlibpath_var
=no
10270 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10271 hardcode_direct
=yes
10272 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10273 hardcode_libdir_separator
=:
10274 hardcode_shlibpath_var
=no
10281 if test -f /usr
/libexec
/ld.so
; then
10282 hardcode_direct
=yes
10283 hardcode_shlibpath_var
=no
10284 hardcode_direct_absolute
=yes
10285 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10286 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10287 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10288 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10289 export_dynamic_flag_spec
='${wl}-E'
10292 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10293 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10294 hardcode_libdir_flag_spec
='-R$libdir'
10297 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10298 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10308 hardcode_libdir_flag_spec
='-L$libdir'
10309 hardcode_minus_L
=yes
10310 allow_undefined_flag
=unsupported
10311 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'
10312 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10316 if test "$GCC" = yes; then
10317 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10318 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'
10320 allow_undefined_flag
=' -expect_unresolved \*'
10321 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'
10323 archive_cmds_need_lc
='no'
10324 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10325 hardcode_libdir_separator
=:
10328 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10329 if test "$GCC" = yes; then
10330 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10331 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'
10332 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10334 allow_undefined_flag
=' -expect_unresolved \*'
10335 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'
10336 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~
10337 $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'
10339 # Both c and cxx compiler support -rpath directly
10340 hardcode_libdir_flag_spec
='-rpath $libdir'
10342 archive_cmds_need_lc
='no'
10343 hardcode_libdir_separator
=:
10347 no_undefined_flag
=' -z defs'
10348 if test "$GCC" = yes; then
10350 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10351 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10352 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10354 case `$CC -V 2>&1` in
10357 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10358 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10359 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10363 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10364 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10365 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10369 hardcode_libdir_flag_spec
='-R$libdir'
10370 hardcode_shlibpath_var
=no
10372 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10374 # The compiler driver will combine and reorder linker options,
10375 # but understands `-z linker_flag'. GCC discards it without `$wl',
10376 # but is careful enough not to reorder.
10377 # Supported since Solaris 2.6 (maybe 2.5.1?)
10378 if test "$GCC" = yes; then
10379 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10381 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10385 link_all_deplibs
=yes
10389 if test "x$host_vendor" = xsequent
; then
10390 # Use $CC to link under sequent, because it throws in some extra .o
10391 # files that make .init and .fini sections work.
10392 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10394 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10396 hardcode_libdir_flag_spec
='-L$libdir'
10397 hardcode_direct
=yes
10398 hardcode_minus_L
=yes
10399 hardcode_shlibpath_var
=no
10403 case $host_vendor in
10405 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10406 hardcode_direct
=yes # is this really true???
10409 ## LD is ld it makes a PLAMLIB
10410 ## CC just makes a GrossModule.
10411 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10412 reload_cmds
='$CC -r -o $output$reload_objs'
10416 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10417 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10420 runpath_var
='LD_RUN_PATH'
10421 hardcode_shlibpath_var
=no
10425 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10426 hardcode_shlibpath_var
=no
10427 export_dynamic_flag_spec
='-Bexport'
10431 if test -d /usr
/nec
; then
10432 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10433 hardcode_shlibpath_var
=no
10434 runpath_var
=LD_RUN_PATH
10435 hardcode_runpath_var
=yes
10440 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10441 no_undefined_flag
='${wl}-z,text'
10442 archive_cmds_need_lc
=no
10443 hardcode_shlibpath_var
=no
10444 runpath_var
='LD_RUN_PATH'
10446 if test "$GCC" = yes; then
10447 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10448 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10450 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10451 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10455 sysv5
* | sco3.2v5
* | sco5v6
*)
10456 # Note: We can NOT use -z defs as we might desire, because we do not
10457 # link with -lc, and that would cause any symbols used from libc to
10458 # always be unresolved, which means just about no library would
10459 # ever link correctly. If we're not using GNU ld we use -z text
10460 # though, which does catch some bad symbols but isn't as heavy-handed
10462 no_undefined_flag
='${wl}-z,text'
10463 allow_undefined_flag
='${wl}-z,nodefs'
10464 archive_cmds_need_lc
=no
10465 hardcode_shlibpath_var
=no
10466 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10467 hardcode_libdir_separator
=':'
10468 link_all_deplibs
=yes
10469 export_dynamic_flag_spec
='${wl}-Bexport'
10470 runpath_var
='LD_RUN_PATH'
10472 if test "$GCC" = yes; then
10473 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10474 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10476 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10477 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10482 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10483 hardcode_libdir_flag_spec
='-L$libdir'
10484 hardcode_shlibpath_var
=no
10492 if test x
$host_vendor = xsni
; then
10494 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10495 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10502 $as_echo "$ld_shlibs" >&6; }
10503 test "$ld_shlibs" = no
&& can_build_shared
=no
10505 with_gnu_ld
=$with_gnu_ld
10522 # Do we need to explicitly link libc?
10524 case "x$archive_cmds_need_lc" in
10526 # Assume -lc should be added
10527 archive_cmds_need_lc
=yes
10529 if test "$enable_shared" = yes && test "$GCC" = yes; then
10530 case $archive_cmds in
10532 # FIXME: we may have to deal with multi-command sequences.
10535 # Test whether the compiler implicitly links with -lc since on some
10536 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10537 # to ld, don't add -lc before -lgcc.
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10539 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10540 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10541 $as_echo_n "(cached) " >&6
10544 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10547 (eval $ac_compile) 2>&5
10549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10550 test $ac_status = 0; } 2>conftest.err
; then
10553 libobjs
=conftest.
$ac_objext
10555 wl
=$lt_prog_compiler_wl
10556 pic_flag
=$lt_prog_compiler_pic
10562 lt_save_allow_undefined_flag
=$allow_undefined_flag
10563 allow_undefined_flag
=
10564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10565 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10568 test $ac_status = 0; }
10570 lt_cv_archive_cmds_need_lc
=no
10572 lt_cv_archive_cmds_need_lc
=yes
10574 allow_undefined_flag
=$lt_save_allow_undefined_flag
10576 cat conftest.err
1>&5
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10582 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10583 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10747 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10749 if test "$GCC" = yes; then
10751 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10752 *) lt_awk_arg
="/^libraries:/" ;;
10755 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10756 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10758 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10759 case $lt_search_path_spec in
10761 # if the path contains ";" then we assume it to be the separator
10762 # otherwise default to the standard path separator (i.e. ":") - it is
10763 # assumed that no part of a normal pathname contains ";" but that should
10764 # okay in the real world where ";" in dirpaths is itself problematic.
10765 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10768 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10771 # Ok, now we have the path, separated by spaces, we can step through it
10772 # and add multilib dir if necessary.
10773 lt_tmp_lt_search_path_spec
=
10774 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10775 for lt_sys_path
in $lt_search_path_spec; do
10776 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10777 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10779 test -d "$lt_sys_path" && \
10780 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10783 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10784 BEGIN {RS=" "; FS="/|\n";} {
10787 for (lt_i = NF; lt_i > 0; lt_i--) {
10788 if ($lt_i != "" && $lt_i != ".") {
10789 if ($lt_i == "..") {
10792 if (lt_count == 0) {
10793 lt_foo="/" $lt_i lt_foo;
10800 if (lt_foo != "") { lt_freq[lt_foo]++; }
10801 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10803 # AWK program above erroneously prepends '/' to C:/dos/paths
10806 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10807 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10809 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10811 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10813 library_names_spec
=
10814 libname_spec
='lib$name'
10818 postuninstall_cmds
=
10822 shlibpath_overrides_runpath
=unknown
10824 dynamic_linker
="$host_os ld.so"
10825 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10826 need_lib_prefix
=unknown
10827 hardcode_into_libs
=no
10829 # when you set need_version to no, make sure it does not cause -set_version
10830 # flags to be left without arguments
10831 need_version
=unknown
10836 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10837 shlibpath_var
=LIBPATH
10839 # AIX 3 has no versioning support, so we append a major version to the name.
10840 soname_spec
='${libname}${release}${shared_ext}$major'
10847 hardcode_into_libs
=yes
10848 if test "$host_cpu" = ia64
; then
10849 # AIX 5 supports IA64
10850 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10851 shlibpath_var
=LD_LIBRARY_PATH
10853 # With GCC up to 2.95.x, collect2 would create an import file
10854 # for dependence libraries. The import file would start with
10855 # the line `#! .'. This would cause the generated library to
10856 # depend on `.', always an invalid library. This was fixed in
10857 # development snapshots of GCC prior to 3.0.
10859 aix4 | aix4.
[01] | aix4.
[01].
*)
10860 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10862 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10865 can_build_shared
=no
10869 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10870 # soname into executable. Probably we can add versioning support to
10871 # collect2, so additional links can be useful in future.
10872 if test "$aix_use_runtimelinking" = yes; then
10873 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10874 # instead of lib<name>.a to let people know that these are not
10875 # typical AIX shared libraries.
10876 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10878 # We preserve .a as extension for shared libraries through AIX4.2
10879 # and later when we are not doing run time linking.
10880 library_names_spec
='${libname}${release}.a $libname.a'
10881 soname_spec
='${libname}${release}${shared_ext}$major'
10883 shlibpath_var
=LIBPATH
10890 # Since July 2007 AmigaOS4 officially supports .so libraries.
10891 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10892 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10895 library_names_spec
='$libname.ixlibrary $libname.a'
10896 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10897 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'
10903 library_names_spec
='${libname}${shared_ext}'
10904 dynamic_linker
="$host_os ld.so"
10905 shlibpath_var
=LIBRARY_PATH
10911 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10912 soname_spec
='${libname}${release}${shared_ext}$major'
10913 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10914 shlibpath_var
=LD_LIBRARY_PATH
10915 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10916 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10917 # the default ld.so.conf also contains /usr/contrib/lib and
10918 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10919 # libtool to hard-code these into programs
10922 cygwin
* | mingw
* | pw32
* | cegcc
*)
10923 version_type
=windows
10928 case $GCC,$host_os in
10929 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10930 library_names_spec
='$libname.dll.a'
10931 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10932 postinstall_cmds
='base_file=`basename \${file}`~
10933 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10934 dldir=$destdir/`dirname \$dlpath`~
10935 test -d \$dldir || mkdir -p \$dldir~
10936 $install_prog $dir/$dlname \$dldir/$dlname~
10937 chmod a+x \$dldir/$dlname~
10938 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10939 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10941 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10942 dlpath=$dir/\$dldll~
10944 shlibpath_overrides_runpath
=yes
10948 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10949 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10951 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10954 # MinGW DLLs use traditional 'lib' prefix
10955 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10958 # pw32 DLLs use 'pw' prefix rather than 'lib'
10959 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10965 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10968 dynamic_linker
='Win32 ld.exe'
10969 # FIXME: first we should search . and the directory the executable is in
10973 darwin
* | rhapsody
*)
10974 dynamic_linker
="$host_os dyld"
10975 version_type
=darwin
10978 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10979 soname_spec
='${libname}${release}${major}$shared_ext'
10980 shlibpath_overrides_runpath
=yes
10981 shlibpath_var
=DYLD_LIBRARY_PATH
10982 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10984 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10985 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10992 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10993 soname_spec
='${libname}${release}${shared_ext}$major'
10994 shlibpath_var
=LD_LIBRARY_PATH
10997 freebsd
* | dragonfly
*)
10998 # DragonFly does not have aout. When/if they implement a new
10999 # versioning mechanism, adjust this.
11000 if test -x /usr
/bin
/objformat
; then
11001 objformat
=`/usr/bin/objformat`
11004 freebsd
[23].
*) objformat
=aout
;;
11005 *) objformat
=elf
;;
11008 version_type
=freebsd-
$objformat
11009 case $version_type in
11011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11016 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11020 shlibpath_var
=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath
=yes
11025 freebsd3.
[01]* | freebsdelf3.
[01]*)
11026 shlibpath_overrides_runpath
=yes
11027 hardcode_into_libs
=yes
11029 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11030 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11031 shlibpath_overrides_runpath
=no
11032 hardcode_into_libs
=yes
11034 *) # from 4.6 on, and DragonFly
11035 shlibpath_overrides_runpath
=yes
11036 hardcode_into_libs
=yes
11045 dynamic_linker
="$host_os runtime_loader"
11046 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11047 soname_spec
='${libname}${release}${shared_ext}$major'
11048 shlibpath_var
=LIBRARY_PATH
11049 shlibpath_overrides_runpath
=yes
11050 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11051 hardcode_into_libs
=yes
11054 hpux9
* | hpux10
* | hpux11
*)
11055 # Give a soname corresponding to the major version so that dld.sl refuses to
11056 # link against other versions.
11063 hardcode_into_libs
=yes
11064 dynamic_linker
="$host_os dld.so"
11065 shlibpath_var
=LD_LIBRARY_PATH
11066 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11067 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11068 soname_spec
='${libname}${release}${shared_ext}$major'
11069 if test "X$HPUX_IA64_MODE" = X32
; then
11070 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11072 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11074 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11078 hardcode_into_libs
=yes
11079 dynamic_linker
="$host_os dld.sl"
11080 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11081 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11082 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11083 soname_spec
='${libname}${release}${shared_ext}$major'
11084 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11085 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11089 dynamic_linker
="$host_os dld.sl"
11090 shlibpath_var
=SHLIB_PATH
11091 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11092 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093 soname_spec
='${libname}${release}${shared_ext}$major'
11096 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11097 postinstall_cmds
='chmod 555 $lib'
11098 # or fails outright, so override atomically:
11099 install_override_mode
=555
11106 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11107 soname_spec
='${libname}${release}${shared_ext}$major'
11108 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11109 shlibpath_var
=LD_LIBRARY_PATH
11110 shlibpath_overrides_runpath
=no
11111 hardcode_into_libs
=yes
11114 irix5
* | irix6
* | nonstopux
*)
11116 nonstopux
*) version_type
=nonstopux
;;
11118 if test "$lt_cv_prog_gnu_ld" = yes; then
11126 soname_spec
='${libname}${release}${shared_ext}$major'
11127 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11129 irix5
* | nonstopux
*)
11130 libsuff
= shlibsuff
=
11133 case $LD in # libtool.m4 will add one of these switches to LD
11134 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11135 libsuff
= shlibsuff
= libmagic
=32-bit;;
11136 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11137 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11138 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11139 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11140 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11144 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11145 shlibpath_overrides_runpath
=no
11146 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11147 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11148 hardcode_into_libs
=yes
11151 # No shared lib support for Linux oldld, aout, or coff.
11152 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11156 # This must be Linux ELF.
11158 # uclinux* changes (here and below) have been submitted to the libtool
11159 # project, but have not yet been accepted: they are GCC-local changes
11160 # for the time being. (See
11161 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11162 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
11166 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11167 soname_spec
='${libname}${release}${shared_ext}$major'
11168 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11169 shlibpath_var
=LD_LIBRARY_PATH
11170 shlibpath_overrides_runpath
=no
11172 # Some binutils ld are patched to set DT_RUNPATH
11173 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11174 $as_echo_n "(cached) " >&6
11176 lt_cv_shlibpath_overrides_runpath
=no
11177 save_LDFLAGS
=$LDFLAGS
11178 save_libdir
=$libdir
11179 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11180 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11182 /* end confdefs.h. */
11192 if ac_fn_c_try_link
"$LINENO"; then :
11193 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11194 lt_cv_shlibpath_overrides_runpath
=yes
11197 rm -f core conftest.err conftest.
$ac_objext \
11198 conftest
$ac_exeext conftest.
$ac_ext
11199 LDFLAGS
=$save_LDFLAGS
11200 libdir
=$save_libdir
11204 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11206 # This implies no fast_install, which is unacceptable.
11207 # Some rework will be needed to allow for fast_install
11208 # before this can be enabled.
11209 hardcode_into_libs
=yes
11211 # Append ld.so.conf contents to the search path
11212 if test -f /etc
/ld.so.conf
; then
11213 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' ' '`
11214 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11217 # We used to test for /lib/ld.so.1 and disable shared libraries on
11218 # powerpc, because MkLinux only supported shared libraries with the
11219 # GNU dynamic linker. Since this was broken with cross compilers,
11220 # most powerpc-linux boxes support dynamic linking these days and
11221 # people can always --disable-shared, the test was removed, and we
11222 # assume the GNU/Linux dynamic linker is in use.
11223 dynamic_linker
='GNU/Linux ld.so'
11230 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11231 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11232 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11233 dynamic_linker
='NetBSD (a.out) ld.so'
11235 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11236 soname_spec
='${libname}${release}${shared_ext}$major'
11237 dynamic_linker
='NetBSD ld.elf_so'
11239 shlibpath_var
=LD_LIBRARY_PATH
11240 shlibpath_overrides_runpath
=yes
11241 hardcode_into_libs
=yes
11246 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11247 shlibpath_var
=LD_LIBRARY_PATH
11248 shlibpath_overrides_runpath
=yes
11255 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11256 soname_spec
='${libname}${release}${shared_ext}$major'
11257 shlibpath_var
=LD_LIBRARY_PATH
11258 shlibpath_overrides_runpath
=no
11259 hardcode_into_libs
=yes
11260 dynamic_linker
='ldqnx.so'
11265 sys_lib_dlsearch_path_spec
="/usr/lib"
11267 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11269 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11270 *) need_version
=no
;;
11272 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11273 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11274 shlibpath_var
=LD_LIBRARY_PATH
11275 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11277 openbsd2.
[89] | openbsd2.
[89].
*)
11278 shlibpath_overrides_runpath
=no
11281 shlibpath_overrides_runpath
=yes
11285 shlibpath_overrides_runpath
=yes
11290 libname_spec
='$name'
11293 library_names_spec
='$libname${shared_ext} $libname.a'
11294 dynamic_linker
='OS/2 ld.exe'
11295 shlibpath_var
=LIBPATH
11298 osf3
* | osf4
* | osf5
*)
11302 soname_spec
='${libname}${release}${shared_ext}$major'
11303 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304 shlibpath_var
=LD_LIBRARY_PATH
11305 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11306 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11317 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11318 soname_spec
='${libname}${release}${shared_ext}$major'
11319 shlibpath_var
=LD_LIBRARY_PATH
11320 shlibpath_overrides_runpath
=yes
11321 hardcode_into_libs
=yes
11322 # ldd complains unless libraries are executable
11323 postinstall_cmds
='chmod +x $lib'
11328 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11329 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11330 shlibpath_var
=LD_LIBRARY_PATH
11331 shlibpath_overrides_runpath
=yes
11332 if test "$with_gnu_ld" = yes; then
11340 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341 soname_spec
='${libname}${release}${shared_ext}$major'
11342 shlibpath_var
=LD_LIBRARY_PATH
11343 case $host_vendor in
11345 shlibpath_overrides_runpath
=no
11347 runpath_var
=LD_RUN_PATH
11355 shlibpath_overrides_runpath
=no
11356 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11362 if test -d /usr
/nec
;then
11364 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11365 soname_spec
='$libname${shared_ext}.$major'
11366 shlibpath_var
=LD_LIBRARY_PATH
11370 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11371 version_type
=freebsd-elf
11374 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11375 soname_spec
='${libname}${release}${shared_ext}$major'
11376 shlibpath_var
=LD_LIBRARY_PATH
11377 shlibpath_overrides_runpath
=yes
11378 hardcode_into_libs
=yes
11379 if test "$with_gnu_ld" = yes; then
11380 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11382 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11385 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11389 sys_lib_dlsearch_path_spec
='/usr/lib'
11393 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11397 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11398 shlibpath_var
=LD_LIBRARY_PATH
11399 shlibpath_overrides_runpath
=no
11400 hardcode_into_libs
=yes
11405 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11406 soname_spec
='${libname}${release}${shared_ext}$major'
11407 shlibpath_var
=LD_LIBRARY_PATH
11410 # Shared libraries for VwWorks, >= 7 only at this stage
11411 # and (fpic) still incompatible with "large" code models
11412 # in a few configurations. Only for RTP mode in any case,
11413 # and upon explicit request at configure time.
11416 case ${with_multisubdir}-${enable_shared} in
11423 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11424 soname_spec
='${libname}${release}${shared_ext}$major'
11425 dynamic_linker
="$host_os module_loader"
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11434 $as_echo "$dynamic_linker" >&6; }
11435 test "$dynamic_linker" = no
&& can_build_shared
=no
11437 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11438 if test "$GCC" = yes; then
11439 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11442 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11443 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11445 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11446 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11541 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11543 if test -n "$hardcode_libdir_flag_spec" ||
11544 test -n "$runpath_var" ||
11545 test "X$hardcode_automatic" = "Xyes" ; then
11547 # We can hardcode non-existent directories.
11548 if test "$hardcode_direct" != no
&&
11549 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11550 # have to relink, otherwise we might link with an installed library
11551 # when we should be linking with a yet-to-be-installed one
11552 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11553 test "$hardcode_minus_L" != no
; then
11554 # Linking always hardcodes the temporary library directory.
11555 hardcode_action
=relink
11557 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11558 hardcode_action
=immediate
11561 # We cannot hardcode anything, or else we can only hardcode existing
11563 hardcode_action
=unsupported
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11566 $as_echo "$hardcode_action" >&6; }
11568 if test "$hardcode_action" = relink ||
11569 test "$inherit_rpath" = yes; then
11570 # Fast installation is not supported
11571 enable_fast_install
=no
11572 elif test "$shlibpath_overrides_runpath" = yes ||
11573 test "$enable_shared" = no
; then
11574 # Fast installation is not necessary
11575 enable_fast_install
=needless
11583 if test "x$enable_dlopen" != xyes
; then
11584 enable_dlopen
=unknown
11585 enable_dlopen_self
=unknown
11586 enable_dlopen_self_static
=unknown
11593 lt_cv_dlopen
="load_add_on"
11595 lt_cv_dlopen_self
=yes
11598 mingw
* | pw32
* | cegcc
*)
11599 lt_cv_dlopen
="LoadLibrary"
11604 lt_cv_dlopen
="dlopen"
11609 # if libdl is installed we need to link against it
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11611 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11612 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11613 $as_echo_n "(cached) " >&6
11615 ac_check_lib_save_LIBS
=$LIBS
11617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11620 /* Override any GCC internal prototype to avoid an error.
11621 Use char because int might match the return type of a GCC
11622 builtin and then its argument prototype would still apply. */
11635 if ac_fn_c_try_link
"$LINENO"; then :
11636 ac_cv_lib_dl_dlopen
=yes
11638 ac_cv_lib_dl_dlopen
=no
11640 rm -f core conftest.err conftest.
$ac_objext \
11641 conftest
$ac_exeext conftest.
$ac_ext
11642 LIBS
=$ac_check_lib_save_LIBS
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11645 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11646 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11647 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11650 lt_cv_dlopen
="dyld"
11652 lt_cv_dlopen_self
=yes
11659 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11660 if test "x$ac_cv_func_shl_load" = xyes
; then :
11661 lt_cv_dlopen
="shl_load"
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11664 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11665 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11666 $as_echo_n "(cached) " >&6
11668 ac_check_lib_save_LIBS
=$LIBS
11670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h. */
11673 /* Override any GCC internal prototype to avoid an error.
11674 Use char because int might match the return type of a GCC
11675 builtin and then its argument prototype would still apply. */
11683 return shl_load ();
11688 if ac_fn_c_try_link
"$LINENO"; then :
11689 ac_cv_lib_dld_shl_load
=yes
11691 ac_cv_lib_dld_shl_load
=no
11693 rm -f core conftest.err conftest.
$ac_objext \
11694 conftest
$ac_exeext conftest.
$ac_ext
11695 LIBS
=$ac_check_lib_save_LIBS
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11698 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11699 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11700 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11702 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11703 if test "x$ac_cv_func_dlopen" = xyes
; then :
11704 lt_cv_dlopen
="dlopen"
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11707 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11708 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11709 $as_echo_n "(cached) " >&6
11711 ac_check_lib_save_LIBS
=$LIBS
11713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11714 /* end confdefs.h. */
11716 /* Override any GCC internal prototype to avoid an error.
11717 Use char because int might match the return type of a GCC
11718 builtin and then its argument prototype would still apply. */
11731 if ac_fn_c_try_link
"$LINENO"; then :
11732 ac_cv_lib_dl_dlopen
=yes
11734 ac_cv_lib_dl_dlopen
=no
11736 rm -f core conftest.err conftest.
$ac_objext \
11737 conftest
$ac_exeext conftest.
$ac_ext
11738 LIBS
=$ac_check_lib_save_LIBS
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11741 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11742 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11743 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11746 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11747 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11748 $as_echo_n "(cached) " >&6
11750 ac_check_lib_save_LIBS
=$LIBS
11751 LIBS
="-lsvld $LIBS"
11752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11753 /* end confdefs.h. */
11755 /* Override any GCC internal prototype to avoid an error.
11756 Use char because int might match the return type of a GCC
11757 builtin and then its argument prototype would still apply. */
11770 if ac_fn_c_try_link
"$LINENO"; then :
11771 ac_cv_lib_svld_dlopen
=yes
11773 ac_cv_lib_svld_dlopen
=no
11775 rm -f core conftest.err conftest.
$ac_objext \
11776 conftest
$ac_exeext conftest.
$ac_ext
11777 LIBS
=$ac_check_lib_save_LIBS
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11780 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11781 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11782 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11785 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11786 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11787 $as_echo_n "(cached) " >&6
11789 ac_check_lib_save_LIBS
=$LIBS
11791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11792 /* end confdefs.h. */
11794 /* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11804 return dld_link ();
11809 if ac_fn_c_try_link
"$LINENO"; then :
11810 ac_cv_lib_dld_dld_link
=yes
11812 ac_cv_lib_dld_dld_link
=no
11814 rm -f core conftest.err conftest.
$ac_objext \
11815 conftest
$ac_exeext conftest.
$ac_ext
11816 LIBS
=$ac_check_lib_save_LIBS
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11819 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11820 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11821 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11842 if test "x$lt_cv_dlopen" != xno
; then
11848 case $lt_cv_dlopen in
11850 save_CPPFLAGS
="$CPPFLAGS"
11851 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11853 save_LDFLAGS
="$LDFLAGS"
11854 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11857 LIBS
="$lt_cv_dlopen_libs $LIBS"
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11860 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11861 if ${lt_cv_dlopen_self+:} false
; then :
11862 $as_echo_n "(cached) " >&6
11864 if test "$cross_compiling" = yes; then :
11865 lt_cv_dlopen_self
=cross
11867 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11868 lt_status
=$lt_dlunknown
11869 cat > conftest.
$ac_ext <<_LT_EOF
11870 #line 11870 "configure"
11871 #include "confdefs.h"
11880 # define LT_DLGLOBAL RTLD_GLOBAL
11883 # define LT_DLGLOBAL DL_GLOBAL
11885 # define LT_DLGLOBAL 0
11889 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11890 find out it does not work in some platform. */
11891 #ifndef LT_DLLAZY_OR_NOW
11893 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11896 # define LT_DLLAZY_OR_NOW DL_LAZY
11899 # define LT_DLLAZY_OR_NOW RTLD_NOW
11902 # define LT_DLLAZY_OR_NOW DL_NOW
11904 # define LT_DLLAZY_OR_NOW 0
11911 /* When -fvisbility=hidden is used, assume the code has been annotated
11912 correspondingly for the symbols needed. */
11913 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11914 void fnord () __attribute__((visibility("default")));
11917 void fnord () { int i=42; }
11920 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11921 int status = $lt_dlunknown;
11925 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11928 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11929 else puts (dlerror ());
11931 /* dlclose (self); */
11939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11940 (eval $ac_link) 2>&5
11942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11943 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11944 (.
/conftest
; exit; ) >&5 2>/dev
/null
11946 case x
$lt_status in
11947 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11948 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11949 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11952 # compilation failed
11953 lt_cv_dlopen_self
=no
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11961 $as_echo "$lt_cv_dlopen_self" >&6; }
11963 if test "x$lt_cv_dlopen_self" = xyes
; then
11964 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11966 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11967 if ${lt_cv_dlopen_self_static+:} false
; then :
11968 $as_echo_n "(cached) " >&6
11970 if test "$cross_compiling" = yes; then :
11971 lt_cv_dlopen_self_static
=cross
11973 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11974 lt_status
=$lt_dlunknown
11975 cat > conftest.
$ac_ext <<_LT_EOF
11976 #line 11976 "configure"
11977 #include "confdefs.h"
11986 # define LT_DLGLOBAL RTLD_GLOBAL
11989 # define LT_DLGLOBAL DL_GLOBAL
11991 # define LT_DLGLOBAL 0
11995 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11996 find out it does not work in some platform. */
11997 #ifndef LT_DLLAZY_OR_NOW
11999 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12002 # define LT_DLLAZY_OR_NOW DL_LAZY
12005 # define LT_DLLAZY_OR_NOW RTLD_NOW
12008 # define LT_DLLAZY_OR_NOW DL_NOW
12010 # define LT_DLLAZY_OR_NOW 0
12017 /* When -fvisbility=hidden is used, assume the code has been annotated
12018 correspondingly for the symbols needed. */
12019 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12020 void fnord () __attribute__((visibility("default")));
12023 void fnord () { int i=42; }
12026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12027 int status = $lt_dlunknown;
12031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12034 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12035 else puts (dlerror ());
12037 /* dlclose (self); */
12045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12046 (eval $ac_link) 2>&5
12048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12049 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12050 (.
/conftest
; exit; ) >&5 2>/dev
/null
12052 case x
$lt_status in
12053 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12054 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12055 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12058 # compilation failed
12059 lt_cv_dlopen_self_static
=no
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12067 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12070 CPPFLAGS
="$save_CPPFLAGS"
12071 LDFLAGS
="$save_LDFLAGS"
12076 case $lt_cv_dlopen_self in
12077 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12078 *) enable_dlopen_self
=unknown
;;
12081 case $lt_cv_dlopen_self_static in
12082 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12083 *) enable_dlopen_self_static
=unknown
;;
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12106 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12107 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12108 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12109 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12111 $as_echo "yes" >&6; }
12113 # FIXME - insert some real tests, host_os isn't really good enough
12116 if test -n "$STRIP" ; then
12117 striplib
="$STRIP -x"
12118 old_striplib
="$STRIP -S"
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12120 $as_echo "yes" >&6; }
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123 $as_echo "no" >&6; }
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128 $as_echo "no" >&6; }
12144 # Report which library types will actually be built
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12146 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12148 $as_echo "$can_build_shared" >&6; }
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12151 $as_echo_n "checking whether to build shared libraries... " >&6; }
12152 test "$can_build_shared" = "no" && enable_shared
=no
12154 # On AIX, shared libraries and static libraries use the same namespace, and
12155 # are all built from PIC.
12158 test "$enable_shared" = yes && enable_static
=no
12159 if test -n "$RANLIB"; then
12160 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12161 postinstall_cmds
='$RANLIB $lib'
12166 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12167 test "$enable_shared" = yes && enable_static
=no
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12172 $as_echo "$enable_shared" >&6; }
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12175 $as_echo_n "checking whether to build static libraries... " >&6; }
12176 # Make sure either enable_shared or enable_static is yes.
12177 test "$enable_shared" = yes || enable_static
=yes
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12179 $as_echo "$enable_static" >&6; }
12186 ac_cpp
='$CPP $CPPFLAGS'
12187 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12188 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12189 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12205 ac_config_commands
="$ac_config_commands libtool"
12210 # Only expand once:
12216 gdc_save_DFLAGS
=$GDCFLAGS
12217 GDCFLAGS
="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
12220 # Source file extension for D test sources.
12223 # Object file extension for compiled D test sources.
12227 # Code to be used in simple compile tests
12228 lt_simple_compile_test_code
="\
12230 shared int some_variable = 0;
12233 # Code to be used in simple link tests
12234 lt_simple_link_test_code
="\
12236 extern(C) int main() { return 0; }
12239 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12246 # If no C compiler was specified, use CC.
12249 # If no C compiler flags were specified, use CFLAGS.
12250 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12252 # Allow CC to be a program name with arguments.
12256 # save warnings/boilerplate of simple test code
12257 ac_outfile
=conftest.
$ac_objext
12258 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12259 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12260 _lt_compiler_boilerplate
=`cat conftest.err`
12263 ac_outfile
=conftest.
$ac_objext
12264 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12265 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12266 _lt_linker_boilerplate
=`cat conftest.err`
12270 # Allow CC to be a program name with arguments.
12272 lt_save_CFLAGS
=$CFLAGS
12280 for cc_temp
in $compiler""; do
12282 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12283 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12288 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12291 # GDC did not exist at the time GCC didn't implicitly link libc in.
12292 archive_cmds_need_lc_D
=no
12294 old_archive_cmds_D
=$old_archive_cmds
12295 reload_flag_D
=$reload_flag
12296 reload_cmds_D
=$reload_cmds
12299 ## There is no encapsulation within the following macros, do not change
12300 ## the running order or otherwise move them around unless you know exactly
12301 ## what you are doing...
12302 if test -n "$compiler"; then
12304 lt_prog_compiler_no_builtin_flag_D
=
12306 if test "$GCC" = yes; then
12307 case $cc_basename in
12309 lt_prog_compiler_no_builtin_flag_D
=' -Xcompiler -fno-builtin' ;;
12311 lt_prog_compiler_no_builtin_flag_D
=' -fno-builtin' ;;
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12315 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12316 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
12317 $as_echo_n "(cached) " >&6
12319 lt_cv_prog_compiler_rtti_exceptions
=no
12320 ac_outfile
=conftest.
$ac_objext
12321 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12322 lt_compiler_flag
="-fno-rtti -fno-exceptions"
12323 # Insert the option either (1) after the last *FLAGS variable, or
12324 # (2) before a word containing "conftest.", or (3) at the end.
12325 # Note that $ac_compile itself does not contain backslashes and begins
12326 # with a dollar sign (not a hyphen), so the echo should work correctly.
12327 # The option is referenced via a variable to avoid confusing sed.
12328 lt_compile
=`echo "$ac_compile" | $SED \
12329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12331 -e 's:$: $lt_compiler_flag:'`
12332 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12333 (eval "$lt_compile" 2>conftest.err
)
12335 cat conftest.err
>&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 if (exit $ac_status) && test -s "$ac_outfile"; then
12338 # The compiler can only warn and ignore the option if not recognized
12339 # So say no if there are warnings other than the usual output.
12340 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12341 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12342 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12343 lt_cv_prog_compiler_rtti_exceptions
=yes
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12350 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12352 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
12353 lt_prog_compiler_no_builtin_flag_D
="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12362 lt_prog_compiler_wl_D
=
12363 lt_prog_compiler_pic_D
=
12364 lt_prog_compiler_static_D
=
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12367 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12369 if test "$GCC" = yes; then
12370 lt_prog_compiler_wl_D
='-Wl,'
12371 lt_prog_compiler_static_D
='-static'
12375 # All AIX code is PIC.
12376 if test "$host_cpu" = ia64
; then
12377 # AIX 5 now supports IA64 processor
12378 lt_prog_compiler_static_D
='-Bstatic'
12380 lt_prog_compiler_pic_D
='-fPIC'
12386 # see comment about AmigaOS4 .so support
12387 lt_prog_compiler_pic_D
='-fPIC'
12390 # FIXME: we need at least 68020 code to build shared libraries, but
12391 # adding the `-m68020' flag to GCC prevents building anything better,
12393 lt_prog_compiler_pic_D
='-m68020 -resident32 -malways-restore-a4'
12398 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12399 # PIC is the default for these OSes.
12402 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12403 # This hack is so that the source file can tell whether it is being
12404 # built for inclusion in a dll (and should export symbols for example).
12405 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12406 # (--disable-auto-import) libraries
12407 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12410 darwin
* | rhapsody
*)
12411 # PIC is the default on this platform
12412 # Common symbols not allowed in MH_DYLIB files
12413 lt_prog_compiler_pic_D
='-fno-common'
12417 # PIC is the default for Haiku.
12418 # The "-static" flag exists, but is broken.
12419 lt_prog_compiler_static_D
=
12423 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12424 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12425 # sets the default TLS model and affects inlining.
12431 lt_prog_compiler_pic_D
='-fPIC'
12437 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12438 # Instead, we relocate shared libraries at runtime.
12442 # Just because we use GCC doesn't mean we suddenly get shared libraries
12443 # on systems that don't support them.
12444 lt_prog_compiler_can_build_shared_D
=no
12449 # QNX uses GNU C++, but need to define -shared option too, otherwise
12450 # it will coredump.
12451 lt_prog_compiler_pic_D
='-fPIC -shared'
12455 if test -d /usr
/nec
; then
12456 lt_prog_compiler_pic_D
=-Kconform_pic
12461 lt_prog_compiler_pic_D
='-fPIC'
12465 case $cc_basename in
12466 nvcc
*) # Cuda Compiler Driver 2.2
12467 lt_prog_compiler_wl_D
='-Xlinker '
12468 lt_prog_compiler_pic_D
='-Xcompiler -fPIC'
12472 # PORTME Check for flag to pass linker flags through the system compiler.
12475 lt_prog_compiler_wl_D
='-Wl,'
12476 if test "$host_cpu" = ia64
; then
12477 # AIX 5 now supports IA64 processor
12478 lt_prog_compiler_static_D
='-Bstatic'
12480 lt_prog_compiler_static_D
='-bnso -bI:/lib/syscalls.exp'
12484 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12485 # This hack is so that the source file can tell whether it is being
12486 # built for inclusion in a dll (and should export symbols for example).
12487 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12490 hpux9
* | hpux10
* | hpux11
*)
12491 lt_prog_compiler_wl_D
='-Wl,'
12492 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12493 # not for PA HP-UX.
12499 lt_prog_compiler_pic_D
='+Z'
12502 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12503 lt_prog_compiler_static_D
='${wl}-a ${wl}archive'
12506 irix5
* | irix6
* | nonstopux
*)
12507 lt_prog_compiler_wl_D
='-Wl,'
12508 # PIC (with -KPIC) is the default.
12509 lt_prog_compiler_static_D
='-non_shared'
12512 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12513 case $cc_basename in
12514 # old Intel for x86_64 which still supported -KPIC.
12516 lt_prog_compiler_wl_D
='-Wl,'
12517 lt_prog_compiler_pic_D
='-KPIC'
12518 lt_prog_compiler_static_D
='-static'
12520 # icc used to be incompatible with GCC.
12521 # ICC 10 doesn't accept -KPIC any more.
12523 lt_prog_compiler_wl_D
='-Wl,'
12524 lt_prog_compiler_pic_D
='-fPIC'
12525 lt_prog_compiler_static_D
='-static'
12527 # Lahey Fortran 8.1.
12529 lt_prog_compiler_wl_D
='-Wl,'
12530 lt_prog_compiler_pic_D
='--shared'
12531 lt_prog_compiler_static_D
='--static'
12533 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12534 # Portland Group compilers (*not* the Pentium gcc compiler,
12535 # which looks to be a dead project)
12536 lt_prog_compiler_wl_D
='-Wl,'
12537 lt_prog_compiler_pic_D
='-fpic'
12538 lt_prog_compiler_static_D
='-Bstatic'
12541 lt_prog_compiler_wl_D
='-Wl,'
12542 # All Alpha code is PIC.
12543 lt_prog_compiler_static_D
='-non_shared'
12545 xl
* | bgxl
* | bgf
* | mpixl
*)
12546 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12547 lt_prog_compiler_wl_D
='-Wl,'
12548 lt_prog_compiler_pic_D
='-qpic'
12549 lt_prog_compiler_static_D
='-qstaticlink'
12552 case `$CC -V 2>&1 | sed 5q` in
12553 *Sun\ F
* |
*Sun
*Fortran
*)
12554 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12555 lt_prog_compiler_pic_D
='-KPIC'
12556 lt_prog_compiler_static_D
='-Bstatic'
12557 lt_prog_compiler_wl_D
=''
12561 lt_prog_compiler_pic_D
='-KPIC'
12562 lt_prog_compiler_static_D
='-Bstatic'
12563 lt_prog_compiler_wl_D
='-Wl,'
12571 lt_prog_compiler_pic_D
='-KPIC'
12572 lt_prog_compiler_static_D
='-Bstatic'
12576 # QNX uses GNU C++, but need to define -shared option too, otherwise
12577 # it will coredump.
12578 lt_prog_compiler_pic_D
='-fPIC -shared'
12581 osf3
* | osf4
* | osf5
*)
12582 lt_prog_compiler_wl_D
='-Wl,'
12583 # All OSF/1 code is PIC.
12584 lt_prog_compiler_static_D
='-non_shared'
12588 lt_prog_compiler_static_D
='-non_shared'
12592 lt_prog_compiler_pic_D
='-KPIC'
12593 lt_prog_compiler_static_D
='-Bstatic'
12594 case $cc_basename in
12595 f77
* | f90
* | f95
*)
12596 lt_prog_compiler_wl_D
='-Qoption ld ';;
12598 lt_prog_compiler_wl_D
='-Wl,';;
12603 lt_prog_compiler_wl_D
='-Qoption ld '
12604 lt_prog_compiler_pic_D
='-PIC'
12605 lt_prog_compiler_static_D
='-Bstatic'
12608 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12609 lt_prog_compiler_wl_D
='-Wl,'
12610 lt_prog_compiler_pic_D
='-KPIC'
12611 lt_prog_compiler_static_D
='-Bstatic'
12615 if test -d /usr
/nec
;then
12616 lt_prog_compiler_pic_D
='-Kconform_pic'
12617 lt_prog_compiler_static_D
='-Bstatic'
12621 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12622 lt_prog_compiler_wl_D
='-Wl,'
12623 lt_prog_compiler_pic_D
='-KPIC'
12624 lt_prog_compiler_static_D
='-Bstatic'
12628 lt_prog_compiler_wl_D
='-Wl,'
12629 lt_prog_compiler_can_build_shared_D
=no
12633 lt_prog_compiler_pic_D
='-pic'
12634 lt_prog_compiler_static_D
='-Bstatic'
12638 lt_prog_compiler_can_build_shared_D
=no
12644 # For platforms which do not support PIC, -DPIC is meaningless:
12646 lt_prog_compiler_pic_D
=
12649 lt_prog_compiler_pic_D
="$lt_prog_compiler_pic_D"
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12653 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12658 # Check to make sure the PIC flag actually works.
12660 if test -n "$lt_prog_compiler_pic_D"; then
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12662 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12663 if ${lt_cv_prog_compiler_pic_works_D+:} false
; then :
12664 $as_echo_n "(cached) " >&6
12666 lt_cv_prog_compiler_pic_works_D
=no
12667 ac_outfile
=conftest.
$ac_objext
12668 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12669 lt_compiler_flag
="$lt_prog_compiler_pic_D"
12670 # Insert the option either (1) after the last *FLAGS variable, or
12671 # (2) before a word containing "conftest.", or (3) at the end.
12672 # Note that $ac_compile itself does not contain backslashes and begins
12673 # with a dollar sign (not a hyphen), so the echo should work correctly.
12674 # The option is referenced via a variable to avoid confusing sed.
12675 lt_compile
=`echo "$ac_compile" | $SED \
12676 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12678 -e 's:$: $lt_compiler_flag:'`
12679 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12680 (eval "$lt_compile" 2>conftest.err
)
12682 cat conftest.err
>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 if (exit $ac_status) && test -s "$ac_outfile"; then
12685 # The compiler can only warn and ignore the option if not recognized
12686 # So say no if there are warnings other than the usual output.
12687 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12688 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12689 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12690 lt_cv_prog_compiler_pic_works_D
=yes
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12697 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12699 if test x
"$lt_cv_prog_compiler_pic_works_D" = xyes
; then
12700 case $lt_prog_compiler_pic_D in
12702 *) lt_prog_compiler_pic_D
=" $lt_prog_compiler_pic_D" ;;
12705 lt_prog_compiler_pic_D
=
12706 lt_prog_compiler_can_build_shared_D
=no
12714 # Check to make sure the static flag actually works.
12716 wl
=$lt_prog_compiler_wl_D eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_D\"
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12718 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12719 if ${lt_cv_prog_compiler_static_works_D+:} false
; then :
12720 $as_echo_n "(cached) " >&6
12722 lt_cv_prog_compiler_static_works_D
=no
12723 save_LDFLAGS
="$LDFLAGS"
12724 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12725 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12726 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12727 # The linker can only warn and ignore the option if not recognized
12728 # So say no if there are warnings
12729 if test -s conftest.err
; then
12730 # Append any errors to the config.log.
12731 cat conftest.err
1>&5
12732 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12733 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12734 if diff conftest.exp conftest.er2
>/dev
/null
; then
12735 lt_cv_prog_compiler_static_works_D
=yes
12738 lt_cv_prog_compiler_static_works_D
=yes
12742 LDFLAGS
="$save_LDFLAGS"
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12746 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12748 if test x
"$lt_cv_prog_compiler_static_works_D" = xyes
; then
12751 lt_prog_compiler_static_D
=
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12758 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12759 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12760 $as_echo_n "(cached) " >&6
12762 lt_cv_prog_compiler_c_o_D
=no
12763 $RM -r conftest
2>/dev
/null
12767 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12769 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12770 # Insert the option either (1) after the last *FLAGS variable, or
12771 # (2) before a word containing "conftest.", or (3) at the end.
12772 # Note that $ac_compile itself does not contain backslashes and begins
12773 # with a dollar sign (not a hyphen), so the echo should work correctly.
12774 lt_compile
=`echo "$ac_compile" | $SED \
12775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12777 -e 's:$: $lt_compiler_flag:'`
12778 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12779 (eval "$lt_compile" 2>out
/conftest.err
)
12781 cat out
/conftest.err
>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12785 # The compiler can only warn and ignore the option if not recognized
12786 # So say no if there are warnings
12787 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12788 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12789 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12790 lt_cv_prog_compiler_c_o_D
=yes
12795 # SGI C++ compiler will create directory out/ii_files/ for
12796 # template instantiation
12797 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12798 $RM out
/* && rmdir out
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12805 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12810 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12811 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12812 $as_echo_n "(cached) " >&6
12814 lt_cv_prog_compiler_c_o_D
=no
12815 $RM -r conftest
2>/dev
/null
12819 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12821 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12822 # Insert the option either (1) after the last *FLAGS variable, or
12823 # (2) before a word containing "conftest.", or (3) at the end.
12824 # Note that $ac_compile itself does not contain backslashes and begins
12825 # with a dollar sign (not a hyphen), so the echo should work correctly.
12826 lt_compile
=`echo "$ac_compile" | $SED \
12827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12829 -e 's:$: $lt_compiler_flag:'`
12830 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12831 (eval "$lt_compile" 2>out
/conftest.err
)
12833 cat out
/conftest.err
>&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12837 # The compiler can only warn and ignore the option if not recognized
12838 # So say no if there are warnings
12839 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12840 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12841 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12842 lt_cv_prog_compiler_c_o_D
=yes
12847 # SGI C++ compiler will create directory out/ii_files/ for
12848 # template instantiation
12849 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12850 $RM out
/* && rmdir out
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12857 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12862 hard_links
="nottested"
12863 if test "$lt_cv_prog_compiler_c_o_D" = no
&& test "$need_locks" != no
; then
12864 # do not overwrite the value of need_locks provided by the user
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12866 $as_echo_n "checking if we can lock with hard links... " >&6; }
12869 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12871 ln conftest.a conftest.b
2>&5 || hard_links
=no
12872 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12874 $as_echo "$hard_links" >&6; }
12875 if test "$hard_links" = no
; then
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12877 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12887 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12890 allow_undefined_flag_D
=
12891 always_export_symbols_D
=no
12893 archive_expsym_cmds_D
=
12894 compiler_needs_object_D
=no
12895 enable_shared_with_static_runtimes_D
=no
12896 export_dynamic_flag_spec_D
=
12897 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12898 hardcode_automatic_D
=no
12899 hardcode_direct_D
=no
12900 hardcode_direct_absolute_D
=no
12901 hardcode_libdir_flag_spec_D
=
12902 hardcode_libdir_flag_spec_ld_D
=
12903 hardcode_libdir_separator_D
=
12904 hardcode_minus_L_D
=no
12905 hardcode_shlibpath_var_D
=unsupported
12907 link_all_deplibs_D
=unknown
12909 module_expsym_cmds_D
=
12910 old_archive_from_new_cmds_D
=
12911 old_archive_from_expsyms_cmds_D
=
12912 thread_safe_flag_spec_D
=
12913 whole_archive_flag_spec_D
=
12914 # include_expsyms should be a list of space-separated symbols to be *always*
12915 # included in the symbol list
12917 # exclude_expsyms can be an extended regexp of symbols to exclude
12918 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12919 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12920 # as well as any symbol that contains `d'.
12921 exclude_expsyms_D
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12922 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12923 # platforms (ab)use it in PIC code, but their linkers get confused if
12924 # the symbol is explicitly referenced. Since portable code cannot
12925 # rely on this symbol name, it's probably fine to never include it in
12926 # preloaded symbol tables.
12927 # Exclude shared library initialization/finalization symbols.
12928 extract_expsyms_cmds
=
12931 cygwin
* | mingw
* | pw32
* | cegcc
*)
12932 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12933 # When not using gcc, we currently assume that we are using
12934 # Microsoft Visual C++.
12935 if test "$GCC" != yes; then
12940 # we just hope/assume this is gcc and not c89 (= MSVC++)
12950 # On some targets, GNU ld is compatible enough with the native linker
12951 # that we're better off using the native interface for both.
12952 lt_use_gnu_ld_interface
=no
12953 if test "$with_gnu_ld" = yes; then
12956 # The AIX port of GNU ld has always aspired to compatibility
12957 # with the native linker. However, as the warning in the GNU ld
12958 # block says, versions before 2.19.5* couldn't really create working
12959 # shared libraries, regardless of the interface used.
12960 case `$LD -v 2>&1` in
12961 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12962 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12963 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12965 lt_use_gnu_ld_interface
=yes
12970 lt_use_gnu_ld_interface
=yes
12975 if test "$lt_use_gnu_ld_interface" = yes; then
12976 # If archive_cmds runs LD, not CC, wlarc should be empty
12979 # Set some defaults for GNU ld with shared library support. These
12980 # are reset later if shared libraries are not supported. Putting them
12981 # here allows them to be overridden if necessary.
12982 runpath_var
=LD_RUN_PATH
12983 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
12984 export_dynamic_flag_spec_D
='${wl}--export-dynamic'
12985 # ancient GNU ld didn't support --whole-archive et. al.
12986 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12987 whole_archive_flag_spec_D
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12989 whole_archive_flag_spec_D
=
12991 supports_anon_versioning
=no
12992 case `$LD -v 2>&1` in
12993 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12994 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12995 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12996 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12997 *\
2.11.
*) ;; # other 2.11 versions
12998 *) supports_anon_versioning
=yes ;;
13001 # See if GNU ld supports shared libraries.
13004 # On AIX/PPC, the GNU linker is very broken
13005 if test "$host_cpu" != ia64
; then
13009 *** Warning: the GNU linker, at least up to release 2.19, is reported
13010 *** to be unable to reliably create shared libraries on AIX.
13011 *** Therefore, libtool is disabling shared libraries support. If you
13012 *** really care for shared libraries, you may want to install binutils
13013 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13014 *** You will then need to restart the configuration process.
13023 # see comment about AmigaOS4 .so support
13024 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13025 archive_expsym_cmds_D
=''
13028 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)'
13029 hardcode_libdir_flag_spec_D
='-L$libdir'
13030 hardcode_minus_L_D
=yes
13036 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13037 allow_undefined_flag_D
=unsupported
13038 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13039 # support --undefined. This deserves some investigation. FIXME
13040 archive_cmds_D
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13046 cygwin
* | mingw
* | pw32
* | cegcc
*)
13047 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
13048 # as there is no search path for DLLs.
13049 hardcode_libdir_flag_spec_D
='-L$libdir'
13050 export_dynamic_flag_spec_D
='${wl}--export-all-symbols'
13051 allow_undefined_flag_D
=unsupported
13052 always_export_symbols_D
=no
13053 enable_shared_with_static_runtimes_D
=yes
13054 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13056 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
13057 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13058 # If the export-symbols file already is a .def file (1st line
13059 # is EXPORTS), use it as is; otherwise, prepend...
13060 archive_expsym_cmds_D
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13061 cp $export_symbols $output_objdir/$soname.def;
13063 echo EXPORTS > $output_objdir/$soname.def;
13064 cat $export_symbols >> $output_objdir/$soname.def;
13066 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13073 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13074 link_all_deplibs_D
=yes
13078 hardcode_direct_D
=no
13079 hardcode_shlibpath_var_D
=no
13080 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13081 export_dynamic_flag_spec_D
='${wl}-E'
13082 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13083 # Instead, shared libraries are loaded at an image base (0x10000000 by
13084 # default) and relocated if they conflict, which is a slow very memory
13085 # consuming and fragmenting process. To avoid this, we pick a random,
13086 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13087 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13088 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'
13089 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'
13092 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
13094 if test "$host_os" = linux-dietlibc
; then
13095 case $cc_basename in
13096 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
13099 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
13100 && test "$tmp_diet" = no
13102 tmp_addflag
=' $pic_flag'
13103 tmp_sharedflag
='-shared'
13104 case $cc_basename,$host_cpu in
13105 pgcc
*) # Portland Group C compiler
13106 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'
13107 tmp_addflag
=' $pic_flag'
13109 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
13110 # Portland Group f77 and f90 compilers
13111 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'
13112 tmp_addflag
=' $pic_flag -Mnomain' ;;
13113 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
13114 tmp_addflag
=' -i_dynamic' ;;
13115 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
13116 tmp_addflag
=' -i_dynamic -nofor_main' ;;
13117 ifc
* | ifort
*) # Intel Fortran compiler
13118 tmp_addflag
=' -nofor_main' ;;
13119 lf95
*) # Lahey Fortran 8.1
13120 whole_archive_flag_spec_D
=
13121 tmp_sharedflag
='--shared' ;;
13122 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13123 tmp_sharedflag
='-qmkshrobj'
13125 nvcc
*) # Cuda Compiler Driver 2.2
13126 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'
13127 compiler_needs_object_D
=yes
13130 case `$CC -V 2>&1 | sed 5q` in
13131 *Sun\ C
*) # Sun C 5.9
13132 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'
13133 compiler_needs_object_D
=yes
13134 tmp_sharedflag
='-G' ;;
13135 *Sun\ F
*) # Sun Fortran 8.3
13136 tmp_sharedflag
='-G' ;;
13138 archive_cmds_D
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13140 if test "x$supports_anon_versioning" = xyes
; then
13141 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
13142 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13143 echo "local: *; };" >> $output_objdir/$libname.ver~
13144 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13147 case $cc_basename in
13148 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
13149 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13150 whole_archive_flag_spec_D
='--whole-archive$convenience --no-whole-archive'
13151 hardcode_libdir_flag_spec_D
=
13152 hardcode_libdir_flag_spec_ld_D
='-rpath $libdir'
13153 archive_cmds_D
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13154 if test "x$supports_anon_versioning" = xyes
; then
13155 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
13156 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13157 echo "local: *; };" >> $output_objdir/$libname.ver~
13158 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13168 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13169 archive_cmds_D
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13172 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13173 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13178 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
13182 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13183 *** create shared libraries on Solaris systems. Therefore, libtool
13184 *** is disabling shared libraries support. We urge you to upgrade GNU
13185 *** binutils to release 2.9.1 or newer. Another option is to modify
13186 *** your PATH or compiler configuration so that the native linker is
13187 *** used, and then restart.
13190 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13191 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13192 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13198 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
13199 case `$LD -v 2>&1` in
13200 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
13204 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13205 *** reliably create shared libraries on SCO systems. Therefore, libtool
13206 *** is disabling shared libraries support. We urge you to upgrade GNU
13207 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13208 *** your PATH or compiler configuration so that the native linker is
13209 *** used, and then restart.
13214 # For security reasons, it is highly recommended that you always
13215 # use absolute paths for naming shared libraries, and exclude the
13216 # DT_RUNPATH tag from executables and libraries. But doing so
13217 # requires that you compile everything twice, which is a pain.
13218 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13219 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13220 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13221 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13230 archive_cmds_D
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13232 hardcode_direct_D
=yes
13233 hardcode_shlibpath_var_D
=no
13237 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13238 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13239 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13246 if test "$ld_shlibs_D" = no
; then
13248 hardcode_libdir_flag_spec_D
=
13249 export_dynamic_flag_spec_D
=
13250 whole_archive_flag_spec_D
=
13253 # PORTME fill in a description of your system's linker (not GNU ld)
13256 allow_undefined_flag_D
=unsupported
13257 always_export_symbols_D
=yes
13258 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'
13259 # Note: this linker hardcodes the directories in LIBPATH if there
13260 # are no directories specified by -L.
13261 hardcode_minus_L_D
=yes
13262 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13263 # Neither direct hardcoding nor static linking is supported with a
13265 hardcode_direct_D
=unsupported
13270 if test "$host_cpu" = ia64
; then
13271 # On IA64, the linker does run time linking by default, so we don't
13272 # have to do anything special.
13273 aix_use_runtimelinking
=no
13274 exp_sym_flag
='-Bexport'
13277 # If we're using GNU nm, then we don't want the "-C" option.
13278 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13279 # Also, AIX nm treats weak defined symbols like other global
13280 # defined symbols, whereas GNU nm marks them as "W".
13281 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13282 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'
13284 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'
13286 aix_use_runtimelinking
=no
13288 # Test if we are trying to use run time linking or normal
13289 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13290 # need to do runtime linking.
13291 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
13292 for ld_flag
in $LDFLAGS; do
13293 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13294 aix_use_runtimelinking
=yes
13301 exp_sym_flag
='-bexport'
13302 no_entry_flag
='-bnoentry'
13305 # When large executables or shared objects are built, AIX ld can
13306 # have problems creating the table of contents. If linking a library
13307 # or program results in "error TOC overflow" add -mminimal-toc to
13308 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13309 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13312 hardcode_direct_D
=yes
13313 hardcode_direct_absolute_D
=yes
13314 hardcode_libdir_separator_D
=':'
13315 link_all_deplibs_D
=yes
13316 file_list_spec_D
='${wl}-f,'
13318 if test "$GCC" = yes; then
13319 case $host_os in aix4.
[012]|aix4.
[012].
*)
13320 # We only want to do this on AIX 4.2 and lower, the check
13321 # below for broken collect2 doesn't work under 4.3+
13322 collect2name
=`${CC} -print-prog-name=collect2`
13323 if test -f "$collect2name" &&
13324 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13326 # We have reworked collect2
13329 # We have old collect2
13330 hardcode_direct_D
=unsupported
13331 # It fails to find uninstalled libraries when the uninstalled
13332 # path is not listed in the libpath. Setting hardcode_minus_L
13333 # to unsupported forces relinking
13334 hardcode_minus_L_D
=yes
13335 hardcode_libdir_flag_spec_D
='-L$libdir'
13336 hardcode_libdir_separator_D
=
13340 shared_flag
='-shared'
13341 if test "$aix_use_runtimelinking" = yes; then
13342 shared_flag
="$shared_flag "'${wl}-G'
13346 if test "$host_cpu" = ia64
; then
13347 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13348 # chokes on -Wl,-G. The following line is correct:
13351 if test "$aix_use_runtimelinking" = yes; then
13352 shared_flag
='${wl}-G'
13354 shared_flag
='${wl}-bM:SRE'
13359 export_dynamic_flag_spec_D
='${wl}-bexpall'
13360 # It seems that -bexpall does not export symbols beginning with
13361 # underscore (_), so it is better to generate a list of symbols to export.
13362 always_export_symbols_D
=yes
13363 if test "$aix_use_runtimelinking" = yes; then
13364 # Warning - without using the other runtime loading flags (-brtl),
13365 # -berok will link without error, but may produce a broken library.
13366 allow_undefined_flag_D
='-berok'
13367 # Determine the default libpath from the value encoded in an
13368 # empty executable.
13369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h. */
13380 if ac_fn_c_try_link
"$LINENO"; then :
13382 lt_aix_libpath_sed
='
13383 /Import File Strings/,/^$/ {
13389 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13390 # Check for a 64-bit object if we didn't find anything.
13391 if test -z "$aix_libpath"; then
13392 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13395 rm -f core conftest.err conftest.
$ac_objext \
13396 conftest
$ac_exeext conftest.
$ac_ext
13397 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13399 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13400 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"
13402 if test "$host_cpu" = ia64
; then
13403 hardcode_libdir_flag_spec_D
='${wl}-R $libdir:/usr/lib:/lib'
13404 allow_undefined_flag_D
="-z nodefs"
13405 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"
13407 # Determine the default libpath from the value encoded in an
13408 # empty executable.
13409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h. */
13420 if ac_fn_c_try_link
"$LINENO"; then :
13422 lt_aix_libpath_sed
='
13423 /Import File Strings/,/^$/ {
13429 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13430 # Check for a 64-bit object if we didn't find anything.
13431 if test -z "$aix_libpath"; then
13432 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13435 rm -f core conftest.err conftest.
$ac_objext \
13436 conftest
$ac_exeext conftest.
$ac_ext
13437 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13439 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13440 # Warning - without using the other run time loading flags,
13441 # -berok will link without error, but may produce a broken library.
13442 no_undefined_flag_D
=' ${wl}-bernotok'
13443 allow_undefined_flag_D
=' ${wl}-berok'
13444 if test "$with_gnu_ld" = yes; then
13445 # We only use this code for GNU lds that support --whole-archive.
13446 whole_archive_flag_spec_D
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13448 # Exported symbols can be pulled into shared objects from archives
13449 whole_archive_flag_spec_D
='$convenience'
13451 archive_cmds_need_lc_D
=yes
13452 # This is similar to how AIX traditionally builds its shared libraries.
13453 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'
13461 # see comment about AmigaOS4 .so support
13462 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13463 archive_expsym_cmds_D
=''
13466 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)'
13467 hardcode_libdir_flag_spec_D
='-L$libdir'
13468 hardcode_minus_L_D
=yes
13474 export_dynamic_flag_spec_D
=-rdynamic
13477 cygwin
* | mingw
* | pw32
* | cegcc
*)
13478 # When not using gcc, we currently assume that we are using
13479 # Microsoft Visual C++.
13480 # hardcode_libdir_flag_spec is actually meaningless, as there is
13481 # no search path for DLLs.
13482 hardcode_libdir_flag_spec_D
=' '
13483 allow_undefined_flag_D
=unsupported
13484 # Tell ltmain to make .lib files, not .a files.
13486 # Tell ltmain to make .dll files, not .so files.
13488 # FIXME: Setting linknames here is a bad hack.
13489 archive_cmds_D
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13490 # The linker will automatically build a .lib file if we build a DLL.
13491 old_archive_from_new_cmds_D
='true'
13492 # FIXME: Should let the user specify the lib program.
13493 old_archive_cmds_D
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13494 fix_srcfile_path_D
='`cygpath -w "$srcfile"`'
13495 enable_shared_with_static_runtimes_D
=yes
13498 darwin
* | rhapsody
*)
13502 # Publish an arg to allow the user to select that Darwin host (and target)
13503 # libraries should be given install-names like @rpath/libfoo.dylib. This
13504 # requires that the user of the library then adds an 'rpath' to the DSO that
13506 # NOTE: there are defaults below, for systems that support rpaths. The person
13507 # configuring can override the defaults for any system version that supports
13508 # them - they are, however, forced off for system versions without support.
13509 # Check whether --enable-darwin-at-rpath was given.
13510 if test "${enable_darwin_at_rpath+set}" = set; then :
13511 enableval
=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
13512 # This is not supported before macOS 10.5 / Darwin9.
13513 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13514 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
13516 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
13517 enable_darwin_at_rpath
=no
13522 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13523 # As above, before 10.5 / Darwin9 this does not work.
13524 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
13525 enable_darwin_at_rpath
=no
13528 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
13529 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
13530 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
13531 UNSET
,darwin1
[5-9]*|UNSET
,darwin2
*|
10.1[1-9][,.
]*|
1[1-9].
*[,.
]* )
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
13533 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
13534 enable_darwin_at_rpath
=yes
13536 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
13537 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
13544 archive_cmds_need_lc_D
=no
13545 hardcode_direct_D
=no
13546 hardcode_automatic_D
=yes
13547 hardcode_shlibpath_var_D
=unsupported
13548 if test "$lt_cv_ld_force_load" = "yes"; then
13549 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\"`'
13551 whole_archive_flag_spec_D
=''
13553 link_all_deplibs_D
=yes
13554 allow_undefined_flag_D
="$_lt_dar_allow_undefined"
13555 case $cc_basename in
13556 ifort
*) _lt_dar_can_shared
=yes ;;
13557 *) _lt_dar_can_shared
=$GCC ;;
13559 if test "$_lt_dar_can_shared" = "yes"; then
13560 output_verbose_link_cmd
=func_echo_all
13561 _lt_install_name
='\$rpath/\$soname'
13562 if test "x$enable_darwin_at_rpath" = "xyes"; then
13563 _lt_install_name
='@rpath/\$soname'
13565 archive_cmds_D
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
13566 module_cmds_D
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13567 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
13568 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}"
13577 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13578 hardcode_libdir_flag_spec_D
='-L$libdir'
13579 hardcode_shlibpath_var_D
=no
13582 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13583 # support. Future versions do this automatically, but an explicit c++rt0.o
13584 # does not break anything, and helps significantly (at the cost of a little
13587 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13588 hardcode_libdir_flag_spec_D
='-R$libdir'
13589 hardcode_direct_D
=yes
13590 hardcode_shlibpath_var_D
=no
13593 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13595 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13596 hardcode_direct_D
=yes
13597 hardcode_minus_L_D
=yes
13598 hardcode_shlibpath_var_D
=no
13601 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13602 freebsd
* | dragonfly
*)
13603 archive_cmds_D
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13604 hardcode_libdir_flag_spec_D
='-R$libdir'
13605 hardcode_direct_D
=yes
13606 hardcode_shlibpath_var_D
=no
13610 if test "$GCC" = yes; then
13611 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'
13613 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'
13615 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13616 hardcode_libdir_separator_D
=:
13617 hardcode_direct_D
=yes
13619 # hardcode_minus_L: Not really in the search PATH,
13620 # but as the default location of the library.
13621 hardcode_minus_L_D
=yes
13622 export_dynamic_flag_spec_D
='${wl}-E'
13626 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13627 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13629 archive_cmds_D
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13631 if test "$with_gnu_ld" = no
; then
13632 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13633 hardcode_libdir_flag_spec_ld_D
='+b $libdir'
13634 hardcode_libdir_separator_D
=:
13635 hardcode_direct_D
=yes
13636 hardcode_direct_absolute_D
=yes
13637 export_dynamic_flag_spec_D
='${wl}-E'
13638 # hardcode_minus_L: Not really in the search PATH,
13639 # but as the default location of the library.
13640 hardcode_minus_L_D
=yes
13645 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13648 archive_cmds_D
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13651 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13654 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13660 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13663 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13666 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13670 if test "$with_gnu_ld" = no
; then
13671 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13672 hardcode_libdir_separator_D
=:
13676 hardcode_direct_D
=no
13677 hardcode_shlibpath_var_D
=no
13680 hardcode_direct_D
=yes
13681 hardcode_direct_absolute_D
=yes
13682 export_dynamic_flag_spec_D
='${wl}-E'
13684 # hardcode_minus_L: Not really in the search PATH,
13685 # but as the default location of the library.
13686 hardcode_minus_L_D
=yes
13692 irix5
* | irix6
* | nonstopux
*)
13693 if test "$GCC" = yes; then
13694 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'
13695 # Try to use the -exported_symbol ld option, if it does not
13696 # work, assume that -exports_file does not work either and
13697 # implicitly export all symbols.
13698 save_LDFLAGS
="$LDFLAGS"
13699 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13701 /* end confdefs.h. */
13704 if ac_fn_c_try_link
"$LINENO"; then :
13705 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'
13708 rm -f core conftest.err conftest.
$ac_objext \
13709 conftest
$ac_exeext conftest.
$ac_ext
13710 LDFLAGS
="$save_LDFLAGS"
13712 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'
13713 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'
13715 archive_cmds_need_lc_D
='no'
13716 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13717 hardcode_libdir_separator_D
=:
13718 inherit_rpath_D
=yes
13719 link_all_deplibs_D
=yes
13723 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13724 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13726 archive_cmds_D
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13728 hardcode_libdir_flag_spec_D
='-R$libdir'
13729 hardcode_direct_D
=yes
13730 hardcode_shlibpath_var_D
=no
13734 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13735 hardcode_direct_D
=yes
13736 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13737 hardcode_libdir_separator_D
=:
13738 hardcode_shlibpath_var_D
=no
13745 if test -f /usr
/libexec
/ld.so
; then
13746 hardcode_direct_D
=yes
13747 hardcode_shlibpath_var_D
=no
13748 hardcode_direct_absolute_D
=yes
13749 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13750 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13751 archive_expsym_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13752 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13753 export_dynamic_flag_spec_D
='${wl}-E'
13756 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13757 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13758 hardcode_libdir_flag_spec_D
='-R$libdir'
13761 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13762 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13772 hardcode_libdir_flag_spec_D
='-L$libdir'
13773 hardcode_minus_L_D
=yes
13774 allow_undefined_flag_D
=unsupported
13775 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'
13776 old_archive_from_new_cmds_D
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13780 if test "$GCC" = yes; then
13781 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13782 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'
13784 allow_undefined_flag_D
=' -expect_unresolved \*'
13785 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'
13787 archive_cmds_need_lc_D
='no'
13788 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13789 hardcode_libdir_separator_D
=:
13792 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13793 if test "$GCC" = yes; then
13794 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13795 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'
13796 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13798 allow_undefined_flag_D
=' -expect_unresolved \*'
13799 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'
13800 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~
13801 $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'
13803 # Both c and cxx compiler support -rpath directly
13804 hardcode_libdir_flag_spec_D
='-rpath $libdir'
13806 archive_cmds_need_lc_D
='no'
13807 hardcode_libdir_separator_D
=:
13811 no_undefined_flag_D
=' -z defs'
13812 if test "$GCC" = yes; then
13814 archive_cmds_D
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13815 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13816 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13818 case `$CC -V 2>&1` in
13821 archive_cmds_D
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13822 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13823 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13827 archive_cmds_D
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13828 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13829 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13833 hardcode_libdir_flag_spec_D
='-R$libdir'
13834 hardcode_shlibpath_var_D
=no
13836 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13838 # The compiler driver will combine and reorder linker options,
13839 # but understands `-z linker_flag'. GCC discards it without `$wl',
13840 # but is careful enough not to reorder.
13841 # Supported since Solaris 2.6 (maybe 2.5.1?)
13842 if test "$GCC" = yes; then
13843 whole_archive_flag_spec_D
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13845 whole_archive_flag_spec_D
='-z allextract$convenience -z defaultextract'
13849 link_all_deplibs_D
=yes
13853 if test "x$host_vendor" = xsequent
; then
13854 # Use $CC to link under sequent, because it throws in some extra .o
13855 # files that make .init and .fini sections work.
13856 archive_cmds_D
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13858 archive_cmds_D
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13860 hardcode_libdir_flag_spec_D
='-L$libdir'
13861 hardcode_direct_D
=yes
13862 hardcode_minus_L_D
=yes
13863 hardcode_shlibpath_var_D
=no
13867 case $host_vendor in
13869 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13870 hardcode_direct_D
=yes # is this really true???
13873 ## LD is ld it makes a PLAMLIB
13874 ## CC just makes a GrossModule.
13875 archive_cmds_D
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13876 reload_cmds_D
='$CC -r -o $output$reload_objs'
13877 hardcode_direct_D
=no
13880 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13881 hardcode_direct_D
=no
#Motorola manual says yes, but my tests say they lie
13884 runpath_var
='LD_RUN_PATH'
13885 hardcode_shlibpath_var_D
=no
13889 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13890 hardcode_shlibpath_var_D
=no
13891 export_dynamic_flag_spec_D
='-Bexport'
13895 if test -d /usr
/nec
; then
13896 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13897 hardcode_shlibpath_var_D
=no
13898 runpath_var
=LD_RUN_PATH
13899 hardcode_runpath_var
=yes
13904 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13905 no_undefined_flag_D
='${wl}-z,text'
13906 archive_cmds_need_lc_D
=no
13907 hardcode_shlibpath_var_D
=no
13908 runpath_var
='LD_RUN_PATH'
13910 if test "$GCC" = yes; then
13911 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13912 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13914 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13915 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13919 sysv5
* | sco3.2v5
* | sco5v6
*)
13920 # Note: We can NOT use -z defs as we might desire, because we do not
13921 # link with -lc, and that would cause any symbols used from libc to
13922 # always be unresolved, which means just about no library would
13923 # ever link correctly. If we're not using GNU ld we use -z text
13924 # though, which does catch some bad symbols but isn't as heavy-handed
13926 no_undefined_flag_D
='${wl}-z,text'
13927 allow_undefined_flag_D
='${wl}-z,nodefs'
13928 archive_cmds_need_lc_D
=no
13929 hardcode_shlibpath_var_D
=no
13930 hardcode_libdir_flag_spec_D
='${wl}-R,$libdir'
13931 hardcode_libdir_separator_D
=':'
13932 link_all_deplibs_D
=yes
13933 export_dynamic_flag_spec_D
='${wl}-Bexport'
13934 runpath_var
='LD_RUN_PATH'
13936 if test "$GCC" = yes; then
13937 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13938 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13940 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13941 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13946 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13947 hardcode_libdir_flag_spec_D
='-L$libdir'
13948 hardcode_shlibpath_var_D
=no
13956 if test x
$host_vendor = xsni
; then
13958 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13959 export_dynamic_flag_spec_D
='${wl}-Blargedynsym'
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13966 $as_echo "$ld_shlibs_D" >&6; }
13967 test "$ld_shlibs_D" = no
&& can_build_shared
=no
13969 with_gnu_ld_D
=$with_gnu_ld
13977 # Do we need to explicitly link libc?
13979 case "x$archive_cmds_need_lc_D" in
13981 # Assume -lc should be added
13982 archive_cmds_need_lc_D
=yes
13984 if test "$enable_shared" = yes && test "$GCC" = yes; then
13985 case $archive_cmds_D in
13987 # FIXME: we may have to deal with multi-command sequences.
13990 # Test whether the compiler implicitly links with -lc since on some
13991 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13992 # to ld, don't add -lc before -lgcc.
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13994 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13995 if ${lt_cv_archive_cmds_need_lc_D+:} false
; then :
13996 $as_echo_n "(cached) " >&6
13999 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14002 (eval $ac_compile) 2>&5
14004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14005 test $ac_status = 0; } 2>conftest.err
; then
14008 libobjs
=conftest.
$ac_objext
14010 wl
=$lt_prog_compiler_wl_D
14011 pic_flag
=$lt_prog_compiler_pic_D
14017 lt_save_allow_undefined_flag
=$allow_undefined_flag_D
14018 allow_undefined_flag_D
=
14019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14020 (eval $archive_cmds_D 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14023 test $ac_status = 0; }
14025 lt_cv_archive_cmds_need_lc_D
=no
14027 lt_cv_archive_cmds_need_lc_D
=yes
14029 allow_undefined_flag_D
=$lt_save_allow_undefined_flag
14031 cat conftest.err
1>&5
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
14037 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
14038 archive_cmds_need_lc_D
=$lt_cv_archive_cmds_need_lc_D
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14109 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14111 if test -n "$hardcode_libdir_flag_spec_D" ||
14112 test -n "$runpath_var_D" ||
14113 test "X$hardcode_automatic_D" = "Xyes" ; then
14115 # We can hardcode non-existent directories.
14116 if test "$hardcode_direct_D" != no
&&
14117 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14118 # have to relink, otherwise we might link with an installed library
14119 # when we should be linking with a yet-to-be-installed one
14120 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
14121 test "$hardcode_minus_L_D" != no
; then
14122 # Linking always hardcodes the temporary library directory.
14123 hardcode_action_D
=relink
14125 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14126 hardcode_action_D
=immediate
14129 # We cannot hardcode anything, or else we can only hardcode existing
14131 hardcode_action_D
=unsupported
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
14134 $as_echo "$hardcode_action_D" >&6; }
14136 if test "$hardcode_action_D" = relink ||
14137 test "$inherit_rpath_D" = yes; then
14138 # Fast installation is not supported
14139 enable_fast_install
=no
14140 elif test "$shlibpath_overrides_runpath" = yes ||
14141 test "$enable_shared" = no
; then
14142 # Fast installation is not necessary
14143 enable_fast_install
=needless
14155 ac_cpp
='$CPP $CPPFLAGS'
14156 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14157 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14158 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14163 CFLAGS
=$lt_save_CFLAGS
14165 GDCFLAGS
=$gdc_save_DFLAGS
14169 if test x
$enable_darwin_at_rpath = xyes
; then
14170 ENABLE_DARWIN_AT_RPATH_TRUE
=
14171 ENABLE_DARWIN_AT_RPATH_FALSE
='#'
14173 ENABLE_DARWIN_AT_RPATH_TRUE
='#'
14174 ENABLE_DARWIN_AT_RPATH_FALSE
=
14178 # libtool variables for Phobos shared and position-independent compiles.
14180 # Use phobos_lt_pic_flag to designate the automake variable
14181 # used to encapsulate the default libtool approach to creating objects
14182 # with position-independent code. Default: -prefer-pic.
14184 # Use phobos_compiler_shared_flag to designate the compile-time flags for
14185 # creating shared objects. Default: -fversion=Shared.
14187 # Use phobos_compiler_pic_flag to designate the compile-time flags for
14188 # creating position-independent objects. This varies with the target
14189 # hardware and operating system, but is often: -fPIC.
14191 # The distinction between pic and shared compilation flags is not present in
14192 # libtool, and so we make it here. How it is handled is that in shared
14193 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
14194 # ensure that conditional compilation of shared runtime code is compiled in.
14195 if test "$enable_shared" = yes; then
14196 phobos_lt_pic_flag
="-prefer-pic"
14197 phobos_compiler_pic_flag
="$lt_prog_compiler_pic_D"
14198 phobos_compiler_shared_flag
="-fversion=Shared"
14200 phobos_lt_pic_flag
=
14201 phobos_compiler_pic_flag
=
14202 phobos_compiler_shared_flag
=
14208 # Override the libtool's pic_flag and pic_mode.
14209 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
14210 # NB: this impacts --with-pic and --without-pic.
14211 lt_prog_compiler_pic_D
="$phobos_compiler_pic_flag $phobos_compiler_shared_flag"
14214 # Determine what GCC version number to use in filesystem paths.
14216 get_gcc_base_ver
="cat"
14218 # Check whether --with-gcc-major-version-only was given.
14219 if test "${with_gcc_major_version_only+set}" = set; then :
14220 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
14221 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
14229 # libphobos/libdruntime specific options and feature detection
14231 # These need to be absolute paths, yet at the same time need to
14232 # canonicalize only relative paths, because then amd will not unmount
14233 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
14234 libphobos_builddir
=`${PWDCMD-pwd}`
14236 \\/$
* | ?
:\\/*) libphobos_srcdir
=${srcdir} ;;
14237 *) libphobos_srcdir
=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
14243 if test ${multilib} = yes; then
14244 multilib_arg
="--enable-multilib"
14250 # Check whether --enable-werror was given.
14251 if test "${enable_werror+set}" = set; then :
14252 enableval
=$enable_werror;
14256 if test "x$enable_werror" = "xyes"; then
14257 WERROR_FLAG
="-Werror"
14263 gdc_save_DFLAGS
=$GDCFLAGS
14264 GDCFLAGS
="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14267 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14268 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14269 ac_compiler_gnu
=yes
14271 GDCFLAGS
="$GDCFLAGS -g -Werror -ffunction-sections -fdata-sections"
14272 cat > conftest.
$ac_ext <<_ACEOF
14274 int foo; void bar() { }
14276 extern(C) int main() {
14280 if ac_fn_d_try_compile
"$LINENO"; then :
14285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14286 if test "x$ac_fdsections" = "xyes"; then
14287 SECTION_FLAGS
='-ffunction-sections -fdata-sections'
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
14290 $as_echo "$ac_fdsections" >&6; }
14292 ac_cpp
='$CPP $CPPFLAGS'
14293 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14294 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14295 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14298 GDCFLAGS
=$gdc_save_DFLAGS
14303 druntime_target_cpu_parsed
=""
14304 case "$target_cpu" in
14306 druntime_target_cpu_parsed
="aarch64"
14308 arm
*) druntime_target_cpu_parsed
="arm"
14311 druntime_target_cpu_parsed
="loongarch"
14313 mips
*) druntime_target_cpu_parsed
="mips"
14316 druntime_target_cpu_parsed
="powerpc"
14319 druntime_target_cpu_parsed
="x86"
14322 druntime_target_cpu_parsed
="s390x"
14325 druntime_target_cpu_parsed
="s390"
14328 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14329 DRUNTIME_CPU_AARCH64_TRUE
=
14330 DRUNTIME_CPU_AARCH64_FALSE
='#'
14332 DRUNTIME_CPU_AARCH64_TRUE
='#'
14333 DRUNTIME_CPU_AARCH64_FALSE
=
14336 if test "$druntime_target_cpu_parsed" = "arm"; then
14337 DRUNTIME_CPU_ARM_TRUE
=
14338 DRUNTIME_CPU_ARM_FALSE
='#'
14340 DRUNTIME_CPU_ARM_TRUE
='#'
14341 DRUNTIME_CPU_ARM_FALSE
=
14344 if test "$druntime_target_cpu_parsed" = "loongarch"; then
14345 DRUNTIME_CPU_LOONGARCH_TRUE
=
14346 DRUNTIME_CPU_LOONGARCH_FALSE
='#'
14348 DRUNTIME_CPU_LOONGARCH_TRUE
='#'
14349 DRUNTIME_CPU_LOONGARCH_FALSE
=
14352 if test "$druntime_target_cpu_parsed" = "mips"; then
14353 DRUNTIME_CPU_MIPS_TRUE
=
14354 DRUNTIME_CPU_MIPS_FALSE
='#'
14356 DRUNTIME_CPU_MIPS_TRUE
='#'
14357 DRUNTIME_CPU_MIPS_FALSE
=
14360 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14361 DRUNTIME_CPU_POWERPC_TRUE
=
14362 DRUNTIME_CPU_POWERPC_FALSE
='#'
14364 DRUNTIME_CPU_POWERPC_TRUE
='#'
14365 DRUNTIME_CPU_POWERPC_FALSE
=
14368 if test "$druntime_target_cpu_parsed" = "x86"; then
14369 DRUNTIME_CPU_X86_TRUE
=
14370 DRUNTIME_CPU_X86_FALSE
='#'
14372 DRUNTIME_CPU_X86_TRUE
='#'
14373 DRUNTIME_CPU_X86_FALSE
=
14376 if test "$druntime_target_cpu_parsed" = "s390x"; then
14377 DRUNTIME_CPU_SYSTEMZ_TRUE
=
14378 DRUNTIME_CPU_SYSTEMZ_FALSE
='#'
14380 DRUNTIME_CPU_SYSTEMZ_TRUE
='#'
14381 DRUNTIME_CPU_SYSTEMZ_FALSE
=
14384 if test "$druntime_target_cpu_parsed" = "s390"; then
14385 DRUNTIME_CPU_S390_TRUE
=
14386 DRUNTIME_CPU_S390_FALSE
='#'
14388 DRUNTIME_CPU_S390_TRUE
='#'
14389 DRUNTIME_CPU_S390_FALSE
=
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14395 $as_echo_n "checking for target OS... " >&6; }
14396 if ${druntime_cv_target_os+:} false
; then :
14397 $as_echo_n "(cached) " >&6
14399 druntime_cv_target_os
=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14402 $as_echo "$druntime_cv_target_os" >&6; }
14403 if test -z "$druntime_cv_target_os"; then :
14404 as_fn_error $?
"can't detect target OS" "$LINENO" 5
14410 druntime_target_os_parsed
=""
14411 case "$druntime_cv_target_os" in
14412 aix
*) druntime_target_os_parsed
="aix"
14415 druntime_target_os_parsed
="android"
14417 darwin
*) druntime_target_os_parsed
="darwin"
14420 druntime_target_os_parsed
="dragonflybsd"
14422 freebsd
*|k
*bsd
*-gnu)
14423 druntime_target_os_parsed
="freebsd"
14426 druntime_target_os_parsed
="openbsd"
14429 druntime_target_os_parsed
="netbsd"
14431 linux
*) druntime_target_os_parsed
="linux"
14433 mingw
*) druntime_target_os_parsed
="mingw"
14435 *solaris
*) druntime_target_os_parsed
="solaris"
14437 if test "$druntime_target_os_parsed" = "aix"; then
14438 DRUNTIME_OS_AIX_TRUE
=
14439 DRUNTIME_OS_AIX_FALSE
='#'
14441 DRUNTIME_OS_AIX_TRUE
='#'
14442 DRUNTIME_OS_AIX_FALSE
=
14445 if test "$druntime_target_os_parsed" = "android"; then
14446 DRUNTIME_OS_ANDROID_TRUE
=
14447 DRUNTIME_OS_ANDROID_FALSE
='#'
14449 DRUNTIME_OS_ANDROID_TRUE
='#'
14450 DRUNTIME_OS_ANDROID_FALSE
=
14453 if test "$druntime_target_os_parsed" = "darwin"; then
14454 DRUNTIME_OS_DARWIN_TRUE
=
14455 DRUNTIME_OS_DARWIN_FALSE
='#'
14457 DRUNTIME_OS_DARWIN_TRUE
='#'
14458 DRUNTIME_OS_DARWIN_FALSE
=
14461 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14462 DRUNTIME_OS_DRAGONFLYBSD_TRUE
=
14463 DRUNTIME_OS_DRAGONFLYBSD_FALSE
='#'
14465 DRUNTIME_OS_DRAGONFLYBSD_TRUE
='#'
14466 DRUNTIME_OS_DRAGONFLYBSD_FALSE
=
14469 if test "$druntime_target_os_parsed" = "freebsd"; then
14470 DRUNTIME_OS_FREEBSD_TRUE
=
14471 DRUNTIME_OS_FREEBSD_FALSE
='#'
14473 DRUNTIME_OS_FREEBSD_TRUE
='#'
14474 DRUNTIME_OS_FREEBSD_FALSE
=
14477 if test "$druntime_target_os_parsed" = "netbsd"; then
14478 DRUNTIME_OS_NETBSD_TRUE
=
14479 DRUNTIME_OS_NETBSD_FALSE
='#'
14481 DRUNTIME_OS_NETBSD_TRUE
='#'
14482 DRUNTIME_OS_NETBSD_FALSE
=
14485 if test "$druntime_target_os_parsed" = "openbsd"; then
14486 DRUNTIME_OS_OPENBSD_TRUE
=
14487 DRUNTIME_OS_OPENBSD_FALSE
='#'
14489 DRUNTIME_OS_OPENBSD_TRUE
='#'
14490 DRUNTIME_OS_OPENBSD_FALSE
=
14493 if test "$druntime_target_os_parsed" = "linux"; then
14494 DRUNTIME_OS_LINUX_TRUE
=
14495 DRUNTIME_OS_LINUX_FALSE
='#'
14497 DRUNTIME_OS_LINUX_TRUE
='#'
14498 DRUNTIME_OS_LINUX_FALSE
=
14501 if test "$druntime_target_os_parsed" = "mingw"; then
14502 DRUNTIME_OS_MINGW_TRUE
=
14503 DRUNTIME_OS_MINGW_FALSE
='#'
14505 DRUNTIME_OS_MINGW_TRUE
='#'
14506 DRUNTIME_OS_MINGW_FALSE
=
14509 if test "$druntime_target_os_parsed" = "solaris"; then
14510 DRUNTIME_OS_SOLARIS_TRUE
=
14511 DRUNTIME_OS_SOLARIS_FALSE
='#'
14513 DRUNTIME_OS_SOLARIS_TRUE
='#'
14514 DRUNTIME_OS_SOLARIS_FALSE
=
14518 druntime_target_posix
="no"
14519 case "$druntime_cv_target_os" in
14520 aix
*|
*bsd
*|cygwin
*|darwin
*|dragonfly
*|gnu
*|linux
*|skyos
*|
*solaris
*|sysv
*)
14521 druntime_target_posix
="yes"
14524 if test "$druntime_target_posix" = "yes"; then
14525 DRUNTIME_OS_POSIX_TRUE
=
14526 DRUNTIME_OS_POSIX_FALSE
='#'
14528 DRUNTIME_OS_POSIX_TRUE
='#'
14529 DRUNTIME_OS_POSIX_FALSE
=
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14536 $as_echo_n "checking for thread model used by GDC... " >&6; }
14537 d_thread_model
=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14539 $as_echo "$d_thread_model" >&6; }
14541 # Map from thread model to thread interface.
14543 case $d_thread_model in
14544 aix
) DCFG_THREAD_MODEL
="Posix" ;;
14545 lynx
) DCFG_THREAD_MODEL
="Posix" ;;
14546 posix
) DCFG_THREAD_MODEL
="Posix" ;;
14547 single
) DCFG_THREAD_MODEL
="Single" ;;
14548 win32
) DCFG_THREAD_MODEL
="Win32" ;;
14549 # TODO: These targets need porting.
14550 dce|mipssde|rtems|tpf|vxworks
)
14551 DCFG_THREAD_MODEL
="Single" ;;
14552 *) as_fn_error
"Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14559 ac_cpp
='$CPP $CPPFLAGS'
14560 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14561 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14562 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14565 $as_echo_n "checking for ARM unwinder... " >&6; }
14566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14567 /* end confdefs.h. */
14568 #include <unwind.h>
14573 #if __ARM_EABI_UNWINDER__
14581 if ac_fn_c_try_compile
"$LINENO"; then :
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14583 $as_echo "no" >&6; }
14584 DCFG_ARM_EABI_UNWINDER
=false
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14587 $as_echo "yes" >&6; }
14588 DCFG_ARM_EABI_UNWINDER
=true
14590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14592 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14593 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
=
14594 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
='#'
14596 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
='#'
14597 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
=
14601 ac_cpp
='$CPP $CPPFLAGS'
14602 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14603 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14604 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14611 ac_cpp
='$CPP $CPPFLAGS'
14612 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14613 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14614 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14617 $as_echo_n "checking for minfo section bracketing... " >&6; }
14618 case "$druntime_cv_target_os" in
14620 section
="__DATA,__minfodata"
14621 start
="section\$start\$__DATA\$__minfodata"
14622 stop
="section\$end\$__DATA\$__minfodata"
14626 start
="__start_minfo"
14627 stop
="__stop_minfo"
14630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14633 void* module_info_ptr __attribute__((section ("$section")));
14634 extern void* start_minfo __asm__("$start") __attribute__((visibility ("hidden")));
14635 extern void* stop_minfo __asm__("$stop") __attribute__((visibility ("hidden")));
14639 // Never run, just to prevent compiler from optimizing access
14640 return (int)(&stop_minfo - &start_minfo);
14644 if ac_fn_c_try_link
"$LINENO"; then :
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14646 $as_echo "yes" >&6; }
14647 DCFG_MINFO_BRACKETING
=true
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14650 $as_echo "no" >&6; }
14651 DCFG_MINFO_BRACKETING
=false
14653 rm -f core conftest.err conftest.
$ac_objext \
14654 conftest
$ac_exeext conftest.
$ac_ext
14656 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14657 DRUNTIME_OS_MINFO_BRACKETING_TRUE
=
14658 DRUNTIME_OS_MINFO_BRACKETING_FALSE
='#'
14660 DRUNTIME_OS_MINFO_BRACKETING_TRUE
='#'
14661 DRUNTIME_OS_MINFO_BRACKETING_FALSE
=
14665 ac_cpp
='$CPP $CPPFLAGS'
14666 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14667 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14668 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14673 ac_cpp
='$CPP $CPPFLAGS'
14674 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14675 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14676 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14678 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>
14680 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes
; then :
14681 DCFG_DLPI_TLS_MODID
=true
14683 DCFG_DLPI_TLS_MODID
=false
14688 ac_cpp
='$CPP $CPPFLAGS'
14689 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14690 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14691 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14696 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
14697 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14698 # relocs. Work around by disabling TLS transitions. Not necessary
14699 # on 32-bit x86, but cannot be distinguished reliably in specs.
14700 druntime_ld_prog
=`$CC -print-prog-name=ld`
14702 druntime_ld_relax_transtls
=no
14703 if test -n "$druntime_ld_prog" \
14704 && $druntime_ld_prog -v 2>&1 |
grep GNU
> /dev
/null
2>&1; then
14705 druntime_ld_gld
=yes
14707 echo 'int main (void) { return 0; }' > conftest.c
14708 save_LDFLAGS
="$LDFLAGS"
14709 LDFLAGS
="$LDFLAGS -Wl,-z,relax=transtls"
14710 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c
> /dev
/null
2>&1; then
14711 druntime_ld_relax_transtls
=yes
14713 LDFLAGS
="$save_LDFLAGS"
14714 rm -f conftest.c conftest
14716 if test "$druntime_ld_relax_transtls" = "yes"; then
14717 OS_LINK_SPEC
='-z relax=transtls'
14725 ac_cpp
='$CPP $CPPFLAGS'
14726 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14727 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14728 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14730 DCFG_HAVE_QSORT_R
=false
14731 ac_fn_c_check_func
"$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14732 if test "x$ac_cv_func_qsort_r" = xyes
; then :
14733 DCFG_HAVE_QSORT_R
=true
14738 ac_cpp
='$CPP $CPPFLAGS'
14739 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14740 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14741 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14747 gdc_save_DFLAGS
=$GDCFLAGS
14748 GDCFLAGS
="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14751 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14752 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14753 ac_compiler_gnu
=yes
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14756 $as_echo_n "checking for library containing malloc... " >&6; }
14757 if ${ac_cv_search_malloc+:} false
; then :
14758 $as_echo_n "(cached) " >&6
14760 ac_func_search_save_LIBS
=$LIBS
14761 cat > conftest.
$ac_ext <<_ACEOF
14763 extern(C) int malloc();
14765 extern(C) int main() {
14766 malloc(); return 0;
14769 for ac_lib
in '' c
; do
14770 if test -z "$ac_lib"; then
14771 ac_res
="none required"
14774 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14776 if ac_fn_d_try_link
"$LINENO"; then :
14777 ac_cv_search_malloc
=$ac_res
14779 rm -f core conftest.err conftest.
$ac_objext \
14781 if ${ac_cv_search_malloc+:} false
; then :
14785 if ${ac_cv_search_malloc+:} false
; then :
14788 ac_cv_search_malloc
=no
14790 rm conftest.
$ac_ext
14791 LIBS
=$ac_func_search_save_LIBS
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14794 $as_echo "$ac_cv_search_malloc" >&6; }
14795 ac_res
=$ac_cv_search_malloc
14796 if test "$ac_res" != no
; then :
14797 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14802 $as_echo_n "checking for library containing pthread_create... " >&6; }
14803 if ${ac_cv_search_pthread_create+:} false
; then :
14804 $as_echo_n "(cached) " >&6
14806 ac_func_search_save_LIBS
=$LIBS
14807 cat > conftest.
$ac_ext <<_ACEOF
14809 extern(C) int pthread_create();
14811 extern(C) int main() {
14812 pthread_create(); return 0;
14815 for ac_lib
in '' pthread
; do
14816 if test -z "$ac_lib"; then
14817 ac_res
="none required"
14820 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14822 if ac_fn_d_try_link
"$LINENO"; then :
14823 ac_cv_search_pthread_create
=$ac_res
14825 rm -f core conftest.err conftest.
$ac_objext \
14827 if ${ac_cv_search_pthread_create+:} false
; then :
14831 if ${ac_cv_search_pthread_create+:} false
; then :
14834 ac_cv_search_pthread_create
=no
14836 rm conftest.
$ac_ext
14837 LIBS
=$ac_func_search_save_LIBS
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14840 $as_echo "$ac_cv_search_pthread_create" >&6; }
14841 ac_res
=$ac_cv_search_pthread_create
14842 if test "$ac_res" != no
; then :
14843 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14848 $as_echo_n "checking for library containing cosf... " >&6; }
14849 if ${ac_cv_search_cosf+:} false
; then :
14850 $as_echo_n "(cached) " >&6
14852 ac_func_search_save_LIBS
=$LIBS
14853 cat > conftest.
$ac_ext <<_ACEOF
14855 extern(C) int cosf();
14857 extern(C) int main() {
14861 for ac_lib
in '' m
; do
14862 if test -z "$ac_lib"; then
14863 ac_res
="none required"
14866 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14868 if ac_fn_d_try_link
"$LINENO"; then :
14869 ac_cv_search_cosf
=$ac_res
14871 rm -f core conftest.err conftest.
$ac_objext \
14873 if ${ac_cv_search_cosf+:} false
; then :
14877 if ${ac_cv_search_cosf+:} false
; then :
14880 ac_cv_search_cosf
=no
14882 rm conftest.
$ac_ext
14883 LIBS
=$ac_func_search_save_LIBS
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14886 $as_echo "$ac_cv_search_cosf" >&6; }
14887 ac_res
=$ac_cv_search_cosf
14888 if test "$ac_res" != no
; then :
14889 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14894 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14895 if ${ac_cv_search_clock_gettime+:} false
; then :
14896 $as_echo_n "(cached) " >&6
14898 ac_func_search_save_LIBS
=$LIBS
14899 cat > conftest.
$ac_ext <<_ACEOF
14901 extern(C) int clock_gettime();
14903 extern(C) int main() {
14904 clock_gettime(); return 0;
14907 for ac_lib
in '' rt
; do
14908 if test -z "$ac_lib"; then
14909 ac_res
="none required"
14912 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14914 if ac_fn_d_try_link
"$LINENO"; then :
14915 ac_cv_search_clock_gettime
=$ac_res
14917 rm -f core conftest.err conftest.
$ac_objext \
14919 if ${ac_cv_search_clock_gettime+:} false
; then :
14923 if ${ac_cv_search_clock_gettime+:} false
; then :
14926 ac_cv_search_clock_gettime
=no
14928 rm conftest.
$ac_ext
14929 LIBS
=$ac_func_search_save_LIBS
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14932 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14933 ac_res
=$ac_cv_search_clock_gettime
14934 if test "$ac_res" != no
; then :
14935 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14940 # This checks to see if the host supports the compiler-generated builtins
14941 # for atomic operations for various integral sizes. Note, this is intended
14942 # to be an all-or-nothing switch, so all the atomic operations that are
14943 # used should be checked.
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14945 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14946 if ${druntime_cv_atomic_byte+:} false
; then :
14947 $as_echo_n "(cached) " >&6
14950 cat > conftest.
$ac_ext <<_ACEOF
14952 import gcc.builtins;
14954 extern(C) int main() {
14958 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14959 __atomic_load_1(&c1, 5);
14960 __atomic_store_1(&c1, c2, 5);
14965 if ac_fn_d_try_link
"$LINENO"; then :
14966 druntime_cv_atomic_byte
=yes
14968 druntime_cv_atomic_byte
=no
14970 rm -f core conftest.err conftest.
$ac_objext \
14971 conftest
$ac_exeext conftest.
$ac_ext
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14976 $as_echo "$druntime_cv_atomic_byte" >&6; }
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14979 $as_echo_n "checking for atomic builtins for short... " >&6; }
14980 if ${druntime_cv_atomic_short+:} false
; then :
14981 $as_echo_n "(cached) " >&6
14984 cat > conftest.
$ac_ext <<_ACEOF
14986 import gcc.builtins;
14988 extern(C) int main() {
14992 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14993 __atomic_load_2(&c1, 5);
14994 __atomic_store_2(&c1, c2, 5);
14999 if ac_fn_d_try_link
"$LINENO"; then :
15000 druntime_cv_atomic_short
=yes
15002 druntime_cv_atomic_short
=no
15004 rm -f core conftest.err conftest.
$ac_objext \
15005 conftest
$ac_exeext conftest.
$ac_ext
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
15010 $as_echo "$druntime_cv_atomic_short" >&6; }
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
15013 $as_echo_n "checking for atomic builtins for int... " >&6; }
15014 if ${druntime_cv_atomic_int+:} false
; then :
15015 $as_echo_n "(cached) " >&6
15018 cat > conftest.
$ac_ext <<_ACEOF
15020 import gcc.builtins;
15022 extern(C) int main() {
15026 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
15027 __atomic_load_4(&c1, 5);
15028 __atomic_store_4(&c1, c2, 5);
15033 if ac_fn_d_try_link
"$LINENO"; then :
15034 druntime_cv_atomic_int
=yes
15036 druntime_cv_atomic_int
=no
15038 rm -f core conftest.err conftest.
$ac_objext \
15039 conftest
$ac_exeext conftest.
$ac_ext
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
15044 $as_echo "$druntime_cv_atomic_int" >&6; }
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
15047 $as_echo_n "checking for atomic builtins for long... " >&6; }
15048 if ${druntime_cv_atomic_long+:} false
; then :
15049 $as_echo_n "(cached) " >&6
15052 cat > conftest.
$ac_ext <<_ACEOF
15054 import gcc.builtins;
15056 extern(C) int main() {
15060 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
15061 __atomic_load_8(&c1, 5);
15062 __atomic_store_8(&c1, c2, 5);
15067 if ac_fn_d_try_link
"$LINENO"; then :
15068 druntime_cv_atomic_long
=yes
15070 druntime_cv_atomic_long
=no
15072 rm -f core conftest.err conftest.
$ac_objext \
15073 conftest
$ac_exeext conftest.
$ac_ext
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
15078 $as_echo "$druntime_cv_atomic_long" >&6; }
15080 # Have atomic builtin support if all but the long test above passes.
15081 DCFG_HAVE_ATOMIC_BUILTINS
=false
15082 if test "$druntime_cv_atomic_byte" = yes \
15083 && test "$druntime_cv_atomic_short" = yes \
15084 && test "$druntime_cv_atomic_int" = yes; then \
15085 DCFG_HAVE_ATOMIC_BUILTINS
=true
15088 # Have 64-bit atomic support if the long test above passes.
15089 DCFG_HAVE_64BIT_ATOMICS
=false
15090 if test "$druntime_cv_atomic_long" = yes; then
15091 DCFG_HAVE_64BIT_ATOMICS
=true
15098 ac_cpp
='$CPP $CPPFLAGS'
15099 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15100 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15101 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15104 GDCFLAGS
=$gdc_save_DFLAGS
15109 # Check whether --with-libatomic was given.
15110 if test "${with_libatomic+set}" = set; then :
15111 withval
=$with_libatomic;
15115 DCFG_HAVE_LIBATOMIC
=false
15117 if test "x$enable_libatomic" != "xno" && test "x$with_libatomic" != "xno"; then :
15119 DCFG_HAVE_LIBATOMIC
=true
15120 LIBATOMIC
=..
/..
/libatomic
/libatomic_convenience.la
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
15125 $as_echo_n "checking for libatomic... " >&6; }
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15127 $as_echo "disabled" >&6; }
15136 ac_cpp
='$CPP $CPPFLAGS'
15137 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15138 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15139 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15141 BACKTRACE_SUPPORTED
=false
15142 BACKTRACE_USES_MALLOC
=false
15143 BACKTRACE_SUPPORTS_THREADS
=false
15147 # Check whether --with-libbacktrace was given.
15148 if test "${with_libbacktrace+set}" = set; then :
15149 withval
=$with_libbacktrace;
15153 if test "x$enable_libbacktrace" != "xno" && test "x$with_libbacktrace" != "xno"; then :
15155 LIBBACKTRACE
=..
/..
/libbacktrace
/libbacktrace.la
15157 gdc_save_CPPFLAGS
=$CPPFLAGS
15158 CPPFLAGS
="$CPPFLAGS -I../libbacktrace "
15160 ac_fn_c_check_header_mongrel
"$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
15161 if test "x$ac_cv_header_backtrace_supported_h" = xyes
; then :
15162 have_libbacktrace_h
=true
15164 have_libbacktrace_h
=false
15169 if $have_libbacktrace_h; then
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
15171 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
15172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15173 /* end confdefs.h. */
15175 #include <backtrace-supported.h>
15176 #if BACKTRACE_SUPPORTED
15177 FOUND_LIBBACKTRACE_RESULT_GDC
15181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15182 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
15183 BACKTRACE_SUPPORTED
=true
15185 BACKTRACE_SUPPORTED
=false
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
15190 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
15193 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
15194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15195 /* end confdefs.h. */
15197 #include <backtrace-supported.h>
15198 #if BACKTRACE_USES_MALLOC
15199 FOUND_LIBBACKTRACE_RESULT_GDC
15203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15204 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
15205 BACKTRACE_USES_MALLOC
=true
15207 BACKTRACE_USES_MALLOC
=false
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
15212 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
15215 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
15216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15217 /* end confdefs.h. */
15219 #include <backtrace-supported.h>
15220 #if BACKTRACE_SUPPORTS_THREADS
15221 FOUND_LIBBACKTRACE_RESULT_GDC
15225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15226 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
15227 BACKTRACE_SUPPORTS_THREADS
=true
15229 BACKTRACE_SUPPORTS_THREADS
=false
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
15234 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
15236 CPPFLAGS
=$gdc_save_CPPFLAGS
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
15241 $as_echo_n "checking for libbacktrace... " >&6; }
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15243 $as_echo "disabled" >&6; }
15252 ac_cpp
='$CPP $CPPFLAGS'
15253 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15254 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15255 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15259 # Libtool has already checked this, so re-use the inferred dlopen lib.
15260 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
15262 LIBS
="$LIBS $lt_cv_dlopen_libs"
15267 druntime_check_both
=no
15268 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
15269 if test "x$ac_cv_func_connect" = xyes
; then :
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15273 $as_echo_n "checking for connect in -lsocket... " >&6; }
15274 if ${ac_cv_lib_socket_connect+:} false
; then :
15275 $as_echo_n "(cached) " >&6
15277 ac_check_lib_save_LIBS
=$LIBS
15278 LIBS
="-lsocket $LIBS"
15279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15280 /* end confdefs.h. */
15282 /* Override any GCC internal prototype to avoid an error.
15283 Use char because int might match the return type of a GCC
15284 builtin and then its argument prototype would still apply. */
15297 if ac_fn_c_try_link
"$LINENO"; then :
15298 ac_cv_lib_socket_connect
=yes
15300 ac_cv_lib_socket_connect
=no
15302 rm -f core conftest.err conftest.
$ac_objext \
15303 conftest
$ac_exeext conftest.
$ac_ext
15304 LIBS
=$ac_check_lib_save_LIBS
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15307 $as_echo "$ac_cv_lib_socket_connect" >&6; }
15308 if test "x$ac_cv_lib_socket_connect" = xyes
; then :
15309 LIBS
="$LIBS -lsocket"
15311 druntime_check_both
=yes
15316 if test "$druntime_check_both" = "yes"; then
15317 druntime_old_libs
=$LIBS
15318 LIBS
="$LIBS -lsocket -lnsl"
15319 ac_fn_c_check_func
"$LINENO" "accept" "ac_cv_func_accept"
15320 if test "x$ac_cv_func_accept" = xyes
; then :
15323 LIBS
=$druntime_old_libs
15327 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15328 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15332 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15333 if ${ac_cv_lib_nsl_gethostbyname+:} false
; then :
15334 $as_echo_n "(cached) " >&6
15336 ac_check_lib_save_LIBS
=$LIBS
15338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15341 /* Override any GCC internal prototype to avoid an error.
15342 Use char because int might match the return type of a GCC
15343 builtin and then its argument prototype would still apply. */
15347 char gethostbyname ();
15351 return gethostbyname ();
15356 if ac_fn_c_try_link
"$LINENO"; then :
15357 ac_cv_lib_nsl_gethostbyname
=yes
15359 ac_cv_lib_nsl_gethostbyname
=no
15361 rm -f core conftest.err conftest.
$ac_objext \
15362 conftest
$ac_exeext conftest.
$ac_ext
15363 LIBS
=$ac_check_lib_save_LIBS
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15366 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15367 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
; then :
15375 # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15376 # "yes" for targets that have 'version = AsmExternal'.
15377 druntime_fiber_asm_external
=no
15378 case "$target_cpu" in
15381 i
[34567]86|x86_64 | \
15383 druntime_fiber_asm_external
=yes
15386 if test "$druntime_fiber_asm_external" = no
; then
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15388 $as_echo_n "checking for library containing swapcontext... " >&6; }
15389 if ${ac_cv_search_swapcontext+:} false
; then :
15390 $as_echo_n "(cached) " >&6
15392 ac_func_search_save_LIBS
=$LIBS
15393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15394 /* end confdefs.h. */
15396 /* Override any GCC internal prototype to avoid an error.
15397 Use char because int might match the return type of a GCC
15398 builtin and then its argument prototype would still apply. */
15402 char swapcontext ();
15406 return swapcontext ();
15411 for ac_lib
in '' c ucontext
; do
15412 if test -z "$ac_lib"; then
15413 ac_res
="none required"
15416 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15418 if ac_fn_c_try_link
"$LINENO"; then :
15419 ac_cv_search_swapcontext
=$ac_res
15421 rm -f core conftest.err conftest.
$ac_objext \
15423 if ${ac_cv_search_swapcontext+:} false
; then :
15427 if ${ac_cv_search_swapcontext+:} false
; then :
15430 ac_cv_search_swapcontext
=no
15432 rm conftest.
$ac_ext
15433 LIBS
=$ac_func_search_save_LIBS
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15436 $as_echo "$ac_cv_search_swapcontext" >&6; }
15437 ac_res
=$ac_cv_search_swapcontext
15438 if test "$ac_res" != no
; then :
15439 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15442 as_fn_error $?
"swapcontext required but not found" "$LINENO" 5
15449 ac_cpp
='$CPP $CPPFLAGS'
15450 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15451 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15452 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15457 # Check whether --with-target-system-zlib was given.
15458 if test "${with_target_system_zlib+set}" = set; then :
15459 withval
=$with_target_system_zlib;
15461 with_target_system_zlib
=no
15465 case "$with_target_system_zlib" in
15467 *) as_fn_error $?
"Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15471 $as_echo_n "checking for system zlib... " >&6; }
15474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15475 /* end confdefs.h. */
15480 gzopen("none", "rb")
15485 if ac_fn_c_try_link
"$LINENO"; then :
15487 if test "$cross_compiling" = yes; then :
15488 system_zlib_found
=no
15491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15492 /* end confdefs.h. */
15496 gzFile file = gzopen("none", "rb");
15501 if ac_fn_c_try_run
"$LINENO"; then :
15502 system_zlib_found
=yes
15504 system_zlib_found
=no
15506 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15507 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15512 system_zlib_found
=no
15514 rm -f core conftest.err conftest.
$ac_objext \
15515 conftest
$ac_exeext conftest.
$ac_ext
15518 if test x
$system_zlib_found = xyes
&& test x
$with_target_system_zlib != xno
; then
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15520 $as_echo "found" >&6; }
15522 elif test x
$system_zlib_found = xno
&& test x
$with_target_system_zlib = xyes
; then
15523 as_fn_error $?
"system zlib required but not found" "$LINENO" 5
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15526 $as_echo "just compiled" >&6; }
15527 LIBZ
=..
/..
/zlib
/libz_convenience.la
15532 ac_cpp
='$CPP $CPPFLAGS'
15533 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15534 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15535 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15542 $as_echo_n "checking D GCC version... " >&6; }
15543 gcc_version
=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15545 $as_echo "$gcc_version" >&6; }
15549 # Check whether --with-cross-host was given.
15550 if test "${with_cross_host+set}" = set; then :
15551 withval
=$with_cross_host;
15555 libphobos_toolexecdir
=no
15556 libphobos_toolexeclibdir
=no
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15559 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15560 # Check whether --enable-version-specific-runtime-libs was given.
15561 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15562 enableval
=$enable_version_specific_runtime_libs; case "$enableval" in
15563 yes) version_specific_libs
=yes ;;
15564 no
) version_specific_libs
=no
;;
15565 *) as_fn_error $?
"Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15568 version_specific_libs
=no
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15572 $as_echo "$version_specific_libs" >&6; }
15575 # Check whether --with-toolexeclibdir was given.
15576 if test "${with_toolexeclibdir+set}" = set; then :
15577 withval
=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15581 with_toolexeclibdir
=`echo $with_toolexeclibdir | sed 's,/$,,'`
15585 with_toolexeclibdir
=no
15590 # Version-specific runtime libs processing.
15591 if test $version_specific_libs = yes; then
15592 libphobos_toolexecdir
='${libdir}/gcc/${host_alias}'
15593 libphobos_toolexeclibdir
='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15595 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15596 # Install a library built with a cross compiler in tooldir, not libdir.
15597 if test -n "$with_cross_host" && test x
"$with_cross_host" != x
"no"; then
15598 libphobos_toolexecdir
='${exec_prefix}/${host_alias}'
15599 case ${with_toolexeclibdir} in
15601 libphobos_toolexeclibdir
='${toolexecdir}/lib'
15604 libphobos_toolexeclibdir
=${with_toolexeclibdir}
15608 libphobos_toolexecdir
='${libdir}/gcc/${host_alias}'
15609 libphobos_toolexeclibdir
='${libdir}'
15611 multi_os_directory
=`$GDC -print-multi-os-directory`
15612 case $multi_os_directory in
15613 .
) ;; # Avoid trailing /.
15614 *) libphobos_toolexeclibdir
=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15620 # Default case for install directory for D sources files.
15621 gdc_include_dir
='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15626 $as_echo_n "checking for --enable-libphobos... " >&6; }
15627 # Check whether --enable-libphobos was given.
15628 if test "${enable_libphobos+set}" = set; then :
15629 enableval
=$enable_libphobos;
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15633 $as_echo "$enable_libphobos" >&6; }
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15636 $as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15638 # Check whether --with-libphobos-druntime-only was given.
15639 if test "${with_libphobos_druntime_only+set}" = set; then :
15640 withval
=$with_libphobos_druntime_only;
15642 with_libphobos_druntime_only
=auto
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15646 $as_echo "$with_libphobos_druntime_only" >&6; }
15648 case "$with_libphobos_druntime_only" in
15650 *) as_fn_error $?
"Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15653 # See if supported.
15654 unset LIBPHOBOS_SUPPORTED
15655 unset LIBDRUNTIME_ONLY
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15657 $as_echo_n "checking for host support for libphobos... " >&6; }
15658 .
${srcdir}/configure.tgt
15660 x86_64-
*-solaris2.
* | i?
86-*-solaris2.
*)
15661 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15662 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15663 LIBPHOBOS_SUPPORTED
=no
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15668 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15670 # Decide if it's usable.
15671 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15672 *:no
) use_libphobos
=no
;;
15673 *:yes) use_libphobos
=yes ;;
15674 yes:*) use_libphobos
=yes ;;
15675 *:*) use_libphobos
=no
;;
15677 if test x
$use_libphobos = xyes
; then
15678 ENABLE_LIBPHOBOS_TRUE
=
15679 ENABLE_LIBPHOBOS_FALSE
='#'
15681 ENABLE_LIBPHOBOS_TRUE
='#'
15682 ENABLE_LIBPHOBOS_FALSE
=
15686 # Decide if only libdruntime should be built.
15687 case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
15688 *:no
) only_libdruntime
=no
;;
15689 *:yes) only_libdruntime
=yes ;;
15690 yes:*) only_libdruntime
=yes ;;
15691 *:*) only_libdruntime
=no
;;
15693 if test x
$only_libdruntime = xyes
; then
15694 ENABLE_LIBDRUNTIME_ONLY_TRUE
=
15695 ENABLE_LIBDRUNTIME_ONLY_FALSE
='#'
15697 ENABLE_LIBDRUNTIME_ONLY_TRUE
='#'
15698 ENABLE_LIBDRUNTIME_ONLY_FALSE
=
15702 # Enable expensive internal checks
15703 # Check whether --enable-libphobos-checking was given.
15704 if test "${enable_libphobos_checking+set}" = set; then :
15705 enableval
=$enable_libphobos_checking; ac_checking_flags
="${enableval}"
15707 ac_checking_flags
=release
15710 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
15711 for check
in release
$ac_checking_flags
15714 # These set all the flags to specific states
15715 yes|all
) RELEASE_FLAG
="-fno-release" ; ASSERT_FLAG
= ;
15717 no|none|release
) RELEASE_FLAG
="-frelease" ; ASSERT_FLAG
= ;
15719 # These enable particular checks
15720 assert
) ASSERT_FLAG
="-fassert" ;;
15721 valgrind
) VALGRIND_FLAG
="-fdebug=VALGRIND" ;;
15727 CHECKING_DFLAGS
="$RELEASE_FLAG $ASSERT_FLAG $VALGRIND_FLAG"
15731 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15732 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15733 DRTSTUFF_SPEC
=$srcdir/src
/drtstuff.spec
15735 DRTSTUFF_SPEC
=/dev
/null
15739 # Add dependencies for libgphobos.spec file
15740 SPEC_PHOBOS_DEPS
="$LIBS"
15743 # Libdruntime / phobos soname version
15744 libtool_VERSION
=5:0:0
15747 # Set default flags (after DRUNTIME_WERROR!)
15748 if test -z "$GDCFLAGS"; then
15753 WARN_DFLAGS
="-Wall $WERROR_FLAG"
15756 # Sanity check for the cross-compilation case:
15757 ac_fn_c_check_header_mongrel
"$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15758 if test "x$ac_cv_header_stdio_h" = xyes
; then :
15761 as_fn_error $?
"cannot find stdio.h." "$LINENO" 5
15767 for ac_header
in stddef.h stdlib.h
15769 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15770 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15771 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15772 cat >>confdefs.h
<<_ACEOF
15773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15781 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
15782 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
15783 have_valgrind_h
=yes
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
15791 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
15792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15793 /* end confdefs.h. */
15794 #include <valgrind/memcheck.h>
15795 #ifndef VALGRIND_DISCARD
15796 #error VALGRIND_DISCARD not defined
15799 if ac_fn_c_try_cpp
"$LINENO"; then :
15800 have_valgrind_memcheck_h
=yes
15802 have_valgrind_memcheck_h
=no
15804 rm -f conftest.err conftest.i conftest.
$ac_ext
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_valgrind_memcheck_h" >&5
15806 $as_echo "$have_valgrind_memcheck_h" >&6; }
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
15808 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
15809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15810 /* end confdefs.h. */
15811 #include <memcheck.h>
15812 #ifndef VALGRIND_DISCARD
15813 #error VALGRIND_DISCARD not defined
15816 if ac_fn_c_try_cpp
"$LINENO"; then :
15817 have_memcheck_h
=yes
15821 rm -f conftest.err conftest.i conftest.
$ac_ext
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_memcheck_h" >&5
15823 $as_echo "$have_memcheck_h" >&6; }
15825 if test x
$VALGRIND_FLAG != x
; then
15827 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
15830 if test $have_valgrind_memcheck_h = yes; then
15832 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
15835 if test $have_memcheck_h = yes; then
15837 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
15841 if test x
$VALGRIND_FLAG != x
; then
15842 if (test $have_valgrind_h = no \
15843 && test $have_memcheck_h = no \
15844 && test $have_valgrind_memcheck_h = no
); then
15845 as_fn_error $?
"*** valgrind checking requested, but
15846 *** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
15851 ac_config_files
="$ac_config_files Makefile"
15854 ac_config_files
="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15856 ac_config_files
="$ac_config_files src/libgphobos.spec"
15858 ac_config_files
="$ac_config_files testsuite/testsuite_flags"
15861 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15862 # that multilib installs will end up installed in the correct place.
15863 # The testsuite needs it for multilib-aware ABI baseline files.
15864 # To work around this not being passed down from config-ml.in ->
15865 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15866 # append it here. Only modify Makefiles that have just been created.
15868 # Also, get rid of this simulated-VPATH thing that automake does.
15869 ac_config_files
="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15872 cat >confcache
<<\_ACEOF
15873 # This file is a shell script that caches the results of configure
15874 # tests run on this system so they can be shared between configure
15875 # scripts and configure runs, see configure's option --config-cache.
15876 # It is not useful on other systems. If it contains results you don't
15877 # want to keep, you may remove or edit it.
15879 # config.status only pays attention to the cache file if you give it
15880 # the --recheck option to rerun configure.
15882 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15883 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15884 # following values.
15888 # The following way of writing the cache mishandles newlines in values,
15889 # but we know of no workaround that is simple, portable, and efficient.
15890 # So, we kill variables containing newlines.
15891 # Ultrix sh set writes to stderr and can't be redirected directly,
15892 # and sets the high bit in the cache file unless we assign to the vars.
15894 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15895 eval ac_val
=\$
$ac_var
15899 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15900 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15903 _ | IFS | as_nl
) ;; #(
15904 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15905 *) { eval $ac_var=; unset $ac_var;} ;;
15911 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15912 *${as_nl}ac_space
=\
*)
15913 # `set' does not quote correctly, so add quotes: double-quote
15914 # substitution turns \\\\ into \\, and sed turns \\ into \.
15917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15920 # `set' quotes correctly as required by POSIX, so do not add quotes.
15921 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15930 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15932 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15934 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15935 if test -w "$cache_file"; then
15936 if test "x$cache_file" != "x/dev/null"; then
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15938 $as_echo "$as_me: updating cache $cache_file" >&6;}
15939 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15940 cat confcache
>"$cache_file"
15942 case $cache_file in #(
15944 mv -f confcache
"$cache_file"$$
&&
15945 mv -f "$cache_file"$$
"$cache_file" ;; #(
15947 mv -f confcache
"$cache_file" ;;
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15953 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15958 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15959 # Let make expand exec_prefix.
15960 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15962 DEFS
=-DHAVE_CONFIG_H
15967 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15968 # 1. Remove the extension, and $U if already installed.
15969 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15970 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15971 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15972 # will be set to the directory where LIBOBJS objects are built.
15973 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15974 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15976 LIBOBJS
=$ac_libobjs
15978 LTLIBOBJS
=$ac_ltlibobjs
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15982 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15983 if test -n "$am_sleep_pid"; then
15984 # Hide warnings about reused PIDs.
15985 wait $am_sleep_pid 2>/dev
/null
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15988 $as_echo "done" >&6; }
15989 if test -n "$EXEEXT"; then
15991 am__EXEEXT_FALSE
='#'
15993 am__EXEEXT_TRUE
='#'
15997 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15998 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
15999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16001 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
16002 as_fn_error $?
"conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
16003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16005 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
16006 as_fn_error $?
"conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
16007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16009 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
16010 as_fn_error $?
"conditional \"DRUNTIME_CPU_ARM\" was never defined.
16011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16013 if test -z "${DRUNTIME_CPU_LOONGARCH_TRUE}" && test -z "${DRUNTIME_CPU_LOONGARCH_FALSE}"; then
16014 as_fn_error $?
"conditional \"DRUNTIME_CPU_LOONGARCH\" was never defined.
16015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16017 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
16018 as_fn_error $?
"conditional \"DRUNTIME_CPU_MIPS\" was never defined.
16019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16021 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
16022 as_fn_error $?
"conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
16023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16025 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
16026 as_fn_error $?
"conditional \"DRUNTIME_CPU_X86\" was never defined.
16027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16029 if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
16030 as_fn_error $?
"conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
16031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16033 if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
16034 as_fn_error $?
"conditional \"DRUNTIME_CPU_S390\" was never defined.
16035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16037 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
16038 as_fn_error $?
"conditional \"DRUNTIME_OS_AIX\" was never defined.
16039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16041 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
16042 as_fn_error $?
"conditional \"DRUNTIME_OS_ANDROID\" was never defined.
16043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16045 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
16046 as_fn_error $?
"conditional \"DRUNTIME_OS_DARWIN\" was never defined.
16047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16049 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
16050 as_fn_error $?
"conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
16051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16053 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
16054 as_fn_error $?
"conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
16055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16057 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
16058 as_fn_error $?
"conditional \"DRUNTIME_OS_NETBSD\" was never defined.
16059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16061 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
16062 as_fn_error $?
"conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
16063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16065 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
16066 as_fn_error $?
"conditional \"DRUNTIME_OS_LINUX\" was never defined.
16067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16069 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
16070 as_fn_error $?
"conditional \"DRUNTIME_OS_MINGW\" was never defined.
16071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16073 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
16074 as_fn_error $?
"conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
16075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16077 if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
16078 as_fn_error $?
"conditional \"DRUNTIME_OS_POSIX\" was never defined.
16079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16081 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
16082 as_fn_error $?
"conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
16083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16085 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
16086 as_fn_error $?
"conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
16087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16089 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
16090 as_fn_error $?
"conditional \"ENABLE_LIBPHOBOS\" was never defined.
16091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16093 if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
16094 as_fn_error $?
"conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
16095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16098 : "${CONFIG_STATUS=./config.status}"
16100 ac_clean_files_save
=$ac_clean_files
16101 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16103 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16105 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16107 # Generated by $as_me.
16108 # Run this file to recreate the current configuration.
16109 # Compiler output produced by configure, useful for debugging
16110 # configure, is in config.log if it exists.
16113 ac_cs_recheck=false
16116 SHELL=\${CONFIG_SHELL-$SHELL}
16119 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16120 ## -------------------- ##
16121 ## M4sh Initialization. ##
16122 ## -------------------- ##
16124 # Be more Bourne compatible
16125 DUALCASE
=1; export DUALCASE
# for MKS sh
16126 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16129 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16130 # is contrary to our usage. Disable this feature.
16131 alias -g '${1+"$@"}'='"$@"'
16132 setopt NO_GLOB_SUBST
16134 case `(set -o) 2>/dev/null` in #(
16146 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16147 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16148 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16149 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16150 # Prefer a ksh shell builtin over an external printf program on Solaris,
16151 # but without wasting forks for bash or zsh.
16152 if test -z "$BASH_VERSION$ZSH_VERSION" \
16153 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16154 as_echo='print
-r --'
16155 as_echo_n='print
-rn --'
16156 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16157 as_echo='printf %s
\n'
16158 as_echo_n='printf %s
'
16160 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16161 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16162 as_echo_n='/usr
/ucb
/echo -n'
16164 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16165 as_echo_n_body='eval
16169 expr "X$arg" : "X\\(.*\\)$as_nl";
16170 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16172 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16174 export as_echo_n_body
16175 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16177 export as_echo_body
16178 as_echo='sh
-c $as_echo_body as_echo
'
16181 # The user is always right.
16182 if test "${PATH_SEPARATOR+set}" != set; then
16184 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16185 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16192 # We need space, tab and new line, in precisely that order. Quoting is
16193 # there to prevent editors from complaining about space-tab.
16194 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16195 # splitting by setting IFS to empty value.)
16198 # Find who we are. Look in the path if we contain no directory separator.
16201 *[\\/]* ) as_myself=$0 ;;
16202 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16203 for as_dir in $PATH
16206 test -z "$as_dir" && as_dir=.
16207 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16213 # We did not find ourselves, most probably we were run as `sh COMMAND'
16214 # in which case we are not to be found in the path.
16215 if test "x$as_myself" = x
; then
16218 if test ! -f "$as_myself"; then
16219 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16223 # Unset variables that we do not need and which cause bugs (e.g. in
16224 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16225 # suppresses any "Segmentation fault" message there. '((' could
16226 # trigger a bug in pdksh 5.2.14.
16227 for as_var
in BASH_ENV ENV MAIL MAILPATH
16228 do eval test x\
${$as_var+set} = xset \
16229 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16242 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16245 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16246 # ----------------------------------------
16247 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16248 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16249 # script with STATUS, using 1 if that was 0.
16252 as_status
=$1; test $as_status -eq 0 && as_status
=1
16254 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16255 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16257 $as_echo "$as_me: error: $2" >&2
16258 as_fn_exit
$as_status
16262 # as_fn_set_status STATUS
16263 # -----------------------
16264 # Set $? to STATUS, without forking.
16265 as_fn_set_status
()
16268 } # as_fn_set_status
16270 # as_fn_exit STATUS
16271 # -----------------
16272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16276 as_fn_set_status
$1
16282 # Portably unset VAR.
16285 { eval $1=; unset $1;}
16287 as_unset
=as_fn_unset
16288 # as_fn_append VAR VALUE
16289 # ----------------------
16290 # Append the text in VALUE to the end of the definition contained in VAR. Take
16291 # advantage of any shell optimizations that allow amortized linear growth over
16292 # repeated appends, instead of the typical quadratic growth present in naive
16294 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16295 eval 'as_fn_append ()
16306 # as_fn_arith ARG...
16307 # ------------------
16308 # Perform arithmetic evaluation on the ARGs, and store the result in the
16309 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16310 # must be portable across $(()) and expr.
16311 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16312 eval 'as_fn_arith ()
16319 as_val
=`expr "$@" || test $? -eq 1`
16324 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16325 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16331 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16332 as_basename
=basename
16337 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16343 as_me
=`$as_basename -- "$0" ||
16344 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16345 X"$0" : 'X\(//\)$' \| \
16346 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16348 sed '/^.*\/\([^/][^/]*\)\/*$/{
16362 # Avoid depending upon Character Ranges.
16363 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16364 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16365 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16366 as_cr_digits
='0123456789'
16367 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16369 ECHO_C
= ECHO_N
= ECHO_T
=
16370 case `echo -n x` in #(((((
16372 case `echo 'xy\c'` in
16373 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16375 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16382 rm -f conf$$ conf$$.exe conf$$.
file
16383 if test -d conf$$.dir
; then
16384 rm -f conf$$.dir
/conf$$.
file
16387 mkdir conf$$.dir
2>/dev
/null
16389 if (echo >conf$$.
file) 2>/dev
/null
; then
16390 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16392 # ... but there are two gotchas:
16393 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16394 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16395 # In both cases, we have to default to `cp -pR'.
16396 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16398 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16406 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16407 rmdir conf$$.dir
2>/dev
/null
16412 # Create "$as_dir" as a directory, including parents if necessary.
16417 -*) as_dir
=.
/$as_dir;;
16419 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16423 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16424 *) as_qdir
=$as_dir;;
16426 as_dirs
="'$as_qdir' $as_dirs"
16427 as_dir
=`$as_dirname -- "$as_dir" ||
16428 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16429 X"$as_dir" : 'X\(//\)[^/]' \| \
16430 X"$as_dir" : 'X\(//\)$' \| \
16431 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16432 $as_echo X"$as_dir" |
16433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16437 /^X\(\/\/\)[^/].*/{
16450 test -d "$as_dir" && break
16452 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16453 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16457 if mkdir
-p .
2>/dev
/null
; then
16458 as_mkdir_p
='mkdir -p "$as_dir"'
16460 test -d .
/-p && rmdir .
/-p
16465 # as_fn_executable_p FILE
16466 # -----------------------
16467 # Test if FILE is an executable regular file.
16468 as_fn_executable_p
()
16470 test -f "$1" && test -x "$1"
16471 } # as_fn_executable_p
16472 as_test_x
='test -x'
16473 as_executable_p
=as_fn_executable_p
16475 # Sed expression to map a string onto a valid CPP name.
16476 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16478 # Sed expression to map a string onto a valid variable name.
16479 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16483 ## ----------------------------------- ##
16484 ## Main body of $CONFIG_STATUS script. ##
16485 ## ----------------------------------- ##
16487 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16490 # Save the log message, to keep $0 and so on meaningful, and to
16491 # report actual input values of CONFIG_FILES etc. instead of their
16492 # values after options handling.
16494 This file was extended by package-unused $as_me version-unused, which was
16495 generated by GNU Autoconf 2.69. Invocation command line was
16497 CONFIG_FILES = $CONFIG_FILES
16498 CONFIG_HEADERS = $CONFIG_HEADERS
16499 CONFIG_LINKS = $CONFIG_LINKS
16500 CONFIG_COMMANDS = $CONFIG_COMMANDS
16503 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16508 case $ac_config_files in *"
16509 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16512 case $ac_config_headers in *"
16513 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16518 # Files that config.status was made for.
16519 config_files="$ac_config_files"
16520 config_headers="$ac_config_headers"
16521 config_commands="$ac_config_commands"
16525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16527 \`$as_me' instantiates files and other configuration actions
16528 from templates according to the current configuration. Unless the files
16529 and actions are specified as TAGs, all are instantiated by default.
16531 Usage: $0 [OPTION]... [TAG]...
16533 -h, --help print this help, then exit
16534 -V, --version print version number and configuration settings, then exit
16535 --config print configuration, then exit
16536 -q, --quiet, --silent
16537 do not print progress messages
16538 -d, --debug don't remove temporary files
16539 --recheck update $as_me by reconfiguring in the same conditions
16540 --file=FILE[:TEMPLATE]
16541 instantiate the configuration file FILE
16542 --header=FILE[:TEMPLATE]
16543 instantiate the configuration header FILE
16545 Configuration files:
16548 Configuration headers:
16551 Configuration commands:
16554 Report bugs to the package provider."
16557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16558 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16560 package-unused config.status version-unused
16561 configured by $0, generated by GNU Autoconf 2.69,
16562 with options \\"\$ac_cs_config\\"
16564 Copyright (C) 2012 Free Software Foundation, Inc.
16565 This config.status script is free software; the Free Software Foundation
16566 gives unlimited permission to copy, distribute and modify it."
16573 test -n "\$AWK" || AWK=awk
16576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16577 # The default lists apply if the user does not specify any file.
16583 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16584 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16588 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16600 # Handling of the options.
16601 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16603 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16604 $as_echo "$ac_cs_version"; exit ;;
16605 --config |
--confi |
--conf |
--con |
--co |
--c )
16606 $as_echo "$ac_cs_config"; exit ;;
16607 --debug |
--debu |
--deb |
--de |
--d |
-d )
16609 --file |
--fil |
--fi |
--f )
16612 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16613 '') as_fn_error $?
"missing file argument" ;;
16615 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16616 ac_need_defaults
=false
;;
16617 --header |
--heade |
--head |
--hea )
16620 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16622 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16623 ac_need_defaults
=false
;;
16625 # Conflict between --help and --header
16626 as_fn_error $?
"ambiguous option: \`$1'
16627 Try \`$0 --help' for more information.";;
16628 --help |
--hel |
-h )
16629 $as_echo "$ac_cs_usage"; exit ;;
16630 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16631 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16634 # This is an error.
16635 -*) as_fn_error $?
"unrecognized option: \`$1'
16636 Try \`$0 --help' for more information." ;;
16638 *) as_fn_append ac_config_targets
" $1"
16639 ac_need_defaults
=false
;;
16645 ac_configure_extra_args
=
16647 if $ac_cs_silent; then
16649 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16654 if \$ac_cs_recheck; then
16655 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16657 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16658 CONFIG_SHELL='$SHELL'
16659 export CONFIG_SHELL
16664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16668 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16669 ## Running $as_me. ##
16675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16683 with_multisubdir="$with_multisubdir"
16684 with_multisrctop="$with_multisrctop"
16685 with_target_subdir="$with_target_subdir"
16686 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16687 multi_basedir="$multi_basedir"
16688 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16691 GFORTRAN="$GFORTRAN"
16695 # The HP-UX ksh and POSIX shell print the target directory to stdout
16696 # if CDPATH is set.
16697 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16699 sed_quote_subst='$sed_quote_subst'
16700 double_quote_subst='$double_quote_subst'
16701 delay_variable_subst='$delay_variable_subst'
16702 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16703 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16704 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16705 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16706 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16707 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16708 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16709 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16710 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16711 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16712 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16713 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16714 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16715 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16716 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16717 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16718 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16719 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16720 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16721 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16722 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16723 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16724 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16725 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16726 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16727 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16728 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16729 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16730 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16731 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16732 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16733 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16734 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16735 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16736 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16737 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16738 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16739 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16740 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16741 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16742 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16743 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16744 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16745 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16746 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16747 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16748 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16749 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16750 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"`'
16751 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16752 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16753 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16754 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16755 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16756 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16757 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16758 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16759 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16760 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16761 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16762 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16763 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16764 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16765 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16766 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16767 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16768 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16769 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16770 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16771 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16772 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16773 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16774 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16775 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16776 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16777 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16778 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16779 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16780 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16781 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16782 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16783 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16784 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16785 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16786 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16787 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16788 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16789 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16790 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16791 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16792 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16793 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16794 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16795 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16796 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16797 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16798 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16799 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16800 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16801 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16802 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16803 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16804 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16805 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16806 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16807 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16808 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16809 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16810 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16811 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16812 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16813 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16814 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16815 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16816 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16817 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16818 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16819 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16820 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16821 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16822 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16823 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16824 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16825 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16826 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16827 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16828 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16829 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16830 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16831 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16832 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16833 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16834 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16835 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16836 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16837 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16838 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16839 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16840 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16841 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16842 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16843 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16844 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16845 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16846 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16847 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16848 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16849 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16850 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16851 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16852 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16853 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16854 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16855 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16856 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16857 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16858 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16859 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16860 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16861 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16862 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16863 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16864 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16867 LTCFLAGS='$LTCFLAGS'
16868 compiler='$compiler_DEFAULT'
16870 # A function that is used when there is no print builtin or printf.
16871 func_fallback_echo ()
16873 eval 'cat <<_LTECHO_EOF
16878 # Quote evaled strings.
16892 deplibs_check_method \
16901 lt_cv_sys_global_symbol_pipe \
16902 lt_cv_sys_global_symbol_to_cdecl \
16903 lt_cv_sys_global_symbol_to_c_name_address \
16904 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16905 lt_prog_compiler_no_builtin_flag \
16906 lt_prog_compiler_wl \
16907 lt_prog_compiler_pic \
16908 lt_prog_compiler_static \
16909 lt_cv_prog_compiler_c_o \
16917 export_dynamic_flag_spec \
16918 whole_archive_flag_spec \
16919 compiler_needs_object \
16921 allow_undefined_flag \
16922 no_undefined_flag \
16923 hardcode_libdir_flag_spec \
16924 hardcode_libdir_flag_spec_ld \
16925 hardcode_libdir_separator \
16930 variables_saved_for_relink \
16932 library_names_spec \
16934 install_override_mode \
16941 lt_prog_compiler_no_builtin_flag_D \
16942 lt_prog_compiler_wl_D \
16943 lt_prog_compiler_pic_D \
16944 lt_prog_compiler_static_D \
16945 lt_cv_prog_compiler_c_o_D \
16946 export_dynamic_flag_spec_D \
16947 whole_archive_flag_spec_D \
16948 compiler_needs_object_D \
16950 allow_undefined_flag_D \
16951 no_undefined_flag_D \
16952 hardcode_libdir_flag_spec_D \
16953 hardcode_libdir_flag_spec_ld_D \
16954 hardcode_libdir_separator_D \
16955 fix_srcfile_path_D \
16956 exclude_expsyms_D \
16957 include_expsyms_D \
16958 file_list_spec_D; do
16959 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16960 *[\\\\\\\`\\"\\\$]*)
16961 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16964 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16969 # Double-quote double-evaled strings.
16970 for var in reload_cmds \
16971 old_postinstall_cmds \
16972 old_postuninstall_cmds \
16974 extract_expsyms_cmds \
16975 old_archive_from_new_cmds \
16976 old_archive_from_expsyms_cmds \
16978 archive_expsym_cmds \
16980 module_expsym_cmds \
16981 export_symbols_cmds \
16984 postuninstall_cmds \
16986 sys_lib_search_path_spec \
16987 sys_lib_dlsearch_path_spec \
16989 old_archive_cmds_D \
16990 old_archive_from_new_cmds_D \
16991 old_archive_from_expsyms_cmds_D \
16993 archive_expsym_cmds_D \
16995 module_expsym_cmds_D \
16996 export_symbols_cmds_D \
16998 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16999 *[\\\\\\\`\\"\\\$]*)
17000 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17003 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17008 ac_aux_dir='$ac_aux_dir'
17009 xsi_shell='$xsi_shell'
17010 lt_shell_append='$lt_shell_append'
17012 # See if we are running on zsh, and set the options which allow our
17013 # commands through without removal of \ escapes INIT.
17014 if test -n "\${ZSH_VERSION+set}" ; then
17015 setopt NO_GLOB_SUBST
17021 TIMESTAMP='$TIMESTAMP'
17032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17034 # Handling of arguments.
17035 for ac_config_target
in $ac_config_targets
17037 case $ac_config_target in
17038 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
17039 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17040 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17041 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17042 "libdruntime/gcc/config.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/config.d" ;;
17043 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
17044 "src/libgphobos.spec") CONFIG_FILES
="$CONFIG_FILES src/libgphobos.spec" ;;
17045 "testsuite/testsuite_flags") CONFIG_FILES
="$CONFIG_FILES testsuite/testsuite_flags" ;;
17046 "libdruntime/Makefile") CONFIG_FILES
="$CONFIG_FILES libdruntime/Makefile" ;;
17047 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
17048 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
17050 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17055 # If the user did not use the arguments to specify the items to instantiate,
17056 # then the envvar interface is used. Set only those that are not.
17057 # We use the long form for the default assignment because of an extremely
17058 # bizarre bug on SunOS 4.1.3.
17059 if $ac_need_defaults; then
17060 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17061 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17062 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17065 # Have a temporary directory for convenience. Make it in the build tree
17066 # simply because there is no reason against having it here, and in addition,
17067 # creating and moving files from /tmp can sometimes cause problems.
17068 # Hook for its removal unless debugging.
17069 # Note that there is a small window in which the directory will not be cleaned:
17070 # after its creation but before its name has been assigned to `$tmp'.
17074 trap 'exit_status=$?
17075 : "${ac_tmp:=$tmp}"
17076 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17078 trap 'as_fn_exit 1' 1 2 13 15
17080 # Create a (secure) tmp directory for tmp files.
17083 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17087 tmp
=.
/conf$$
-$RANDOM
17088 (umask 077 && mkdir
"$tmp")
17089 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
17092 # Set up the scripts for CONFIG_FILES section.
17093 # No need to generate them if there are no CONFIG_FILES.
17094 # This happens for instance with `./config.status config.h'.
17095 if test -n "$CONFIG_FILES"; then
17097 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
17098 ac_cs_awk_getline
=:
17099 ac_cs_awk_pipe_init
=
17100 ac_cs_awk_read_file
='
17101 while ((getline aline < (F[key])) > 0)
17104 ac_cs_awk_pipe_fini
=
17106 ac_cs_awk_getline
=false
17107 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
17108 ac_cs_awk_read_file
='
17110 print "cat " F[key] " &&"
17111 '$ac_cs_awk_pipe_init
17112 # The final `:' finishes the AND list.
17113 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
17115 ac_cr
=`echo X | tr X '\015'`
17116 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17117 # But we know of no other shell where ac_cr would be empty at this
17118 # point, so we can use a bashism as a fallback.
17119 if test "x$ac_cr" = x
; then
17120 eval ac_cr
=\$
\'\\r
\'
17122 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17123 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17126 ac_cs_awk_cr
=$ac_cr
17129 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17132 # Create commands to substitute file output variables.
17134 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17135 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
17136 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
17139 } >conf$
$files.sh
&&
17140 . .
/conf$
$files.sh ||
17141 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
17142 rm -f conf$
$files.sh
17145 echo "cat >conf$$subs.awk <<_ACEOF" &&
17146 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17148 } >conf$$subs.sh ||
17149 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17150 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17152 for ac_last_try in false false false false false :; do
17153 . ./conf$$subs.sh ||
17154 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17156 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17157 if test $ac_delim_n = $ac_delim_num; then
17159 elif $ac_last_try; then
17160 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17162 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17165 rm -f conf$$subs.sh
17167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17168 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
17172 s/^/S["/; s
/!.
*/"]=/
17182 s/\(.\{148\}\)..*/\1/
17184 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17189 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17196 s/\(.\{148\}\)..*/\1/
17198 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17202 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17207 ' <conf$$subs.awk | sed '
17212 ' >>$CONFIG_STATUS || ac_write_fail=1
17213 rm -f conf$$subs.awk
17214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17216 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
17217 for (key in S) S_is_set[key] = 1
17219 \$ac_cs_awk_pipe_init
17223 nfields = split(line, field, "@
")
17225 len = length(field[1])
17226 for (i = 2; i < nfields; i++) {
17228 keylen = length(key)
17229 if (S_is_set[key]) {
17231 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17232 len += length(value) + length(field[++i])
17237 if (nfields == 3 && !substed) {
17239 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17240 \$ac_cs_awk_read_file
17246 \$ac_cs_awk_pipe_fini
17249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17250 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17251 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17254 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
17255 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
17258 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17259 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
17260 # trailing colons and then remove the whole line if VPATH becomes empty
17261 # (actually we leave an empty line to preserve line numbers).
17262 if test "x
$srcdir" = x.; then
17263 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17282 fi # test -n "$CONFIG_FILES"
17284 # Set up the scripts for CONFIG_HEADERS section.
17285 # No need to generate them if there are no CONFIG_HEADERS.
17286 # This happens for instance with `./config.status Makefile'.
17287 if test -n "$CONFIG_HEADERS"; then
17288 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
17292 # Transform confdefs.h into an awk script `defines.awk', embedded as
17293 # here-document in config.status, that substitutes the proper values into
17294 # config.h.in to produce config.h.
17296 # Create a delimiter string that does not exist in confdefs.h, to ease
17297 # handling of long lines.
17299 for ac_last_try in false false :; do
17300 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
17301 if test -z "$ac_tt"; then
17303 elif $ac_last_try; then
17304 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
17306 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17310 # For the awk script, D is an array of macro values keyed by name,
17311 # likewise P contains macro parameters if any. Preserve backslash
17312 # newline sequences.
17314 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17316 s/.\{148\}/&'"$ac_delim"'/g
17319 s/^[ ]*#[ ]*define[ ][ ]*/ /
17326 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17328 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17332 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17333 D["\
1"]=" \
3\\\\\\n
"\\/p
17335 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17340 s/.\{148\}/&'"$ac_delim"'/g
17345 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17348 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17350 ' <confdefs.h | sed '
17351 s/'"$ac_delim"'/"\\\
17352 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17355 for (key in D) D_is_set[key] = 1
17358 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17360 split(line, arg, " ")
17361 if (arg[1] == "#") {
17365 defundef
= substr
(arg
[1], 2)
17368 split(mac1
, mac2
, "(") #)
17370 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17371 if (D_is_set
[macro
]) {
17372 # Preserve the white space surrounding the "#".
17373 print prefix
"define", macro P
[macro
] D
[macro
]
17376 # Replace #undef with comments. This is necessary, for example,
17377 # in the case of _POSIX_SOURCE, which is predefined and required
17378 # on some systems where configure will not decide to define it.
17379 if (defundef
== "undef") {
17380 print
"/*", prefix defundef
, macro
, "*/"
17388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17389 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
17390 fi # test -n "$CONFIG_HEADERS"
17393 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17398 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17400 case $ac_mode$ac_tag in
17402 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17403 :[FH
]-) ac_tag
=-:-;;
17404 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17421 -) ac_f
="$ac_tmp/stdin";;
17422 *) # Look for the file first in the build tree, then in the source tree
17423 # (if the path is not absolute). The absolute path cannot be DOS-style,
17424 # because $ac_f cannot contain `:'.
17428 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17430 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17432 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17433 as_fn_append ac_file_inputs
" '$ac_f'"
17436 # Let's still pretend it is `configure' which instantiates (i.e., don't
17437 # use $as_me), people would be surprised to read:
17438 # /* config.h. Generated by config.status. */
17439 configure_input
='Generated from '`
17440 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17442 if test x
"$ac_file" != x-
; then
17443 configure_input
="$ac_file. $configure_input"
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17445 $as_echo "$as_me: creating $ac_file" >&6;}
17447 # Neutralize special characters interpreted by sed in replacement strings.
17448 case $configure_input in #(
17449 *\
&* |
*\|
* |
*\\* )
17450 ac_sed_conf_input
=`$as_echo "$configure_input" |
17451 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17452 *) ac_sed_conf_input
=$configure_input;;
17456 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17457 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17462 ac_dir
=`$as_dirname -- "$ac_file" ||
17463 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17464 X"$ac_file" : 'X\(//\)[^/]' \| \
17465 X"$ac_file" : 'X\(//\)$' \| \
17466 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17467 $as_echo X"$ac_file" |
17468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17472 /^X\(\/\/\)[^/].*/{
17485 as_dir
="$ac_dir"; as_fn_mkdir_p
17489 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17491 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17492 # A ".." for each directory in $ac_dir_suffix.
17493 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17494 case $ac_top_builddir_sub in
17495 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17496 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17499 ac_abs_top_builddir
=$ac_pwd
17500 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17501 # for backward compatibility:
17502 ac_top_builddir
=$ac_top_build_prefix
17505 .
) # We are building in place.
17507 ac_top_srcdir
=$ac_top_builddir_sub
17508 ac_abs_top_srcdir
=$ac_pwd ;;
17509 [\\/]* | ?
:[\\/]* ) # Absolute name.
17510 ac_srcdir
=$srcdir$ac_dir_suffix;
17511 ac_top_srcdir
=$srcdir
17512 ac_abs_top_srcdir
=$srcdir ;;
17513 *) # Relative name.
17514 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17515 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17516 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17518 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17528 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17529 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17531 ac_MKDIR_P
=$MKDIR_P
17533 [\\/$
]* | ?
:[\\/]* ) ;;
17534 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17539 # If the template does not know about datarootdir, expand it.
17540 # FIXME: This hack should be removed a few years after 2.60.
17541 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17552 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17553 *datarootdir
*) ac_datarootdir_seen
=yes;;
17554 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17556 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17559 ac_datarootdir_hack='
17560 s&@datadir@&$datadir&g
17561 s&@docdir@&$docdir&g
17562 s&@infodir@&$infodir&g
17563 s&@localedir@&$localedir&g
17564 s&@mandir@&$mandir&g
17565 s&\\\${datarootdir}&$datarootdir&g' ;;
17569 # Neutralize VPATH when `$srcdir' = `.'.
17570 # Shell code in configure.ac might set extrasub.
17571 # FIXME: do we really want to maintain this feature?
17572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17573 ac_sed_extra="$ac_vpsub
17576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17578 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17579 s|@configure_input@|
$ac_sed_conf_input|
;t t
17580 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17581 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17582 s
&@srcdir@
&$ac_srcdir&;t t
17583 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17584 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17585 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17586 s
&@builddir@
&$ac_builddir&;t t
17587 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17588 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17589 s
&@INSTALL@
&$ac_INSTALL&;t t
17590 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17591 $ac_datarootdir_hack
17593 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17594 if $ac_cs_awk_getline; then
17595 $AWK -f "$ac_tmp/subs.
awk"
17597 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
17599 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17601 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17602 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17603 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17604 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17606 which seems to be undefined. Please make sure it is defined" >&5
17607 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17608 which seems to be undefined. Please make sure it is defined" >&2;}
17610 rm -f "$ac_tmp/stdin"
17612 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17613 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17615 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17621 if test x"$ac_file" != x-; then
17623 $as_echo "/* $configure_input */" \
17624 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17625 } >"$ac_tmp/config.h" \
17626 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17627 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17629 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17632 mv "$ac_tmp/config.h" "$ac_file" \
17633 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17636 $as_echo "/* $configure_input */" \
17637 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17638 || as_fn_error $? "could not create -" "$LINENO" 5
17640 # Compute "$ac_file"'s index
in $config_headers.
17643 for _am_header
in $config_headers :; do
17644 case $_am_header in
17645 $_am_arg |
$_am_arg:* )
17648 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17651 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17652 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17653 X"$_am_arg" : 'X\(//\)[^/]' \| \
17654 X"$_am_arg" : 'X\(//\)$' \| \
17655 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17656 $as_echo X"$_am_arg" |
17657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17661 /^X\(\/\/\)[^/].*/{
17673 s/.*/./; q'`/stamp-h
$_am_stamp_count
17676 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17677 $as_echo "$as_me: executing $ac_file commands" >&6;}
17682 case $ac_file$ac_mode in
17684 # Only add multilib support code if we just rebuilt the top-level
17686 case " $CONFIG_FILES " in
17688 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
17693 # See if we are running on zsh, and set the options which allow our
17694 # commands through without removal of \ escapes.
17695 if test -n "${ZSH_VERSION+set}" ; then
17696 setopt NO_GLOB_SUBST
17699 cfgfile
="${ofile}T"
17700 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17703 cat <<_LT_EOF >> "$cfgfile"
17706 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17707 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17708 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17709 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17711 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17712 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17713 # Written by Gordon Matzigkeit, 1996
17715 # This file is part of GNU Libtool.
17717 # GNU Libtool is free software; you can redistribute it and/or
17718 # modify it under the terms of the GNU General Public License as
17719 # published by the Free Software Foundation; either version 2 of
17720 # the License, or (at your option) any later version.
17722 # As a special exception to the GNU General Public License,
17723 # if you distribute this file as part of a program or library that
17724 # is built using GNU Libtool, you may include this file under the
17725 # same distribution terms that you use for the rest of that program.
17727 # GNU Libtool is distributed in the hope that it will be useful,
17728 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17729 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17730 # GNU General Public License for more details.
17732 # You should have received a copy of the GNU General Public License
17733 # along with GNU Libtool; see the file COPYING. If not, a copy
17734 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17735 # obtained by writing to the Free Software Foundation, Inc.,
17736 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17739 # The names of the tagged configurations supported by this script.
17740 available_tags="D "
17742 # ### BEGIN LIBTOOL CONFIG
17744 # Which release of libtool.m4 was used?
17745 macro_version=$macro_version
17746 macro_revision=$macro_revision
17748 # Whether or not to build shared libraries.
17749 build_libtool_libs=$enable_shared
17751 # Whether or not to build static libraries.
17752 build_old_libs=$enable_static
17754 # What type of objects to build.
17757 # Whether or not to optimize for fast installation.
17758 fast_install=$enable_fast_install
17760 # Shell to use when invoking shell scripts.
17763 # An echo program that protects backslashes.
17767 host_alias=$host_alias
17771 # The build system.
17772 build_alias=$build_alias
17776 # A sed program that does not truncate output.
17779 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17780 Xsed="\$SED -e 1s/^X//"
17782 # A grep program that handles long lines.
17788 # A literal string matcher.
17791 # A BSD- or MS-compatible name lister.
17794 # Whether we need soft or hard links.
17797 # What is the maximum length of a command?
17798 max_cmd_len=$max_cmd_len
17800 # Object file suffix (normally "o").
17803 # Executable file suffix (normally "").
17806 # whether the shell understands "unset".
17809 # turn spaces into newlines.
17812 # turn newlines into spaces.
17815 # An object symbol dumper.
17816 OBJDUMP=$lt_OBJDUMP
17818 # Method to check whether dependent libraries are shared objects.
17819 deplibs_check_method=$lt_deplibs_check_method
17821 # Command to use when deplibs_check_method == "file_magic".
17822 file_magic_cmd=$lt_file_magic_cmd
17826 AR_FLAGS=$lt_AR_FLAGS
17828 # A symbol stripping program.
17831 # Commands used to install an old-style archive.
17833 old_postinstall_cmds=$lt_old_postinstall_cmds
17834 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17836 # Whether to use a lock for old archive extraction.
17837 lock_old_archive_extraction=$lock_old_archive_extraction
17842 # LTCC compiler flags.
17843 LTCFLAGS=$lt_CFLAGS
17845 # Take the output of nm and produce a listing of raw symbols and C names.
17846 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17848 # Transform the output of nm in a proper C declaration.
17849 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17851 # Transform the output of nm in a C name address pair.
17852 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17854 # Transform the output of nm in a C name address pair when lib prefix is needed.
17855 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17857 # The name of the directory that contains temporary libtool files.
17860 # Used to examine libraries when file_magic_cmd begins with "file".
17861 MAGIC_CMD=$MAGIC_CMD
17863 # Must we lock files when doing compilation?
17864 need_locks=$lt_need_locks
17866 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17867 DSYMUTIL=$lt_DSYMUTIL
17869 # Tool to change global to local symbols on Mac OS X.
17872 # Tool to manipulate fat objects and archives on Mac OS X.
17875 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17878 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17879 OTOOL64=$lt_OTOOL64
17881 # Old archive suffix (normally "a").
17884 # Shared library suffix (normally ".so").
17885 shrext_cmds=$lt_shrext_cmds
17887 # The commands to extract the exported symbol list from a shared archive.
17888 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17890 # Variables whose values should be saved in libtool wrapper scripts and
17891 # restored at link time.
17892 variables_saved_for_relink=$lt_variables_saved_for_relink
17894 # Do we need the "lib" prefix for modules?
17895 need_lib_prefix=$need_lib_prefix
17897 # Do we need a version for libraries?
17898 need_version=$need_version
17900 # Library versioning type.
17901 version_type=$version_type
17903 # Shared library runtime path variable.
17904 runpath_var=$runpath_var
17906 # Shared library path variable.
17907 shlibpath_var=$shlibpath_var
17909 # Is shlibpath searched before the hard-coded library search path?
17910 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17912 # Format of library name prefix.
17913 libname_spec=$lt_libname_spec
17915 # List of archive names. First name is the real one, the rest are links.
17916 # The last name is the one that the linker finds with -lNAME
17917 library_names_spec=$lt_library_names_spec
17919 # The coded name of the library, if different from the real name.
17920 soname_spec=$lt_soname_spec
17922 # Permission mode override for installation of shared libraries.
17923 install_override_mode=$lt_install_override_mode
17925 # Command to use after installation of a shared archive.
17926 postinstall_cmds=$lt_postinstall_cmds
17928 # Command to use after uninstallation of a shared archive.
17929 postuninstall_cmds=$lt_postuninstall_cmds
17931 # Commands used to finish a libtool library installation in a directory.
17932 finish_cmds=$lt_finish_cmds
17934 # As "finish_cmds", except a single script fragment to be evaled but
17936 finish_eval=$lt_finish_eval
17938 # Whether we should hardcode library paths into libraries.
17939 hardcode_into_libs=$hardcode_into_libs
17941 # Compile-time system search path for libraries.
17942 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17944 # Run-time system search path for libraries.
17945 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17947 # Whether dlopen is supported.
17948 dlopen_support=$enable_dlopen
17950 # Whether dlopen of programs is supported.
17951 dlopen_self=$enable_dlopen_self
17953 # Whether dlopen of statically linked programs is supported.
17954 dlopen_self_static=$enable_dlopen_self_static
17956 # Commands to strip libraries.
17957 old_striplib=$lt_old_striplib
17958 striplib=$lt_striplib
17961 # The linker used to build libraries.
17964 # How to create reloadable object files.
17965 reload_flag=$lt_reload_flag
17966 reload_cmds=$lt_reload_cmds
17968 # Commands used to build an old-style archive.
17969 old_archive_cmds=$lt_old_archive_cmds
17971 # A language specific compiler.
17974 # Is the compiler the GNU compiler?
17977 # Compiler flag to turn off builtin functions.
17978 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17980 # How to pass a linker flag through the compiler.
17981 wl=$lt_lt_prog_compiler_wl
17983 # Additional compiler flags for building library objects.
17984 pic_flag=$lt_lt_prog_compiler_pic
17986 # Compiler flag to prevent dynamic linking.
17987 link_static_flag=$lt_lt_prog_compiler_static
17989 # Does compiler simultaneously support -c and -o options?
17990 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17992 # Whether or not to add -lc for building shared libraries.
17993 build_libtool_need_lc=$archive_cmds_need_lc
17995 # Whether or not to disallow shared libs when runtime libs are static.
17996 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17998 # Compiler flag to allow reflexive dlopens.
17999 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18001 # Compiler flag to generate shared objects directly from archives.
18002 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18004 # Whether the compiler copes with passing no objects directly.
18005 compiler_needs_object=$lt_compiler_needs_object
18007 # Create an old-style archive from a shared archive.
18008 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18010 # Create a temporary old-style archive to link instead of a shared archive.
18011 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18013 # Commands used to build a shared archive.
18014 archive_cmds=$lt_archive_cmds
18015 archive_expsym_cmds=$lt_archive_expsym_cmds
18017 # Commands used to build a loadable module if different from building
18018 # a shared archive.
18019 module_cmds=$lt_module_cmds
18020 module_expsym_cmds=$lt_module_expsym_cmds
18022 # Whether we are building with GNU ld or not.
18023 with_gnu_ld=$lt_with_gnu_ld
18025 # Flag that allows shared libraries with undefined symbols to be built.
18026 allow_undefined_flag=$lt_allow_undefined_flag
18028 # Flag that enforces no undefined symbols.
18029 no_undefined_flag=$lt_no_undefined_flag
18031 # Flag to hardcode \$libdir into a binary during linking.
18032 # This must work even if \$libdir does not exist
18033 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18035 # If ld is used when linking, flag to hardcode \$libdir into a binary
18036 # during linking. This must work even if \$libdir does not exist.
18037 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18039 # Whether we need a single "-rpath" flag with a separated argument.
18040 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18042 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18043 # DIR into the resulting binary.
18044 hardcode_direct=$hardcode_direct
18046 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18047 # DIR into the resulting binary and the resulting library dependency is
18048 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18049 # library is relocated.
18050 hardcode_direct_absolute=$hardcode_direct_absolute
18052 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18053 # into the resulting binary.
18054 hardcode_minus_L=$hardcode_minus_L
18056 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18057 # into the resulting binary.
18058 hardcode_shlibpath_var=$hardcode_shlibpath_var
18060 # Set to "yes" if building a shared library automatically hardcodes DIR
18061 # into the library and all subsequent libraries and executables linked
18063 hardcode_automatic=$hardcode_automatic
18065 # Set to yes if linker adds runtime paths of dependent libraries
18066 # to runtime path list.
18067 inherit_rpath=$inherit_rpath
18069 # Whether libtool must link a program against all its dependency libraries.
18070 link_all_deplibs=$link_all_deplibs
18072 # Fix the shell variable \$srcfile for the compiler.
18073 fix_srcfile_path=$lt_fix_srcfile_path
18075 # Set to "yes" if exported symbols are required.
18076 always_export_symbols=$always_export_symbols
18078 # The commands to list exported symbols.
18079 export_symbols_cmds=$lt_export_symbols_cmds
18081 # Symbols that should not be listed in the preloaded symbols.
18082 exclude_expsyms=$lt_exclude_expsyms
18084 # Symbols that must always be exported.
18085 include_expsyms=$lt_include_expsyms
18087 # Commands necessary for linking programs (against libraries) with templates.
18088 prelink_cmds=$lt_prelink_cmds
18090 # Specify filename containing input files.
18091 file_list_spec=$lt_file_list_spec
18093 # How to hardcode a shared library path into an executable.
18094 hardcode_action=$hardcode_action
18096 # ### END LIBTOOL CONFIG
18102 cat <<\_LT_EOF
>> "$cfgfile"
18103 # AIX sometimes has problems with the GCC collect2 program. For some
18104 # reason, if we set the COLLECT_NAMES environment variable, the problems
18105 # vanish in a puff of smoke.
18106 if test "X${COLLECT_NAMES+set}" != Xset
; then
18108 export COLLECT_NAMES
18115 ltmain
="$ac_aux_dir/ltmain.sh"
18118 # We use sed instead of cat because bash on DJGPP gets confused if
18119 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18120 # text mode, it properly converts lines to CR/LF. This bash problem
18121 # is reportedly fixed, but why not run on old versions too?
18122 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18123 ||
(rm -f "$cfgfile"; exit 1)
18127 cat << \_LT_EOF
>> "$cfgfile"
18129 # func_dirname file append nondir_replacement
18130 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18131 # otherwise set result to NONDIR_REPLACEMENT.
18135 */*) func_dirname_result
="${1%/*}${2}" ;;
18136 * ) func_dirname_result
="${3}" ;;
18140 # func_basename file
18143 func_basename_result
="${1##*/}"
18146 # func_dirname_and_basename file append nondir_replacement
18147 # perform func_basename and func_dirname in a single function
18149 # dirname: Compute the dirname of FILE. If nonempty,
18150 # add APPEND to the result, otherwise set result
18151 # to NONDIR_REPLACEMENT.
18152 # value returned in "$func_dirname_result"
18153 # basename: Compute filename of FILE.
18154 # value retuned in "$func_basename_result"
18155 # Implementation must be kept synchronized with func_dirname
18156 # and func_basename. For efficiency, we do not delegate to
18157 # those functions but instead duplicate the functionality here.
18158 func_dirname_and_basename
()
18161 */*) func_dirname_result
="${1%/*}${2}" ;;
18162 * ) func_dirname_result
="${3}" ;;
18164 func_basename_result
="${1##*/}"
18167 # func_stripname prefix suffix name
18168 # strip PREFIX and SUFFIX off of NAME.
18169 # PREFIX and SUFFIX must not contain globbing or regex special
18170 # characters, hashes, percent signs, but SUFFIX may contain a leading
18171 # dot (in which case that matches only a dot).
18174 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18175 # positional parameters, so assign one to ordinary parameter first.
18176 func_stripname_result
=${3}
18177 func_stripname_result
=${func_stripname_result#"${1}"}
18178 func_stripname_result
=${func_stripname_result%"${2}"}
18184 func_opt_split_opt
=${1%%=*}
18185 func_opt_split_arg
=${1#*=}
18192 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
18193 *) func_lo2o_result
=${1} ;;
18197 # func_xform libobj-or-source
18200 func_xform_result
=${1%.*}.lo
18203 # func_arith arithmetic-term...
18206 func_arith_result
=$
(( $
* ))
18210 # STRING may not start with a hyphen.
18213 func_len_result
=${#1}
18218 *) # Bourne compatible functions.
18219 cat << \_LT_EOF
>> "$cfgfile"
18221 # func_dirname file append nondir_replacement
18222 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18223 # otherwise set result to NONDIR_REPLACEMENT.
18226 # Extract subdirectory from the argument.
18227 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
18228 if test "X$func_dirname_result" = "X${1}"; then
18229 func_dirname_result
="${3}"
18231 func_dirname_result
="$func_dirname_result${2}"
18235 # func_basename file
18238 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
18242 # func_stripname prefix suffix name
18243 # strip PREFIX and SUFFIX off of NAME.
18244 # PREFIX and SUFFIX must not contain globbing or regex special
18245 # characters, hashes, percent signs, but SUFFIX may contain a leading
18246 # dot (in which case that matches only a dot).
18247 # func_strip_suffix prefix name
18251 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18252 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18257 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
18258 my_sed_long_arg
='1s/^-[^=]*=//'
18263 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18264 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18270 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
18273 # func_xform libobj-or-source
18276 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18279 # func_arith arithmetic-term...
18282 func_arith_result
=`expr "$@"`
18286 # STRING may not start with a hyphen.
18289 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18295 case $lt_shell_append in
18297 cat << \_LT_EOF
>> "$cfgfile"
18299 # func_append var value
18300 # Append VALUE to the end of shell variable VAR.
18308 cat << \_LT_EOF
>> "$cfgfile"
18310 # func_append var value
18311 # Append VALUE to the end of shell variable VAR.
18322 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18323 ||
(rm -f "$cfgfile"; exit 1)
18325 mv -f "$cfgfile" "$ofile" ||
18326 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18330 cat <<_LT_EOF >> "$ofile"
18332 # ### BEGIN LIBTOOL TAG CONFIG: D
18334 # The linker used to build libraries.
18337 # How to create reloadable object files.
18338 reload_flag=$lt_reload_flag_D
18339 reload_cmds=$lt_reload_cmds_D
18341 # Commands used to build an old-style archive.
18342 old_archive_cmds=$lt_old_archive_cmds_D
18344 # A language specific compiler.
18347 # Is the compiler the GNU compiler?
18350 # Compiler flag to turn off builtin functions.
18351 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
18353 # How to pass a linker flag through the compiler.
18354 wl=$lt_lt_prog_compiler_wl_D
18356 # Additional compiler flags for building library objects.
18357 pic_flag=$lt_lt_prog_compiler_pic_D
18359 # Compiler flag to prevent dynamic linking.
18360 link_static_flag=$lt_lt_prog_compiler_static_D
18362 # Does compiler simultaneously support -c and -o options?
18363 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
18365 # Whether or not to add -lc for building shared libraries.
18366 build_libtool_need_lc=$archive_cmds_need_lc_D
18368 # Whether or not to disallow shared libs when runtime libs are static.
18369 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
18371 # Compiler flag to allow reflexive dlopens.
18372 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
18374 # Compiler flag to generate shared objects directly from archives.
18375 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
18377 # Whether the compiler copes with passing no objects directly.
18378 compiler_needs_object=$lt_compiler_needs_object_D
18380 # Create an old-style archive from a shared archive.
18381 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
18383 # Create a temporary old-style archive to link instead of a shared archive.
18384 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
18386 # Commands used to build a shared archive.
18387 archive_cmds=$lt_archive_cmds_D
18388 archive_expsym_cmds=$lt_archive_expsym_cmds_D
18390 # Commands used to build a loadable module if different from building
18391 # a shared archive.
18392 module_cmds=$lt_module_cmds_D
18393 module_expsym_cmds=$lt_module_expsym_cmds_D
18395 # Whether we are building with GNU ld or not.
18396 with_gnu_ld=$lt_with_gnu_ld_D
18398 # Flag that allows shared libraries with undefined symbols to be built.
18399 allow_undefined_flag=$lt_allow_undefined_flag_D
18401 # Flag that enforces no undefined symbols.
18402 no_undefined_flag=$lt_no_undefined_flag_D
18404 # Flag to hardcode \$libdir into a binary during linking.
18405 # This must work even if \$libdir does not exist
18406 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
18408 # If ld is used when linking, flag to hardcode \$libdir into a binary
18409 # during linking. This must work even if \$libdir does not exist.
18410 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
18412 # Whether we need a single "-rpath" flag with a separated argument.
18413 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
18415 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18416 # DIR into the resulting binary.
18417 hardcode_direct=$hardcode_direct_D
18419 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18420 # DIR into the resulting binary and the resulting library dependency is
18421 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18422 # library is relocated.
18423 hardcode_direct_absolute=$hardcode_direct_absolute_D
18425 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18426 # into the resulting binary.
18427 hardcode_minus_L=$hardcode_minus_L_D
18429 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18430 # into the resulting binary.
18431 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18433 # Set to "yes" if building a shared library automatically hardcodes DIR
18434 # into the library and all subsequent libraries and executables linked
18436 hardcode_automatic=$hardcode_automatic_D
18438 # Set to yes if linker adds runtime paths of dependent libraries
18439 # to runtime path list.
18440 inherit_rpath=$inherit_rpath_D
18442 # Whether libtool must link a program against all its dependency libraries.
18443 link_all_deplibs=$link_all_deplibs_D
18445 # Fix the shell variable \$srcfile for the compiler.
18446 fix_srcfile_path=$lt_fix_srcfile_path_D
18448 # Set to "yes" if exported symbols are required.
18449 always_export_symbols=$always_export_symbols_D
18451 # The commands to list exported symbols.
18452 export_symbols_cmds=$lt_export_symbols_cmds_D
18454 # Symbols that should not be listed in the preloaded symbols.
18455 exclude_expsyms=$lt_exclude_expsyms_D
18457 # Symbols that must always be exported.
18458 include_expsyms=$lt_include_expsyms_D
18460 # Commands necessary for linking programs (against libraries) with templates.
18461 prelink_cmds=$lt_prelink_cmds_D
18463 # Specify filename containing input files.
18464 file_list_spec=$lt_file_list_spec_D
18466 # How to hardcode a shared library path into an executable.
18467 hardcode_action=$hardcode_action_D
18469 # ### END LIBTOOL TAG CONFIG: D
18473 "testsuite/testsuite_flags":F
) chmod +x testsuite
/testsuite_flags
;;
18474 "libdruntime/Makefile":F
) cat > vpsed$$
<< \_EOF
18475 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18477 sed -f vpsed$$
$ac_file > tmp$$
18480 echo 'MULTISUBDIR =' >> $ac_file
18482 .
${multi_basedir}/config-ml.
in
18483 { ml_norecursion
=; unset ml_norecursion
;}
18485 "src/Makefile":F
) cat > vpsed$$
<< \_EOF
18486 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18488 sed -f vpsed$$
$ac_file > tmp$$
18491 echo 'MULTISUBDIR =' >> $ac_file
18493 .
${multi_basedir}/config-ml.
in
18494 { ml_norecursion
=; unset ml_norecursion
;}
18496 "testsuite/Makefile":F
) cat > vpsed$$
<< \_EOF
18497 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18499 sed -f vpsed$$
$ac_file > tmp$$
18502 echo 'MULTISUBDIR =' >> $ac_file
18504 .
${multi_basedir}/config-ml.
in
18505 { ml_norecursion
=; unset ml_norecursion
;}
18514 ac_clean_files
=$ac_clean_files_save
18516 test $ac_write_fail = 0 ||
18517 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18520 # configure is writing to config.log, and then calls config.status.
18521 # config.status does its own redirection, appending to config.log.
18522 # Unfortunately, on DOS this fails, as config.log is still kept open
18523 # by configure, so config.status won't be able to write to it; its
18524 # output is simply discarded. So we exec the FD to /dev/null,
18525 # effectively closing config.log, so it can be properly (re)opened and
18526 # appended to by config.status. When coming back to configure, we
18527 # need to make the FD available again.
18528 if test "$no_create" != yes; then
18530 ac_config_status_args
=
18531 test "$silent" = yes &&
18532 ac_config_status_args
="$ac_config_status_args --quiet"
18534 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18536 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18537 # would make configure fail if this is the last instruction.
18538 $ac_cs_success || as_fn_exit
1
18540 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18542 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}