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
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
588 PACKAGE_NAME
='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 libphobos_toolexeclibdir
641 libphobos_toolexecdir
643 DRUNTIME_ZLIB_SYSTEM_FALSE
644 DRUNTIME_ZLIB_SYSTEM_TRUE
645 BACKTRACE_SUPPORTS_THREADS
646 BACKTRACE_USES_MALLOC
651 DCFG_HAVE_64BIT_ATOMICS
652 DCFG_HAVE_ATOMIC_BUILTINS
653 DCFG_MINFO_BRACKETING
654 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
655 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
656 DCFG_ARM_EABI_UNWINDER
658 DRUNTIME_OS_SOLARIS_FALSE
659 DRUNTIME_OS_SOLARIS_TRUE
660 DRUNTIME_OS_MINGW_FALSE
661 DRUNTIME_OS_MINGW_TRUE
662 DRUNTIME_OS_LINUX_FALSE
663 DRUNTIME_OS_LINUX_TRUE
664 DRUNTIME_OS_OPENBSD_FALSE
665 DRUNTIME_OS_OPENBSD_TRUE
666 DRUNTIME_OS_NETBSD_FALSE
667 DRUNTIME_OS_NETBSD_TRUE
668 DRUNTIME_OS_FREEBSD_FALSE
669 DRUNTIME_OS_FREEBSD_TRUE
670 DRUNTIME_OS_DRAGONFLYBSD_FALSE
671 DRUNTIME_OS_DRAGONFLYBSD_TRUE
672 DRUNTIME_OS_DARWIN_FALSE
673 DRUNTIME_OS_DARWIN_TRUE
674 DRUNTIME_OS_ANDROID_FALSE
675 DRUNTIME_OS_ANDROID_TRUE
676 DRUNTIME_OS_AIX_FALSE
678 DRUNTIME_OS_UNIX_FALSE
679 DRUNTIME_OS_UNIX_TRUE
680 DRUNTIME_GC_ENABLE_FALSE
681 DRUNTIME_GC_ENABLE_TRUE
685 phobos_compiler_shared_flag
686 phobos_compiler_pic_flag
713 MAINTAINER_MODE_FALSE
738 INSTALL_STRIP_PROGRAM
794 program_transform_name
807 enable_option_checking
810 enable_maintainer_mode
817 with_gcc_major_version_only
824 with_target_system_zlib
826 enable_version_specific_runtime_libs
828 ac_precious_vars
='build_alias
835 # Initialize some variables set by options.
837 ac_init_version
=false
838 ac_unrecognized_opts
=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
849 program_transform_name
=s
,x
,x
,
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir
='${exec_prefix}/bin'
864 sbindir
='${exec_prefix}/sbin'
865 libexecdir
='${exec_prefix}/libexec'
866 datarootdir
='${prefix}/share'
867 datadir
='${datarootdir}'
868 sysconfdir
='${prefix}/etc'
869 sharedstatedir
='${prefix}/com'
870 localstatedir
='${prefix}/var'
871 runstatedir
='${localstatedir}/run'
872 includedir
='${prefix}/include'
873 oldincludedir
='/usr/include'
874 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir
='${datarootdir}/info'
880 libdir
='${exec_prefix}/lib'
881 localedir
='${datarootdir}/locale'
882 mandir
='${datarootdir}/man'
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\
$ac_option
896 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 # Accept the important Cygnus configure options, so we can diagnose typos.
903 case $ac_dashdash$ac_option in
907 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
909 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
912 -build |
--build |
--buil |
--bui |
--bu)
913 ac_prev
=build_alias
;;
914 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
915 build_alias
=$ac_optarg ;;
917 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
918 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
919 ac_prev
=cache_file
;;
920 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
921 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
922 cache_file
=$ac_optarg ;;
925 cache_file
=config.cache
;;
927 -datadir |
--datadir |
--datadi |
--datad)
929 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
930 datadir
=$ac_optarg ;;
932 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
933 |
--dataroo |
--dataro |
--datar)
934 ac_prev
=datarootdir
;;
935 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
936 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
937 datarootdir
=$ac_optarg ;;
939 -disable-* |
--disable-*)
940 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
943 as_fn_error $?
"invalid feature name: $ac_useropt"
944 ac_useropt_orig
=$ac_useropt
945 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
950 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep
=', ';;
953 eval enable_
$ac_useropt=no
;;
955 -docdir |
--docdir |
--docdi |
--doc |
--do)
957 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
960 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
962 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
965 -enable-* |
--enable-*)
966 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
969 as_fn_error $?
"invalid feature name: $ac_useropt"
970 ac_useropt_orig
=$ac_useropt
971 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep
=', ';;
979 eval enable_
$ac_useropt=\
$ac_optarg ;;
981 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
982 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
983 |
--exec |
--exe |
--ex)
984 ac_prev
=exec_prefix
;;
985 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
986 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
987 |
--exec=* |
--exe=* |
--ex=*)
988 exec_prefix
=$ac_optarg ;;
990 -gas |
--gas |
--ga |
--g)
991 # Obsolete; use --with-gas.
994 -help |
--help |
--hel |
--he |
-h)
996 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
997 ac_init_help
=recursive
;;
998 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
999 ac_init_help
=short
;;
1001 -host |
--host |
--hos |
--ho)
1002 ac_prev
=host_alias
;;
1003 -host=* |
--host=* |
--hos=* |
--ho=*)
1004 host_alias
=$ac_optarg ;;
1006 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1008 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1010 htmldir
=$ac_optarg ;;
1012 -includedir |
--includedir |
--includedi |
--included |
--include \
1013 |
--includ |
--inclu |
--incl |
--inc)
1014 ac_prev
=includedir
;;
1015 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1016 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1017 includedir
=$ac_optarg ;;
1019 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1021 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1022 infodir
=$ac_optarg ;;
1024 -libdir |
--libdir |
--libdi |
--libd)
1026 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1027 libdir
=$ac_optarg ;;
1029 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1030 |
--libexe |
--libex |
--libe)
1031 ac_prev
=libexecdir
;;
1032 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1033 |
--libexe=* |
--libex=* |
--libe=*)
1034 libexecdir
=$ac_optarg ;;
1036 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1037 ac_prev
=localedir
;;
1038 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1039 localedir
=$ac_optarg ;;
1041 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1042 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1043 ac_prev
=localstatedir
;;
1044 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1045 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1046 localstatedir
=$ac_optarg ;;
1048 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1050 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1051 mandir
=$ac_optarg ;;
1053 -nfp |
--nfp |
--nf)
1054 # Obsolete; use --without-fp.
1057 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1058 |
--no-cr |
--no-c |
-n)
1061 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1062 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1065 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1066 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1067 |
--oldin |
--oldi |
--old |
--ol |
--o)
1068 ac_prev
=oldincludedir
;;
1069 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1070 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1071 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1072 oldincludedir
=$ac_optarg ;;
1074 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1076 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1077 prefix
=$ac_optarg ;;
1079 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1080 |
--program-pre |
--program-pr |
--program-p)
1081 ac_prev
=program_prefix
;;
1082 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1083 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1084 program_prefix
=$ac_optarg ;;
1086 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1087 |
--program-suf |
--program-su |
--program-s)
1088 ac_prev
=program_suffix
;;
1089 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1090 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1091 program_suffix
=$ac_optarg ;;
1093 -program-transform-name |
--program-transform-name \
1094 |
--program-transform-nam |
--program-transform-na \
1095 |
--program-transform-n |
--program-transform- \
1096 |
--program-transform |
--program-transfor \
1097 |
--program-transfo |
--program-transf \
1098 |
--program-trans |
--program-tran \
1099 |
--progr-tra |
--program-tr |
--program-t)
1100 ac_prev
=program_transform_name
;;
1101 -program-transform-name=* |
--program-transform-name=* \
1102 |
--program-transform-nam=* |
--program-transform-na=* \
1103 |
--program-transform-n=* |
--program-transform-=* \
1104 |
--program-transform=* |
--program-transfor=* \
1105 |
--program-transfo=* |
--program-transf=* \
1106 |
--program-trans=* |
--program-tran=* \
1107 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1108 program_transform_name
=$ac_optarg ;;
1110 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1112 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1113 pdfdir
=$ac_optarg ;;
1115 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1117 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1120 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1121 |
-silent |
--silent |
--silen |
--sile |
--sil)
1124 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1125 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1126 |
--run |
--ru |
--r)
1127 ac_prev
=runstatedir
;;
1128 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1129 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1130 |
--run=* |
--ru=* |
--r=*)
1131 runstatedir
=$ac_optarg ;;
1133 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1135 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1137 sbindir
=$ac_optarg ;;
1139 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1140 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1141 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1143 ac_prev
=sharedstatedir
;;
1144 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1145 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1146 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1148 sharedstatedir
=$ac_optarg ;;
1150 -site |
--site |
--sit)
1152 -site=* |
--site=* |
--sit=*)
1155 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1157 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1158 srcdir
=$ac_optarg ;;
1160 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1161 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1162 ac_prev
=sysconfdir
;;
1163 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1164 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1165 sysconfdir
=$ac_optarg ;;
1167 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1168 ac_prev
=target_alias
;;
1169 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1170 target_alias
=$ac_optarg ;;
1172 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1175 -version |
--version |
--versio |
--versi |
--vers |
-V)
1176 ac_init_version
=: ;;
1179 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1182 as_fn_error $?
"invalid package name: $ac_useropt"
1183 ac_useropt_orig
=$ac_useropt
1184 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1189 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep
=', ';;
1192 eval with_
$ac_useropt=\
$ac_optarg ;;
1194 -without-* |
--without-*)
1195 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1198 as_fn_error $?
"invalid package name: $ac_useropt"
1199 ac_useropt_orig
=$ac_useropt
1200 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1205 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep
=', ';;
1208 eval with_
$ac_useropt=no
;;
1211 # Obsolete; use --with-x.
1214 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1215 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1216 ac_prev
=x_includes
;;
1217 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1218 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1219 x_includes
=$ac_optarg ;;
1221 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1222 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1223 ac_prev
=x_libraries
;;
1224 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1225 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1226 x_libraries
=$ac_optarg ;;
1228 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information"
1233 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 case $ac_envvar in #(
1236 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1237 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1239 eval $ac_envvar=\
$ac_optarg
1240 export $ac_envvar ;;
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1253 if test -n "$ac_prev"; then
1254 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1255 as_fn_error $?
"missing argument to $ac_option"
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1261 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 # Check all directory arguments for consistency.
1267 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir runstatedir
1272 eval ac_val
=\$
$ac_var
1273 # Remove trailing slashes.
1276 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\
$ac_val;;
1279 # Be sure to have absolute directory names.
1281 [\\/$
]* | ?
:[\\/]* ) continue;;
1282 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1284 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1292 target
=$target_alias
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x
; then
1296 if test "x$build_alias" = x
; then
1297 cross_compiling
=maybe
1298 elif test "x$build_alias" != "x$host_alias"; then
1304 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1306 test "$silent" = yes && exec 6>/dev
/null
1309 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di
=`ls -di .` &&
1311 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error $?
"working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error $?
"pwd does not report name of working directory"
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted
=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir
=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1349 ac_srcdir_defaulted
=no
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1353 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1355 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1367 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 for ac_var
in $ac_precious_vars; do
1370 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1372 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1383 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking ...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1447 --build=BUILD configure
for building on BUILD
[guessed
]
1448 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1449 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1453 if test -n "$ac_init_help"; then
1454 case $ac_init_help in
1455 short | recursive
) echo "Configuration of package-unused version-unused:";;
1460 --disable-option-checking ignore unrecognized
--enable/--with options
1461 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1462 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1463 --enable-multilib build many library versions
(default
)
1464 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1465 --disable-silent-rules verbose build output
(undo
: "make V=0")
1466 --enable-maintainer-mode
1467 enable make rules and dependencies not useful
(and
1468 sometimes confusing
) to the casual installer
1469 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1470 --enable-static[=PKGS
] build static libraries
[default
=yes]
1471 --enable-fast-install[=PKGS
]
1472 optimize
for fast installation
[default
=yes]
1473 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1474 --enable-werror turns on
-Werror [default
=no
]
1475 --enable-druntime-gc enable D runtime garbage collector
(default
: yes)
1476 --enable-unix enables Unix runtime
(default
: yes, for Unix
1478 --enable-thread-lib=<arg
>
1479 specify linker option
for the system thread library
1480 (default
: autodetect
)
1481 --enable-version-specific-runtime-libs
1482 Specify that runtime libraries should be installed
1483 in a compiler-specific directory
1486 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1487 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1488 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1490 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1491 --with-gcc-major-version-only
1492 use only GCC major number
in filesystem paths
1493 --without-libatomic Do not use libatomic
in core.atomic
(default
: auto
)
1494 --without-libbacktrace Do not use libbacktrace
in core.runtime
(default
:
1496 --with-target-system-zlib
1497 use installed libz
(default
: no
)
1498 --with-cross-host=HOST configuring with a cross compiler
1500 Some influential environment variables
:
1501 CC C compiler
command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1504 nonstandard directory
<lib dir
>
1505 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1506 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1507 you have headers
in a nonstandard directory
<include dir
>
1508 CCAS assembler compiler
command (defaults to CC
)
1509 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1510 GDC D compiler
command
1511 GDCFLAGS D compiler flags
1514 Use these variables to override the choices made by
`configure' or to help
1515 it to find libraries and programs with nonstandard names/locations.
1517 Report bugs to the package provider.
1522 if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" ||
1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1547 .) # We are building in place.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1571 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1580 package-unused configure version-unused
1581 generated by GNU Autoconf 2.69
1583 Copyright (C) 2012 Free Software Foundation, Inc.
1584 This configure script is free software; the Free Software Foundation
1585 gives unlimited permission to copy, distribute and modify it.
1590 ## ------------------------ ##
1591 ## Autoconf initialization. ##
1592 ## ------------------------ ##
1594 # ac_fn_c_try_compile LINENO
1595 # --------------------------
1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_compile ()
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext
1601 if { { ac_try="$ac_compile"
1603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1604 *) ac_try_echo
=$ac_try;;
1606 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1610 if test -s conftest.err
; then
1611 grep -v '^ *+' conftest.err
>conftest.er1
1612 cat conftest.er1
>&5
1613 mv -f conftest.er1 conftest.err
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.
$ac_objext; then :
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.
$ac_ext >&5
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status
$ac_retval
1630 } # ac_fn_c_try_compile
1632 # ac_fn_d_try_compile LINENO
1633 # --------------------------
1634 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_d_try_compile
()
1637 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1638 rm -f conftest.
$ac_objext
1639 if { { ac_try
="$ac_compile"
1641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_compile") 2>conftest.err
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_d_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest.$ac_objext; then :
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1668 } # ac_fn_d_try_compile
1670 # ac_fn_c_try_link LINENO
1671 # -----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest$ac_exeext
1677 if { { ac_try="$ac_link"
1679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1680 *) ac_try_echo
=$ac_try;;
1682 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1686 if test -s conftest.err
; then
1687 grep -v '^ *+' conftest.err
>conftest.er1
1688 cat conftest.er1
>&5
1689 mv -f conftest.er1 conftest.err
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest
$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 test -x conftest
$ac_exeext
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.
$ac_ext >&5
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status
$ac_retval
1714 } # ac_fn_c_try_link
1716 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1717 # -------------------------------------------------------
1718 # Tests whether HEADER exists and can be compiled using the include files in
1719 # INCLUDES, setting the cache variable VAR accordingly.
1720 ac_fn_c_check_header_compile
()
1722 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if eval \
${$3+:} false
; then :
1726 $as_echo_n "(cached) " >&6
1728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1733 if ac_fn_c_try_compile
"$LINENO"; then :
1738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742 $as_echo "$ac_res" >&6; }
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 } # ac_fn_c_check_header_compile
1747 # ac_fn_c_try_cpp LINENO
1748 # ----------------------
1749 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1752 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1753 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } > conftest.i && {
1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1784 # ac_fn_c_try_run LINENO
1785 # ----------------------
1786 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1787 # that executables *can* be run.
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if { { ac_try="$ac_link"
1793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1794 *) ac_try_echo
=$ac_try;;
1796 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_link") 2>&5
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1802 { { case "(($ac_try" in
1803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_try") 2>&5
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; }; }; then :
1814 $as_echo "$as_me: program exited with status $ac_status" >&5
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1818 ac_retval=$ac_status
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841 #define $2 innocuous_$2
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1849 # include <limits.h>
1851 # include <assert.h>
1856 /* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined __stub_$2 || defined __stub___$2
1878 if ac_fn_c_try_link "$LINENO"; then :
1883 rm -f core conftest.err conftest.$ac_objext \
1884 conftest$ac_exeext conftest.$ac_ext
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 } # ac_fn_c_check_func
1893 # ac_fn_d_try_link LINENO
1894 # -----------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded.
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext conftest$ac_exeext
1900 if { { ac_try="$ac_link"
1902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1903 *) ac_try_echo
=$ac_try;;
1905 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1909 if test -s conftest.err
; then
1910 grep -v '^ *+' conftest.err
>conftest.er1
1911 cat conftest.er1
>&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_d_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest
$ac_exeext && {
1919 test "$cross_compiling" = yes ||
1920 test -x conftest
$ac_exeext
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.
$ac_ext >&5
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status
$ac_retval
1937 } # ac_fn_d_try_link
1939 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1942 # the include files in INCLUDES and setting the cache variable VAR
1944 ac_fn_c_check_header_mongrel
()
1946 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1947 if eval \
${$3+:} false
; then :
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949 $as_echo_n "checking for $2... " >&6; }
1950 if eval \
${$3+:} false
; then :
1951 $as_echo_n "(cached) " >&6
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1957 # Is the header compilable?
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1959 $as_echo_n "checking $2 usability... " >&6; }
1960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1965 if ac_fn_c_try_compile
"$LINENO"; then :
1966 ac_header_compiler
=yes
1968 ac_header_compiler
=no
1970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1972 $as_echo "$ac_header_compiler" >&6; }
1974 # Is the header present?
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1976 $as_echo_n "checking $2 presence... " >&6; }
1977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1981 if ac_fn_c_try_cpp
"$LINENO"; then :
1982 ac_header_preproc
=yes
1984 ac_header_preproc
=no
1986 rm -f conftest.err conftest.i conftest.
$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1988 $as_echo "$ac_header_preproc" >&6; }
1990 # So? What about this header?
1991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1994 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1996 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2000 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2002 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2004 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2006 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2008 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \
${$3+:} false
; then :
2014 $as_echo_n "(cached) " >&6
2016 eval "$3=\$ac_header_compiler"
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 } # ac_fn_c_check_header_mongrel
2025 cat >config.log
<<_ACEOF
2026 This file contains any messages produced by compilers while
2027 running configure, to aid debugging if configure makes a mistake.
2029 It was created by package-unused $as_me version-unused, which was
2030 generated by GNU Autoconf 2.69. Invocation command line was
2042 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2043 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2044 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2045 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2046 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2048 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2049 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2051 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2052 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2053 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2054 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2055 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2056 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2057 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir
=.
2066 $as_echo "PATH: $as_dir"
2082 # Keep a trace of the command line.
2083 # Strip out --no-create and --no-recursion so they do not pile up.
2084 # Strip out --silent because we don't want to record it for future runs.
2085 # Also quote any args containing shell meta-characters.
2086 # Make two passes to allow for proper duplicate-argument suppression.
2090 ac_must_keep_next
=false
2096 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2097 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2098 |
-silent |
--silent |
--silen |
--sile |
--sil)
2101 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2104 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2106 as_fn_append ac_configure_args1
" '$ac_arg'"
2107 if test $ac_must_keep_next = true
; then
2108 ac_must_keep_next
=false
# Got value, back to normal.
2111 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2112 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2113 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2114 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2115 case "$ac_configure_args0 " in
2116 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2119 -* ) ac_must_keep_next
=true
;;
2122 as_fn_append ac_configure_args
" '$ac_arg'"
2127 { ac_configure_args0
=; unset ac_configure_args0
;}
2128 { ac_configure_args1
=; unset ac_configure_args1
;}
2130 # When interrupted or exit'd, cleanup temporary files, and complete
2131 # config.log. We remove comments because anyway the quotes in there
2132 # would cause problems or look ugly.
2133 # WARNING: Use '\'' to represent an apostrophe within the trap.
2134 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2135 trap 'exit_status=$?
2136 # Save into config.log some information that might help in debugging.
2140 $as_echo "## ---------------- ##
2141 ## Cache variables. ##
2142 ## ---------------- ##"
2144 # The following way of writing the cache mishandles newlines in values,
2146 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2147 eval ac_val=\$$ac_var
2151 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2152 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2155 _ | IFS | as_nl) ;; #(
2156 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2157 *) { eval $ac_var=; unset $ac_var;} ;;
2162 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2163 *${as_nl}ac_space=\ *)
2165 "s/'\''/'\''\\\\'\'''\''/g;
2166 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2169 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2176 $as_echo "## ----------------- ##
2177 ## Output variables. ##
2178 ## ----------------- ##"
2180 for ac_var in $ac_subst_vars
2182 eval ac_val=\$$ac_var
2184 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186 $as_echo "$ac_var='\''$ac_val'\''"
2190 if test -n "$ac_subst_files"; then
2191 $as_echo "## ------------------- ##
2192 ## File substitutions. ##
2193 ## ------------------- ##"
2195 for ac_var
in $ac_subst_files
2197 eval ac_val
=\$
$ac_var
2199 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201 $as_echo "$ac_var='\''$ac_val'\''"
2206 if test -s confdefs.h; then
2207 $as_echo "## ----------- ##
2214 test "$ac_signal" != 0 &&
2215 $as_echo "$as_me: caught signal $ac_signal"
2216 $as_echo "$as_me: exit $exit_status"
2218 rm -f core *.core core.conftest.* &&
2219 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2222 for ac_signal
in 1 2 13 15; do
2223 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2227 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2228 rm -f -r conftest
* confdefs.h
2230 $as_echo "/* confdefs.h */" > confdefs.h
2232 # Predefined preprocessor variables.
2234 cat >>confdefs.h
<<_ACEOF
2235 #define PACKAGE_NAME "$PACKAGE_NAME"
2238 cat >>confdefs.h
<<_ACEOF
2239 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2242 cat >>confdefs.h
<<_ACEOF
2243 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2246 cat >>confdefs.h
<<_ACEOF
2247 #define PACKAGE_STRING "$PACKAGE_STRING"
2250 cat >>confdefs.h
<<_ACEOF
2251 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2254 cat >>confdefs.h
<<_ACEOF
2255 #define PACKAGE_URL "$PACKAGE_URL"
2259 # Let the site file select an alternate cache file if it wants to.
2260 # Prefer an explicitly selected file to automatically selected ones.
2263 if test -n "$CONFIG_SITE"; then
2264 # We do not want a PATH search for config.site.
2265 case $CONFIG_SITE in #((
2266 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2267 */*) ac_site_file1
=$CONFIG_SITE;;
2268 *) ac_site_file1
=.
/$CONFIG_SITE;;
2270 elif test "x$prefix" != xNONE
; then
2271 ac_site_file1
=$prefix/share
/config.site
2272 ac_site_file2
=$prefix/etc
/config.site
2274 ac_site_file1
=$ac_default_prefix/share
/config.site
2275 ac_site_file2
=$ac_default_prefix/etc
/config.site
2277 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2279 test "x$ac_site_file" = xNONE
&& continue
2280 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2282 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2283 sed 's/^/| /' "$ac_site_file" >&5
2285 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2287 as_fn_error $?
"failed to load site script $ac_site_file
2288 See \`config.log' for more details" "$LINENO" 5; }
2292 if test -r "$cache_file"; then
2293 # Some versions of bash will fail to source /dev/null (special files
2294 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2295 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2297 $as_echo "$as_me: loading cache $cache_file" >&6;}
2299 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2300 *) .
"./$cache_file";;
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2305 $as_echo "$as_me: creating cache $cache_file" >&6;}
2309 # Check that the precious variables saved in the cache have kept the same
2311 ac_cache_corrupted
=false
2312 for ac_var
in $ac_precious_vars; do
2313 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2314 eval ac_new_set
=\
$ac_env_${ac_var}_set
2315 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2316 eval ac_new_val
=\
$ac_env_${ac_var}_value
2317 case $ac_old_set,$ac_new_set in
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2320 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2321 ac_cache_corrupted
=: ;;
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2324 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2325 ac_cache_corrupted
=: ;;
2328 if test "x$ac_old_val" != "x$ac_new_val"; then
2329 # differences in whitespace do not lead to failure.
2330 ac_old_val_w
=`echo x $ac_old_val`
2331 ac_new_val_w
=`echo x $ac_new_val`
2332 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2334 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2335 ac_cache_corrupted
=:
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2338 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2339 eval $ac_var=\
$ac_old_val
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2342 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2344 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2347 # Pass precious variables to config.status.
2348 if test "$ac_new_set" = set; then
2350 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2351 *) ac_arg
=$ac_var=$ac_new_val ;;
2353 case " $ac_configure_args " in
2354 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2355 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2359 if $ac_cache_corrupted; then
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2363 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2364 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2366 ## -------------------- ##
2367 ## Main body of script. ##
2368 ## -------------------- ##
2371 ac_cpp
='$CPP $CPPFLAGS'
2372 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2381 ac_config_headers
="$ac_config_headers config.h"
2384 # Default to --enable-multilib
2385 # Check whether --enable-multilib was given.
2386 if test "${enable_multilib+set}" = set; then :
2387 enableval
=$enable_multilib; case "$enableval" in
2388 yes) multilib
=yes ;;
2390 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
2397 # We may get other options which we leave undocumented:
2398 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2399 # See config-ml.in if you want the gory details.
2401 if test "$srcdir" = "."; then
2402 if test "$with_target_subdir" != "."; then
2403 multi_basedir
="$srcdir/$with_multisrctop../.."
2405 multi_basedir
="$srcdir/$with_multisrctop.."
2408 multi_basedir
="$srcdir/.."
2412 # Even if the default multilib is not a cross compilation,
2413 # it may be that some of the other multilibs are.
2414 if test $cross_compiling = no
&& test $multilib = yes \
2415 && test "x${with_multisubdir}" != x
; then
2416 cross_compiling
=maybe
2419 ac_config_commands
="$ac_config_commands default-1"
2422 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2423 if test -f "$ac_dir/install-sh"; then
2425 ac_install_sh
="$ac_aux_dir/install-sh -c"
2427 elif test -f "$ac_dir/install.sh"; then
2429 ac_install_sh
="$ac_aux_dir/install.sh -c"
2431 elif test -f "$ac_dir/shtool"; then
2433 ac_install_sh
="$ac_aux_dir/shtool install -c"
2437 if test -z "$ac_aux_dir"; then
2438 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2441 # These three variables are undocumented and unsupported,
2442 # and are intended to be withdrawn in a future Autoconf release.
2443 # They can cause serious problems if a builder's source tree is in a directory
2444 # whose full name contains unusual characters.
2445 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2446 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2447 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2450 # Make sure we can run config.sub.
2451 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2452 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2455 $as_echo_n "checking build system type... " >&6; }
2456 if ${ac_cv_build+:} false
; then :
2457 $as_echo_n "(cached) " >&6
2459 ac_build_alias
=$build_alias
2460 test "x$ac_build_alias" = x
&&
2461 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2462 test "x$ac_build_alias" = x
&&
2463 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2464 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2465 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2469 $as_echo "$ac_cv_build" >&6; }
2470 case $ac_cv_build in
2472 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2475 ac_save_IFS
=$IFS; IFS
='-'
2481 # Remember, the first character of IFS is used to create $*,
2482 # except with old shells:
2485 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2489 $as_echo_n "checking host system type... " >&6; }
2490 if ${ac_cv_host+:} false
; then :
2491 $as_echo_n "(cached) " >&6
2493 if test "x$host_alias" = x
; then
2494 ac_cv_host
=$ac_cv_build
2496 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2497 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2502 $as_echo "$ac_cv_host" >&6; }
2505 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2508 ac_save_IFS
=$IFS; IFS
='-'
2514 # Remember, the first character of IFS is used to create $*,
2515 # except with old shells:
2518 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2522 $as_echo_n "checking target system type... " >&6; }
2523 if ${ac_cv_target+:} false
; then :
2524 $as_echo_n "(cached) " >&6
2526 if test "x$target_alias" = x
; then
2527 ac_cv_target
=$ac_cv_host
2529 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2530 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2535 $as_echo "$ac_cv_target" >&6; }
2536 case $ac_cv_target in
2538 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2540 target
=$ac_cv_target
2541 ac_save_IFS
=$IFS; IFS
='-'
2547 # Remember, the first character of IFS is used to create $*,
2548 # except with old shells:
2551 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2554 # The aliases save the names the user supplied, while $host etc.
2555 # will get canonicalized.
2556 test -n "$target_alias" &&
2557 test "$program_prefix$program_suffix$program_transform_name" = \
2559 program_prefix
=${target_alias}-
2562 target_alias
=${target_alias-$target}
2565 # 1.11.1: Require that version of automake.
2566 # foreign: Don't require README, INSTALL, NEWS, etc.
2567 # no-define: Don't define PACKAGE and VERSION.
2568 # no-dependencies: Don't generate automatic dependencies.
2569 # (because it breaks when using bootstrap-lean, since some of the
2570 # headers are gone at "make install" time).
2571 # -Wall: Issue all automake warnings.
2572 # -Wno-portability: Don't warn about constructs supported by GNU make.
2573 # (because GCC requires GNU make anyhow).
2574 # -Wno-override: Overrides used in testsuite.
2575 am__api_version
='1.15'
2577 # Find a good install program. We prefer a C program (faster),
2578 # so one script is as good as another. But avoid the broken or
2579 # incompatible versions:
2580 # SysV /etc/install, /usr/sbin/install
2581 # SunOS /usr/etc/install
2582 # IRIX /sbin/install
2584 # AmigaOS /C/install, which installs bootblocks on floppy discs
2585 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2586 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2587 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2588 # OS/2's system install, which has a completely different semantic
2589 # ./install, which can be erroneously created by make from ./install.sh.
2590 # Reject install programs that cannot install multiple files.
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2592 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2593 if test -z "$INSTALL"; then
2594 if ${ac_cv_path_install+:} false
; then :
2595 $as_echo_n "(cached) " >&6
2597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2601 test -z "$as_dir" && as_dir
=.
2602 # Account for people who put trailing slashes in PATH elements.
2603 case $as_dir/ in #((
2604 .
/ | .
// |
/[cC
]/* | \
2605 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2606 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2609 # OSF1 and SCO ODT 3.0 have their own names for install.
2610 # Don't use installbsd from OSF since it installs stuff as root
2612 for ac_prog
in ginstall scoinst
install; do
2613 for ac_exec_ext
in '' $ac_executable_extensions; do
2614 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2615 if test $ac_prog = install &&
2616 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2617 # AIX install. It has an incompatible calling convention.
2619 elif test $ac_prog = install &&
2620 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2621 # program-specific install script used by HP pwplus--don't use.
2624 rm -rf conftest.one conftest.two conftest.dir
2625 echo one
> conftest.one
2626 echo two
> conftest.two
2628 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2629 test -s conftest.one
&& test -s conftest.two
&&
2630 test -s conftest.dir
/conftest.one
&&
2631 test -s conftest.dir
/conftest.two
2633 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2646 rm -rf conftest.one conftest.two conftest.dir
2649 if test "${ac_cv_path_install+set}" = set; then
2650 INSTALL
=$ac_cv_path_install
2652 # As a last resort, use the slow shell script. Don't cache a
2653 # value for INSTALL within a source directory, because that will
2654 # break other packages using the cache if that directory is
2655 # removed, or if the value is a relative name.
2656 INSTALL
=$ac_install_sh
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2660 $as_echo "$INSTALL" >&6; }
2662 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2663 # It thinks the first close brace ends the variable substitution.
2664 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2666 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2668 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2671 $as_echo_n "checking whether build environment is sane... " >&6; }
2672 # Reject unsafe characters in $srcdir or the absolute working directory
2673 # name. Accept space and tab only in the latter.
2677 *[\\\"\
#\$\&\'\`$am_lf]*)
2678 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2681 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2682 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2685 # Do 'set' in a subshell so we don't clobber the current shell's
2686 # arguments. Must try -L first in case configure is actually a
2687 # symlink; some systems play weird games with the mod time of symlinks
2688 # (eg FreeBSD returns the mod time of the symlink's containing
2692 for am_try
in 1 2; do
2693 echo "timestamp, slept: $am_has_slept" > conftest.
file
2694 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2695 if test "$*" = "X"; then
2697 set X
`ls -t "$srcdir/configure" conftest.file`
2699 if test "$*" != "X $srcdir/configure conftest.file" \
2700 && test "$*" != "X conftest.file $srcdir/configure"; then
2702 # If neither matched, then we have a broken ls. This can happen
2703 # if, for instance, CONFIG_SHELL is bash and it inherits a
2704 # broken ls alias from the environment. This has actually
2705 # happened. Such a system could not be considered "sane".
2706 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2707 alias in your environment" "$LINENO" 5
2709 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2716 test "$2" = conftest.
file
2722 as_fn_error $?
"newly created file is older than distributed files!
2723 Check your system clock" "$LINENO" 5
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2726 $as_echo "yes" >&6; }
2727 # If we didn't sleep, we still need to ensure time stamps of config.status and
2728 # generated files are strictly newer.
2730 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2737 test "$program_prefix" != NONE
&&
2738 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2739 # Use a double $ so make ignores it.
2740 test "$program_suffix" != NONE
&&
2741 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2742 # Double any \ or $.
2743 # By default was `s,x,x', remove it if useless.
2744 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2745 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2747 # Expand $ac_aux_dir to an absolute path.
2748 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2750 if test x
"${MISSING+set}" != xset
; then
2753 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2755 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2758 # Use eval to expand $SHELL
2759 if eval "$MISSING --is-lightweight"; then
2760 am_missing_run
="$MISSING "
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2764 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2767 if test x
"${install_sh+set}" != xset
; then
2770 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2772 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2776 # Installed binaries are usually stripped using 'strip' when the user
2777 # run "make install-strip". However 'strip' might not be the right
2778 # tool to use in cross-compilation environments, therefore Automake
2779 # will honor the 'STRIP' environment variable to overrule this program.
2780 if test "$cross_compiling" != no
; then
2781 if test -n "$ac_tool_prefix"; then
2782 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2783 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if ${ac_cv_prog_STRIP+:} false
; then :
2787 $as_echo_n "(cached) " >&6
2789 if test -n "$STRIP"; then
2790 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir
=.
2797 for ac_exec_ext
in '' $ac_executable_extensions; do
2798 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2799 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 STRIP
=$ac_cv_prog_STRIP
2810 if test -n "$STRIP"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2812 $as_echo "$STRIP" >&6; }
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2820 if test -z "$ac_cv_prog_STRIP"; then
2822 # Extract the first word of "strip", so it can be a program name with args.
2823 set dummy strip
; ac_word
=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2827 $as_echo_n "(cached) " >&6
2829 if test -n "$ac_ct_STRIP"; then
2830 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir
=.
2837 for ac_exec_ext
in '' $ac_executable_extensions; do
2838 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2839 ac_cv_prog_ac_ct_STRIP
="strip"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2850 if test -n "$ac_ct_STRIP"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2852 $as_echo "$ac_ct_STRIP" >&6; }
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2858 if test "x$ac_ct_STRIP" = x
; then
2861 case $cross_compiling:$ac_tool_warned in
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2865 ac_tool_warned
=yes ;;
2870 STRIP
="$ac_cv_prog_STRIP"
2874 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2877 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2878 if test -z "$MKDIR_P"; then
2879 if ${ac_cv_path_mkdir+:} false
; then :
2880 $as_echo_n "(cached) " >&6
2882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2883 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2886 test -z "$as_dir" && as_dir
=.
2887 for ac_prog
in mkdir gmkdir
; do
2888 for ac_exec_ext
in '' $ac_executable_extensions; do
2889 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2890 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2891 'mkdir (GNU coreutils) '* | \
2892 'mkdir (coreutils) '* | \
2893 'mkdir (fileutils) '4.1*)
2894 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2904 test -d .
/--version && rmdir .
/--version
2905 if test "${ac_cv_path_mkdir+set}" = set; then
2906 MKDIR_P
="$ac_cv_path_mkdir -p"
2908 # As a last resort, use the slow shell script. Don't cache a
2909 # value for MKDIR_P within a source directory, because that will
2910 # break other packages using the cache if that directory is
2911 # removed, or if the value is a relative name.
2912 MKDIR_P
="$ac_install_sh -d"
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2916 $as_echo "$MKDIR_P" >&6; }
2918 for ac_prog
in gawk mawk nawk
awk
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921 set dummy
$ac_prog; ac_word
=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if ${ac_cv_prog_AWK+:} false
; then :
2925 $as_echo_n "(cached) " >&6
2927 if test -n "$AWK"; then
2928 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir
=.
2935 for ac_exec_ext
in '' $ac_executable_extensions; do
2936 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2937 ac_cv_prog_AWK
="$ac_prog"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 if test -n "$AWK"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2950 $as_echo "$AWK" >&6; }
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2957 test -n "$AWK" && break
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2961 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2963 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2964 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2965 $as_echo_n "(cached) " >&6
2967 cat >conftest.
make <<\_ACEOF
2970 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2972 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2973 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2975 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2977 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2981 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2983 $as_echo "yes" >&6; }
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2988 SET_MAKE
="MAKE=${MAKE-make}"
2991 rm -rf .tst
2>/dev
/null
2992 mkdir .tst
2>/dev
/null
2993 if test -d .tst
; then
2998 rmdir .tst
2>/dev
/null
3000 # Check whether --enable-silent-rules was given.
3001 if test "${enable_silent_rules+set}" = set; then :
3002 enableval
=$enable_silent_rules;
3005 case $enable_silent_rules in # (((
3006 yes) AM_DEFAULT_VERBOSITY
=0;;
3007 no
) AM_DEFAULT_VERBOSITY
=1;;
3008 *) AM_DEFAULT_VERBOSITY
=1;;
3010 am_make
=${MAKE-make}
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3012 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3013 if ${am_cv_make_support_nested_variables+:} false
; then :
3014 $as_echo_n "(cached) " >&6
3016 if $as_echo 'TRUE=$(BAR$(V))
3022 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3023 am_cv_make_support_nested_variables
=yes
3025 am_cv_make_support_nested_variables
=no
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3029 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3030 if test $am_cv_make_support_nested_variables = yes; then
3032 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3034 AM_V
=$AM_DEFAULT_VERBOSITY
3035 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3039 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3040 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3041 # is not polluted with repeated "-I."
3042 am__isrc
=' -I$(srcdir)'
3043 # test to see if srcdir already configured
3044 if test -f $srcdir/config.status
; then
3045 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3049 # test whether we have cygpath
3050 if test -z "$CYGPATH_W"; then
3051 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3052 CYGPATH_W
='cygpath -w'
3059 # Define the identity of the package.
3061 VERSION
='version-unused'
3064 # Some tools Automake needs.
3066 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3069 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3072 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3075 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3078 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3080 # For better backward compatibility. To be removed once Automake 1.9.x
3081 # dies out for good. For more background, see:
3082 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3083 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3084 mkdir_p
='$(MKDIR_P)'
3086 # We need awk for the "check" target (and possibly the TAP driver). The
3087 # system "awk" is bad on some platforms.
3088 # Always define AMTAR for backward compatibility. Yes, it's still used
3089 # in the wild :-( We should find a proper way to deprecate it ...
3093 # We'll loop over all known methods to create a tar archive until one works.
3094 _am_tools
='gnutar pax cpio none'
3096 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3103 # POSIX will say in a future version that running "rm -f" with no argument
3104 # is OK; and we want to be able to make that assumption in our Makefile
3105 # recipes. So use an aggressive probe to check that the usage we want is
3106 # actually supported "in the wild" to an acceptable degree.
3107 # See automake bug#10828.
3108 # To make any issue more visible, cause the running configure to be aborted
3109 # by default if the 'rm' program in use doesn't match our expectations; the
3110 # user can still override this though.
3111 if rm -f && rm -fr && rm -rf; then : OK
; else
3115 Your 'rm' program seems unable to run without file operands specified
3116 on the command line, even when the '-f' option is present. This is contrary
3117 to the behaviour of most rm programs out there, and not conforming with
3118 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3120 Please tell bug-automake@gnu.org about your system, including the value
3121 of your $PATH and any error possibly output before this message. This
3122 can help us improve future automake versions.
3125 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3126 echo 'Configuration will proceed anyway, since you have set the' >&2
3127 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3131 Aborting the configuration process, to ensure you take notice of the issue.
3133 You can download and install GNU coreutils to get an 'rm' implementation
3134 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3136 If you want to complete the configuration process using your problematic
3137 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3138 to "yes", and re-run configure.
3141 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3149 ac_cpp
='$CPP $CPPFLAGS'
3150 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3151 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3152 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3153 if test -n "$ac_tool_prefix"; then
3154 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3155 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_CC+:} false
; then :
3159 $as_echo_n "(cached) " >&6
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC
="$CC" # Let the user override the test.
3164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3168 test -z "$as_dir" && as_dir
=.
3169 for ac_exec_ext
in '' $ac_executable_extensions; do
3170 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3192 if test -z "$ac_cv_prog_CC"; then
3194 # Extract the first word of "gcc", so it can be a program name with args.
3195 set dummy gcc
; ac_word
=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3199 $as_echo_n "(cached) " >&6
3201 if test -n "$ac_ct_CC"; then
3202 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3208 test -z "$as_dir" && as_dir
=.
3209 for ac_exec_ext
in '' $ac_executable_extensions; do
3210 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3211 ac_cv_prog_ac_ct_CC
="gcc"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3222 if test -n "$ac_ct_CC"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3224 $as_echo "$ac_ct_CC" >&6; }
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3230 if test "x$ac_ct_CC" = x
; then
3233 case $cross_compiling:$ac_tool_warned in
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3237 ac_tool_warned
=yes ;;
3245 if test -z "$CC"; then
3246 if test -n "$ac_tool_prefix"; then
3247 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3248 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if ${ac_cv_prog_CC+:} false
; then :
3252 $as_echo_n "(cached) " >&6
3254 if test -n "$CC"; then
3255 ac_cv_prog_CC
="$CC" # Let the user override the test.
3257 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3261 test -z "$as_dir" && as_dir
=.
3262 for ac_exec_ext
in '' $ac_executable_extensions; do
3263 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3264 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 if test -n "$CC"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3277 $as_echo "$CC" >&6; }
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3286 if test -z "$CC"; then
3287 # Extract the first word of "cc", so it can be a program name with args.
3288 set dummy cc
; ac_word
=$2
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290 $as_echo_n "checking for $ac_word... " >&6; }
3291 if ${ac_cv_prog_CC+:} false
; then :
3292 $as_echo_n "(cached) " >&6
3294 if test -n "$CC"; then
3295 ac_cv_prog_CC
="$CC" # Let the user override the test.
3298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3302 test -z "$as_dir" && as_dir
=.
3303 for ac_exec_ext
in '' $ac_executable_extensions; do
3304 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3305 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3306 ac_prog_rejected
=yes
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 if test $ac_prog_rejected = yes; then
3318 # We found a bogon in the path, so make sure we never use it.
3319 set dummy
$ac_cv_prog_CC
3321 if test $# != 0; then
3322 # We chose a different compiler from the bogus one.
3323 # However, it has the same basename, so the bogon will be chosen
3324 # first if we set CC to just the basename; use the full file name.
3326 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3332 if test -n "$CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334 $as_echo "$CC" >&6; }
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3342 if test -z "$CC"; then
3343 if test -n "$ac_tool_prefix"; then
3344 for ac_prog
in cl.exe
3346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3347 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if ${ac_cv_prog_CC+:} false
; then :
3351 $as_echo_n "(cached) " >&6
3353 if test -n "$CC"; then
3354 ac_cv_prog_CC
="$CC" # Let the user override the test.
3356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3360 test -z "$as_dir" && as_dir
=.
3361 for ac_exec_ext
in '' $ac_executable_extensions; do
3362 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3363 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 if test -n "$CC"; then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3376 $as_echo "$CC" >&6; }
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3383 test -n "$CC" && break
3386 if test -z "$CC"; then
3388 for ac_prog
in cl.exe
3390 # Extract the first word of "$ac_prog", so it can be a program name with args.
3391 set dummy
$ac_prog; ac_word
=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3395 $as_echo_n "(cached) " >&6
3397 if test -n "$ac_ct_CC"; then
3398 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3404 test -z "$as_dir" && as_dir
=.
3405 for ac_exec_ext
in '' $ac_executable_extensions; do
3406 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_prog_ac_ct_CC
="$ac_prog"
3408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3418 if test -n "$ac_ct_CC"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3420 $as_echo "$ac_ct_CC" >&6; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3427 test -n "$ac_ct_CC" && break
3430 if test "x$ac_ct_CC" = x
; then
3433 case $cross_compiling:$ac_tool_warned in
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3437 ac_tool_warned
=yes ;;
3446 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448 as_fn_error $?
"no acceptable C compiler found in \$PATH
3449 See \`config.log' for more details" "$LINENO" 5; }
3451 # Provide some information about the compiler.
3452 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3455 for ac_option
in --version -v -V -qversion; do
3456 { { ac_try
="$ac_compiler $ac_option >&5"
3458 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462 $as_echo "$ac_try_echo"; } >&5
3463 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3465 if test -s conftest.err; then
3467 ... rest of stderr output deleted ...
3468 10q' conftest.err >conftest.er1
3469 cat conftest.er1 >&5
3471 rm -f conftest.er1 conftest.err
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3487 ac_clean_files_save=$ac_clean_files
3488 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3489 # Try to create an executable without -o first, disregard a.out.
3490 # It will help us diagnose broken compilers, and finding out an intuition
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3493 $as_echo_n "checking whether the C compiler works... " >&6; }
3494 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3496 # The possible output files:
3497 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3500 for ac_file in $ac_files
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3504 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3509 if { { ac_try="$ac_link_default"
3511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3512 *) ac_try_echo
=$ac_try;;
3514 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 $as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_link_default") 2>&5
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }; then :
3520 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3521 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3522 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3523 # so that the user can short-circuit this test for compilers unknown to
3525 for ac_file
in $ac_files ''
3527 test -f "$ac_file" ||
continue
3529 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3532 # We found the default executable, but exeext='' is most
3536 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3538 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3540 # We set ac_cv_exeext here because the later test for it is not
3541 # safe: cross compilers may not add the suffix if given an `-o'
3542 # argument, so we may need to know it at that point already.
3543 # Even if this section looks crufty: it has the advantage of
3550 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3555 if test -z "$ac_file"; then :
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3558 $as_echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.
$ac_ext >&5
3561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 as_fn_error
77 "C compiler cannot create executables
3564 See \`config.log' for more details" "$LINENO" 5; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3567 $as_echo "yes" >&6; }
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3570 $as_echo_n "checking for C compiler default output file name... " >&6; }
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3572 $as_echo "$ac_file" >&6; }
3573 ac_exeext
=$ac_cv_exeext
3575 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3576 ac_clean_files
=$ac_clean_files_save
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3578 $as_echo_n "checking for suffix of executables... " >&6; }
3579 if { { ac_try
="$ac_link"
3581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585 $as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_link") 2>&5
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; then :
3590 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3591 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3592 # work properly (i.e., refer to `conftest.exe'), while it won't with
3594 for ac_file
in conftest.exe conftest conftest.
*; do
3595 test -f "$ac_file" ||
continue
3597 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3598 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3606 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3607 See \`config.log' for more details" "$LINENO" 5; }
3609 rm -f conftest conftest
$ac_cv_exeext
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3611 $as_echo "$ac_cv_exeext" >&6; }
3613 rm -f conftest.
$ac_ext
3614 EXEEXT
=$ac_cv_exeext
3616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3622 FILE *f = fopen ("conftest.out", "w");
3623 return ferror (f) || fclose (f) != 0;
3629 ac_clean_files
="$ac_clean_files conftest.out"
3630 # Check that the compiler produces executables we can run. If not, either
3631 # the compiler is broken, or we cross compile.
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3633 $as_echo_n "checking whether we are cross compiling... " >&6; }
3634 if test "$cross_compiling" != yes; then
3635 { { ac_try
="$ac_link"
3637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641 $as_echo "$ac_try_echo"; } >&5
3642 (eval "$ac_link") 2>&5
3644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645 test $ac_status = 0; }
3646 if { ac_try='./conftest$ac_cv_exeext'
3647 { { case "(($ac_try" in
3648 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3649 *) ac_try_echo
=$ac_try;;
3651 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652 $as_echo "$ac_try_echo"; } >&5
3653 (eval "$ac_try") 2>&5
3655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3656 test $ac_status = 0; }; }; then
3659 if test "$cross_compiling" = maybe
; then
3662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664 as_fn_error $?
"cannot run C compiled programs.
3665 If you meant to cross compile, use \`--host'.
3666 See \`config.log' for more details" "$LINENO" 5; }
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3671 $as_echo "$cross_compiling" >&6; }
3673 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3674 ac_clean_files
=$ac_clean_files_save
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3676 $as_echo_n "checking for suffix of object files... " >&6; }
3677 if ${ac_cv_objext+:} false
; then :
3678 $as_echo_n "(cached) " >&6
3680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3691 rm -f conftest.o conftest.obj
3692 if { { ac_try
="$ac_compile"
3694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3698 $as_echo "$ac_try_echo"; } >&5
3699 (eval "$ac_compile") 2>&5
3701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3702 test $ac_status = 0; }; then :
3703 for ac_file in conftest.o conftest.obj conftest.*; do
3704 test -f "$ac_file" || continue;
3706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3707 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3712 $as_echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3717 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3718 See \
`config.log' for more details" "$LINENO" 5; }
3720 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3723 $as_echo "$ac_cv_objext" >&6; }
3724 OBJEXT=$ac_cv_objext
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3727 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3728 if ${ac_cv_c_compiler_gnu+:} false; then :
3729 $as_echo_n "(cached) " >&6
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3745 if ac_fn_c_try_compile "$LINENO"; then :
3750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3755 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3756 if test $ac_compiler_gnu = yes; then
3761 ac_test_CFLAGS=${CFLAGS+set}
3762 ac_save_CFLAGS=$CFLAGS
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3764 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3765 if ${ac_cv_prog_cc_g+:} false; then :
3766 $as_echo_n "(cached) " >&6
3768 ac_save_c_werror_flag=$ac_c_werror_flag
3769 ac_c_werror_flag=yes
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3783 if ac_fn_c_try_compile "$LINENO"; then :
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3798 if ac_fn_c_try_compile "$LINENO"; then :
3801 ac_c_werror_flag=$ac_save_c_werror_flag
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3814 if ac_fn_c_try_compile "$LINENO"; then :
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 ac_c_werror_flag=$ac_save_c_werror_flag
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3825 $as_echo "$ac_cv_prog_cc_g" >&6; }
3826 if test "$ac_test_CFLAGS" = set; then
3827 CFLAGS=$ac_save_CFLAGS
3828 elif test $ac_cv_prog_cc_g = yes; then
3829 if test "$GCC" = yes; then
3835 if test "$GCC" = yes; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3842 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3843 if ${ac_cv_prog_cc_c89+:} false; then :
3844 $as_echo_n "(cached) " >&6
3846 ac_cv_prog_cc_c89=no
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3853 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3854 struct buf { int x; };
3855 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3856 static char *e (p, i)
3862 static char *f (char * (*g) (char **, int), char **p, ...)
3867 s = g (p, va_arg (v,int));
3872 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3873 function prototypes and stuff, but not '\xHH' hex character constants.
3874 These don't provoke an error unfortunately, instead are silently treated
3875 as 'x'. The following induces an error, until -std is added to get
3876 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3877 array size at least. It's necessary to write '\x00'==0 to get something
3878 that's true only with -std. */
3879 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3881 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3882 inside strings and character constants. */
3884 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3886 int test (int i, double x);
3887 struct s1 {int (*f) (int a);};
3888 struct s2 {int (*f) (double a);};
3889 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3895 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3900 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3901 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3903 CC="$ac_save_CC $ac_arg"
3904 if ac_fn_c_try_compile "$LINENO"; then :
3905 ac_cv_prog_cc_c89=$ac_arg
3907 rm -f core conftest.err conftest.$ac_objext
3908 test "x$ac_cv_prog_cc_c89" != "xno" && break
3910 rm -f conftest.$ac_ext
3915 case "x$ac_cv_prog_cc_c89" in
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3918 $as_echo "none needed" >&6; } ;;
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3921 $as_echo "unsupported" >&6; } ;;
3923 CC="$CC $ac_cv_prog_cc_c89"
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3925 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3927 if test "x$ac_cv_prog_cc_c89" != xno; then :
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3943 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3944 if ${am_cv_prog_cc_c_o+:} false; then :
3945 $as_echo_n "(cached) " >&6
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3958 # Make sure it works both with $CC and with simple cc.
3959 # Following AC_PROG_CC_C_O, we do the test twice because some
3960 # compilers refuse to overwrite an existing .o file with -o,
3961 # though they will create one.
3962 am_cv_prog_cc_c_o=yes
3964 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3965 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } \
3969 && test -f conftest2.$ac_objext; then
3972 am_cv_prog_cc_c_o=no
3976 rm -f core conftest*
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3980 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3981 if test "$am_cv_prog_cc_c_o" != yes; then
3982 # Losing compiler, so override with the script.
3983 # FIXME: It is wrong to rewrite CC.
3984 # But if we don't then we get into trouble of one sort or another.
3985 # A longer-term fix would be to have automake use am__CC in this case,
3986 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3987 CC="$am_aux_dir/compile $CC"
3990 ac_cpp='$CPP $CPPFLAGS'
3991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3996 # By default we simply use the C compiler to build assembly code.
3998 test "${CCAS+set}" = set || CCAS=$CC
3999 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4004 ac_cpp='$CPP $CPPFLAGS'
4005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008 if test -n "$ac_tool_prefix"; then
4009 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4010 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4012 $as_echo_n "checking for $ac_word... " >&6; }
4013 if ${ac_cv_prog_CC+:} false; then :
4014 $as_echo_n "(cached) " >&6
4016 if test -n "$CC"; then
4017 ac_cv_prog_CC="$CC" # Let the user override the test.
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 test -z "$as_dir" && as_dir=.
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4026 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 if test -n "$CC"; then
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4039 $as_echo "$CC" >&6; }
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4042 $as_echo "no" >&6; }
4047 if test -z "$ac_cv_prog_CC"; then
4049 # Extract the first word of "gcc", so it can be a program name with args.
4050 set dummy gcc; ac_word=$2
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4052 $as_echo_n "checking for $ac_word... " >&6; }
4053 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4054 $as_echo_n "(cached) " >&6
4056 if test -n "$ac_ct_CC"; then
4057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 test -z "$as_dir" && as_dir=.
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4066 ac_cv_prog_ac_ct_CC="gcc"
4067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4077 if test -n "$ac_ct_CC"; then
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4079 $as_echo "$ac_ct_CC" >&6; }
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4082 $as_echo "no" >&6; }
4085 if test "x$ac_ct_CC" = x; then
4088 case $cross_compiling:$ac_tool_warned in
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4092 ac_tool_warned=yes ;;
4100 if test -z "$CC"; then
4101 if test -n "$ac_tool_prefix"; then
4102 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4103 set dummy ${ac_tool_prefix}cc; ac_word=$2
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105 $as_echo_n "checking for $ac_word... " >&6; }
4106 if ${ac_cv_prog_CC+:} false; then :
4107 $as_echo_n "(cached) " >&6
4109 if test -n "$CC"; then
4110 ac_cv_prog_CC="$CC" # Let the user override the test.
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 test -z "$as_dir" && as_dir=.
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4119 ac_cv_prog_CC="${ac_tool_prefix}cc"
4120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 if test -n "$CC"; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4132 $as_echo "$CC" >&6; }
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 $as_echo "no" >&6; }
4141 if test -z "$CC"; then
4142 # Extract the first word of "cc", so it can be a program name with args.
4143 set dummy cc; ac_word=$2
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145 $as_echo_n "checking for $ac_word... " >&6; }
4146 if ${ac_cv_prog_CC+:} false; then :
4147 $as_echo_n "(cached) " >&6
4149 if test -n "$CC"; then
4150 ac_cv_prog_CC="$CC" # Let the user override the test.
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 test -z "$as_dir" && as_dir=.
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4160 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4161 ac_prog_rejected=yes
4165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 if test $ac_prog_rejected = yes; then
4173 # We found a bogon in the path, so make sure we never use it.
4174 set dummy $ac_cv_prog_CC
4176 if test $# != 0; then
4177 # We chose a different compiler from the bogus one.
4178 # However, it has the same basename, so the bogon will be chosen
4179 # first if we set CC to just the basename; use the full file name.
4181 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4187 if test -n "$CC"; then
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4189 $as_echo "$CC" >&6; }
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192 $as_echo "no" >&6; }
4197 if test -z "$CC"; then
4198 if test -n "$ac_tool_prefix"; then
4199 for ac_prog in cl.exe
4201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 $as_echo_n "checking for $ac_word... " >&6; }
4205 if ${ac_cv_prog_CC+:} false; then :
4206 $as_echo_n "(cached) " >&6
4208 if test -n "$CC"; then
4209 ac_cv_prog_CC="$CC" # Let the user override the test.
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 if test -n "$CC"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4231 $as_echo "$CC" >&6; }
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 $as_echo "no" >&6; }
4238 test -n "$CC" && break
4241 if test -z "$CC"; then
4243 for ac_prog in cl.exe
4245 # Extract the first word of "$ac_prog", so it can be a program name with args.
4246 set dummy $ac_prog; ac_word=$2
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 $as_echo_n "checking for $ac_word... " >&6; }
4249 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4250 $as_echo_n "(cached) " >&6
4252 if test -n "$ac_ct_CC"; then
4253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4262 ac_cv_prog_ac_ct_CC="$ac_prog"
4263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4273 if test -n "$ac_ct_CC"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4275 $as_echo "$ac_ct_CC" >&6; }
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 $as_echo "no" >&6; }
4282 test -n "$ac_ct_CC" && break
4285 if test "x$ac_ct_CC" = x; then
4288 case $cross_compiling:$ac_tool_warned in
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4292 ac_tool_warned=yes ;;
4301 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4303 as_fn_error $? "no acceptable C compiler found
in \
$PATH
4304 See \
`config.log' for more details" "$LINENO" 5; }
4306 # Provide some information about the compiler.
4307 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4310 for ac_option in --version -v -V -qversion; do
4311 { { ac_try="$ac_compiler $ac_option >&5"
4313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4314 *) ac_try_echo
=$ac_try;;
4316 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4317 $as_echo "$ac_try_echo"; } >&5
4318 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4320 if test -s conftest.err
; then
4322 ... rest of stderr output deleted ...
4323 10q' conftest.err
>conftest.er1
4324 cat conftest.er1
>&5
4326 rm -f conftest.er1 conftest.err
4327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; }
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4332 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4333 if ${ac_cv_c_compiler_gnu+:} false
; then :
4334 $as_echo_n "(cached) " >&6
4336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4350 if ac_fn_c_try_compile
"$LINENO"; then :
4355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4356 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4360 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4361 if test $ac_compiler_gnu = yes; then
4366 ac_test_CFLAGS
=${CFLAGS+set}
4367 ac_save_CFLAGS
=$CFLAGS
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4369 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4370 if ${ac_cv_prog_cc_g+:} false
; then :
4371 $as_echo_n "(cached) " >&6
4373 ac_save_c_werror_flag
=$ac_c_werror_flag
4374 ac_c_werror_flag
=yes
4377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4388 if ac_fn_c_try_compile
"$LINENO"; then :
4392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4403 if ac_fn_c_try_compile
"$LINENO"; then :
4406 ac_c_werror_flag
=$ac_save_c_werror_flag
4408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4419 if ac_fn_c_try_compile
"$LINENO"; then :
4422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4427 ac_c_werror_flag
=$ac_save_c_werror_flag
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4430 $as_echo "$ac_cv_prog_cc_g" >&6; }
4431 if test "$ac_test_CFLAGS" = set; then
4432 CFLAGS
=$ac_save_CFLAGS
4433 elif test $ac_cv_prog_cc_g = yes; then
4434 if test "$GCC" = yes; then
4440 if test "$GCC" = yes; then
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4447 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4448 if ${ac_cv_prog_cc_c89+:} false
; then :
4449 $as_echo_n "(cached) " >&6
4451 ac_cv_prog_cc_c89
=no
4453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4458 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4459 struct buf { int x; };
4460 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4461 static char *e (p, i)
4467 static char *f (char * (*g) (char **, int), char **p, ...)
4472 s = g (p, va_arg (v,int));
4477 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4478 function prototypes and stuff, but not '\xHH' hex character constants.
4479 These don't provoke an error unfortunately, instead are silently treated
4480 as 'x'. The following induces an error, until -std is added to get
4481 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4482 array size at least. It's necessary to write '\x00'==0 to get something
4483 that's true only with -std. */
4484 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4486 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4487 inside strings and character constants. */
4489 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4491 int test (int i, double x);
4492 struct s1 {int (*f) (int a);};
4493 struct s2 {int (*f) (double a);};
4494 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4500 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4505 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
4506 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4508 CC
="$ac_save_CC $ac_arg"
4509 if ac_fn_c_try_compile
"$LINENO"; then :
4510 ac_cv_prog_cc_c89
=$ac_arg
4512 rm -f core conftest.err conftest.
$ac_objext
4513 test "x$ac_cv_prog_cc_c89" != "xno" && break
4515 rm -f conftest.
$ac_ext
4520 case "x$ac_cv_prog_cc_c89" in
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4523 $as_echo "none needed" >&6; } ;;
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4526 $as_echo "unsupported" >&6; } ;;
4528 CC
="$CC $ac_cv_prog_cc_c89"
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4530 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4532 if test "x$ac_cv_prog_cc_c89" != xno
; then :
4537 ac_cpp
='$CPP $CPPFLAGS'
4538 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4543 ac_cpp
='$CPP $CPPFLAGS'
4544 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4548 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4549 if ${am_cv_prog_cc_c_o+:} false
; then :
4550 $as_echo_n "(cached) " >&6
4552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4563 # Make sure it works both with $CC and with simple cc.
4564 # Following AC_PROG_CC_C_O, we do the test twice because some
4565 # compilers refuse to overwrite an existing .o file with -o,
4566 # though they will create one.
4567 am_cv_prog_cc_c_o
=yes
4569 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4570 ($CC -c conftest.
$ac_ext -o conftest2.
$ac_objext) >&5 2>&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } \
4574 && test -f conftest2.
$ac_objext; then
4577 am_cv_prog_cc_c_o
=no
4581 rm -f core conftest
*
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4585 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4586 if test "$am_cv_prog_cc_c_o" != yes; then
4587 # Losing compiler, so override with the script.
4588 # FIXME: It is wrong to rewrite CC.
4589 # But if we don't then we get into trouble of one sort or another.
4590 # A longer-term fix would be to have automake use am__CC in this case,
4591 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4592 CC
="$am_aux_dir/compile $CC"
4595 ac_cpp
='$CPP $CPPFLAGS'
4596 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4602 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4603 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605 if test -n "$ac_tool_prefix"; then
4606 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4607 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4609 $as_echo_n "checking for $ac_word... " >&6; }
4610 if ${ac_cv_prog_GDC+:} false
; then :
4611 $as_echo_n "(cached) " >&6
4613 if test -n "$GDC"; then
4614 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
4616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4620 test -z "$as_dir" && as_dir
=.
4621 for ac_exec_ext
in '' $ac_executable_extensions; do
4622 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4623 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
4624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 if test -n "$GDC"; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4636 $as_echo "$GDC" >&6; }
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 $as_echo "no" >&6; }
4644 if test -z "$ac_cv_prog_GDC"; then
4646 # Extract the first word of "gdc", so it can be a program name with args.
4647 set dummy gdc
; ac_word
=$2
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
4651 $as_echo_n "(cached) " >&6
4653 if test -n "$ac_ct_GDC"; then
4654 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
4656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4660 test -z "$as_dir" && as_dir
=.
4661 for ac_exec_ext
in '' $ac_executable_extensions; do
4662 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4663 ac_cv_prog_ac_ct_GDC
="gdc"
4664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
4674 if test -n "$ac_ct_GDC"; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
4676 $as_echo "$ac_ct_GDC" >&6; }
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 $as_echo "no" >&6; }
4682 if test "x$ac_ct_GDC" = x
; then
4685 case $cross_compiling:$ac_tool_warned in
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4689 ac_tool_warned
=yes ;;
4694 GDC
="$ac_cv_prog_GDC"
4697 if test -z "$GDC"; then
4698 if test -n "$ac_tool_prefix"; then
4699 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4700 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if ${ac_cv_prog_GDC+:} false
; then :
4704 $as_echo_n "(cached) " >&6
4706 if test -n "$GDC"; then
4707 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
4709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir
=.
4714 for ac_exec_ext
in '' $ac_executable_extensions; do
4715 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4716 ac_cv_prog_GDC
="$ac_tool_prefix}gdc"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 if test -n "$GDC"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4729 $as_echo "$GDC" >&6; }
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4738 if test -z "$GDC"; then
4739 # Extract the first word of "gdc", so it can be a program name with args.
4740 set dummy gdc
; ac_word
=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if ${ac_cv_prog_GDC+:} false
; then :
4744 $as_echo_n "(cached) " >&6
4746 if test -n "$GDC"; then
4747 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
4750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir
=.
4755 for ac_exec_ext
in '' $ac_executable_extensions; do
4756 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4757 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4758 ac_prog_rejected
=yes
4761 ac_cv_prog_GDC
="gdc"
4762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 if test $ac_prog_rejected = yes; then
4770 # We found a bogon in the path, so make sure we never use it.
4771 set dummy
$ac_cv_prog_GDC
4773 if test $# != 0; then
4774 # We chose a different compiler from the bogus one.
4775 # However, it has the same basename, so the bogon will be chosen
4776 # first if we set GDC to just the basename; use the full file name.
4778 ac_cv_prog_GDC
="$as_dir/$ac_word${1+' '}$@"
4784 if test -n "$GDC"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4786 $as_echo "$GDC" >&6; }
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 $as_echo "no" >&6; }
4796 # Provide some information about the compiler.
4797 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
4800 { { ac_try
="$ac_compiler --version >&5"
4802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4806 $as_echo "$ac_try_echo"; } >&5
4807 (eval "$ac_compiler --version >&5") 2>conftest.err
4809 if test -s conftest.err; then
4811 ... rest of stderr output deleted ...
4812 10q' conftest.err >conftest.er1
4813 cat conftest.er1 >&5
4815 rm -f conftest.er1 conftest.err
4816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4817 test $ac_status = 0; }
4819 ac_cpp='$CPP $CPPFLAGS'
4820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
4826 $as_echo_n "checking for absolute libphobos source path... " >&6; }
4827 if ${phobos_cv_abs_srcdir+:} false; then :
4828 $as_echo_n "(cached) " >&6
4830 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
4833 $as_echo "$phobos_cv_abs_srcdir" >&6; }
4834 if test -d "$phobos_cv_abs_srcdir"; then :
4837 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
4843 gdc_save_DFLAGS=$GDCFLAGS
4844 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
4847 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4848 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
4852 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
4853 cat > conftest.$ac_ext <<_ACEOF
4857 extern(C) int main() {
4861 if ac_fn_d_try_compile "$LINENO"; then :
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4863 $as_echo "yes" >&6; }
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 $as_echo "no" >&6; }
4867 as_fn_error $? "can't compile D sources!" "$LINENO" 5
4869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871 ac_cpp='$CPP $CPPFLAGS'
4872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4877 GDCFLAGS=$gdc_save_DFLAGS
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4885 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4886 # Check whether --enable-maintainer-mode was given.
4887 if test "${enable_maintainer_mode+set}" = set; then :
4888 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4890 USE_MAINTAINER_MODE=no
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4894 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4895 if test $USE_MAINTAINER_MODE = yes; then
4896 MAINTAINER_MODE_TRUE=
4897 MAINTAINER_MODE_FALSE='#'
4899 MAINTAINER_MODE_TRUE='#'
4900 MAINTAINER_MODE_FALSE=
4903 MAINT=$MAINTAINER_MODE_TRUE
4906 if test -n "$ac_tool_prefix"; then
4907 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4908 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if ${ac_cv_prog_RANLIB+:} false; then :
4912 $as_echo_n "(cached) " >&6
4914 if test -n "$RANLIB"; then
4915 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4924 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 RANLIB=$ac_cv_prog_RANLIB
4935 if test -n "$RANLIB"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4937 $as_echo "$RANLIB" >&6; }
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4945 if test -z "$ac_cv_prog_RANLIB"; then
4946 ac_ct_RANLIB=$RANLIB
4947 # Extract the first word of "ranlib", so it can be a program name with args.
4948 set dummy ranlib; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4952 $as_echo_n "(cached) " >&6
4954 if test -n "$ac_ct_RANLIB"; then
4955 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964 ac_cv_prog_ac_ct_RANLIB="ranlib"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4975 if test -n "$ac_ct_RANLIB"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4977 $as_echo "$ac_ct_RANLIB" >&6; }
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4983 if test "x$ac_ct_RANLIB" = x; then
4986 case $cross_compiling:$ac_tool_warned in
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4990 ac_tool_warned=yes ;;
4992 RANLIB=$ac_ct_RANLIB
4995 RANLIB="$ac_cv_prog_RANLIB"
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5000 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5002 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5003 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5004 $as_echo_n "(cached) " >&6
5006 cat >conftest.make <<\_ACEOF
5009 @echo '@@@%%%=$(MAKE)=@@@%%%'
5011 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5012 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
5014 eval ac_cv_prog_make_${ac_make}_set=yes;;
5016 eval ac_cv_prog_make_${ac_make}_set=no;;
5020 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5022 $as_echo "yes" >&6; }
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026 $as_echo "no" >&6; }
5027 SET_MAKE="MAKE=${MAKE-make}"
5031 # This should be inherited in the recursive make, but ensure it is defined.
5035 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
5043 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
5048 macro_version='2.2.7a'
5049 macro_revision='1.3134'
5063 ltmain="$ac_aux_dir/ltmain.sh"
5065 # Backslashify metacharacters that are still active within
5066 # double-quoted strings.
5067 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
5069 # Same as above, but do not quote variable references.
5070 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
5072 # Sed substitution to delay expansion of an escaped shell variable in a
5073 # double_quote_subst'ed string.
5074 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5076 # Sed substitution to delay expansion of an escaped single quote.
5077 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5079 # Sed substitution to avoid accidental globbing in evaled expressions
5080 no_glob_subst='s/\*/\\\*/g'
5082 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5083 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5084 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
5087 $as_echo_n "checking how to print
strings...
" >&6; }
5088 # Test print first, because it will be a builtin if present.
5089 if test "X
`print -r -- -n 2>/dev/null`" = X-n && \
5090 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
5092 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
5095 # Use this function as a fallback that always works.
5096 func_fallback_echo ()
5098 eval 'cat <<_LTECHO_EOF
5102 ECHO='func_fallback_echo'
5105 # func_echo_all arg...
5106 # Invoke $ECHO with all args, space-separated.
5113 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
5114 $as_echo "printf" >&6; } ;;
5115 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
5116 $as_echo "print
-r" >&6; } ;;
5117 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
5118 $as_echo "cat" >&6; } ;;
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
5135 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
5136 if ${ac_cv_path_SED+:} false; then :
5137 $as_echo_n "(cached
) " >&6
5139 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5140 for ac_i in 1 2 3 4 5 6 7; do
5141 ac_script="$ac_script$as_nl$ac_script"
5143 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5144 { ac_script=; unset ac_script;}
5145 if test -z "$SED"; then
5146 ac_path_SED_found=false
5147 # Loop through the user's path and test for each of PROGNAME-LIST
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir=.
5153 for ac_prog in sed gsed; do
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5156 as_fn_executable_p "$ac_path_SED" || continue
5157 # Check for GNU ac_path_SED and select it if it is found.
5158 # Check for GNU $ac_path_SED
5159 case `"$ac_path_SED" --version 2>&1` in
5161 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5164 $as_echo_n 0123456789 >"conftest.
in"
5167 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5168 mv "conftest.tmp
" "conftest.
in"
5169 cp "conftest.
in" "conftest.
nl"
5170 $as_echo '' >> "conftest.
nl"
5171 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5172 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5173 as_fn_arith $ac_count + 1 && ac_count=$as_val
5174 if test $ac_count -gt ${ac_path_SED_max-0}; then
5175 # Best one so far, save it but keep looking for a better one
5176 ac_cv_path_SED="$ac_path_SED"
5177 ac_path_SED_max=$ac_count
5179 # 10*(2^10) chars as input seems more than enough
5180 test $ac_count -gt 10 && break
5182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5185 $ac_path_SED_found && break 3
5190 if test -z "$ac_cv_path_SED"; then
5191 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
5199 $as_echo "$ac_cv_path_SED" >&6; }
5200 SED="$ac_cv_path_SED"
5203 test -z "$SED" && SED=sed
5204 Xsed="$SED -e 1s
/^X
//"
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
5217 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
5218 if ${ac_cv_path_GREP+:} false; then :
5219 $as_echo_n "(cached
) " >&6
5221 if test -z "$GREP"; then
5222 ac_path_GREP_found=false
5223 # Loop through the user's path and test for each of PROGNAME-LIST
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5228 test -z "$as_dir" && as_dir=.
5229 for ac_prog in grep ggrep; do
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5232 as_fn_executable_p "$ac_path_GREP" || continue
5233 # Check for GNU ac_path_GREP and select it if it is found.
5234 # Check for GNU $ac_path_GREP
5235 case `"$ac_path_GREP" --version 2>&1` in
5237 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5240 $as_echo_n 0123456789 >"conftest.
in"
5243 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5244 mv "conftest.tmp
" "conftest.
in"
5245 cp "conftest.
in" "conftest.
nl"
5246 $as_echo 'GREP' >> "conftest.
nl"
5247 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5248 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5249 as_fn_arith $ac_count + 1 && ac_count=$as_val
5250 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5251 # Best one so far, save it but keep looking for a better one
5252 ac_cv_path_GREP="$ac_path_GREP"
5253 ac_path_GREP_max=$ac_count
5255 # 10*(2^10) chars as input seems more than enough
5256 test $ac_count -gt 10 && break
5258 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5261 $ac_path_GREP_found && break 3
5266 if test -z "$ac_cv_path_GREP"; then
5267 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5270 ac_cv_path_GREP=$GREP
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
5275 $as_echo "$ac_cv_path_GREP" >&6; }
5276 GREP="$ac_cv_path_GREP"
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
5280 $as_echo_n "checking
for egrep...
" >&6; }
5281 if ${ac_cv_path_EGREP+:} false; then :
5282 $as_echo_n "(cached
) " >&6
5284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5285 then ac_cv_path_EGREP="$GREP -E"
5287 if test -z "$EGREP"; then
5288 ac_path_EGREP_found=false
5289 # Loop through the user's path and test for each of PROGNAME-LIST
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5294 test -z "$as_dir" && as_dir=.
5295 for ac_prog in egrep; do
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5298 as_fn_executable_p "$ac_path_EGREP" || continue
5299 # Check for GNU ac_path_EGREP and select it if it is found.
5300 # Check for GNU $ac_path_EGREP
5301 case `"$ac_path_EGREP" --version 2>&1` in
5303 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5306 $as_echo_n 0123456789 >"conftest.
in"
5309 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5310 mv "conftest.tmp
" "conftest.
in"
5311 cp "conftest.
in" "conftest.
nl"
5312 $as_echo 'EGREP' >> "conftest.
nl"
5313 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5314 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5315 as_fn_arith $ac_count + 1 && ac_count=$as_val
5316 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5317 # Best one so far, save it but keep looking for a better one
5318 ac_cv_path_EGREP="$ac_path_EGREP"
5319 ac_path_EGREP_max=$ac_count
5321 # 10*(2^10) chars as input seems more than enough
5322 test $ac_count -gt 10 && break
5324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5327 $ac_path_EGREP_found && break 3
5332 if test -z "$ac_cv_path_EGREP"; then
5333 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5336 ac_cv_path_EGREP=$EGREP
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
5342 $as_echo "$ac_cv_path_EGREP" >&6; }
5343 EGREP="$ac_cv_path_EGREP"
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
5347 $as_echo_n "checking
for fgrep...
" >&6; }
5348 if ${ac_cv_path_FGREP+:} false; then :
5349 $as_echo_n "(cached
) " >&6
5351 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5352 then ac_cv_path_FGREP="$GREP -F"
5354 if test -z "$FGREP"; then
5355 ac_path_FGREP_found=false
5356 # Loop through the user's path and test for each of PROGNAME-LIST
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5361 test -z "$as_dir" && as_dir=.
5362 for ac_prog in fgrep; do
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5365 as_fn_executable_p "$ac_path_FGREP" || continue
5366 # Check for GNU ac_path_FGREP and select it if it is found.
5367 # Check for GNU $ac_path_FGREP
5368 case `"$ac_path_FGREP" --version 2>&1` in
5370 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5373 $as_echo_n 0123456789 >"conftest.
in"
5376 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5377 mv "conftest.tmp
" "conftest.
in"
5378 cp "conftest.
in" "conftest.
nl"
5379 $as_echo 'FGREP' >> "conftest.
nl"
5380 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5381 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5382 as_fn_arith $ac_count + 1 && ac_count=$as_val
5383 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5384 # Best one so far, save it but keep looking for a better one
5385 ac_cv_path_FGREP="$ac_path_FGREP"
5386 ac_path_FGREP_max=$ac_count
5388 # 10*(2^10) chars as input seems more than enough
5389 test $ac_count -gt 10 && break
5391 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5394 $ac_path_FGREP_found && break 3
5399 if test -z "$ac_cv_path_FGREP"; then
5400 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5403 ac_cv_path_FGREP=$FGREP
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
5409 $as_echo "$ac_cv_path_FGREP" >&6; }
5410 FGREP="$ac_cv_path_FGREP"
5413 test -z "$GREP" && GREP=grep
5433 # Check whether --with-gnu-ld was given.
5434 if test "${with_gnu_ld+set}" = set; then :
5435 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5441 if test "$GCC" = yes; then
5442 # Check if gcc -print-prog-name=ld gives a path.
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
5444 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
5447 # gcc leaves a trailing carriage return which upsets mingw
5448 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5450 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5453 # Accept absolute paths.
5455 re_direlt='/[^/][^/]*/\.\./'
5456 # Canonicalize the pathname of ld
5457 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5458 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5459 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
5461 test -z "$LD" && LD="$ac_prog"
5464 # If it fails, then pretend we aren't using GCC.
5468 # If it is relative, then search for the first ld in PATH.
5472 elif test "$with_gnu_ld" = yes; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
5474 $as_echo_n "checking
for GNU ld...
" >&6; }
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
5477 $as_echo_n "checking
for non-GNU ld...
" >&6; }
5479 if ${lt_cv_path_LD+:} false; then :
5480 $as_echo_n "(cached
) " >&6
5482 if test -z "$LD"; then
5483 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5484 for ac_dir in $PATH; do
5486 test -z "$ac_dir" && ac_dir=.
5487 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5488 lt_cv_path_LD="$ac_dir/$ac_prog"
5489 # Check to see if the program is GNU ld. I'd rather use --version,
5490 # but apparently some variants of GNU ld only accept -v.
5491 # Break only if it was the GNU/non-GNU ld that we prefer.
5492 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5493 *GNU* | *'with BFD'*)
5494 test "$with_gnu_ld" != no && break
5497 test "$with_gnu_ld" != yes && break
5504 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5509 if test -n "$LD"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
5511 $as_echo "$LD" >&6; }
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5514 $as_echo "no
" >&6; }
5516 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
5518 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
5519 if ${lt_cv_prog_gnu_ld+:} false; then :
5520 $as_echo_n "(cached
) " >&6
5522 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5523 case `$LD -v 2>&1 </dev/null` in
5524 *GNU* | *'with BFD'*)
5525 lt_cv_prog_gnu_ld=yes
5528 lt_cv_prog_gnu_ld=no
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
5533 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5534 with_gnu_ld=$lt_cv_prog_gnu_ld
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
5545 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
5546 if ${lt_cv_path_NM+:} false; then :
5547 $as_echo_n "(cached
) " >&6
5549 if test -n "$NM"; then
5550 # Let the user override the test.
5553 lt_nm_to_check="${ac_tool_prefix}nm
"
5554 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5555 lt_nm_to_check="$lt_nm_to_check nm
"
5557 for lt_tmp_nm in $lt_nm_to_check; do
5558 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5559 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5561 test -z "$ac_dir" && ac_dir=.
5562 tmp_nm="$ac_dir/$lt_tmp_nm"
5563 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5564 # Check to see if the nm accepts a BSD-compat flag.
5565 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5566 # nm: unknown option "B
" ignored
5567 # Tru64's nm complains that /dev/null is an invalid object file
5568 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5569 */dev/null* | *'Invalid file or object type'*)
5570 lt_cv_path_NM="$tmp_nm -B"
5574 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5576 lt_cv_path_NM="$tmp_nm -p"
5580 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5581 continue # so that we can try to find one that supports BSD flags
5590 : ${lt_cv_path_NM=no}
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
5594 $as_echo "$lt_cv_path_NM" >&6; }
5595 if test "$lt_cv_path_NM" != "no
"; then
5598 # Didn't find any BSD compatible name lister, look for dumpbin.
5599 if test -n "$DUMPBIN"; then :
5600 # Let the user override the test.
5602 if test -n "$ac_tool_prefix"; then
5603 for ac_prog in dumpbin "link
-dump"
5605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5608 $as_echo_n "checking
for $ac_word...
" >&6; }
5609 if ${ac_cv_prog_DUMPBIN+:} false; then :
5610 $as_echo_n "(cached
) " >&6
5612 if test -n "$DUMPBIN"; then
5613 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5623 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5632 DUMPBIN=$ac_cv_prog_DUMPBIN
5633 if test -n "$DUMPBIN"; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
5635 $as_echo "$DUMPBIN" >&6; }
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5638 $as_echo "no
" >&6; }
5642 test -n "$DUMPBIN" && break
5645 if test -z "$DUMPBIN"; then
5646 ac_ct_DUMPBIN=$DUMPBIN
5647 for ac_prog in dumpbin "link
-dump"
5649 # Extract the first word of "$ac_prog", so it can be a program name with args.
5650 set dummy $ac_prog; ac_word=$2
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5652 $as_echo_n "checking
for $ac_word...
" >&6; }
5653 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5654 $as_echo_n "(cached
) " >&6
5656 if test -n "$ac_ct_DUMPBIN"; then
5657 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5666 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5667 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5676 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5677 if test -n "$ac_ct_DUMPBIN"; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
5679 $as_echo "$ac_ct_DUMPBIN" >&6; }
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5682 $as_echo "no
" >&6; }
5686 test -n "$ac_ct_DUMPBIN" && break
5689 if test "x
$ac_ct_DUMPBIN" = x; then
5692 case $cross_compiling:$ac_tool_warned in
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5695 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5696 ac_tool_warned=yes ;;
5698 DUMPBIN=$ac_ct_DUMPBIN
5702 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5704 DUMPBIN="$DUMPBIN -symbols"
5712 if test "$DUMPBIN" != ":"; then
5716 test -z "$NM" && NM=nm
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5724 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5725 if ${lt_cv_nm_interface+:} false; then :
5726 $as_echo_n "(cached
) " >&6
5728 lt_cv_nm_interface="BSD nm
"
5729 echo "int some_variable
= 0;" > conftest.$ac_ext
5730 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5731 (eval "$ac_compile" 2>conftest.err)
5732 cat conftest.err >&5
5733 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5734 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5735 cat conftest.err >&5
5736 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5737 cat conftest.out >&5
5738 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5739 lt_cv_nm_interface="MS dumpbin
"
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5744 $as_echo "$lt_cv_nm_interface" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5747 $as_echo_n "checking whether
ln -s works...
" >&6; }
5749 if test "$LN_S" = "ln -s"; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5751 $as_echo "yes" >&6; }
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5754 $as_echo "no
, using
$LN_S" >&6; }
5757 # find the maximum length of command line arguments
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5759 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5760 if ${lt_cv_sys_max_cmd_len+:} false; then :
5761 $as_echo_n "(cached
) " >&6
5768 # On DJGPP, this test can blow up pretty badly due to problems in libc
5769 # (any single argument exceeding 2000 bytes causes a buffer overrun
5770 # during glob expansion). Even if it were fixed, the result of this
5771 # check would be larger than it should be.
5772 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5776 # Under GNU Hurd, this test is not required because there is
5777 # no limit to the length of command line arguments.
5778 # Libtool will interpret -1 as no limit whatsoever
5779 lt_cv_sys_max_cmd_len=-1;
5782 cygwin* | mingw* | cegcc*)
5783 # On Win9x/ME, this test blows up -- it succeeds, but takes
5784 # about 5 minutes as the teststring grows exponentially.
5785 # Worse, since 9x/ME are not pre-emptively multitasking,
5786 # you end up with a "frozen
" computer, even though with patience
5787 # the test eventually succeeds (with a max line length of 256k).
5788 # Instead, let's just punt: use the minimum linelength reported by
5789 # all of the supported platforms: 8192 (on NT/2K/XP).
5790 lt_cv_sys_max_cmd_len=8192;
5794 # On MiNT this can take a long time and run out of memory.
5795 lt_cv_sys_max_cmd_len=8192;
5799 # On AmigaOS with pdksh, this test takes hours, literally.
5800 # So we just punt and use a minimum line length of 8192.
5801 lt_cv_sys_max_cmd_len=8192;
5804 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5805 # This has been around since 386BSD, at least. Likely further.
5806 if test -x /sbin/sysctl; then
5807 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5808 elif test -x /usr/sbin/sysctl; then
5809 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5811 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5813 # And add a safety zone
5814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5819 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5820 lt_cv_sys_max_cmd_len=196608
5824 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5825 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5826 # nice to cause kernel panics so lets avoid the loop below.
5827 # First set a reasonable default.
5828 lt_cv_sys_max_cmd_len=16384
5830 if test -x /sbin/sysconfig; then
5831 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5832 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5837 lt_cv_sys_max_cmd_len=102400
5839 sysv5* | sco5v6* | sysv4.2uw2*)
5840 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5841 if test -n "$kargmax"; then
5842 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5844 lt_cv_sys_max_cmd_len=32768
5848 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5849 if test -n "$lt_cv_sys_max_cmd_len"; then
5850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5853 # Make teststring a little bigger before we do anything with it.
5854 # a 1K string should be a reasonable start.
5855 for i in 1 2 3 4 5 6 7 8 ; do
5856 teststring=$teststring$teststring
5858 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5859 # If test is not a shell built-in, we'll probably end up computing a
5860 # maximum length that is only half of the actual maximum length, but
5862 while { test "X
"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5863 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5864 test $i != 17 # 1/2 MB should be enough
5867 teststring=$teststring$teststring
5869 # Only check the string length outside the loop.
5870 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5872 # Add a significant safety factor because C++ compilers can tack on
5873 # massive amounts of additional arguments before passing them to the
5874 # linker. It appears as though 1/2 is a usable value.
5875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5882 if test -n $lt_cv_sys_max_cmd_len ; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5884 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5887 $as_echo "none
" >&6; }
5889 max_cmd_len=$lt_cv_sys_max_cmd_len
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs
" >&5
5901 $as_echo_n "checking whether the shell understands some XSI constructs...
" >&6; }
5902 # Try some XSI features
5905 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5907 && eval 'test $(( 1 + 1 )) -eq 2 \
5908 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5911 $as_echo "$xsi_shell" >&6; }
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5915 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5917 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
5919 && lt_shell_append
=yes
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5921 $as_echo "$lt_shell_append" >&6; }
5924 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5934 # test EBCDIC or ASCII
5935 case `echo X|tr X '\101'` in
5936 A
) # ASCII based system
5937 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5938 lt_SP2NL
='tr \040 \012'
5939 lt_NL2SP
='tr \015\012 \040\040'
5941 *) # EBCDIC based system
5942 lt_SP2NL
='tr \100 \n'
5943 lt_NL2SP
='tr \r\n \100\100'
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5956 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5957 if ${lt_cv_ld_reload_flag+:} false
; then :
5958 $as_echo_n "(cached) " >&6
5960 lt_cv_ld_reload_flag
='-r'
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5963 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5964 reload_flag
=$lt_cv_ld_reload_flag
5965 case $reload_flag in
5967 *) reload_flag
=" $reload_flag" ;;
5969 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5972 if test "$GCC" = yes; then
5973 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5975 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5988 if test -n "$ac_tool_prefix"; then
5989 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5990 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992 $as_echo_n "checking for $ac_word... " >&6; }
5993 if ${ac_cv_prog_OBJDUMP+:} false
; then :
5994 $as_echo_n "(cached) " >&6
5996 if test -n "$OBJDUMP"; then
5997 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
5999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6003 test -z "$as_dir" && as_dir
=.
6004 for ac_exec_ext
in '' $ac_executable_extensions; do
6005 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6006 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
6007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 OBJDUMP
=$ac_cv_prog_OBJDUMP
6017 if test -n "$OBJDUMP"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6019 $as_echo "$OBJDUMP" >&6; }
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 $as_echo "no" >&6; }
6027 if test -z "$ac_cv_prog_OBJDUMP"; then
6028 ac_ct_OBJDUMP
=$OBJDUMP
6029 # Extract the first word of "objdump", so it can be a program name with args.
6030 set dummy objdump
; ac_word
=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
6034 $as_echo_n "(cached) " >&6
6036 if test -n "$ac_ct_OBJDUMP"; then
6037 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
6039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6043 test -z "$as_dir" && as_dir
=.
6044 for ac_exec_ext
in '' $ac_executable_extensions; do
6045 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6046 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6056 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
6057 if test -n "$ac_ct_OBJDUMP"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6059 $as_echo "$ac_ct_OBJDUMP" >&6; }
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6065 if test "x$ac_ct_OBJDUMP" = x
; then
6068 case $cross_compiling:$ac_tool_warned in
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6072 ac_tool_warned
=yes ;;
6074 OBJDUMP
=$ac_ct_OBJDUMP
6077 OBJDUMP
="$ac_cv_prog_OBJDUMP"
6080 test -z "$OBJDUMP" && OBJDUMP
=objdump
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6091 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6092 if ${lt_cv_deplibs_check_method+:} false
; then :
6093 $as_echo_n "(cached) " >&6
6095 lt_cv_file_magic_cmd
='$MAGIC_CMD'
6096 lt_cv_file_magic_test_file
=
6097 lt_cv_deplibs_check_method
='unknown'
6098 # Need to set the preceding variable on all platforms that support
6099 # interlibrary dependencies.
6100 # 'none' -- dependencies not supported.
6101 # `unknown' -- same as none, but documents that we really don't know.
6102 # 'pass_all' -- all dependencies passed with no checks.
6103 # 'test_compile' -- check by making test program.
6104 # 'file_magic [[regex]]' -- check by looking for files in library path
6105 # which responds to the $file_magic_cmd with a given extended regex.
6106 # If you have `file' or equivalent on your system and you're not sure
6107 # whether `pass_all' will *always* work, you probably want this one.
6111 lt_cv_deplibs_check_method
=pass_all
6115 lt_cv_deplibs_check_method
=pass_all
6119 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6120 lt_cv_file_magic_cmd
='/usr/bin/file -L'
6121 lt_cv_file_magic_test_file
=/shlib
/libc.so
6125 # func_win32_libid is a shell function defined in ltmain.sh
6126 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6127 lt_cv_file_magic_cmd
='func_win32_libid'
6131 # Base MSYS/MinGW do not provide the 'file' command needed by
6132 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6133 # unless we find 'file', for example because we are cross-compiling.
6134 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6135 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
6136 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6137 lt_cv_file_magic_cmd
='func_win32_libid'
6139 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
6140 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6145 # use the weaker test based on 'objdump'. See mingw*.
6146 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6147 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6150 darwin
* | rhapsody
*)
6151 lt_cv_deplibs_check_method
=pass_all
6154 freebsd
* | dragonfly
*)
6155 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6158 # Not sure whether the presence of OpenBSD here was a mistake.
6159 # Let's accept both of them until this is cleared up.
6160 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6161 lt_cv_file_magic_cmd
=/usr
/bin
/file
6162 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6166 lt_cv_deplibs_check_method
=pass_all
6171 lt_cv_deplibs_check_method
=pass_all
6175 lt_cv_deplibs_check_method
=pass_all
6178 hpux10.20
* | hpux11
*)
6179 lt_cv_file_magic_cmd
=/usr
/bin
/file
6182 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6183 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
6186 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]'
6187 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
6190 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6191 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6197 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6198 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6201 irix5
* | irix6
* | nonstopux
*)
6203 *-32|
*"-32 ") libmagic
=32-bit;;
6204 *-n32|
*"-n32 ") libmagic
=N32
;;
6205 *-64|
*"-64 ") libmagic
=64-bit;;
6206 *) libmagic
=never-match
;;
6208 lt_cv_deplibs_check_method
=pass_all
6211 # This must be Linux ELF.
6212 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
6213 lt_cv_deplibs_check_method
=pass_all
6217 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6218 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6220 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6225 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6226 lt_cv_file_magic_cmd
=/usr
/bin
/file
6227 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6231 lt_cv_deplibs_check_method
=pass_all
6235 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6236 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6238 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6242 osf3
* | osf4
* | osf5
*)
6243 lt_cv_deplibs_check_method
=pass_all
6247 lt_cv_deplibs_check_method
=pass_all
6251 lt_cv_deplibs_check_method
=pass_all
6254 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6255 lt_cv_deplibs_check_method
=pass_all
6259 case $host_vendor in
6261 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]'
6262 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6265 lt_cv_deplibs_check_method
=pass_all
6268 lt_cv_file_magic_cmd
='/bin/file'
6269 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6272 lt_cv_file_magic_cmd
='/bin/file'
6273 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6274 lt_cv_file_magic_test_file
=/lib
/libc.so
6277 lt_cv_deplibs_check_method
=pass_all
6280 lt_cv_deplibs_check_method
=pass_all
6286 lt_cv_deplibs_check_method
=pass_all
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6292 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6293 file_magic_cmd
=$lt_cv_file_magic_cmd
6294 deplibs_check_method
=$lt_cv_deplibs_check_method
6295 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6308 if test -n "$ac_tool_prefix"; then
6309 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6310 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312 $as_echo_n "checking for $ac_word... " >&6; }
6313 if ${ac_cv_prog_AR+:} false
; then :
6314 $as_echo_n "(cached) " >&6
6316 if test -n "$AR"; then
6317 ac_cv_prog_AR
="$AR" # Let the user override the test.
6319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6323 test -z "$as_dir" && as_dir
=.
6324 for ac_exec_ext
in '' $ac_executable_extensions; do
6325 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6326 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 if test -n "$AR"; then
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6339 $as_echo "$AR" >&6; }
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6347 if test -z "$ac_cv_prog_AR"; then
6349 # Extract the first word of "ar", so it can be a program name with args.
6350 set dummy
ar; ac_word
=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6354 $as_echo_n "(cached) " >&6
6356 if test -n "$ac_ct_AR"; then
6357 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6363 test -z "$as_dir" && as_dir
=.
6364 for ac_exec_ext
in '' $ac_executable_extensions; do
6365 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6366 ac_cv_prog_ac_ct_AR
="ar"
6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6377 if test -n "$ac_ct_AR"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6379 $as_echo "$ac_ct_AR" >&6; }
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 $as_echo "no" >&6; }
6385 if test "x$ac_ct_AR" = x
; then
6388 case $cross_compiling:$ac_tool_warned in
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392 ac_tool_warned
=yes ;;
6400 test -z "$AR" && AR
=ar
6401 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6413 if test -n "$ac_tool_prefix"; then
6414 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6415 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417 $as_echo_n "checking for $ac_word... " >&6; }
6418 if ${ac_cv_prog_STRIP+:} false
; then :
6419 $as_echo_n "(cached) " >&6
6421 if test -n "$STRIP"; then
6422 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6428 test -z "$as_dir" && as_dir
=.
6429 for ac_exec_ext
in '' $ac_executable_extensions; do
6430 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6431 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 STRIP
=$ac_cv_prog_STRIP
6442 if test -n "$STRIP"; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6444 $as_echo "$STRIP" >&6; }
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 $as_echo "no" >&6; }
6452 if test -z "$ac_cv_prog_STRIP"; then
6454 # Extract the first word of "strip", so it can be a program name with args.
6455 set dummy strip
; ac_word
=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
6459 $as_echo_n "(cached) " >&6
6461 if test -n "$ac_ct_STRIP"; then
6462 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6468 test -z "$as_dir" && as_dir
=.
6469 for ac_exec_ext
in '' $ac_executable_extensions; do
6470 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6471 ac_cv_prog_ac_ct_STRIP
="strip"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6482 if test -n "$ac_ct_STRIP"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6484 $as_echo "$ac_ct_STRIP" >&6; }
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6490 if test "x$ac_ct_STRIP" = x
; then
6493 case $cross_compiling:$ac_tool_warned in
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6497 ac_tool_warned
=yes ;;
6502 STRIP
="$ac_cv_prog_STRIP"
6505 test -z "$STRIP" && STRIP
=:
6512 if test -n "$ac_tool_prefix"; then
6513 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6514 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 $as_echo_n "checking for $ac_word... " >&6; }
6517 if ${ac_cv_prog_RANLIB+:} false
; then :
6518 $as_echo_n "(cached) " >&6
6520 if test -n "$RANLIB"; then
6521 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6527 test -z "$as_dir" && as_dir
=.
6528 for ac_exec_ext
in '' $ac_executable_extensions; do
6529 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6530 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 RANLIB
=$ac_cv_prog_RANLIB
6541 if test -n "$RANLIB"; then
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6543 $as_echo "$RANLIB" >&6; }
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6551 if test -z "$ac_cv_prog_RANLIB"; then
6552 ac_ct_RANLIB
=$RANLIB
6553 # Extract the first word of "ranlib", so it can be a program name with args.
6554 set dummy ranlib
; ac_word
=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6558 $as_echo_n "(cached) " >&6
6560 if test -n "$ac_ct_RANLIB"; then
6561 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6567 test -z "$as_dir" && as_dir
=.
6568 for ac_exec_ext
in '' $ac_executable_extensions; do
6569 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6570 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6581 if test -n "$ac_ct_RANLIB"; then
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6583 $as_echo "$ac_ct_RANLIB" >&6; }
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 $as_echo "no" >&6; }
6589 if test "x$ac_ct_RANLIB" = x
; then
6592 case $cross_compiling:$ac_tool_warned in
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6596 ac_tool_warned
=yes ;;
6598 RANLIB
=$ac_ct_RANLIB
6601 RANLIB
="$ac_cv_prog_RANLIB"
6604 test -z "$RANLIB" && RANLIB
=:
6611 # Determine commands to create old-style static archives.
6612 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6613 old_postinstall_cmds
='chmod 644 $oldlib'
6614 old_postuninstall_cmds
=
6616 if test -n "$RANLIB"; then
6619 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6622 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6625 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6630 lock_old_archive_extraction
=yes ;;
6632 lock_old_archive_extraction
=no
;;
6673 # If no C compiler was specified, use CC.
6676 # If no C compiler flags were specified, use CFLAGS.
6677 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6679 # Allow CC to be a program name with arguments.
6683 # Check for command to grab the raw symbol name followed by C symbol from nm.
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6685 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6686 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
6687 $as_echo_n "(cached) " >&6
6690 # These are sane defaults that work on at least a few old systems.
6691 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6693 # Character class describing NM global symbol codes.
6694 symcode
='[BCDEGRST]'
6696 # Regexp to match symbols that can be accessed directly from C.
6697 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6699 # Define system-specific variables.
6704 cygwin
* | mingw
* | pw32
* | cegcc
*)
6705 symcode
='[ABCDGISTW]'
6708 if test "$host_cpu" = ia64
; then
6709 symcode
='[ABCDEGRST]'
6713 symcode
='[BCDEGRST]'
6716 symcode
='[BCDEGQRST]'
6727 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6735 # If we're using GNU nm, then use its standard symbol codes.
6736 case `$NM -V 2>&1` in
6737 *GNU
* |
*'with BFD'*)
6738 symcode
='[ABCDGIRSTW]' ;;
6741 # Transform an extracted symbol line into a proper C declaration.
6742 # Some systems (esp. on ia64) link data and code symbols differently,
6743 # so use this general approach.
6744 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6746 # Transform an extracted symbol line into symbol name and symbol address
6747 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6748 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'"
6750 # Handle CRLF in mingw tool chain
6754 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6758 # Try without a prefix underscore, then with it.
6759 for ac_symprfx
in "" "_"; do
6761 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6762 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6764 # Write the raw and C identifiers.
6765 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6766 # Fake it for dumpbin and say T for any non-static function
6767 # and D for any global variable.
6768 # Also find C++ and __fastcall symbols from MSVC++,
6769 # which start with @ or ?.
6770 lt_cv_sys_global_symbol_pipe
="$AWK '"\
6771 " {last_section=section; section=\$ 3};"\
6772 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6773 " \$ 0!~/External *\|/{next};"\
6774 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6775 " {if(hide[section]) next};"\
6776 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6777 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6778 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6779 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6780 " ' prfx=^$ac_symprfx"
6782 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6785 # Check to see that the pipe works correctly.
6789 cat > conftest.
$ac_ext <<_LT_EOF
6794 void nm_test_func(void);
6795 void nm_test_func(void){}
6799 int main(){nm_test_var='a';nm_test_func();return(0);}
6802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6803 (eval $ac_compile) 2>&5
6805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6806 test $ac_status = 0; }; then
6807 # Now try to grab the symbols.
6809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6810 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
6812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6813 test $ac_status = 0; } && test -s "$nlist"; then
6814 # Try sorting and uniquifying the output.
6815 if sort "$nlist" |
uniq > "$nlist"T
; then
6816 mv -f "$nlist"T
"$nlist"
6821 # Make sure that we snagged all the symbols we need.
6822 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
6823 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
6824 cat <<_LT_EOF > conftest.$ac_ext
6830 # Now generate the symbol file.
6831 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6833 cat <<_LT_EOF >> conftest.$ac_ext
6835 /* The mapping between symbol names and symbols. */
6840 lt__PROGRAM__LTX_preloaded_symbols[] =
6842 { "@PROGRAM@", (void *) 0 },
6844 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
6845 cat <<\_LT_EOF
>> conftest.
$ac_ext
6849 /* This works around a problem
in FreeBSD linker
*/
6850 #ifdef FREEBSD_WORKAROUND
6851 static const void
*lt_preloaded_setup
() {
6852 return lt__PROGRAM__LTX_preloaded_symbols
;
6860 # Now try linking the two files.
6861 mv conftest.
$ac_objext conftstm.
$ac_objext
6862 lt_save_LIBS
="$LIBS"
6863 lt_save_CFLAGS
="$CFLAGS"
6864 LIBS
="conftstm.$ac_objext"
6865 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6867 (eval $ac_link) 2>&5
6869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6870 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
6873 LIBS
="$lt_save_LIBS"
6874 CFLAGS
="$lt_save_CFLAGS"
6876 echo "cannot find nm_test_func in $nlist" >&5
6879 echo "cannot find nm_test_var in $nlist" >&5
6882 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6885 echo "$progname: failed program was:" >&5
6886 cat conftest.
$ac_ext >&5
6888 rm -rf conftest
* conftst
*
6890 # Do not use the global_symbol_pipe unless it works.
6891 if test "$pipe_works" = yes; then
6894 lt_cv_sys_global_symbol_pipe
=
6900 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6901 lt_cv_sys_global_symbol_to_cdecl
=
6903 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6905 $as_echo "failed" >&6; }
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6908 $as_echo "ok" >&6; }
6933 # Check whether --enable-libtool-lock was given.
6934 if test "${enable_libtool_lock+set}" = set; then :
6935 enableval
=$enable_libtool_lock;
6938 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6940 # Some flags need to be propagated to the compiler or linker for good
6944 # Find out which ABI we are using.
6945 echo 'int i;' > conftest.
$ac_ext
6946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6947 (eval $ac_compile) 2>&5
6949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6950 test $ac_status = 0; }; then
6951 case `/usr/bin/file conftest.$ac_objext` in
6963 # Find out which ABI we are using.
6964 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
6965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6966 (eval $ac_compile) 2>&5
6968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6969 test $ac_status = 0; }; then
6970 if test "$lt_cv_prog_gnu_ld" = yes; then
6971 case `/usr/bin/file conftest.$ac_objext` in
6973 LD
="${LD-ld} -melf32bsmip"
6976 LD
="${LD-ld} -melf32bmipn32"
6979 LD
="${LD-ld} -melf64bmip"
6983 case `/usr/bin/file conftest.$ac_objext` in
6999 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
7000 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
7001 # Find out which ABI we are using.
7002 echo 'int i;' > conftest.
$ac_ext
7003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7004 (eval $ac_compile) 2>&5
7006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7007 test $ac_status = 0; }; then
7008 case `/usr/bin/file conftest.o` in
7011 x86_64-
*kfreebsd
*-gnu)
7012 LD
="${LD-ld} -m elf_i386_fbsd"
7015 case `/usr/bin/file conftest.o` in
7017 LD
="${LD-ld} -m elf32_x86_64"
7020 LD
="${LD-ld} -m elf_i386"
7024 powerpc64le-
*linux
*)
7025 LD
="${LD-ld} -m elf32lppclinux"
7028 LD
="${LD-ld} -m elf32ppclinux"
7031 LD
="${LD-ld} -m elf_s390"
7034 LD
="${LD-ld} -m elf32_sparc"
7040 x86_64-
*kfreebsd
*-gnu)
7041 LD
="${LD-ld} -m elf_x86_64_fbsd"
7044 LD
="${LD-ld} -m elf_x86_64"
7047 LD
="${LD-ld} -m elf64lppc"
7050 LD
="${LD-ld} -m elf64ppc"
7052 s390
*-*linux
*|s390
*-*tpf
*)
7053 LD
="${LD-ld} -m elf64_s390"
7056 LD
="${LD-ld} -m elf64_sparc"
7066 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7067 SAVE_CFLAGS
="$CFLAGS"
7068 CFLAGS
="$CFLAGS -belf"
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7070 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7071 if ${lt_cv_cc_needs_belf+:} false
; then :
7072 $as_echo_n "(cached) " >&6
7075 ac_cpp
='$CPP $CPPFLAGS'
7076 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7091 if ac_fn_c_try_link
"$LINENO"; then :
7092 lt_cv_cc_needs_belf
=yes
7094 lt_cv_cc_needs_belf
=no
7096 rm -f core conftest.err conftest.
$ac_objext \
7097 conftest
$ac_exeext conftest.
$ac_ext
7099 ac_cpp
='$CPP $CPPFLAGS'
7100 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7101 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7102 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7106 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7107 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
7108 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7109 CFLAGS
="$SAVE_CFLAGS"
7113 # Find out which ABI we are using.
7114 echo 'int i;' > conftest.
$ac_ext
7115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7116 (eval $ac_compile) 2>&5
7118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7119 test $ac_status = 0; }; then
7120 case `/usr/bin/file conftest.o` in
7122 case $lt_cv_prog_gnu_ld in
7123 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
7125 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
7137 need_locks
="$enable_libtool_lock"
7141 rhapsody
* | darwin
*)
7142 if test -n "$ac_tool_prefix"; then
7143 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7144 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146 $as_echo_n "checking for $ac_word... " >&6; }
7147 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
7148 $as_echo_n "(cached) " >&6
7150 if test -n "$DSYMUTIL"; then
7151 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
7153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7157 test -z "$as_dir" && as_dir
=.
7158 for ac_exec_ext
in '' $ac_executable_extensions; do
7159 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7160 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
7161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
7171 if test -n "$DSYMUTIL"; then
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7173 $as_echo "$DSYMUTIL" >&6; }
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176 $as_echo "no" >&6; }
7181 if test -z "$ac_cv_prog_DSYMUTIL"; then
7182 ac_ct_DSYMUTIL
=$DSYMUTIL
7183 # Extract the first word of "dsymutil", so it can be a program name with args.
7184 set dummy dsymutil
; ac_word
=$2
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186 $as_echo_n "checking for $ac_word... " >&6; }
7187 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
7188 $as_echo_n "(cached) " >&6
7190 if test -n "$ac_ct_DSYMUTIL"; then
7191 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
7193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7197 test -z "$as_dir" && as_dir
=.
7198 for ac_exec_ext
in '' $ac_executable_extensions; do
7199 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7200 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
7201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
7211 if test -n "$ac_ct_DSYMUTIL"; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7213 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216 $as_echo "no" >&6; }
7219 if test "x$ac_ct_DSYMUTIL" = x
; then
7222 case $cross_compiling:$ac_tool_warned in
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7226 ac_tool_warned
=yes ;;
7228 DSYMUTIL
=$ac_ct_DSYMUTIL
7231 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
7234 if test -n "$ac_tool_prefix"; then
7235 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7236 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if ${ac_cv_prog_NMEDIT+:} false
; then :
7240 $as_echo_n "(cached) " >&6
7242 if test -n "$NMEDIT"; then
7243 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
7245 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7249 test -z "$as_dir" && as_dir
=.
7250 for ac_exec_ext
in '' $ac_executable_extensions; do
7251 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7252 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 NMEDIT
=$ac_cv_prog_NMEDIT
7263 if test -n "$NMEDIT"; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7265 $as_echo "$NMEDIT" >&6; }
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7273 if test -z "$ac_cv_prog_NMEDIT"; then
7274 ac_ct_NMEDIT
=$NMEDIT
7275 # Extract the first word of "nmedit", so it can be a program name with args.
7276 set dummy nmedit
; ac_word
=$2
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278 $as_echo_n "checking for $ac_word... " >&6; }
7279 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
7280 $as_echo_n "(cached) " >&6
7282 if test -n "$ac_ct_NMEDIT"; then
7283 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
7285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7289 test -z "$as_dir" && as_dir
=.
7290 for ac_exec_ext
in '' $ac_executable_extensions; do
7291 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7292 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
7293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
7303 if test -n "$ac_ct_NMEDIT"; then
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7305 $as_echo "$ac_ct_NMEDIT" >&6; }
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308 $as_echo "no" >&6; }
7311 if test "x$ac_ct_NMEDIT" = x
; then
7314 case $cross_compiling:$ac_tool_warned in
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7318 ac_tool_warned
=yes ;;
7320 NMEDIT
=$ac_ct_NMEDIT
7323 NMEDIT
="$ac_cv_prog_NMEDIT"
7326 if test -n "$ac_tool_prefix"; then
7327 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7328 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if ${ac_cv_prog_LIPO+:} false
; then :
7332 $as_echo_n "(cached) " >&6
7334 if test -n "$LIPO"; then
7335 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
7337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7341 test -z "$as_dir" && as_dir
=.
7342 for ac_exec_ext
in '' $ac_executable_extensions; do
7343 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7344 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 LIPO
=$ac_cv_prog_LIPO
7355 if test -n "$LIPO"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7357 $as_echo "$LIPO" >&6; }
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7365 if test -z "$ac_cv_prog_LIPO"; then
7367 # Extract the first word of "lipo", so it can be a program name with args.
7368 set dummy lipo
; ac_word
=$2
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
7372 $as_echo_n "(cached) " >&6
7374 if test -n "$ac_ct_LIPO"; then
7375 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
7377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7381 test -z "$as_dir" && as_dir
=.
7382 for ac_exec_ext
in '' $ac_executable_extensions; do
7383 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7384 ac_cv_prog_ac_ct_LIPO
="lipo"
7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
7395 if test -n "$ac_ct_LIPO"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7397 $as_echo "$ac_ct_LIPO" >&6; }
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400 $as_echo "no" >&6; }
7403 if test "x$ac_ct_LIPO" = x
; then
7406 case $cross_compiling:$ac_tool_warned in
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7410 ac_tool_warned
=yes ;;
7415 LIPO
="$ac_cv_prog_LIPO"
7418 if test -n "$ac_tool_prefix"; then
7419 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7420 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if ${ac_cv_prog_OTOOL+:} false
; then :
7424 $as_echo_n "(cached) " >&6
7426 if test -n "$OTOOL"; then
7427 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
7429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7433 test -z "$as_dir" && as_dir
=.
7434 for ac_exec_ext
in '' $ac_executable_extensions; do
7435 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7436 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 OTOOL
=$ac_cv_prog_OTOOL
7447 if test -n "$OTOOL"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7449 $as_echo "$OTOOL" >&6; }
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7457 if test -z "$ac_cv_prog_OTOOL"; then
7459 # Extract the first word of "otool", so it can be a program name with args.
7460 set dummy otool
; ac_word
=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
7464 $as_echo_n "(cached) " >&6
7466 if test -n "$ac_ct_OTOOL"; then
7467 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
7469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7473 test -z "$as_dir" && as_dir
=.
7474 for ac_exec_ext
in '' $ac_executable_extensions; do
7475 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7476 ac_cv_prog_ac_ct_OTOOL
="otool"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
7487 if test -n "$ac_ct_OTOOL"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7489 $as_echo "$ac_ct_OTOOL" >&6; }
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7495 if test "x$ac_ct_OTOOL" = x
; then
7498 case $cross_compiling:$ac_tool_warned in
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7502 ac_tool_warned
=yes ;;
7507 OTOOL
="$ac_cv_prog_OTOOL"
7510 if test -n "$ac_tool_prefix"; then
7511 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7512 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514 $as_echo_n "checking for $ac_word... " >&6; }
7515 if ${ac_cv_prog_OTOOL64+:} false
; then :
7516 $as_echo_n "(cached) " >&6
7518 if test -n "$OTOOL64"; then
7519 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
7521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7525 test -z "$as_dir" && as_dir
=.
7526 for ac_exec_ext
in '' $ac_executable_extensions; do
7527 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7528 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 OTOOL64
=$ac_cv_prog_OTOOL64
7539 if test -n "$OTOOL64"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7541 $as_echo "$OTOOL64" >&6; }
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7549 if test -z "$ac_cv_prog_OTOOL64"; then
7550 ac_ct_OTOOL64
=$OTOOL64
7551 # Extract the first word of "otool64", so it can be a program name with args.
7552 set dummy otool64
; ac_word
=$2
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554 $as_echo_n "checking for $ac_word... " >&6; }
7555 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
7556 $as_echo_n "(cached) " >&6
7558 if test -n "$ac_ct_OTOOL64"; then
7559 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
7561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7565 test -z "$as_dir" && as_dir
=.
7566 for ac_exec_ext
in '' $ac_executable_extensions; do
7567 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7568 ac_cv_prog_ac_ct_OTOOL64
="otool64"
7569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
7579 if test -n "$ac_ct_OTOOL64"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7581 $as_echo "$ac_ct_OTOOL64" >&6; }
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7587 if test "x$ac_ct_OTOOL64" = x
; then
7590 case $cross_compiling:$ac_tool_warned in
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7594 ac_tool_warned
=yes ;;
7596 OTOOL64
=$ac_ct_OTOOL64
7599 OTOOL64
="$ac_cv_prog_OTOOL64"
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7629 $as_echo_n "checking for -single_module linker flag... " >&6; }
7630 if ${lt_cv_apple_cc_single_mod+:} false
; then :
7631 $as_echo_n "(cached) " >&6
7633 lt_cv_apple_cc_single_mod
=no
7634 if test -z "${LT_MULTI_MODULE}"; then
7635 # By default we will add the -single_module flag. You can override
7636 # by either setting the environment variable LT_MULTI_MODULE
7637 # non-empty at configure time, or by adding -multi_module to the
7639 rm -rf libconftest.dylib
*
7640 echo "int foo(void){return 1;}" > conftest.c
7641 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7642 -dynamiclib -Wl,-single_module conftest.c" >&5
7643 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7644 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
7646 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
7647 lt_cv_apple_cc_single_mod
=yes
7649 cat conftest.err
>&5
7651 rm -rf libconftest.dylib
*
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7656 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7658 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7659 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
7660 $as_echo_n "(cached) " >&6
7662 lt_cv_ld_exported_symbols_list
=no
7663 save_LDFLAGS
=$LDFLAGS
7664 echo "_main" > conftest.sym
7665 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7677 if ac_fn_c_try_link
"$LINENO"; then :
7678 lt_cv_ld_exported_symbols_list
=yes
7680 lt_cv_ld_exported_symbols_list
=no
7682 rm -f core conftest.err conftest.
$ac_objext \
7683 conftest
$ac_exeext conftest.
$ac_ext
7684 LDFLAGS
="$save_LDFLAGS"
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7688 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7690 $as_echo_n "checking for -force_load linker flag... " >&6; }
7691 if ${lt_cv_ld_force_load+:} false
; then :
7692 $as_echo_n "(cached) " >&6
7694 lt_cv_ld_force_load
=no
7695 cat > conftest.c
<< _LT_EOF
7696 int forced_loaded() { return 2;}
7698 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7699 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
7700 echo "$AR cru libconftest.a conftest.o" >&5
7701 $AR cru libconftest.a conftest.o
2>&5
7702 cat > conftest.c
<< _LT_EOF
7703 int main() { return 0;}
7705 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7706 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
7708 if test -f conftest
&& test ! -s conftest.err
&& test $_lt_result = 0 && $GREP forced_load conftest
2>&1 >/dev
/null
; then
7709 lt_cv_ld_force_load
=yes
7711 cat conftest.err
>&5
7713 rm -f conftest.err libconftest.a conftest conftest.c
7714 rm -rf conftest.dSYM
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7718 $as_echo "$lt_cv_ld_force_load" >&6; }
7720 rhapsody
* | darwin1.
[012])
7721 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
7723 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7724 darwin
*) # darwin 5.x on
7725 # if running on 10.5 or later, the deployment target defaults
7726 # to the OS version, if on x86, and 10.4, the deployment
7727 # target defaults to 10.4. Don't you love it?
7728 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7729 10.0,*86*-darwin8*|
10.0,*-darwin[91]*)
7730 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7732 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7734 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7738 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7739 _lt_dar_single_mod
='$single_module'
7741 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7742 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7744 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7746 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7747 _lt_dsymutil
='~$DSYMUTIL $lib || :'
7755 ac_cpp
='$CPP $CPPFLAGS'
7756 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7757 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7758 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7760 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7761 # On Suns, sometimes $CPP names a directory.
7762 if test -n "$CPP" && test -d "$CPP"; then
7765 if test -z "$CPP"; then
7766 if ${ac_cv_prog_CPP+:} false
; then :
7767 $as_echo_n "(cached) " >&6
7769 # Double quotes because CPP needs to be expanded
7770 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7773 for ac_c_preproc_warn_flag
in '' yes
7775 # Use a header file that comes with gcc, so configuring glibc
7776 # with a fresh cross-compiler works.
7777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7778 # <limits.h> exists even on freestanding compilers.
7779 # On the NeXT, cc -E runs the code through the compiler's parser,
7780 # not just through cpp. "Syntax error" is here to catch this case.
7781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7784 # include <limits.h>
7786 # include <assert.h>
7790 if ac_fn_c_try_cpp
"$LINENO"; then :
7793 # Broken: fails on valid input.
7796 rm -f conftest.err conftest.i conftest.
$ac_ext
7798 # OK, works on sane cases. Now check whether nonexistent headers
7799 # can be detected and how.
7800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h. */
7802 #include <ac_nonexistent.h>
7804 if ac_fn_c_try_cpp
"$LINENO"; then :
7805 # Broken: success on invalid input.
7808 # Passes both tests.
7812 rm -f conftest.err conftest.i conftest.
$ac_ext
7815 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7816 rm -f conftest.i conftest.err conftest.
$ac_ext
7817 if $ac_preproc_ok; then :
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7830 $as_echo "$CPP" >&6; }
7832 for ac_c_preproc_warn_flag
in '' yes
7834 # Use a header file that comes with gcc, so configuring glibc
7835 # with a fresh cross-compiler works.
7836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7837 # <limits.h> exists even on freestanding compilers.
7838 # On the NeXT, cc -E runs the code through the compiler's parser,
7839 # not just through cpp. "Syntax error" is here to catch this case.
7840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h. */
7843 # include <limits.h>
7845 # include <assert.h>
7849 if ac_fn_c_try_cpp
"$LINENO"; then :
7852 # Broken: fails on valid input.
7855 rm -f conftest.err conftest.i conftest.
$ac_ext
7857 # OK, works on sane cases. Now check whether nonexistent headers
7858 # can be detected and how.
7859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h. */
7861 #include <ac_nonexistent.h>
7863 if ac_fn_c_try_cpp
"$LINENO"; then :
7864 # Broken: success on invalid input.
7867 # Passes both tests.
7871 rm -f conftest.err conftest.i conftest.
$ac_ext
7874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7875 rm -f conftest.i conftest.err conftest.
$ac_ext
7876 if $ac_preproc_ok; then :
7879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7881 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7882 See \`config.log' for more details" "$LINENO" 5; }
7886 ac_cpp
='$CPP $CPPFLAGS'
7887 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7888 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7889 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7893 $as_echo_n "checking for ANSI C header files... " >&6; }
7894 if ${ac_cv_header_stdc+:} false
; then :
7895 $as_echo_n "(cached) " >&6
7897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7912 if ac_fn_c_try_compile
"$LINENO"; then :
7913 ac_cv_header_stdc
=yes
7915 ac_cv_header_stdc
=no
7917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7919 if test $ac_cv_header_stdc = yes; then
7920 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7927 $EGREP "memchr" >/dev
/null
2>&1; then :
7930 ac_cv_header_stdc
=no
7936 if test $ac_cv_header_stdc = yes; then
7937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7944 $EGREP "free" >/dev
/null
2>&1; then :
7947 ac_cv_header_stdc
=no
7953 if test $ac_cv_header_stdc = yes; then
7954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7955 if test "$cross_compiling" = yes; then :
7958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7962 #if ((' ' & 0x0FF) == 0x020)
7963 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7964 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7966 # define ISLOWER(c) \
7967 (('a' <= (c) && (c) <= 'i') \
7968 || ('j' <= (c) && (c) <= 'r') \
7969 || ('s' <= (c) && (c) <= 'z'))
7970 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7973 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7978 for (i = 0; i < 256; i++)
7979 if (XOR (islower (i), ISLOWER (i))
7980 || toupper (i) != TOUPPER (i))
7985 if ac_fn_c_try_run
"$LINENO"; then :
7988 ac_cv_header_stdc
=no
7990 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7991 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7997 $as_echo "$ac_cv_header_stdc" >&6; }
7998 if test $ac_cv_header_stdc = yes; then
8000 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8004 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8005 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
8006 inttypes.h stdint.h unistd.h
8008 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8009 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8011 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8012 cat >>confdefs.h
<<_ACEOF
8013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8021 for ac_header
in dlfcn.h
8023 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8025 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8026 cat >>confdefs.h
<<_ACEOF
8027 #define HAVE_DLFCN_H 1
8047 # Check whether --enable-shared was given.
8048 if test "${enable_shared+set}" = set; then :
8049 enableval
=$enable_shared; p
=${PACKAGE-default}
8051 yes) enable_shared
=yes ;;
8052 no
) enable_shared
=no
;;
8055 # Look at the argument we got. We use all the common list separators.
8056 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8057 for pkg
in $enableval; do
8059 if test "X$pkg" = "X$p"; then
8078 # Check whether --enable-static was given.
8079 if test "${enable_static+set}" = set; then :
8080 enableval
=$enable_static; p
=${PACKAGE-default}
8082 yes) enable_static
=yes ;;
8083 no
) enable_static
=no
;;
8086 # Look at the argument we got. We use all the common list separators.
8087 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8088 for pkg
in $enableval; do
8090 if test "X$pkg" = "X$p"; then
8110 # Check whether --with-pic was given.
8111 if test "${with_pic+set}" = set; then :
8112 withval
=$with_pic; pic_mode
="$withval"
8118 test -z "$pic_mode" && pic_mode
=default
8126 # Check whether --enable-fast-install was given.
8127 if test "${enable_fast_install+set}" = set; then :
8128 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8130 yes) enable_fast_install
=yes ;;
8131 no
) enable_fast_install
=no
;;
8133 enable_fast_install
=no
8134 # Look at the argument we got. We use all the common list separators.
8135 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8136 for pkg
in $enableval; do
8138 if test "X$pkg" = "X$p"; then
8139 enable_fast_install
=yes
8146 enable_fast_install
=yes
8159 # This can be used to rebuild libtool when needed
8160 LIBTOOL_DEPS
="$ltmain"
8162 # Always use our own libtool.
8163 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8190 test -z "$LN_S" && LN_S
="ln -s"
8205 if test -n "${ZSH_VERSION+set}" ; then
8206 setopt NO_GLOB_SUBST
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8210 $as_echo_n "checking for objdir... " >&6; }
8211 if ${lt_cv_objdir+:} false
; then :
8212 $as_echo_n "(cached) " >&6
8214 rm -f .libs
2>/dev
/null
8215 mkdir .libs
2>/dev
/null
8216 if test -d .libs
; then
8219 # MS-DOS does not allow filenames that begin with a dot.
8222 rmdir .libs
2>/dev
/null
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8225 $as_echo "$lt_cv_objdir" >&6; }
8226 objdir
=$lt_cv_objdir
8232 cat >>confdefs.h
<<_ACEOF
8233 #define LT_OBJDIR "$lt_cv_objdir/"
8241 # AIX sometimes has problems with the GCC collect2 program. For some
8242 # reason, if we set the COLLECT_NAMES environment variable, the problems
8243 # vanish in a puff of smoke.
8244 if test "X${COLLECT_NAMES+set}" != Xset
; then
8246 export COLLECT_NAMES
8253 can_build_shared
=yes
8255 # All known linkers require a `.a' archive for static linking (except MSVC,
8256 # which needs '.lib').
8259 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8262 old_CFLAGS
="$CFLAGS"
8264 # Set sane defaults for various variables
8265 test -z "$CC" && CC
=cc
8266 test -z "$LTCC" && LTCC
=$CC
8267 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8268 test -z "$LD" && LD
=ld
8269 test -z "$ac_objext" && ac_objext
=o
8271 for cc_temp
in $compiler""; do
8273 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8274 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8279 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8282 # Only perform the check for file, if the check method requires it
8283 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8284 case $deplibs_check_method in
8286 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8288 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8289 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8290 $as_echo_n "(cached) " >&6
8294 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8297 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8298 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8299 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8300 for ac_dir
in $ac_dummy; do
8302 test -z "$ac_dir" && ac_dir
=.
8303 if test -f $ac_dir/${ac_tool_prefix}file; then
8304 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8305 if test -n "$file_magic_test_file"; then
8306 case $deplibs_check_method in
8308 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8309 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8310 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8311 $EGREP "$file_magic_regex" > /dev
/null
; then
8316 *** Warning: the command libtool uses to detect shared libraries,
8317 *** $file_magic_cmd, produces output that libtool cannot recognize.
8318 *** The result is that libtool may fail to recognize shared libraries
8319 *** as such. This will affect the creation of libtool libraries that
8320 *** depend on shared libraries, but programs linked with such libtool
8321 *** libraries will work regardless of this problem. Nevertheless, you
8322 *** may want to report the problem to your system manager and/or to
8323 *** bug-libtool@gnu.org
8333 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8338 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8339 if test -n "$MAGIC_CMD"; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8341 $as_echo "$MAGIC_CMD" >&6; }
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8351 if test -z "$lt_cv_path_MAGIC_CMD"; then
8352 if test -n "$ac_tool_prefix"; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8354 $as_echo_n "checking for file... " >&6; }
8355 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8356 $as_echo_n "(cached) " >&6
8360 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8363 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8364 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8365 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8366 for ac_dir
in $ac_dummy; do
8368 test -z "$ac_dir" && ac_dir
=.
8369 if test -f $ac_dir/file; then
8370 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8371 if test -n "$file_magic_test_file"; then
8372 case $deplibs_check_method in
8374 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8375 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8376 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8377 $EGREP "$file_magic_regex" > /dev
/null
; then
8382 *** Warning: the command libtool uses to detect shared libraries,
8383 *** $file_magic_cmd, produces output that libtool cannot recognize.
8384 *** The result is that libtool may fail to recognize shared libraries
8385 *** as such. This will affect the creation of libtool libraries that
8386 *** depend on shared libraries, but programs linked with such libtool
8387 *** libraries will work regardless of this problem. Nevertheless, you
8388 *** may want to report the problem to your system manager and/or to
8389 *** bug-libtool@gnu.org
8399 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8404 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8405 if test -n "$MAGIC_CMD"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8407 $as_echo "$MAGIC_CMD" >&6; }
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8423 # Use C for the default configuration in the libtool script
8427 ac_cpp
='$CPP $CPPFLAGS'
8428 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8429 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8430 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8433 # Source file extension for C test sources.
8436 # Object file extension for compiled C test sources.
8440 # Code to be used in simple compile tests
8441 lt_simple_compile_test_code
="int some_variable = 0;"
8443 # Code to be used in simple link tests
8444 lt_simple_link_test_code
='int main(){return(0);}'
8452 # If no C compiler was specified, use CC.
8455 # If no C compiler flags were specified, use CFLAGS.
8456 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8458 # Allow CC to be a program name with arguments.
8461 # Save the default compiler, since it gets overwritten when the other
8462 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8463 compiler_DEFAULT
=$CC
8465 # save warnings/boilerplate of simple test code
8466 ac_outfile
=conftest.
$ac_objext
8467 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8468 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8469 _lt_compiler_boilerplate
=`cat conftest.err`
8472 ac_outfile
=conftest.
$ac_objext
8473 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8474 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8475 _lt_linker_boilerplate
=`cat conftest.err`
8480 ## There is no encapsulation within the following macros, do not change
8481 ## the running order or otherwise move them around unless you know exactly
8482 ## what you are doing...
8483 if test -n "$compiler"; then
8485 lt_prog_compiler_no_builtin_flag
=
8487 if test "$GCC" = yes; then
8488 case $cc_basename in
8490 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8492 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8496 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8497 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8498 $as_echo_n "(cached) " >&6
8500 lt_cv_prog_compiler_rtti_exceptions
=no
8501 ac_outfile
=conftest.
$ac_objext
8502 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8503 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8504 # Insert the option either (1) after the last *FLAGS variable, or
8505 # (2) before a word containing "conftest.", or (3) at the end.
8506 # Note that $ac_compile itself does not contain backslashes and begins
8507 # with a dollar sign (not a hyphen), so the echo should work correctly.
8508 # The option is referenced via a variable to avoid confusing sed.
8509 lt_compile
=`echo "$ac_compile" | $SED \
8510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8512 -e 's:$: $lt_compiler_flag:'`
8513 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8514 (eval "$lt_compile" 2>conftest.err
)
8516 cat conftest.err
>&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 if (exit $ac_status) && test -s "$ac_outfile"; then
8519 # The compiler can only warn and ignore the option if not recognized
8520 # So say no if there are warnings other than the usual output.
8521 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8522 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8523 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8524 lt_cv_prog_compiler_rtti_exceptions
=yes
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8531 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8533 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8534 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8546 lt_prog_compiler_wl
=
8547 lt_prog_compiler_pic
=
8548 lt_prog_compiler_static
=
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8551 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8553 if test "$GCC" = yes; then
8554 lt_prog_compiler_wl
='-Wl,'
8555 lt_prog_compiler_static
='-static'
8559 # All AIX code is PIC.
8560 if test "$host_cpu" = ia64
; then
8561 # AIX 5 now supports IA64 processor
8562 lt_prog_compiler_static
='-Bstatic'
8564 lt_prog_compiler_pic
='-fPIC'
8570 # see comment about AmigaOS4 .so support
8571 lt_prog_compiler_pic
='-fPIC'
8574 # FIXME: we need at least 68020 code to build shared libraries, but
8575 # adding the `-m68020' flag to GCC prevents building anything better,
8577 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8582 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8583 # PIC is the default for these OSes.
8586 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8587 # This hack is so that the source file can tell whether it is being
8588 # built for inclusion in a dll (and should export symbols for example).
8589 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8590 # (--disable-auto-import) libraries
8591 lt_prog_compiler_pic
='-DDLL_EXPORT'
8594 darwin
* | rhapsody
*)
8595 # PIC is the default on this platform
8596 # Common symbols not allowed in MH_DYLIB files
8597 lt_prog_compiler_pic
='-fno-common'
8601 # PIC is the default for Haiku.
8602 # The "-static" flag exists, but is broken.
8603 lt_prog_compiler_static
=
8607 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8608 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8609 # sets the default TLS model and affects inlining.
8615 lt_prog_compiler_pic
='-fPIC'
8621 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8622 # Instead, we relocate shared libraries at runtime.
8626 # Just because we use GCC doesn't mean we suddenly get shared libraries
8627 # on systems that don't support them.
8628 lt_prog_compiler_can_build_shared
=no
8633 # QNX uses GNU C++, but need to define -shared option too, otherwise
8635 lt_prog_compiler_pic
='-fPIC -shared'
8639 if test -d /usr
/nec
; then
8640 lt_prog_compiler_pic
=-Kconform_pic
8645 lt_prog_compiler_pic
='-fPIC'
8649 case $cc_basename in
8650 nvcc
*) # Cuda Compiler Driver 2.2
8651 lt_prog_compiler_wl
='-Xlinker '
8652 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8656 # PORTME Check for flag to pass linker flags through the system compiler.
8659 lt_prog_compiler_wl
='-Wl,'
8660 if test "$host_cpu" = ia64
; then
8661 # AIX 5 now supports IA64 processor
8662 lt_prog_compiler_static
='-Bstatic'
8664 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8668 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8669 # This hack is so that the source file can tell whether it is being
8670 # built for inclusion in a dll (and should export symbols for example).
8671 lt_prog_compiler_pic
='-DDLL_EXPORT'
8674 hpux9
* | hpux10
* | hpux11
*)
8675 lt_prog_compiler_wl
='-Wl,'
8676 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8683 lt_prog_compiler_pic
='+Z'
8686 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8687 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8690 irix5
* | irix6
* | nonstopux
*)
8691 lt_prog_compiler_wl
='-Wl,'
8692 # PIC (with -KPIC) is the default.
8693 lt_prog_compiler_static
='-non_shared'
8696 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8697 case $cc_basename in
8698 # old Intel for x86_64 which still supported -KPIC.
8700 lt_prog_compiler_wl
='-Wl,'
8701 lt_prog_compiler_pic
='-KPIC'
8702 lt_prog_compiler_static
='-static'
8704 # icc used to be incompatible with GCC.
8705 # ICC 10 doesn't accept -KPIC any more.
8707 lt_prog_compiler_wl
='-Wl,'
8708 lt_prog_compiler_pic
='-fPIC'
8709 lt_prog_compiler_static
='-static'
8711 # Lahey Fortran 8.1.
8713 lt_prog_compiler_wl
='-Wl,'
8714 lt_prog_compiler_pic
='--shared'
8715 lt_prog_compiler_static
='--static'
8717 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8718 # Portland Group compilers (*not* the Pentium gcc compiler,
8719 # which looks to be a dead project)
8720 lt_prog_compiler_wl
='-Wl,'
8721 lt_prog_compiler_pic
='-fpic'
8722 lt_prog_compiler_static
='-Bstatic'
8725 lt_prog_compiler_wl
='-Wl,'
8726 # All Alpha code is PIC.
8727 lt_prog_compiler_static
='-non_shared'
8729 xl
* | bgxl
* | bgf
* | mpixl
*)
8730 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8731 lt_prog_compiler_wl
='-Wl,'
8732 lt_prog_compiler_pic
='-qpic'
8733 lt_prog_compiler_static
='-qstaticlink'
8736 case `$CC -V 2>&1 | sed 5q` in
8737 *Sun\ F
* |
*Sun
*Fortran
*)
8738 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8739 lt_prog_compiler_pic
='-KPIC'
8740 lt_prog_compiler_static
='-Bstatic'
8741 lt_prog_compiler_wl
=''
8745 lt_prog_compiler_pic
='-KPIC'
8746 lt_prog_compiler_static
='-Bstatic'
8747 lt_prog_compiler_wl
='-Wl,'
8755 lt_prog_compiler_pic
='-KPIC'
8756 lt_prog_compiler_static
='-Bstatic'
8760 # QNX uses GNU C++, but need to define -shared option too, otherwise
8762 lt_prog_compiler_pic
='-fPIC -shared'
8765 osf3
* | osf4
* | osf5
*)
8766 lt_prog_compiler_wl
='-Wl,'
8767 # All OSF/1 code is PIC.
8768 lt_prog_compiler_static
='-non_shared'
8772 lt_prog_compiler_static
='-non_shared'
8776 lt_prog_compiler_pic
='-KPIC'
8777 lt_prog_compiler_static
='-Bstatic'
8778 case $cc_basename in
8780 lt_prog_compiler_wl
='-Qoption ld ';;
8782 lt_prog_compiler_wl
='-Wl,';;
8787 lt_prog_compiler_wl
='-Qoption ld '
8788 lt_prog_compiler_pic
='-PIC'
8789 lt_prog_compiler_static
='-Bstatic'
8792 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8793 lt_prog_compiler_wl
='-Wl,'
8794 lt_prog_compiler_pic
='-KPIC'
8795 lt_prog_compiler_static
='-Bstatic'
8799 if test -d /usr
/nec
;then
8800 lt_prog_compiler_pic
='-Kconform_pic'
8801 lt_prog_compiler_static
='-Bstatic'
8805 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8806 lt_prog_compiler_wl
='-Wl,'
8807 lt_prog_compiler_pic
='-KPIC'
8808 lt_prog_compiler_static
='-Bstatic'
8812 lt_prog_compiler_wl
='-Wl,'
8813 lt_prog_compiler_can_build_shared
=no
8817 lt_prog_compiler_pic
='-pic'
8818 lt_prog_compiler_static
='-Bstatic'
8822 lt_prog_compiler_can_build_shared
=no
8828 # For platforms which do not support PIC, -DPIC is meaningless:
8830 lt_prog_compiler_pic
=
8833 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8837 $as_echo "$lt_prog_compiler_pic" >&6; }
8845 # Check to make sure the PIC flag actually works.
8847 if test -n "$lt_prog_compiler_pic"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8849 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8850 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8851 $as_echo_n "(cached) " >&6
8853 lt_cv_prog_compiler_pic_works
=no
8854 ac_outfile
=conftest.
$ac_objext
8855 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8856 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8857 # Insert the option either (1) after the last *FLAGS variable, or
8858 # (2) before a word containing "conftest.", or (3) at the end.
8859 # Note that $ac_compile itself does not contain backslashes and begins
8860 # with a dollar sign (not a hyphen), so the echo should work correctly.
8861 # The option is referenced via a variable to avoid confusing sed.
8862 lt_compile
=`echo "$ac_compile" | $SED \
8863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8865 -e 's:$: $lt_compiler_flag:'`
8866 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8867 (eval "$lt_compile" 2>conftest.err
)
8869 cat conftest.err
>&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 if (exit $ac_status) && test -s "$ac_outfile"; then
8872 # The compiler can only warn and ignore the option if not recognized
8873 # So say no if there are warnings other than the usual output.
8874 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8875 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8876 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8877 lt_cv_prog_compiler_pic_works
=yes
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8884 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8886 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8887 case $lt_prog_compiler_pic in
8889 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8892 lt_prog_compiler_pic
=
8893 lt_prog_compiler_can_build_shared
=no
8904 # Check to make sure the static flag actually works.
8906 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8908 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8909 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8910 $as_echo_n "(cached) " >&6
8912 lt_cv_prog_compiler_static_works
=no
8913 save_LDFLAGS
="$LDFLAGS"
8914 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8915 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8916 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8917 # The linker can only warn and ignore the option if not recognized
8918 # So say no if there are warnings
8919 if test -s conftest.err
; then
8920 # Append any errors to the config.log.
8921 cat conftest.err
1>&5
8922 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8923 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8924 if diff conftest.exp conftest.er2
>/dev
/null
; then
8925 lt_cv_prog_compiler_static_works
=yes
8928 lt_cv_prog_compiler_static_works
=yes
8932 LDFLAGS
="$save_LDFLAGS"
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8936 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8938 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8941 lt_prog_compiler_static
=
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8951 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8952 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8953 $as_echo_n "(cached) " >&6
8955 lt_cv_prog_compiler_c_o
=no
8956 $RM -r conftest
2>/dev
/null
8960 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8962 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8963 # Insert the option either (1) after the last *FLAGS variable, or
8964 # (2) before a word containing "conftest.", or (3) at the end.
8965 # Note that $ac_compile itself does not contain backslashes and begins
8966 # with a dollar sign (not a hyphen), so the echo should work correctly.
8967 lt_compile
=`echo "$ac_compile" | $SED \
8968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8970 -e 's:$: $lt_compiler_flag:'`
8971 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8972 (eval "$lt_compile" 2>out
/conftest.err
)
8974 cat out
/conftest.err
>&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8978 # The compiler can only warn and ignore the option if not recognized
8979 # So say no if there are warnings
8980 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8981 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8982 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8983 lt_cv_prog_compiler_c_o
=yes
8988 # SGI C++ compiler will create directory out/ii_files/ for
8989 # template instantiation
8990 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8991 $RM out
/* && rmdir out
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8998 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9006 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9007 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9008 $as_echo_n "(cached) " >&6
9010 lt_cv_prog_compiler_c_o
=no
9011 $RM -r conftest
2>/dev
/null
9015 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9017 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9018 # Insert the option either (1) after the last *FLAGS variable, or
9019 # (2) before a word containing "conftest.", or (3) at the end.
9020 # Note that $ac_compile itself does not contain backslashes and begins
9021 # with a dollar sign (not a hyphen), so the echo should work correctly.
9022 lt_compile
=`echo "$ac_compile" | $SED \
9023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9025 -e 's:$: $lt_compiler_flag:'`
9026 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9027 (eval "$lt_compile" 2>out
/conftest.err
)
9029 cat out
/conftest.err
>&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9033 # The compiler can only warn and ignore the option if not recognized
9034 # So say no if there are warnings
9035 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9036 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9037 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9038 lt_cv_prog_compiler_c_o
=yes
9043 # SGI C++ compiler will create directory out/ii_files/ for
9044 # template instantiation
9045 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9046 $RM out
/* && rmdir out
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9053 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9058 hard_links
="nottested"
9059 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
9060 # do not overwrite the value of need_locks provided by the user
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9062 $as_echo_n "checking if we can lock with hard links... " >&6; }
9065 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9067 ln conftest.a conftest.b
2>&5 || hard_links
=no
9068 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9070 $as_echo "$hard_links" >&6; }
9071 if test "$hard_links" = no
; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9073 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9086 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9089 allow_undefined_flag
=
9090 always_export_symbols
=no
9092 archive_expsym_cmds
=
9093 compiler_needs_object
=no
9094 enable_shared_with_static_runtimes
=no
9095 export_dynamic_flag_spec
=
9096 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9097 hardcode_automatic
=no
9099 hardcode_direct_absolute
=no
9100 hardcode_libdir_flag_spec
=
9101 hardcode_libdir_flag_spec_ld
=
9102 hardcode_libdir_separator
=
9104 hardcode_shlibpath_var
=unsupported
9106 link_all_deplibs
=unknown
9109 old_archive_from_new_cmds
=
9110 old_archive_from_expsyms_cmds
=
9111 thread_safe_flag_spec
=
9112 whole_archive_flag_spec
=
9113 # include_expsyms should be a list of space-separated symbols to be *always*
9114 # included in the symbol list
9116 # exclude_expsyms can be an extended regexp of symbols to exclude
9117 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9118 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9119 # as well as any symbol that contains `d'.
9120 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9121 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9122 # platforms (ab)use it in PIC code, but their linkers get confused if
9123 # the symbol is explicitly referenced. Since portable code cannot
9124 # rely on this symbol name, it's probably fine to never include it in
9125 # preloaded symbol tables.
9126 # Exclude shared library initialization/finalization symbols.
9127 extract_expsyms_cmds
=
9130 cygwin
* | mingw
* | pw32
* | cegcc
*)
9131 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9132 # When not using gcc, we currently assume that we are using
9133 # Microsoft Visual C++.
9134 if test "$GCC" != yes; then
9139 # we just hope/assume this is gcc and not c89 (= MSVC++)
9149 # On some targets, GNU ld is compatible enough with the native linker
9150 # that we're better off using the native interface for both.
9151 lt_use_gnu_ld_interface
=no
9152 if test "$with_gnu_ld" = yes; then
9155 # The AIX port of GNU ld has always aspired to compatibility
9156 # with the native linker. However, as the warning in the GNU ld
9157 # block says, versions before 2.19.5* couldn't really create working
9158 # shared libraries, regardless of the interface used.
9159 case `$LD -v 2>&1` in
9160 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9161 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9162 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9164 lt_use_gnu_ld_interface
=yes
9169 lt_use_gnu_ld_interface
=yes
9174 if test "$lt_use_gnu_ld_interface" = yes; then
9175 # If archive_cmds runs LD, not CC, wlarc should be empty
9178 # Set some defaults for GNU ld with shared library support. These
9179 # are reset later if shared libraries are not supported. Putting them
9180 # here allows them to be overridden if necessary.
9181 runpath_var
=LD_RUN_PATH
9182 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9183 export_dynamic_flag_spec
='${wl}--export-dynamic'
9184 # ancient GNU ld didn't support --whole-archive et. al.
9185 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9186 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9188 whole_archive_flag_spec
=
9190 supports_anon_versioning
=no
9191 case `$LD -v 2>&1` in
9192 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9193 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9194 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9195 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9196 *\
2.11.
*) ;; # other 2.11 versions
9197 *) supports_anon_versioning
=yes ;;
9200 # See if GNU ld supports shared libraries.
9203 # On AIX/PPC, the GNU linker is very broken
9204 if test "$host_cpu" != ia64
; then
9208 *** Warning: the GNU linker, at least up to release 2.19, is reported
9209 *** to be unable to reliably create shared libraries on AIX.
9210 *** Therefore, libtool is disabling shared libraries support. If you
9211 *** really care for shared libraries, you may want to install binutils
9212 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9213 *** You will then need to restart the configuration process.
9222 # see comment about AmigaOS4 .so support
9223 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9224 archive_expsym_cmds
=''
9227 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)'
9228 hardcode_libdir_flag_spec
='-L$libdir'
9229 hardcode_minus_L
=yes
9235 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9236 allow_undefined_flag
=unsupported
9237 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9238 # support --undefined. This deserves some investigation. FIXME
9239 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9245 cygwin
* | mingw
* | pw32
* | cegcc
*)
9246 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9247 # as there is no search path for DLLs.
9248 hardcode_libdir_flag_spec
='-L$libdir'
9249 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9250 allow_undefined_flag
=unsupported
9251 always_export_symbols
=no
9252 enable_shared_with_static_runtimes
=yes
9253 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9255 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9256 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9257 # If the export-symbols file already is a .def file (1st line
9258 # is EXPORTS), use it as is; otherwise, prepend...
9259 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9260 cp $export_symbols $output_objdir/$soname.def;
9262 echo EXPORTS > $output_objdir/$soname.def;
9263 cat $export_symbols >> $output_objdir/$soname.def;
9265 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9272 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9273 link_all_deplibs
=yes
9278 hardcode_shlibpath_var
=no
9279 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9280 export_dynamic_flag_spec
='${wl}-E'
9281 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9282 # Instead, shared libraries are loaded at an image base (0x10000000 by
9283 # default) and relocated if they conflict, which is a slow very memory
9284 # consuming and fragmenting process. To avoid this, we pick a random,
9285 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9286 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9287 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9288 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'
9291 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9293 if test "$host_os" = linux-dietlibc
; then
9294 case $cc_basename in
9295 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9298 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9299 && test "$tmp_diet" = no
9301 tmp_addflag
=' $pic_flag'
9302 tmp_sharedflag
='-shared'
9303 case $cc_basename,$host_cpu in
9304 pgcc
*) # Portland Group C compiler
9305 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'
9306 tmp_addflag
=' $pic_flag'
9308 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9309 # Portland Group f77 and f90 compilers
9310 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'
9311 tmp_addflag
=' $pic_flag -Mnomain' ;;
9312 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9313 tmp_addflag
=' -i_dynamic' ;;
9314 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9315 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9316 ifc
* | ifort
*) # Intel Fortran compiler
9317 tmp_addflag
=' -nofor_main' ;;
9318 lf95
*) # Lahey Fortran 8.1
9319 whole_archive_flag_spec
=
9320 tmp_sharedflag
='--shared' ;;
9321 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9322 tmp_sharedflag
='-qmkshrobj'
9324 nvcc
*) # Cuda Compiler Driver 2.2
9325 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'
9326 compiler_needs_object
=yes
9329 case `$CC -V 2>&1 | sed 5q` in
9330 *Sun\ C
*) # Sun C 5.9
9331 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'
9332 compiler_needs_object
=yes
9333 tmp_sharedflag
='-G' ;;
9334 *Sun\ F
*) # Sun Fortran 8.3
9335 tmp_sharedflag
='-G' ;;
9337 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9339 if test "x$supports_anon_versioning" = xyes
; then
9340 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9341 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9342 echo "local: *; };" >> $output_objdir/$libname.ver~
9343 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9346 case $cc_basename in
9347 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9348 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9349 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9350 hardcode_libdir_flag_spec
=
9351 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9352 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9353 if test "x$supports_anon_versioning" = xyes
; then
9354 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9355 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9356 echo "local: *; };" >> $output_objdir/$libname.ver~
9357 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9367 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9368 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9371 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9372 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9377 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9381 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9382 *** create shared libraries on Solaris systems. Therefore, libtool
9383 *** is disabling shared libraries support. We urge you to upgrade GNU
9384 *** binutils to release 2.9.1 or newer. Another option is to modify
9385 *** your PATH or compiler configuration so that the native linker is
9386 *** used, and then restart.
9389 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9390 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9397 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9398 case `$LD -v 2>&1` in
9399 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9403 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9404 *** reliably create shared libraries on SCO systems. Therefore, libtool
9405 *** is disabling shared libraries support. We urge you to upgrade GNU
9406 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9407 *** your PATH or compiler configuration so that the native linker is
9408 *** used, and then restart.
9413 # For security reasons, it is highly recommended that you always
9414 # use absolute paths for naming shared libraries, and exclude the
9415 # DT_RUNPATH tag from executables and libraries. But doing so
9416 # requires that you compile everything twice, which is a pain.
9417 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9418 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9419 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9420 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9429 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9432 hardcode_shlibpath_var
=no
9436 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9437 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9438 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9445 if test "$ld_shlibs" = no
; then
9447 hardcode_libdir_flag_spec
=
9448 export_dynamic_flag_spec
=
9449 whole_archive_flag_spec
=
9452 # PORTME fill in a description of your system's linker (not GNU ld)
9455 allow_undefined_flag
=unsupported
9456 always_export_symbols
=yes
9457 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'
9458 # Note: this linker hardcodes the directories in LIBPATH if there
9459 # are no directories specified by -L.
9460 hardcode_minus_L
=yes
9461 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9462 # Neither direct hardcoding nor static linking is supported with a
9464 hardcode_direct
=unsupported
9469 if test "$host_cpu" = ia64
; then
9470 # On IA64, the linker does run time linking by default, so we don't
9471 # have to do anything special.
9472 aix_use_runtimelinking
=no
9473 exp_sym_flag
='-Bexport'
9476 # If we're using GNU nm, then we don't want the "-C" option.
9477 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9478 # Also, AIX nm treats weak defined symbols like other global
9479 # defined symbols, whereas GNU nm marks them as "W".
9480 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9481 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'
9483 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'
9485 aix_use_runtimelinking
=no
9487 # Test if we are trying to use run time linking or normal
9488 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9489 # need to do runtime linking.
9490 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9491 for ld_flag
in $LDFLAGS; do
9492 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9493 aix_use_runtimelinking
=yes
9500 exp_sym_flag
='-bexport'
9501 no_entry_flag
='-bnoentry'
9504 # When large executables or shared objects are built, AIX ld can
9505 # have problems creating the table of contents. If linking a library
9506 # or program results in "error TOC overflow" add -mminimal-toc to
9507 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9508 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9512 hardcode_direct_absolute
=yes
9513 hardcode_libdir_separator
=':'
9514 link_all_deplibs
=yes
9515 file_list_spec
='${wl}-f,'
9517 if test "$GCC" = yes; then
9518 case $host_os in aix4.
[012]|aix4.
[012].
*)
9519 # We only want to do this on AIX 4.2 and lower, the check
9520 # below for broken collect2 doesn't work under 4.3+
9521 collect2name
=`${CC} -print-prog-name=collect2`
9522 if test -f "$collect2name" &&
9523 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9525 # We have reworked collect2
9528 # We have old collect2
9529 hardcode_direct
=unsupported
9530 # It fails to find uninstalled libraries when the uninstalled
9531 # path is not listed in the libpath. Setting hardcode_minus_L
9532 # to unsupported forces relinking
9533 hardcode_minus_L
=yes
9534 hardcode_libdir_flag_spec
='-L$libdir'
9535 hardcode_libdir_separator
=
9539 shared_flag
='-shared'
9540 if test "$aix_use_runtimelinking" = yes; then
9541 shared_flag
="$shared_flag "'${wl}-G'
9545 if test "$host_cpu" = ia64
; then
9546 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9547 # chokes on -Wl,-G. The following line is correct:
9550 if test "$aix_use_runtimelinking" = yes; then
9551 shared_flag
='${wl}-G'
9553 shared_flag
='${wl}-bM:SRE'
9558 export_dynamic_flag_spec
='${wl}-bexpall'
9559 # It seems that -bexpall does not export symbols beginning with
9560 # underscore (_), so it is better to generate a list of symbols to export.
9561 always_export_symbols
=yes
9562 if test "$aix_use_runtimelinking" = yes; then
9563 # Warning - without using the other runtime loading flags (-brtl),
9564 # -berok will link without error, but may produce a broken library.
9565 allow_undefined_flag
='-berok'
9566 # Determine the default libpath from the value encoded in an
9568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9579 if ac_fn_c_try_link
"$LINENO"; then :
9581 lt_aix_libpath_sed
='
9582 /Import File Strings/,/^$/ {
9588 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9589 # Check for a 64-bit object if we didn't find anything.
9590 if test -z "$aix_libpath"; then
9591 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9594 rm -f core conftest.err conftest.
$ac_objext \
9595 conftest
$ac_exeext conftest.
$ac_ext
9596 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9598 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9599 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"
9601 if test "$host_cpu" = ia64
; then
9602 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9603 allow_undefined_flag
="-z nodefs"
9604 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"
9606 # Determine the default libpath from the value encoded in an
9608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9609 /* end confdefs.h. */
9619 if ac_fn_c_try_link
"$LINENO"; then :
9621 lt_aix_libpath_sed
='
9622 /Import File Strings/,/^$/ {
9628 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9629 # Check for a 64-bit object if we didn't find anything.
9630 if test -z "$aix_libpath"; then
9631 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9634 rm -f core conftest.err conftest.
$ac_objext \
9635 conftest
$ac_exeext conftest.
$ac_ext
9636 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9638 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9639 # Warning - without using the other run time loading flags,
9640 # -berok will link without error, but may produce a broken library.
9641 no_undefined_flag
=' ${wl}-bernotok'
9642 allow_undefined_flag
=' ${wl}-berok'
9643 if test "$with_gnu_ld" = yes; then
9644 # We only use this code for GNU lds that support --whole-archive.
9645 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9647 # Exported symbols can be pulled into shared objects from archives
9648 whole_archive_flag_spec
='$convenience'
9650 archive_cmds_need_lc
=yes
9651 # This is similar to how AIX traditionally builds its shared libraries.
9652 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'
9660 # see comment about AmigaOS4 .so support
9661 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9662 archive_expsym_cmds
=''
9665 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)'
9666 hardcode_libdir_flag_spec
='-L$libdir'
9667 hardcode_minus_L
=yes
9673 export_dynamic_flag_spec
=-rdynamic
9676 cygwin
* | mingw
* | pw32
* | cegcc
*)
9677 # When not using gcc, we currently assume that we are using
9678 # Microsoft Visual C++.
9679 # hardcode_libdir_flag_spec is actually meaningless, as there is
9680 # no search path for DLLs.
9681 hardcode_libdir_flag_spec
=' '
9682 allow_undefined_flag
=unsupported
9683 # Tell ltmain to make .lib files, not .a files.
9685 # Tell ltmain to make .dll files, not .so files.
9687 # FIXME: Setting linknames here is a bad hack.
9688 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9689 # The linker will automatically build a .lib file if we build a DLL.
9690 old_archive_from_new_cmds
='true'
9691 # FIXME: Should let the user specify the lib program.
9692 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9693 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9694 enable_shared_with_static_runtimes
=yes
9697 darwin
* | rhapsody
*)
9700 archive_cmds_need_lc
=no
9702 hardcode_automatic
=yes
9703 hardcode_shlibpath_var
=unsupported
9704 if test "$lt_cv_ld_force_load" = "yes"; then
9705 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\"`'
9707 whole_archive_flag_spec
=''
9709 link_all_deplibs
=yes
9710 allow_undefined_flag
="$_lt_dar_allow_undefined"
9711 case $cc_basename in
9712 ifort
*) _lt_dar_can_shared
=yes ;;
9713 *) _lt_dar_can_shared
=$GCC ;;
9715 if test "$_lt_dar_can_shared" = "yes"; then
9716 output_verbose_link_cmd
=func_echo_all
9717 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9718 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9719 archive_expsym_cmds
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9720 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}"
9729 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730 hardcode_libdir_flag_spec
='-L$libdir'
9731 hardcode_shlibpath_var
=no
9734 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9735 # support. Future versions do this automatically, but an explicit c++rt0.o
9736 # does not break anything, and helps significantly (at the cost of a little
9739 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9740 hardcode_libdir_flag_spec
='-R$libdir'
9742 hardcode_shlibpath_var
=no
9745 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9747 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9749 hardcode_minus_L
=yes
9750 hardcode_shlibpath_var
=no
9753 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9754 freebsd
* | dragonfly
*)
9755 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9756 hardcode_libdir_flag_spec
='-R$libdir'
9758 hardcode_shlibpath_var
=no
9762 if test "$GCC" = yes; then
9763 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'
9765 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'
9767 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9768 hardcode_libdir_separator
=:
9771 # hardcode_minus_L: Not really in the search PATH,
9772 # but as the default location of the library.
9773 hardcode_minus_L
=yes
9774 export_dynamic_flag_spec
='${wl}-E'
9778 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9779 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9781 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9783 if test "$with_gnu_ld" = no
; then
9784 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9785 hardcode_libdir_flag_spec_ld
='+b $libdir'
9786 hardcode_libdir_separator
=:
9788 hardcode_direct_absolute
=yes
9789 export_dynamic_flag_spec
='${wl}-E'
9790 # hardcode_minus_L: Not really in the search PATH,
9791 # but as the default location of the library.
9792 hardcode_minus_L
=yes
9797 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9800 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9803 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9806 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9812 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9815 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9819 # Older versions of the 11.00 compiler do not understand -b yet
9820 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9822 $as_echo_n "checking if $CC understands -b... " >&6; }
9823 if ${lt_cv_prog_compiler__b+:} false
; then :
9824 $as_echo_n "(cached) " >&6
9826 lt_cv_prog_compiler__b
=no
9827 save_LDFLAGS
="$LDFLAGS"
9828 LDFLAGS
="$LDFLAGS -b"
9829 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9830 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9831 # The linker can only warn and ignore the option if not recognized
9832 # So say no if there are warnings
9833 if test -s conftest.err
; then
9834 # Append any errors to the config.log.
9835 cat conftest.err
1>&5
9836 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9837 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9838 if diff conftest.exp conftest.er2
>/dev
/null
; then
9839 lt_cv_prog_compiler__b
=yes
9842 lt_cv_prog_compiler__b
=yes
9846 LDFLAGS
="$save_LDFLAGS"
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9850 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9852 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9853 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9855 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9861 if test "$with_gnu_ld" = no
; then
9862 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9863 hardcode_libdir_separator
=:
9868 hardcode_shlibpath_var
=no
9872 hardcode_direct_absolute
=yes
9873 export_dynamic_flag_spec
='${wl}-E'
9875 # hardcode_minus_L: Not really in the search PATH,
9876 # but as the default location of the library.
9877 hardcode_minus_L
=yes
9883 irix5
* | irix6
* | nonstopux
*)
9884 if test "$GCC" = yes; then
9885 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'
9886 # Try to use the -exported_symbol ld option, if it does not
9887 # work, assume that -exports_file does not work either and
9888 # implicitly export all symbols.
9889 save_LDFLAGS
="$LDFLAGS"
9890 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9892 /* end confdefs.h. */
9895 if ac_fn_c_try_link
"$LINENO"; then :
9896 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'
9899 rm -f core conftest.err conftest.
$ac_objext \
9900 conftest
$ac_exeext conftest.
$ac_ext
9901 LDFLAGS
="$save_LDFLAGS"
9903 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'
9904 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'
9906 archive_cmds_need_lc
='no'
9907 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9908 hardcode_libdir_separator
=:
9910 link_all_deplibs
=yes
9914 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9915 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9917 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9919 hardcode_libdir_flag_spec
='-R$libdir'
9921 hardcode_shlibpath_var
=no
9925 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9927 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9928 hardcode_libdir_separator
=:
9929 hardcode_shlibpath_var
=no
9936 if test -f /usr
/libexec
/ld.so
; then
9938 hardcode_shlibpath_var
=no
9939 hardcode_direct_absolute
=yes
9940 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9941 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9942 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9943 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9944 export_dynamic_flag_spec
='${wl}-E'
9947 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9948 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9949 hardcode_libdir_flag_spec
='-R$libdir'
9952 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9953 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9963 hardcode_libdir_flag_spec
='-L$libdir'
9964 hardcode_minus_L
=yes
9965 allow_undefined_flag
=unsupported
9966 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'
9967 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9971 if test "$GCC" = yes; then
9972 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9973 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'
9975 allow_undefined_flag
=' -expect_unresolved \*'
9976 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'
9978 archive_cmds_need_lc
='no'
9979 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9980 hardcode_libdir_separator
=:
9983 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9984 if test "$GCC" = yes; then
9985 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9986 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'
9987 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9989 allow_undefined_flag
=' -expect_unresolved \*'
9990 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'
9991 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~
9992 $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'
9994 # Both c and cxx compiler support -rpath directly
9995 hardcode_libdir_flag_spec
='-rpath $libdir'
9997 archive_cmds_need_lc
='no'
9998 hardcode_libdir_separator
=:
10002 no_undefined_flag
=' -z defs'
10003 if test "$GCC" = yes; then
10005 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10006 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10007 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10009 case `$CC -V 2>&1` in
10012 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10013 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10014 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10018 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10019 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10020 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10024 hardcode_libdir_flag_spec
='-R$libdir'
10025 hardcode_shlibpath_var
=no
10027 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10029 # The compiler driver will combine and reorder linker options,
10030 # but understands `-z linker_flag'. GCC discards it without `$wl',
10031 # but is careful enough not to reorder.
10032 # Supported since Solaris 2.6 (maybe 2.5.1?)
10033 if test "$GCC" = yes; then
10034 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10036 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10040 link_all_deplibs
=yes
10044 if test "x$host_vendor" = xsequent
; then
10045 # Use $CC to link under sequent, because it throws in some extra .o
10046 # files that make .init and .fini sections work.
10047 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10049 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10051 hardcode_libdir_flag_spec
='-L$libdir'
10052 hardcode_direct
=yes
10053 hardcode_minus_L
=yes
10054 hardcode_shlibpath_var
=no
10058 case $host_vendor in
10060 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10061 hardcode_direct
=yes # is this really true???
10064 ## LD is ld it makes a PLAMLIB
10065 ## CC just makes a GrossModule.
10066 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10067 reload_cmds
='$CC -r -o $output$reload_objs'
10071 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10072 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10075 runpath_var
='LD_RUN_PATH'
10076 hardcode_shlibpath_var
=no
10080 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10081 hardcode_shlibpath_var
=no
10082 export_dynamic_flag_spec
='-Bexport'
10086 if test -d /usr
/nec
; then
10087 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10088 hardcode_shlibpath_var
=no
10089 runpath_var
=LD_RUN_PATH
10090 hardcode_runpath_var
=yes
10095 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10096 no_undefined_flag
='${wl}-z,text'
10097 archive_cmds_need_lc
=no
10098 hardcode_shlibpath_var
=no
10099 runpath_var
='LD_RUN_PATH'
10101 if test "$GCC" = yes; then
10102 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10103 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10105 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10106 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10110 sysv5
* | sco3.2v5
* | sco5v6
*)
10111 # Note: We can NOT use -z defs as we might desire, because we do not
10112 # link with -lc, and that would cause any symbols used from libc to
10113 # always be unresolved, which means just about no library would
10114 # ever link correctly. If we're not using GNU ld we use -z text
10115 # though, which does catch some bad symbols but isn't as heavy-handed
10117 no_undefined_flag
='${wl}-z,text'
10118 allow_undefined_flag
='${wl}-z,nodefs'
10119 archive_cmds_need_lc
=no
10120 hardcode_shlibpath_var
=no
10121 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10122 hardcode_libdir_separator
=':'
10123 link_all_deplibs
=yes
10124 export_dynamic_flag_spec
='${wl}-Bexport'
10125 runpath_var
='LD_RUN_PATH'
10127 if test "$GCC" = yes; then
10128 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10129 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10131 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10132 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10137 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138 hardcode_libdir_flag_spec
='-L$libdir'
10139 hardcode_shlibpath_var
=no
10147 if test x
$host_vendor = xsni
; then
10149 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10150 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10157 $as_echo "$ld_shlibs" >&6; }
10158 test "$ld_shlibs" = no
&& can_build_shared
=no
10160 with_gnu_ld
=$with_gnu_ld
10177 # Do we need to explicitly link libc?
10179 case "x$archive_cmds_need_lc" in
10181 # Assume -lc should be added
10182 archive_cmds_need_lc
=yes
10184 if test "$enable_shared" = yes && test "$GCC" = yes; then
10185 case $archive_cmds in
10187 # FIXME: we may have to deal with multi-command sequences.
10190 # Test whether the compiler implicitly links with -lc since on some
10191 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10192 # to ld, don't add -lc before -lgcc.
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10194 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10195 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10196 $as_echo_n "(cached) " >&6
10199 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10202 (eval $ac_compile) 2>&5
10204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10205 test $ac_status = 0; } 2>conftest.err
; then
10208 libobjs
=conftest.
$ac_objext
10210 wl
=$lt_prog_compiler_wl
10211 pic_flag
=$lt_prog_compiler_pic
10217 lt_save_allow_undefined_flag
=$allow_undefined_flag
10218 allow_undefined_flag
=
10219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10220 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10223 test $ac_status = 0; }
10225 lt_cv_archive_cmds_need_lc
=no
10227 lt_cv_archive_cmds_need_lc
=yes
10229 allow_undefined_flag
=$lt_save_allow_undefined_flag
10231 cat conftest.err
1>&5
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10237 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10238 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10402 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10404 if test "$GCC" = yes; then
10406 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10407 *) lt_awk_arg
="/^libraries:/" ;;
10410 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10411 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10413 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10414 case $lt_search_path_spec in
10416 # if the path contains ";" then we assume it to be the separator
10417 # otherwise default to the standard path separator (i.e. ":") - it is
10418 # assumed that no part of a normal pathname contains ";" but that should
10419 # okay in the real world where ";" in dirpaths is itself problematic.
10420 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10423 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10426 # Ok, now we have the path, separated by spaces, we can step through it
10427 # and add multilib dir if necessary.
10428 lt_tmp_lt_search_path_spec
=
10429 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10430 for lt_sys_path
in $lt_search_path_spec; do
10431 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10432 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10434 test -d "$lt_sys_path" && \
10435 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10438 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10439 BEGIN {RS=" "; FS="/|\n";} {
10442 for (lt_i = NF; lt_i > 0; lt_i--) {
10443 if ($lt_i != "" && $lt_i != ".") {
10444 if ($lt_i == "..") {
10447 if (lt_count == 0) {
10448 lt_foo="/" $lt_i lt_foo;
10455 if (lt_foo != "") { lt_freq[lt_foo]++; }
10456 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10458 # AWK program above erroneously prepends '/' to C:/dos/paths
10461 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10462 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10464 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10466 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10468 library_names_spec
=
10469 libname_spec
='lib$name'
10473 postuninstall_cmds
=
10477 shlibpath_overrides_runpath
=unknown
10479 dynamic_linker
="$host_os ld.so"
10480 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10481 need_lib_prefix
=unknown
10482 hardcode_into_libs
=no
10484 # when you set need_version to no, make sure it does not cause -set_version
10485 # flags to be left without arguments
10486 need_version
=unknown
10491 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10492 shlibpath_var
=LIBPATH
10494 # AIX 3 has no versioning support, so we append a major version to the name.
10495 soname_spec
='${libname}${release}${shared_ext}$major'
10502 hardcode_into_libs
=yes
10503 if test "$host_cpu" = ia64
; then
10504 # AIX 5 supports IA64
10505 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10506 shlibpath_var
=LD_LIBRARY_PATH
10508 # With GCC up to 2.95.x, collect2 would create an import file
10509 # for dependence libraries. The import file would start with
10510 # the line `#! .'. This would cause the generated library to
10511 # depend on `.', always an invalid library. This was fixed in
10512 # development snapshots of GCC prior to 3.0.
10514 aix4 | aix4.
[01] | aix4.
[01].
*)
10515 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10517 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10520 can_build_shared
=no
10524 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10525 # soname into executable. Probably we can add versioning support to
10526 # collect2, so additional links can be useful in future.
10527 if test "$aix_use_runtimelinking" = yes; then
10528 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10529 # instead of lib<name>.a to let people know that these are not
10530 # typical AIX shared libraries.
10531 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10533 # We preserve .a as extension for shared libraries through AIX4.2
10534 # and later when we are not doing run time linking.
10535 library_names_spec
='${libname}${release}.a $libname.a'
10536 soname_spec
='${libname}${release}${shared_ext}$major'
10538 shlibpath_var
=LIBPATH
10545 # Since July 2007 AmigaOS4 officially supports .so libraries.
10546 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10547 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550 library_names_spec
='$libname.ixlibrary $libname.a'
10551 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10552 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'
10558 library_names_spec
='${libname}${shared_ext}'
10559 dynamic_linker
="$host_os ld.so"
10560 shlibpath_var
=LIBRARY_PATH
10566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567 soname_spec
='${libname}${release}${shared_ext}$major'
10568 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10569 shlibpath_var
=LD_LIBRARY_PATH
10570 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10571 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10572 # the default ld.so.conf also contains /usr/contrib/lib and
10573 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10574 # libtool to hard-code these into programs
10577 cygwin
* | mingw
* | pw32
* | cegcc
*)
10578 version_type
=windows
10583 case $GCC,$host_os in
10584 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10585 library_names_spec
='$libname.dll.a'
10586 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10587 postinstall_cmds
='base_file=`basename \${file}`~
10588 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10589 dldir=$destdir/`dirname \$dlpath`~
10590 test -d \$dldir || mkdir -p \$dldir~
10591 $install_prog $dir/$dlname \$dldir/$dlname~
10592 chmod a+x \$dldir/$dlname~
10593 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10594 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10596 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10597 dlpath=$dir/\$dldll~
10599 shlibpath_overrides_runpath
=yes
10603 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10604 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10606 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10609 # MinGW DLLs use traditional 'lib' prefix
10610 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10613 # pw32 DLLs use 'pw' prefix rather than 'lib'
10614 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10620 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10623 dynamic_linker
='Win32 ld.exe'
10624 # FIXME: first we should search . and the directory the executable is in
10628 darwin
* | rhapsody
*)
10629 dynamic_linker
="$host_os dyld"
10630 version_type
=darwin
10633 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10634 soname_spec
='${libname}${release}${major}$shared_ext'
10635 shlibpath_overrides_runpath
=yes
10636 shlibpath_var
=DYLD_LIBRARY_PATH
10637 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10639 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10640 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10647 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10648 soname_spec
='${libname}${release}${shared_ext}$major'
10649 shlibpath_var
=LD_LIBRARY_PATH
10652 freebsd
* | dragonfly
*)
10653 # DragonFly does not have aout. When/if they implement a new
10654 # versioning mechanism, adjust this.
10655 if test -x /usr
/bin
/objformat
; then
10656 objformat
=`/usr/bin/objformat`
10659 freebsd
[23].
*) objformat
=aout
;;
10660 *) objformat
=elf
;;
10663 version_type
=freebsd-
$objformat
10664 case $version_type in
10666 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10671 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10675 shlibpath_var
=LD_LIBRARY_PATH
10678 shlibpath_overrides_runpath
=yes
10680 freebsd3.
[01]* | freebsdelf3.
[01]*)
10681 shlibpath_overrides_runpath
=yes
10682 hardcode_into_libs
=yes
10684 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10685 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10686 shlibpath_overrides_runpath
=no
10687 hardcode_into_libs
=yes
10689 *) # from 4.6 on, and DragonFly
10690 shlibpath_overrides_runpath
=yes
10691 hardcode_into_libs
=yes
10700 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10701 soname_spec
='${libname}${release}${shared_ext}$major'
10702 shlibpath_var
=LD_LIBRARY_PATH
10703 hardcode_into_libs
=yes
10710 dynamic_linker
="$host_os runtime_loader"
10711 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10712 soname_spec
='${libname}${release}${shared_ext}$major'
10713 shlibpath_var
=LIBRARY_PATH
10714 shlibpath_overrides_runpath
=yes
10715 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10716 hardcode_into_libs
=yes
10719 hpux9
* | hpux10
* | hpux11
*)
10720 # Give a soname corresponding to the major version so that dld.sl refuses to
10721 # link against other versions.
10728 hardcode_into_libs
=yes
10729 dynamic_linker
="$host_os dld.so"
10730 shlibpath_var
=LD_LIBRARY_PATH
10731 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10732 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10733 soname_spec
='${libname}${release}${shared_ext}$major'
10734 if test "X$HPUX_IA64_MODE" = X32
; then
10735 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10737 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10739 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10743 hardcode_into_libs
=yes
10744 dynamic_linker
="$host_os dld.sl"
10745 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10746 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10747 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10748 soname_spec
='${libname}${release}${shared_ext}$major'
10749 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10750 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10754 dynamic_linker
="$host_os dld.sl"
10755 shlibpath_var
=SHLIB_PATH
10756 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10757 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758 soname_spec
='${libname}${release}${shared_ext}$major'
10761 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10762 postinstall_cmds
='chmod 555 $lib'
10763 # or fails outright, so override atomically:
10764 install_override_mode
=555
10771 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10772 soname_spec
='${libname}${release}${shared_ext}$major'
10773 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10774 shlibpath_var
=LD_LIBRARY_PATH
10775 shlibpath_overrides_runpath
=no
10776 hardcode_into_libs
=yes
10779 irix5
* | irix6
* | nonstopux
*)
10781 nonstopux
*) version_type
=nonstopux
;;
10783 if test "$lt_cv_prog_gnu_ld" = yes; then
10791 soname_spec
='${libname}${release}${shared_ext}$major'
10792 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10794 irix5
* | nonstopux
*)
10795 libsuff
= shlibsuff
=
10798 case $LD in # libtool.m4 will add one of these switches to LD
10799 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10800 libsuff
= shlibsuff
= libmagic
=32-bit;;
10801 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10802 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10803 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10804 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10805 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10809 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10810 shlibpath_overrides_runpath
=no
10811 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10812 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10813 hardcode_into_libs
=yes
10816 # No shared lib support for Linux oldld, aout, or coff.
10817 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10821 # This must be Linux ELF.
10822 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10826 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10827 soname_spec
='${libname}${release}${shared_ext}$major'
10828 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10829 shlibpath_var
=LD_LIBRARY_PATH
10830 shlibpath_overrides_runpath
=no
10832 # Some binutils ld are patched to set DT_RUNPATH
10833 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10834 $as_echo_n "(cached) " >&6
10836 lt_cv_shlibpath_overrides_runpath
=no
10837 save_LDFLAGS
=$LDFLAGS
10838 save_libdir
=$libdir
10839 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10840 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10842 /* end confdefs.h. */
10852 if ac_fn_c_try_link
"$LINENO"; then :
10853 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10854 lt_cv_shlibpath_overrides_runpath
=yes
10857 rm -f core conftest.err conftest.
$ac_objext \
10858 conftest
$ac_exeext conftest.
$ac_ext
10859 LDFLAGS
=$save_LDFLAGS
10860 libdir
=$save_libdir
10864 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10866 # This implies no fast_install, which is unacceptable.
10867 # Some rework will be needed to allow for fast_install
10868 # before this can be enabled.
10869 hardcode_into_libs
=yes
10871 # Append ld.so.conf contents to the search path
10872 if test -f /etc
/ld.so.conf
; then
10873 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' ' '`
10874 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10877 # We used to test for /lib/ld.so.1 and disable shared libraries on
10878 # powerpc, because MkLinux only supported shared libraries with the
10879 # GNU dynamic linker. Since this was broken with cross compilers,
10880 # most powerpc-linux boxes support dynamic linking these days and
10881 # people can always --disable-shared, the test was removed, and we
10882 # assume the GNU/Linux dynamic linker is in use.
10883 dynamic_linker
='GNU/Linux ld.so'
10890 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10891 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10892 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10893 dynamic_linker
='NetBSD (a.out) ld.so'
10895 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10896 soname_spec
='${libname}${release}${shared_ext}$major'
10897 dynamic_linker
='NetBSD ld.elf_so'
10899 shlibpath_var
=LD_LIBRARY_PATH
10900 shlibpath_overrides_runpath
=yes
10901 hardcode_into_libs
=yes
10906 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907 shlibpath_var
=LD_LIBRARY_PATH
10908 shlibpath_overrides_runpath
=yes
10915 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10916 soname_spec
='${libname}${release}${shared_ext}$major'
10917 shlibpath_var
=LD_LIBRARY_PATH
10918 shlibpath_overrides_runpath
=no
10919 hardcode_into_libs
=yes
10920 dynamic_linker
='ldqnx.so'
10925 sys_lib_dlsearch_path_spec
="/usr/lib"
10927 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10929 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10930 *) need_version
=no
;;
10932 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10933 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10934 shlibpath_var
=LD_LIBRARY_PATH
10935 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10937 openbsd2.
[89] | openbsd2.
[89].
*)
10938 shlibpath_overrides_runpath
=no
10941 shlibpath_overrides_runpath
=yes
10945 shlibpath_overrides_runpath
=yes
10950 libname_spec
='$name'
10953 library_names_spec
='$libname${shared_ext} $libname.a'
10954 dynamic_linker
='OS/2 ld.exe'
10955 shlibpath_var
=LIBPATH
10958 osf3
* | osf4
* | osf5
*)
10962 soname_spec
='${libname}${release}${shared_ext}$major'
10963 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964 shlibpath_var
=LD_LIBRARY_PATH
10965 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10966 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10977 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10978 soname_spec
='${libname}${release}${shared_ext}$major'
10979 shlibpath_var
=LD_LIBRARY_PATH
10980 shlibpath_overrides_runpath
=yes
10981 hardcode_into_libs
=yes
10982 # ldd complains unless libraries are executable
10983 postinstall_cmds
='chmod +x $lib'
10988 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10989 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10990 shlibpath_var
=LD_LIBRARY_PATH
10991 shlibpath_overrides_runpath
=yes
10992 if test "$with_gnu_ld" = yes; then
11000 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11001 soname_spec
='${libname}${release}${shared_ext}$major'
11002 shlibpath_var
=LD_LIBRARY_PATH
11003 case $host_vendor in
11005 shlibpath_overrides_runpath
=no
11007 runpath_var
=LD_RUN_PATH
11015 shlibpath_overrides_runpath
=no
11016 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11022 if test -d /usr
/nec
;then
11024 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11025 soname_spec
='$libname${shared_ext}.$major'
11026 shlibpath_var
=LD_LIBRARY_PATH
11030 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11031 version_type
=freebsd-elf
11034 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11035 soname_spec
='${libname}${release}${shared_ext}$major'
11036 shlibpath_var
=LD_LIBRARY_PATH
11037 shlibpath_overrides_runpath
=yes
11038 hardcode_into_libs
=yes
11039 if test "$with_gnu_ld" = yes; then
11040 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11042 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11045 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11049 sys_lib_dlsearch_path_spec
='/usr/lib'
11053 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11057 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11058 shlibpath_var
=LD_LIBRARY_PATH
11059 shlibpath_overrides_runpath
=no
11060 hardcode_into_libs
=yes
11065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11066 soname_spec
='${libname}${release}${shared_ext}$major'
11067 shlibpath_var
=LD_LIBRARY_PATH
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11075 $as_echo "$dynamic_linker" >&6; }
11076 test "$dynamic_linker" = no
&& can_build_shared
=no
11078 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11079 if test "$GCC" = yes; then
11080 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11083 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11084 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11086 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11087 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11182 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11184 if test -n "$hardcode_libdir_flag_spec" ||
11185 test -n "$runpath_var" ||
11186 test "X$hardcode_automatic" = "Xyes" ; then
11188 # We can hardcode non-existent directories.
11189 if test "$hardcode_direct" != no
&&
11190 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11191 # have to relink, otherwise we might link with an installed library
11192 # when we should be linking with a yet-to-be-installed one
11193 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11194 test "$hardcode_minus_L" != no
; then
11195 # Linking always hardcodes the temporary library directory.
11196 hardcode_action
=relink
11198 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11199 hardcode_action
=immediate
11202 # We cannot hardcode anything, or else we can only hardcode existing
11204 hardcode_action
=unsupported
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11207 $as_echo "$hardcode_action" >&6; }
11209 if test "$hardcode_action" = relink ||
11210 test "$inherit_rpath" = yes; then
11211 # Fast installation is not supported
11212 enable_fast_install
=no
11213 elif test "$shlibpath_overrides_runpath" = yes ||
11214 test "$enable_shared" = no
; then
11215 # Fast installation is not necessary
11216 enable_fast_install
=needless
11224 if test "x$enable_dlopen" != xyes
; then
11225 enable_dlopen
=unknown
11226 enable_dlopen_self
=unknown
11227 enable_dlopen_self_static
=unknown
11234 lt_cv_dlopen
="load_add_on"
11236 lt_cv_dlopen_self
=yes
11239 mingw
* | pw32
* | cegcc
*)
11240 lt_cv_dlopen
="LoadLibrary"
11245 lt_cv_dlopen
="dlopen"
11250 # if libdl is installed we need to link against it
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11252 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11253 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11254 $as_echo_n "(cached) " >&6
11256 ac_check_lib_save_LIBS
=$LIBS
11258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11259 /* end confdefs.h. */
11261 /* Override any GCC internal prototype to avoid an error.
11262 Use char because int might match the return type of a GCC
11263 builtin and then its argument prototype would still apply. */
11276 if ac_fn_c_try_link
"$LINENO"; then :
11277 ac_cv_lib_dl_dlopen
=yes
11279 ac_cv_lib_dl_dlopen
=no
11281 rm -f core conftest.err conftest.
$ac_objext \
11282 conftest
$ac_exeext conftest.
$ac_ext
11283 LIBS
=$ac_check_lib_save_LIBS
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11286 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11287 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11288 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11291 lt_cv_dlopen
="dyld"
11293 lt_cv_dlopen_self
=yes
11300 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11301 if test "x$ac_cv_func_shl_load" = xyes
; then :
11302 lt_cv_dlopen
="shl_load"
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11305 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11306 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11307 $as_echo_n "(cached) " >&6
11309 ac_check_lib_save_LIBS
=$LIBS
11311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h. */
11314 /* Override any GCC internal prototype to avoid an error.
11315 Use char because int might match the return type of a GCC
11316 builtin and then its argument prototype would still apply. */
11324 return shl_load ();
11329 if ac_fn_c_try_link
"$LINENO"; then :
11330 ac_cv_lib_dld_shl_load
=yes
11332 ac_cv_lib_dld_shl_load
=no
11334 rm -f core conftest.err conftest.
$ac_objext \
11335 conftest
$ac_exeext conftest.
$ac_ext
11336 LIBS
=$ac_check_lib_save_LIBS
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11339 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11340 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11341 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11343 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11344 if test "x$ac_cv_func_dlopen" = xyes
; then :
11345 lt_cv_dlopen
="dlopen"
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11348 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11349 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11350 $as_echo_n "(cached) " >&6
11352 ac_check_lib_save_LIBS
=$LIBS
11354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11357 /* Override any GCC internal prototype to avoid an error.
11358 Use char because int might match the return type of a GCC
11359 builtin and then its argument prototype would still apply. */
11372 if ac_fn_c_try_link
"$LINENO"; then :
11373 ac_cv_lib_dl_dlopen
=yes
11375 ac_cv_lib_dl_dlopen
=no
11377 rm -f core conftest.err conftest.
$ac_objext \
11378 conftest
$ac_exeext conftest.
$ac_ext
11379 LIBS
=$ac_check_lib_save_LIBS
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11382 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11383 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11384 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11387 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11388 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11389 $as_echo_n "(cached) " >&6
11391 ac_check_lib_save_LIBS
=$LIBS
11392 LIBS
="-lsvld $LIBS"
11393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h. */
11396 /* Override any GCC internal prototype to avoid an error.
11397 Use char because int might match the return type of a GCC
11398 builtin and then its argument prototype would still apply. */
11411 if ac_fn_c_try_link
"$LINENO"; then :
11412 ac_cv_lib_svld_dlopen
=yes
11414 ac_cv_lib_svld_dlopen
=no
11416 rm -f core conftest.err conftest.
$ac_objext \
11417 conftest
$ac_exeext conftest.
$ac_ext
11418 LIBS
=$ac_check_lib_save_LIBS
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11421 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11422 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11423 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11426 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11427 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11428 $as_echo_n "(cached) " >&6
11430 ac_check_lib_save_LIBS
=$LIBS
11432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11433 /* end confdefs.h. */
11435 /* Override any GCC internal prototype to avoid an error.
11436 Use char because int might match the return type of a GCC
11437 builtin and then its argument prototype would still apply. */
11445 return dld_link ();
11450 if ac_fn_c_try_link
"$LINENO"; then :
11451 ac_cv_lib_dld_dld_link
=yes
11453 ac_cv_lib_dld_dld_link
=no
11455 rm -f core conftest.err conftest.
$ac_objext \
11456 conftest
$ac_exeext conftest.
$ac_ext
11457 LIBS
=$ac_check_lib_save_LIBS
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11460 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11461 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11462 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11483 if test "x$lt_cv_dlopen" != xno
; then
11489 case $lt_cv_dlopen in
11491 save_CPPFLAGS
="$CPPFLAGS"
11492 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11494 save_LDFLAGS
="$LDFLAGS"
11495 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11498 LIBS
="$lt_cv_dlopen_libs $LIBS"
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11501 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11502 if ${lt_cv_dlopen_self+:} false
; then :
11503 $as_echo_n "(cached) " >&6
11505 if test "$cross_compiling" = yes; then :
11506 lt_cv_dlopen_self
=cross
11508 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11509 lt_status
=$lt_dlunknown
11510 cat > conftest.
$ac_ext <<_LT_EOF
11511 #line 11511 "configure"
11512 #include "confdefs.h"
11521 # define LT_DLGLOBAL RTLD_GLOBAL
11524 # define LT_DLGLOBAL DL_GLOBAL
11526 # define LT_DLGLOBAL 0
11530 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11531 find out it does not work in some platform. */
11532 #ifndef LT_DLLAZY_OR_NOW
11534 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11537 # define LT_DLLAZY_OR_NOW DL_LAZY
11540 # define LT_DLLAZY_OR_NOW RTLD_NOW
11543 # define LT_DLLAZY_OR_NOW DL_NOW
11545 # define LT_DLLAZY_OR_NOW 0
11552 /* When -fvisbility=hidden is used, assume the code has been annotated
11553 correspondingly for the symbols needed. */
11554 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11555 void fnord () __attribute__((visibility("default")));
11558 void fnord () { int i=42; }
11561 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11562 int status = $lt_dlunknown;
11566 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11569 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11570 else puts (dlerror ());
11572 /* dlclose (self); */
11580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11581 (eval $ac_link) 2>&5
11583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11584 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11585 (.
/conftest
; exit; ) >&5 2>/dev
/null
11587 case x
$lt_status in
11588 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11589 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11590 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11593 # compilation failed
11594 lt_cv_dlopen_self
=no
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11602 $as_echo "$lt_cv_dlopen_self" >&6; }
11604 if test "x$lt_cv_dlopen_self" = xyes
; then
11605 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11607 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11608 if ${lt_cv_dlopen_self_static+:} false
; then :
11609 $as_echo_n "(cached) " >&6
11611 if test "$cross_compiling" = yes; then :
11612 lt_cv_dlopen_self_static
=cross
11614 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11615 lt_status
=$lt_dlunknown
11616 cat > conftest.
$ac_ext <<_LT_EOF
11617 #line 11617 "configure"
11618 #include "confdefs.h"
11627 # define LT_DLGLOBAL RTLD_GLOBAL
11630 # define LT_DLGLOBAL DL_GLOBAL
11632 # define LT_DLGLOBAL 0
11636 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11637 find out it does not work in some platform. */
11638 #ifndef LT_DLLAZY_OR_NOW
11640 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11643 # define LT_DLLAZY_OR_NOW DL_LAZY
11646 # define LT_DLLAZY_OR_NOW RTLD_NOW
11649 # define LT_DLLAZY_OR_NOW DL_NOW
11651 # define LT_DLLAZY_OR_NOW 0
11658 /* When -fvisbility=hidden is used, assume the code has been annotated
11659 correspondingly for the symbols needed. */
11660 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11661 void fnord () __attribute__((visibility("default")));
11664 void fnord () { int i=42; }
11667 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11668 int status = $lt_dlunknown;
11672 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11675 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11676 else puts (dlerror ());
11678 /* dlclose (self); */
11686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11687 (eval $ac_link) 2>&5
11689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11690 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11691 (.
/conftest
; exit; ) >&5 2>/dev
/null
11693 case x
$lt_status in
11694 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11695 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11696 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11699 # compilation failed
11700 lt_cv_dlopen_self_static
=no
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11708 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11711 CPPFLAGS
="$save_CPPFLAGS"
11712 LDFLAGS
="$save_LDFLAGS"
11717 case $lt_cv_dlopen_self in
11718 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11719 *) enable_dlopen_self
=unknown
;;
11722 case $lt_cv_dlopen_self_static in
11723 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11724 *) enable_dlopen_self_static
=unknown
;;
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11747 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11748 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11749 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11750 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11752 $as_echo "yes" >&6; }
11754 # FIXME - insert some real tests, host_os isn't really good enough
11757 if test -n "$STRIP" ; then
11758 striplib
="$STRIP -x"
11759 old_striplib
="$STRIP -S"
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11761 $as_echo "yes" >&6; }
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11785 # Report which library types will actually be built
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11787 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11789 $as_echo "$can_build_shared" >&6; }
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11792 $as_echo_n "checking whether to build shared libraries... " >&6; }
11793 test "$can_build_shared" = "no" && enable_shared
=no
11795 # On AIX, shared libraries and static libraries use the same namespace, and
11796 # are all built from PIC.
11799 test "$enable_shared" = yes && enable_static
=no
11800 if test -n "$RANLIB"; then
11801 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11802 postinstall_cmds
='$RANLIB $lib'
11807 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11808 test "$enable_shared" = yes && enable_static
=no
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11813 $as_echo "$enable_shared" >&6; }
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11816 $as_echo_n "checking whether to build static libraries... " >&6; }
11817 # Make sure either enable_shared or enable_static is yes.
11818 test "$enable_shared" = yes || enable_static
=yes
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11820 $as_echo "$enable_static" >&6; }
11827 ac_cpp
='$CPP $CPPFLAGS'
11828 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11829 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11830 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11846 ac_config_commands
="$ac_config_commands libtool"
11851 # Only expand once:
11857 gdc_save_DFLAGS
=$GDCFLAGS
11858 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11861 # Source file extension for D test sources.
11864 # Object file extension for compiled D test sources.
11868 # Code to be used in simple compile tests
11869 lt_simple_compile_test_code
="module mod; extern(C) int main() { return 0; }"
11871 # Code to be used in simple link tests
11872 lt_simple_link_test_code
='module mod; extern(C) int main() { return 0; }'
11874 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11881 # If no C compiler was specified, use CC.
11884 # If no C compiler flags were specified, use CFLAGS.
11885 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
11887 # Allow CC to be a program name with arguments.
11891 # save warnings/boilerplate of simple test code
11892 ac_outfile
=conftest.
$ac_objext
11893 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
11894 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11895 _lt_compiler_boilerplate
=`cat conftest.err`
11898 ac_outfile
=conftest.
$ac_objext
11899 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
11900 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11901 _lt_linker_boilerplate
=`cat conftest.err`
11905 # Allow CC to be a program name with arguments.
11907 lt_save_CFLAGS
=$CFLAGS
11908 lt_save_DFLAGS
=$GDCFLAGS
11912 # Need to specify location for object.d
11913 GDCFLAGS
="-nophoboslib $GDCFLAGS"
11918 for cc_temp
in $compiler""; do
11920 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
11921 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
11926 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11929 # GDC did not exist at the time GCC didn't implicitly link libc in.
11930 archive_cmds_need_lc_D
=no
11932 old_archive_cmds_D
=$old_archive_cmds
11933 reload_flag_D
=$reload_flag
11934 reload_cmds_D
=$reload_cmds
11937 ## There is no encapsulation within the following macros, do not change
11938 ## the running order or otherwise move them around unless you know exactly
11939 ## what you are doing...
11940 if test -n "$compiler"; then
11942 lt_prog_compiler_no_builtin_flag_D
=
11944 if test "$GCC" = yes; then
11945 case $cc_basename in
11947 lt_prog_compiler_no_builtin_flag_D
=' -Xcompiler -fno-builtin' ;;
11949 lt_prog_compiler_no_builtin_flag_D
=' -fno-builtin' ;;
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11953 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11954 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
11955 $as_echo_n "(cached) " >&6
11957 lt_cv_prog_compiler_rtti_exceptions
=no
11958 ac_outfile
=conftest.
$ac_objext
11959 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11960 lt_compiler_flag
="-fno-rtti -fno-exceptions"
11961 # Insert the option either (1) after the last *FLAGS variable, or
11962 # (2) before a word containing "conftest.", or (3) at the end.
11963 # Note that $ac_compile itself does not contain backslashes and begins
11964 # with a dollar sign (not a hyphen), so the echo should work correctly.
11965 # The option is referenced via a variable to avoid confusing sed.
11966 lt_compile
=`echo "$ac_compile" | $SED \
11967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11969 -e 's:$: $lt_compiler_flag:'`
11970 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11971 (eval "$lt_compile" 2>conftest.err
)
11973 cat conftest.err
>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 if (exit $ac_status) && test -s "$ac_outfile"; then
11976 # The compiler can only warn and ignore the option if not recognized
11977 # So say no if there are warnings other than the usual output.
11978 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
11979 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11980 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
11981 lt_cv_prog_compiler_rtti_exceptions
=yes
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11988 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11990 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
11991 lt_prog_compiler_no_builtin_flag_D
="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12000 lt_prog_compiler_wl_D
=
12001 lt_prog_compiler_pic_D
=
12002 lt_prog_compiler_static_D
=
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12005 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12007 if test "$GCC" = yes; then
12008 lt_prog_compiler_wl_D
='-Wl,'
12009 lt_prog_compiler_static_D
='-static'
12013 # All AIX code is PIC.
12014 if test "$host_cpu" = ia64
; then
12015 # AIX 5 now supports IA64 processor
12016 lt_prog_compiler_static_D
='-Bstatic'
12018 lt_prog_compiler_pic_D
='-fPIC'
12024 # see comment about AmigaOS4 .so support
12025 lt_prog_compiler_pic_D
='-fPIC'
12028 # FIXME: we need at least 68020 code to build shared libraries, but
12029 # adding the `-m68020' flag to GCC prevents building anything better,
12031 lt_prog_compiler_pic_D
='-m68020 -resident32 -malways-restore-a4'
12036 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12037 # PIC is the default for these OSes.
12040 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12041 # This hack is so that the source file can tell whether it is being
12042 # built for inclusion in a dll (and should export symbols for example).
12043 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12044 # (--disable-auto-import) libraries
12045 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12048 darwin
* | rhapsody
*)
12049 # PIC is the default on this platform
12050 # Common symbols not allowed in MH_DYLIB files
12051 lt_prog_compiler_pic_D
='-fno-common'
12055 # PIC is the default for Haiku.
12056 # The "-static" flag exists, but is broken.
12057 lt_prog_compiler_static_D
=
12061 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12062 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12063 # sets the default TLS model and affects inlining.
12069 lt_prog_compiler_pic_D
='-fPIC'
12075 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12076 # Instead, we relocate shared libraries at runtime.
12080 # Just because we use GCC doesn't mean we suddenly get shared libraries
12081 # on systems that don't support them.
12082 lt_prog_compiler_can_build_shared_D
=no
12087 # QNX uses GNU C++, but need to define -shared option too, otherwise
12088 # it will coredump.
12089 lt_prog_compiler_pic_D
='-fPIC -shared'
12093 if test -d /usr
/nec
; then
12094 lt_prog_compiler_pic_D
=-Kconform_pic
12099 lt_prog_compiler_pic_D
='-fPIC'
12103 case $cc_basename in
12104 nvcc
*) # Cuda Compiler Driver 2.2
12105 lt_prog_compiler_wl_D
='-Xlinker '
12106 lt_prog_compiler_pic_D
='-Xcompiler -fPIC'
12110 # PORTME Check for flag to pass linker flags through the system compiler.
12113 lt_prog_compiler_wl_D
='-Wl,'
12114 if test "$host_cpu" = ia64
; then
12115 # AIX 5 now supports IA64 processor
12116 lt_prog_compiler_static_D
='-Bstatic'
12118 lt_prog_compiler_static_D
='-bnso -bI:/lib/syscalls.exp'
12122 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12123 # This hack is so that the source file can tell whether it is being
12124 # built for inclusion in a dll (and should export symbols for example).
12125 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12128 hpux9
* | hpux10
* | hpux11
*)
12129 lt_prog_compiler_wl_D
='-Wl,'
12130 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12131 # not for PA HP-UX.
12137 lt_prog_compiler_pic_D
='+Z'
12140 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12141 lt_prog_compiler_static_D
='${wl}-a ${wl}archive'
12144 irix5
* | irix6
* | nonstopux
*)
12145 lt_prog_compiler_wl_D
='-Wl,'
12146 # PIC (with -KPIC) is the default.
12147 lt_prog_compiler_static_D
='-non_shared'
12150 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12151 case $cc_basename in
12152 # old Intel for x86_64 which still supported -KPIC.
12154 lt_prog_compiler_wl_D
='-Wl,'
12155 lt_prog_compiler_pic_D
='-KPIC'
12156 lt_prog_compiler_static_D
='-static'
12158 # icc used to be incompatible with GCC.
12159 # ICC 10 doesn't accept -KPIC any more.
12161 lt_prog_compiler_wl_D
='-Wl,'
12162 lt_prog_compiler_pic_D
='-fPIC'
12163 lt_prog_compiler_static_D
='-static'
12165 # Lahey Fortran 8.1.
12167 lt_prog_compiler_wl_D
='-Wl,'
12168 lt_prog_compiler_pic_D
='--shared'
12169 lt_prog_compiler_static_D
='--static'
12171 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12172 # Portland Group compilers (*not* the Pentium gcc compiler,
12173 # which looks to be a dead project)
12174 lt_prog_compiler_wl_D
='-Wl,'
12175 lt_prog_compiler_pic_D
='-fpic'
12176 lt_prog_compiler_static_D
='-Bstatic'
12179 lt_prog_compiler_wl_D
='-Wl,'
12180 # All Alpha code is PIC.
12181 lt_prog_compiler_static_D
='-non_shared'
12183 xl
* | bgxl
* | bgf
* | mpixl
*)
12184 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12185 lt_prog_compiler_wl_D
='-Wl,'
12186 lt_prog_compiler_pic_D
='-qpic'
12187 lt_prog_compiler_static_D
='-qstaticlink'
12190 case `$CC -V 2>&1 | sed 5q` in
12191 *Sun\ F
* |
*Sun
*Fortran
*)
12192 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12193 lt_prog_compiler_pic_D
='-KPIC'
12194 lt_prog_compiler_static_D
='-Bstatic'
12195 lt_prog_compiler_wl_D
=''
12199 lt_prog_compiler_pic_D
='-KPIC'
12200 lt_prog_compiler_static_D
='-Bstatic'
12201 lt_prog_compiler_wl_D
='-Wl,'
12209 lt_prog_compiler_pic_D
='-KPIC'
12210 lt_prog_compiler_static_D
='-Bstatic'
12214 # QNX uses GNU C++, but need to define -shared option too, otherwise
12215 # it will coredump.
12216 lt_prog_compiler_pic_D
='-fPIC -shared'
12219 osf3
* | osf4
* | osf5
*)
12220 lt_prog_compiler_wl_D
='-Wl,'
12221 # All OSF/1 code is PIC.
12222 lt_prog_compiler_static_D
='-non_shared'
12226 lt_prog_compiler_static_D
='-non_shared'
12230 lt_prog_compiler_pic_D
='-KPIC'
12231 lt_prog_compiler_static_D
='-Bstatic'
12232 case $cc_basename in
12233 f77
* | f90
* | f95
*)
12234 lt_prog_compiler_wl_D
='-Qoption ld ';;
12236 lt_prog_compiler_wl_D
='-Wl,';;
12241 lt_prog_compiler_wl_D
='-Qoption ld '
12242 lt_prog_compiler_pic_D
='-PIC'
12243 lt_prog_compiler_static_D
='-Bstatic'
12246 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12247 lt_prog_compiler_wl_D
='-Wl,'
12248 lt_prog_compiler_pic_D
='-KPIC'
12249 lt_prog_compiler_static_D
='-Bstatic'
12253 if test -d /usr
/nec
;then
12254 lt_prog_compiler_pic_D
='-Kconform_pic'
12255 lt_prog_compiler_static_D
='-Bstatic'
12259 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12260 lt_prog_compiler_wl_D
='-Wl,'
12261 lt_prog_compiler_pic_D
='-KPIC'
12262 lt_prog_compiler_static_D
='-Bstatic'
12266 lt_prog_compiler_wl_D
='-Wl,'
12267 lt_prog_compiler_can_build_shared_D
=no
12271 lt_prog_compiler_pic_D
='-pic'
12272 lt_prog_compiler_static_D
='-Bstatic'
12276 lt_prog_compiler_can_build_shared_D
=no
12282 # For platforms which do not support PIC, -DPIC is meaningless:
12284 lt_prog_compiler_pic_D
=
12287 lt_prog_compiler_pic_D
="$lt_prog_compiler_pic_D"
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12291 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12296 # Check to make sure the PIC flag actually works.
12298 if test -n "$lt_prog_compiler_pic_D"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12300 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12301 if ${lt_cv_prog_compiler_pic_works_D+:} false
; then :
12302 $as_echo_n "(cached) " >&6
12304 lt_cv_prog_compiler_pic_works_D
=no
12305 ac_outfile
=conftest.
$ac_objext
12306 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12307 lt_compiler_flag
="$lt_prog_compiler_pic_D"
12308 # Insert the option either (1) after the last *FLAGS variable, or
12309 # (2) before a word containing "conftest.", or (3) at the end.
12310 # Note that $ac_compile itself does not contain backslashes and begins
12311 # with a dollar sign (not a hyphen), so the echo should work correctly.
12312 # The option is referenced via a variable to avoid confusing sed.
12313 lt_compile
=`echo "$ac_compile" | $SED \
12314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12316 -e 's:$: $lt_compiler_flag:'`
12317 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12318 (eval "$lt_compile" 2>conftest.err
)
12320 cat conftest.err
>&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 if (exit $ac_status) && test -s "$ac_outfile"; then
12323 # The compiler can only warn and ignore the option if not recognized
12324 # So say no if there are warnings other than the usual output.
12325 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12326 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12327 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12328 lt_cv_prog_compiler_pic_works_D
=yes
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12335 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12337 if test x
"$lt_cv_prog_compiler_pic_works_D" = xyes
; then
12338 case $lt_prog_compiler_pic_D in
12340 *) lt_prog_compiler_pic_D
=" $lt_prog_compiler_pic_D" ;;
12343 lt_prog_compiler_pic_D
=
12344 lt_prog_compiler_can_build_shared_D
=no
12352 # Check to make sure the static flag actually works.
12354 wl
=$lt_prog_compiler_wl_D eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_D\"
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12356 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12357 if ${lt_cv_prog_compiler_static_works_D+:} false
; then :
12358 $as_echo_n "(cached) " >&6
12360 lt_cv_prog_compiler_static_works_D
=no
12361 save_LDFLAGS
="$LDFLAGS"
12362 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12363 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12364 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12365 # The linker can only warn and ignore the option if not recognized
12366 # So say no if there are warnings
12367 if test -s conftest.err
; then
12368 # Append any errors to the config.log.
12369 cat conftest.err
1>&5
12370 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12371 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12372 if diff conftest.exp conftest.er2
>/dev
/null
; then
12373 lt_cv_prog_compiler_static_works_D
=yes
12376 lt_cv_prog_compiler_static_works_D
=yes
12380 LDFLAGS
="$save_LDFLAGS"
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12384 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12386 if test x
"$lt_cv_prog_compiler_static_works_D" = xyes
; then
12389 lt_prog_compiler_static_D
=
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12396 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12397 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12398 $as_echo_n "(cached) " >&6
12400 lt_cv_prog_compiler_c_o_D
=no
12401 $RM -r conftest
2>/dev
/null
12405 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12407 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12408 # Insert the option either (1) after the last *FLAGS variable, or
12409 # (2) before a word containing "conftest.", or (3) at the end.
12410 # Note that $ac_compile itself does not contain backslashes and begins
12411 # with a dollar sign (not a hyphen), so the echo should work correctly.
12412 lt_compile
=`echo "$ac_compile" | $SED \
12413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12415 -e 's:$: $lt_compiler_flag:'`
12416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12417 (eval "$lt_compile" 2>out
/conftest.err
)
12419 cat out
/conftest.err
>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12423 # The compiler can only warn and ignore the option if not recognized
12424 # So say no if there are warnings
12425 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12426 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12427 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12428 lt_cv_prog_compiler_c_o_D
=yes
12433 # SGI C++ compiler will create directory out/ii_files/ for
12434 # template instantiation
12435 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12436 $RM out
/* && rmdir out
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12443 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12448 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12449 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12450 $as_echo_n "(cached) " >&6
12452 lt_cv_prog_compiler_c_o_D
=no
12453 $RM -r conftest
2>/dev
/null
12457 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12459 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12460 # Insert the option either (1) after the last *FLAGS variable, or
12461 # (2) before a word containing "conftest.", or (3) at the end.
12462 # Note that $ac_compile itself does not contain backslashes and begins
12463 # with a dollar sign (not a hyphen), so the echo should work correctly.
12464 lt_compile
=`echo "$ac_compile" | $SED \
12465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12467 -e 's:$: $lt_compiler_flag:'`
12468 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12469 (eval "$lt_compile" 2>out
/conftest.err
)
12471 cat out
/conftest.err
>&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12475 # The compiler can only warn and ignore the option if not recognized
12476 # So say no if there are warnings
12477 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12478 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12479 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12480 lt_cv_prog_compiler_c_o_D
=yes
12485 # SGI C++ compiler will create directory out/ii_files/ for
12486 # template instantiation
12487 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12488 $RM out
/* && rmdir out
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12495 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12500 hard_links
="nottested"
12501 if test "$lt_cv_prog_compiler_c_o_D" = no
&& test "$need_locks" != no
; then
12502 # do not overwrite the value of need_locks provided by the user
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12504 $as_echo_n "checking if we can lock with hard links... " >&6; }
12507 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12509 ln conftest.a conftest.b
2>&5 || hard_links
=no
12510 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12512 $as_echo "$hard_links" >&6; }
12513 if test "$hard_links" = no
; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12515 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12525 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12528 allow_undefined_flag_D
=
12529 always_export_symbols_D
=no
12531 archive_expsym_cmds_D
=
12532 compiler_needs_object_D
=no
12533 enable_shared_with_static_runtimes_D
=no
12534 export_dynamic_flag_spec_D
=
12535 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12536 hardcode_automatic_D
=no
12537 hardcode_direct_D
=no
12538 hardcode_direct_absolute_D
=no
12539 hardcode_libdir_flag_spec_D
=
12540 hardcode_libdir_flag_spec_ld_D
=
12541 hardcode_libdir_separator_D
=
12542 hardcode_minus_L_D
=no
12543 hardcode_shlibpath_var_D
=unsupported
12545 link_all_deplibs_D
=unknown
12547 module_expsym_cmds_D
=
12548 old_archive_from_new_cmds_D
=
12549 old_archive_from_expsyms_cmds_D
=
12550 thread_safe_flag_spec_D
=
12551 whole_archive_flag_spec_D
=
12552 # include_expsyms should be a list of space-separated symbols to be *always*
12553 # included in the symbol list
12555 # exclude_expsyms can be an extended regexp of symbols to exclude
12556 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12557 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12558 # as well as any symbol that contains `d'.
12559 exclude_expsyms_D
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12560 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12561 # platforms (ab)use it in PIC code, but their linkers get confused if
12562 # the symbol is explicitly referenced. Since portable code cannot
12563 # rely on this symbol name, it's probably fine to never include it in
12564 # preloaded symbol tables.
12565 # Exclude shared library initialization/finalization symbols.
12566 extract_expsyms_cmds
=
12569 cygwin
* | mingw
* | pw32
* | cegcc
*)
12570 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12571 # When not using gcc, we currently assume that we are using
12572 # Microsoft Visual C++.
12573 if test "$GCC" != yes; then
12578 # we just hope/assume this is gcc and not c89 (= MSVC++)
12588 # On some targets, GNU ld is compatible enough with the native linker
12589 # that we're better off using the native interface for both.
12590 lt_use_gnu_ld_interface
=no
12591 if test "$with_gnu_ld" = yes; then
12594 # The AIX port of GNU ld has always aspired to compatibility
12595 # with the native linker. However, as the warning in the GNU ld
12596 # block says, versions before 2.19.5* couldn't really create working
12597 # shared libraries, regardless of the interface used.
12598 case `$LD -v 2>&1` in
12599 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12600 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12601 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12603 lt_use_gnu_ld_interface
=yes
12608 lt_use_gnu_ld_interface
=yes
12613 if test "$lt_use_gnu_ld_interface" = yes; then
12614 # If archive_cmds runs LD, not CC, wlarc should be empty
12617 # Set some defaults for GNU ld with shared library support. These
12618 # are reset later if shared libraries are not supported. Putting them
12619 # here allows them to be overridden if necessary.
12620 runpath_var
=LD_RUN_PATH
12621 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
12622 export_dynamic_flag_spec_D
='${wl}--export-dynamic'
12623 # ancient GNU ld didn't support --whole-archive et. al.
12624 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12625 whole_archive_flag_spec_D
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12627 whole_archive_flag_spec_D
=
12629 supports_anon_versioning
=no
12630 case `$LD -v 2>&1` in
12631 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12632 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12633 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12634 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12635 *\
2.11.
*) ;; # other 2.11 versions
12636 *) supports_anon_versioning
=yes ;;
12639 # See if GNU ld supports shared libraries.
12642 # On AIX/PPC, the GNU linker is very broken
12643 if test "$host_cpu" != ia64
; then
12647 *** Warning: the GNU linker, at least up to release 2.19, is reported
12648 *** to be unable to reliably create shared libraries on AIX.
12649 *** Therefore, libtool is disabling shared libraries support. If you
12650 *** really care for shared libraries, you may want to install binutils
12651 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12652 *** You will then need to restart the configuration process.
12661 # see comment about AmigaOS4 .so support
12662 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12663 archive_expsym_cmds_D
=''
12666 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)'
12667 hardcode_libdir_flag_spec_D
='-L$libdir'
12668 hardcode_minus_L_D
=yes
12674 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12675 allow_undefined_flag_D
=unsupported
12676 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12677 # support --undefined. This deserves some investigation. FIXME
12678 archive_cmds_D
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12684 cygwin
* | mingw
* | pw32
* | cegcc
*)
12685 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12686 # as there is no search path for DLLs.
12687 hardcode_libdir_flag_spec_D
='-L$libdir'
12688 export_dynamic_flag_spec_D
='${wl}--export-all-symbols'
12689 allow_undefined_flag_D
=unsupported
12690 always_export_symbols_D
=no
12691 enable_shared_with_static_runtimes_D
=yes
12692 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12694 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12695 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12696 # If the export-symbols file already is a .def file (1st line
12697 # is EXPORTS), use it as is; otherwise, prepend...
12698 archive_expsym_cmds_D
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12699 cp $export_symbols $output_objdir/$soname.def;
12701 echo EXPORTS > $output_objdir/$soname.def;
12702 cat $export_symbols >> $output_objdir/$soname.def;
12704 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12711 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12712 link_all_deplibs_D
=yes
12716 hardcode_direct_D
=no
12717 hardcode_shlibpath_var_D
=no
12718 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
12719 export_dynamic_flag_spec_D
='${wl}-E'
12720 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12721 # Instead, shared libraries are loaded at an image base (0x10000000 by
12722 # default) and relocated if they conflict, which is a slow very memory
12723 # consuming and fragmenting process. To avoid this, we pick a random,
12724 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12725 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12726 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'
12727 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'
12730 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12732 if test "$host_os" = linux-dietlibc
; then
12733 case $cc_basename in
12734 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
12737 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
12738 && test "$tmp_diet" = no
12740 tmp_addflag
=' $pic_flag'
12741 tmp_sharedflag
='-shared'
12742 case $cc_basename,$host_cpu in
12743 pgcc
*) # Portland Group C compiler
12744 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'
12745 tmp_addflag
=' $pic_flag'
12747 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12748 # Portland Group f77 and f90 compilers
12749 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'
12750 tmp_addflag
=' $pic_flag -Mnomain' ;;
12751 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12752 tmp_addflag
=' -i_dynamic' ;;
12753 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12754 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12755 ifc
* | ifort
*) # Intel Fortran compiler
12756 tmp_addflag
=' -nofor_main' ;;
12757 lf95
*) # Lahey Fortran 8.1
12758 whole_archive_flag_spec_D
=
12759 tmp_sharedflag
='--shared' ;;
12760 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12761 tmp_sharedflag
='-qmkshrobj'
12763 nvcc
*) # Cuda Compiler Driver 2.2
12764 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'
12765 compiler_needs_object_D
=yes
12768 case `$CC -V 2>&1 | sed 5q` in
12769 *Sun\ C
*) # Sun C 5.9
12770 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'
12771 compiler_needs_object_D
=yes
12772 tmp_sharedflag
='-G' ;;
12773 *Sun\ F
*) # Sun Fortran 8.3
12774 tmp_sharedflag
='-G' ;;
12776 archive_cmds_D
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12778 if test "x$supports_anon_versioning" = xyes
; then
12779 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
12780 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12781 echo "local: *; };" >> $output_objdir/$libname.ver~
12782 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12785 case $cc_basename in
12786 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
12787 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12788 whole_archive_flag_spec_D
='--whole-archive$convenience --no-whole-archive'
12789 hardcode_libdir_flag_spec_D
=
12790 hardcode_libdir_flag_spec_ld_D
='-rpath $libdir'
12791 archive_cmds_D
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12792 if test "x$supports_anon_versioning" = xyes
; then
12793 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
12794 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12795 echo "local: *; };" >> $output_objdir/$libname.ver~
12796 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12806 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12807 archive_cmds_D
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12810 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12811 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12816 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
12820 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12821 *** create shared libraries on Solaris systems. Therefore, libtool
12822 *** is disabling shared libraries support. We urge you to upgrade GNU
12823 *** binutils to release 2.9.1 or newer. Another option is to modify
12824 *** your PATH or compiler configuration so that the native linker is
12825 *** used, and then restart.
12828 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12829 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12830 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12836 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
12837 case `$LD -v 2>&1` in
12838 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
12842 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12843 *** reliably create shared libraries on SCO systems. Therefore, libtool
12844 *** is disabling shared libraries support. We urge you to upgrade GNU
12845 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12846 *** your PATH or compiler configuration so that the native linker is
12847 *** used, and then restart.
12852 # For security reasons, it is highly recommended that you always
12853 # use absolute paths for naming shared libraries, and exclude the
12854 # DT_RUNPATH tag from executables and libraries. But doing so
12855 # requires that you compile everything twice, which is a pain.
12856 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12857 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
12858 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12859 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12868 archive_cmds_D
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12870 hardcode_direct_D
=yes
12871 hardcode_shlibpath_var_D
=no
12875 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12876 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12877 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12884 if test "$ld_shlibs_D" = no
; then
12886 hardcode_libdir_flag_spec_D
=
12887 export_dynamic_flag_spec_D
=
12888 whole_archive_flag_spec_D
=
12891 # PORTME fill in a description of your system's linker (not GNU ld)
12894 allow_undefined_flag_D
=unsupported
12895 always_export_symbols_D
=yes
12896 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'
12897 # Note: this linker hardcodes the directories in LIBPATH if there
12898 # are no directories specified by -L.
12899 hardcode_minus_L_D
=yes
12900 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12901 # Neither direct hardcoding nor static linking is supported with a
12903 hardcode_direct_D
=unsupported
12908 if test "$host_cpu" = ia64
; then
12909 # On IA64, the linker does run time linking by default, so we don't
12910 # have to do anything special.
12911 aix_use_runtimelinking
=no
12912 exp_sym_flag
='-Bexport'
12915 # If we're using GNU nm, then we don't want the "-C" option.
12916 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12917 # Also, AIX nm treats weak defined symbols like other global
12918 # defined symbols, whereas GNU nm marks them as "W".
12919 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
12920 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'
12922 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'
12924 aix_use_runtimelinking
=no
12926 # Test if we are trying to use run time linking or normal
12927 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12928 # need to do runtime linking.
12929 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12930 for ld_flag
in $LDFLAGS; do
12931 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
12932 aix_use_runtimelinking
=yes
12939 exp_sym_flag
='-bexport'
12940 no_entry_flag
='-bnoentry'
12943 # When large executables or shared objects are built, AIX ld can
12944 # have problems creating the table of contents. If linking a library
12945 # or program results in "error TOC overflow" add -mminimal-toc to
12946 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12947 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12950 hardcode_direct_D
=yes
12951 hardcode_direct_absolute_D
=yes
12952 hardcode_libdir_separator_D
=':'
12953 link_all_deplibs_D
=yes
12954 file_list_spec_D
='${wl}-f,'
12956 if test "$GCC" = yes; then
12957 case $host_os in aix4.
[012]|aix4.
[012].
*)
12958 # We only want to do this on AIX 4.2 and lower, the check
12959 # below for broken collect2 doesn't work under 4.3+
12960 collect2name
=`${CC} -print-prog-name=collect2`
12961 if test -f "$collect2name" &&
12962 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12964 # We have reworked collect2
12967 # We have old collect2
12968 hardcode_direct_D
=unsupported
12969 # It fails to find uninstalled libraries when the uninstalled
12970 # path is not listed in the libpath. Setting hardcode_minus_L
12971 # to unsupported forces relinking
12972 hardcode_minus_L_D
=yes
12973 hardcode_libdir_flag_spec_D
='-L$libdir'
12974 hardcode_libdir_separator_D
=
12978 shared_flag
='-shared'
12979 if test "$aix_use_runtimelinking" = yes; then
12980 shared_flag
="$shared_flag "'${wl}-G'
12984 if test "$host_cpu" = ia64
; then
12985 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12986 # chokes on -Wl,-G. The following line is correct:
12989 if test "$aix_use_runtimelinking" = yes; then
12990 shared_flag
='${wl}-G'
12992 shared_flag
='${wl}-bM:SRE'
12997 export_dynamic_flag_spec_D
='${wl}-bexpall'
12998 # It seems that -bexpall does not export symbols beginning with
12999 # underscore (_), so it is better to generate a list of symbols to export.
13000 always_export_symbols_D
=yes
13001 if test "$aix_use_runtimelinking" = yes; then
13002 # Warning - without using the other runtime loading flags (-brtl),
13003 # -berok will link without error, but may produce a broken library.
13004 allow_undefined_flag_D
='-berok'
13005 # Determine the default libpath from the value encoded in an
13006 # empty executable.
13007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h. */
13018 if ac_fn_c_try_link
"$LINENO"; then :
13020 lt_aix_libpath_sed
='
13021 /Import File Strings/,/^$/ {
13027 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13028 # Check for a 64-bit object if we didn't find anything.
13029 if test -z "$aix_libpath"; then
13030 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13033 rm -f core conftest.err conftest.
$ac_objext \
13034 conftest
$ac_exeext conftest.
$ac_ext
13035 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13037 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13038 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"
13040 if test "$host_cpu" = ia64
; then
13041 hardcode_libdir_flag_spec_D
='${wl}-R $libdir:/usr/lib:/lib'
13042 allow_undefined_flag_D
="-z nodefs"
13043 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"
13045 # Determine the default libpath from the value encoded in an
13046 # empty executable.
13047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h. */
13058 if ac_fn_c_try_link
"$LINENO"; then :
13060 lt_aix_libpath_sed
='
13061 /Import File Strings/,/^$/ {
13067 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13068 # Check for a 64-bit object if we didn't find anything.
13069 if test -z "$aix_libpath"; then
13070 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13073 rm -f core conftest.err conftest.
$ac_objext \
13074 conftest
$ac_exeext conftest.
$ac_ext
13075 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13077 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13078 # Warning - without using the other run time loading flags,
13079 # -berok will link without error, but may produce a broken library.
13080 no_undefined_flag_D
=' ${wl}-bernotok'
13081 allow_undefined_flag_D
=' ${wl}-berok'
13082 if test "$with_gnu_ld" = yes; then
13083 # We only use this code for GNU lds that support --whole-archive.
13084 whole_archive_flag_spec_D
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13086 # Exported symbols can be pulled into shared objects from archives
13087 whole_archive_flag_spec_D
='$convenience'
13089 archive_cmds_need_lc_D
=yes
13090 # This is similar to how AIX traditionally builds its shared libraries.
13091 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'
13099 # see comment about AmigaOS4 .so support
13100 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13101 archive_expsym_cmds_D
=''
13104 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)'
13105 hardcode_libdir_flag_spec_D
='-L$libdir'
13106 hardcode_minus_L_D
=yes
13112 export_dynamic_flag_spec_D
=-rdynamic
13115 cygwin
* | mingw
* | pw32
* | cegcc
*)
13116 # When not using gcc, we currently assume that we are using
13117 # Microsoft Visual C++.
13118 # hardcode_libdir_flag_spec is actually meaningless, as there is
13119 # no search path for DLLs.
13120 hardcode_libdir_flag_spec_D
=' '
13121 allow_undefined_flag_D
=unsupported
13122 # Tell ltmain to make .lib files, not .a files.
13124 # Tell ltmain to make .dll files, not .so files.
13126 # FIXME: Setting linknames here is a bad hack.
13127 archive_cmds_D
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13128 # The linker will automatically build a .lib file if we build a DLL.
13129 old_archive_from_new_cmds_D
='true'
13130 # FIXME: Should let the user specify the lib program.
13131 old_archive_cmds_D
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13132 fix_srcfile_path_D
='`cygpath -w "$srcfile"`'
13133 enable_shared_with_static_runtimes_D
=yes
13136 darwin
* | rhapsody
*)
13139 archive_cmds_need_lc_D
=no
13140 hardcode_direct_D
=no
13141 hardcode_automatic_D
=yes
13142 hardcode_shlibpath_var_D
=unsupported
13143 if test "$lt_cv_ld_force_load" = "yes"; then
13144 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\"`'
13146 whole_archive_flag_spec_D
=''
13148 link_all_deplibs_D
=yes
13149 allow_undefined_flag_D
="$_lt_dar_allow_undefined"
13150 case $cc_basename in
13151 ifort
*) _lt_dar_can_shared
=yes ;;
13152 *) _lt_dar_can_shared
=$GCC ;;
13154 if test "$_lt_dar_can_shared" = "yes"; then
13155 output_verbose_link_cmd
=func_echo_all
13156 archive_cmds_D
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13157 module_cmds_D
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13158 archive_expsym_cmds_D
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13159 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}"
13168 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13169 hardcode_libdir_flag_spec_D
='-L$libdir'
13170 hardcode_shlibpath_var_D
=no
13173 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13174 # support. Future versions do this automatically, but an explicit c++rt0.o
13175 # does not break anything, and helps significantly (at the cost of a little
13178 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13179 hardcode_libdir_flag_spec_D
='-R$libdir'
13180 hardcode_direct_D
=yes
13181 hardcode_shlibpath_var_D
=no
13184 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13186 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13187 hardcode_direct_D
=yes
13188 hardcode_minus_L_D
=yes
13189 hardcode_shlibpath_var_D
=no
13192 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13193 freebsd
* | dragonfly
*)
13194 archive_cmds_D
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13195 hardcode_libdir_flag_spec_D
='-R$libdir'
13196 hardcode_direct_D
=yes
13197 hardcode_shlibpath_var_D
=no
13201 if test "$GCC" = yes; then
13202 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'
13204 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'
13206 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13207 hardcode_libdir_separator_D
=:
13208 hardcode_direct_D
=yes
13210 # hardcode_minus_L: Not really in the search PATH,
13211 # but as the default location of the library.
13212 hardcode_minus_L_D
=yes
13213 export_dynamic_flag_spec_D
='${wl}-E'
13217 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13218 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13220 archive_cmds_D
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13222 if test "$with_gnu_ld" = no
; then
13223 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13224 hardcode_libdir_flag_spec_ld_D
='+b $libdir'
13225 hardcode_libdir_separator_D
=:
13226 hardcode_direct_D
=yes
13227 hardcode_direct_absolute_D
=yes
13228 export_dynamic_flag_spec_D
='${wl}-E'
13229 # hardcode_minus_L: Not really in the search PATH,
13230 # but as the default location of the library.
13231 hardcode_minus_L_D
=yes
13236 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13239 archive_cmds_D
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13242 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13245 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13251 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13254 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13257 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13261 if test "$with_gnu_ld" = no
; then
13262 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13263 hardcode_libdir_separator_D
=:
13267 hardcode_direct_D
=no
13268 hardcode_shlibpath_var_D
=no
13271 hardcode_direct_D
=yes
13272 hardcode_direct_absolute_D
=yes
13273 export_dynamic_flag_spec_D
='${wl}-E'
13275 # hardcode_minus_L: Not really in the search PATH,
13276 # but as the default location of the library.
13277 hardcode_minus_L_D
=yes
13283 irix5
* | irix6
* | nonstopux
*)
13284 if test "$GCC" = yes; then
13285 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'
13286 # Try to use the -exported_symbol ld option, if it does not
13287 # work, assume that -exports_file does not work either and
13288 # implicitly export all symbols.
13289 save_LDFLAGS
="$LDFLAGS"
13290 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13295 if ac_fn_c_try_link
"$LINENO"; then :
13296 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'
13299 rm -f core conftest.err conftest.
$ac_objext \
13300 conftest
$ac_exeext conftest.
$ac_ext
13301 LDFLAGS
="$save_LDFLAGS"
13303 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'
13304 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'
13306 archive_cmds_need_lc_D
='no'
13307 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13308 hardcode_libdir_separator_D
=:
13309 inherit_rpath_D
=yes
13310 link_all_deplibs_D
=yes
13314 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13315 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13317 archive_cmds_D
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13319 hardcode_libdir_flag_spec_D
='-R$libdir'
13320 hardcode_direct_D
=yes
13321 hardcode_shlibpath_var_D
=no
13325 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13326 hardcode_direct_D
=yes
13327 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13328 hardcode_libdir_separator_D
=:
13329 hardcode_shlibpath_var_D
=no
13336 if test -f /usr
/libexec
/ld.so
; then
13337 hardcode_direct_D
=yes
13338 hardcode_shlibpath_var_D
=no
13339 hardcode_direct_absolute_D
=yes
13340 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13341 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13342 archive_expsym_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13343 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13344 export_dynamic_flag_spec_D
='${wl}-E'
13347 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13348 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13349 hardcode_libdir_flag_spec_D
='-R$libdir'
13352 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13353 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13363 hardcode_libdir_flag_spec_D
='-L$libdir'
13364 hardcode_minus_L_D
=yes
13365 allow_undefined_flag_D
=unsupported
13366 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'
13367 old_archive_from_new_cmds_D
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13371 if test "$GCC" = yes; then
13372 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13373 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'
13375 allow_undefined_flag_D
=' -expect_unresolved \*'
13376 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'
13378 archive_cmds_need_lc_D
='no'
13379 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13380 hardcode_libdir_separator_D
=:
13383 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13384 if test "$GCC" = yes; then
13385 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13386 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'
13387 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13389 allow_undefined_flag_D
=' -expect_unresolved \*'
13390 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'
13391 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~
13392 $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'
13394 # Both c and cxx compiler support -rpath directly
13395 hardcode_libdir_flag_spec_D
='-rpath $libdir'
13397 archive_cmds_need_lc_D
='no'
13398 hardcode_libdir_separator_D
=:
13402 no_undefined_flag_D
=' -z defs'
13403 if test "$GCC" = yes; then
13405 archive_cmds_D
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13406 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13407 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13409 case `$CC -V 2>&1` in
13412 archive_cmds_D
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13413 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13414 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13418 archive_cmds_D
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13419 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13420 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13424 hardcode_libdir_flag_spec_D
='-R$libdir'
13425 hardcode_shlibpath_var_D
=no
13427 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13429 # The compiler driver will combine and reorder linker options,
13430 # but understands `-z linker_flag'. GCC discards it without `$wl',
13431 # but is careful enough not to reorder.
13432 # Supported since Solaris 2.6 (maybe 2.5.1?)
13433 if test "$GCC" = yes; then
13434 whole_archive_flag_spec_D
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13436 whole_archive_flag_spec_D
='-z allextract$convenience -z defaultextract'
13440 link_all_deplibs_D
=yes
13444 if test "x$host_vendor" = xsequent
; then
13445 # Use $CC to link under sequent, because it throws in some extra .o
13446 # files that make .init and .fini sections work.
13447 archive_cmds_D
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13449 archive_cmds_D
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13451 hardcode_libdir_flag_spec_D
='-L$libdir'
13452 hardcode_direct_D
=yes
13453 hardcode_minus_L_D
=yes
13454 hardcode_shlibpath_var_D
=no
13458 case $host_vendor in
13460 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13461 hardcode_direct_D
=yes # is this really true???
13464 ## LD is ld it makes a PLAMLIB
13465 ## CC just makes a GrossModule.
13466 archive_cmds_D
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13467 reload_cmds_D
='$CC -r -o $output$reload_objs'
13468 hardcode_direct_D
=no
13471 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13472 hardcode_direct_D
=no
#Motorola manual says yes, but my tests say they lie
13475 runpath_var
='LD_RUN_PATH'
13476 hardcode_shlibpath_var_D
=no
13480 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13481 hardcode_shlibpath_var_D
=no
13482 export_dynamic_flag_spec_D
='-Bexport'
13486 if test -d /usr
/nec
; then
13487 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13488 hardcode_shlibpath_var_D
=no
13489 runpath_var
=LD_RUN_PATH
13490 hardcode_runpath_var
=yes
13495 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13496 no_undefined_flag_D
='${wl}-z,text'
13497 archive_cmds_need_lc_D
=no
13498 hardcode_shlibpath_var_D
=no
13499 runpath_var
='LD_RUN_PATH'
13501 if test "$GCC" = yes; then
13502 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13503 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13505 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13506 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13510 sysv5
* | sco3.2v5
* | sco5v6
*)
13511 # Note: We can NOT use -z defs as we might desire, because we do not
13512 # link with -lc, and that would cause any symbols used from libc to
13513 # always be unresolved, which means just about no library would
13514 # ever link correctly. If we're not using GNU ld we use -z text
13515 # though, which does catch some bad symbols but isn't as heavy-handed
13517 no_undefined_flag_D
='${wl}-z,text'
13518 allow_undefined_flag_D
='${wl}-z,nodefs'
13519 archive_cmds_need_lc_D
=no
13520 hardcode_shlibpath_var_D
=no
13521 hardcode_libdir_flag_spec_D
='${wl}-R,$libdir'
13522 hardcode_libdir_separator_D
=':'
13523 link_all_deplibs_D
=yes
13524 export_dynamic_flag_spec_D
='${wl}-Bexport'
13525 runpath_var
='LD_RUN_PATH'
13527 if test "$GCC" = yes; then
13528 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13529 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13531 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13532 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13537 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13538 hardcode_libdir_flag_spec_D
='-L$libdir'
13539 hardcode_shlibpath_var_D
=no
13547 if test x
$host_vendor = xsni
; then
13549 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13550 export_dynamic_flag_spec_D
='${wl}-Blargedynsym'
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13557 $as_echo "$ld_shlibs_D" >&6; }
13558 test "$ld_shlibs_D" = no
&& can_build_shared
=no
13560 with_gnu_ld_D
=$with_gnu_ld
13568 # Do we need to explicitly link libc?
13570 case "x$archive_cmds_need_lc_D" in
13572 # Assume -lc should be added
13573 archive_cmds_need_lc_D
=yes
13575 if test "$enable_shared" = yes && test "$GCC" = yes; then
13576 case $archive_cmds_D in
13578 # FIXME: we may have to deal with multi-command sequences.
13581 # Test whether the compiler implicitly links with -lc since on some
13582 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13583 # to ld, don't add -lc before -lgcc.
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13585 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13586 if ${lt_cv_archive_cmds_need_lc_D+:} false
; then :
13587 $as_echo_n "(cached) " >&6
13590 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13593 (eval $ac_compile) 2>&5
13595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13596 test $ac_status = 0; } 2>conftest.err
; then
13599 libobjs
=conftest.
$ac_objext
13601 wl
=$lt_prog_compiler_wl_D
13602 pic_flag
=$lt_prog_compiler_pic_D
13608 lt_save_allow_undefined_flag
=$allow_undefined_flag_D
13609 allow_undefined_flag_D
=
13610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13611 (eval $archive_cmds_D 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13614 test $ac_status = 0; }
13616 lt_cv_archive_cmds_need_lc_D
=no
13618 lt_cv_archive_cmds_need_lc_D
=yes
13620 allow_undefined_flag_D
=$lt_save_allow_undefined_flag
13622 cat conftest.err
1>&5
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13628 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13629 archive_cmds_need_lc_D
=$lt_cv_archive_cmds_need_lc_D
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13700 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13702 if test -n "$hardcode_libdir_flag_spec_D" ||
13703 test -n "$runpath_var_D" ||
13704 test "X$hardcode_automatic_D" = "Xyes" ; then
13706 # We can hardcode non-existent directories.
13707 if test "$hardcode_direct_D" != no
&&
13708 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13709 # have to relink, otherwise we might link with an installed library
13710 # when we should be linking with a yet-to-be-installed one
13711 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13712 test "$hardcode_minus_L_D" != no
; then
13713 # Linking always hardcodes the temporary library directory.
13714 hardcode_action_D
=relink
13716 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13717 hardcode_action_D
=immediate
13720 # We cannot hardcode anything, or else we can only hardcode existing
13722 hardcode_action_D
=unsupported
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13725 $as_echo "$hardcode_action_D" >&6; }
13727 if test "$hardcode_action_D" = relink ||
13728 test "$inherit_rpath_D" = yes; then
13729 # Fast installation is not supported
13730 enable_fast_install
=no
13731 elif test "$shlibpath_overrides_runpath" = yes ||
13732 test "$enable_shared" = no
; then
13733 # Fast installation is not necessary
13734 enable_fast_install
=needless
13746 ac_cpp
='$CPP $CPPFLAGS'
13747 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13748 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13749 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13754 CFLAGS
=$lt_save_CFLAGS
13755 GDCFLAGS
=$lt_save_DFLAGS
13757 GDCFLAGS
=$gdc_save_DFLAGS
13759 if test "$enable_shared" = "yes"; then
13760 ENABLE_SHARED_TRUE
=
13761 ENABLE_SHARED_FALSE
='#'
13763 ENABLE_SHARED_TRUE
='#'
13764 ENABLE_SHARED_FALSE
=
13767 if test "$enable_static" = "yes"; then
13768 ENABLE_STATIC_TRUE
=
13769 ENABLE_STATIC_FALSE
='#'
13771 ENABLE_STATIC_TRUE
='#'
13772 ENABLE_STATIC_FALSE
=
13776 # libtool variables for Phobos shared and position-independent compiles.
13778 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13779 # creating shared objects. Default: -fversion=Shared.
13781 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13782 # creating position-independent objects. This varies with the target
13783 # hardware and operating system, but is often: -fPIC.
13785 # The distinction between pic and shared compilation flags is not present in
13786 # libtool, and so we make it here. How it is handled is that in shared
13787 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13788 # ensure that conditional compilation of shared runtime code is compiled in.
13789 # The original PIC flags are then used in the compilation of every object.
13791 # Why are objects destined for libgphobos.a compiled with -fPIC?
13792 # Because -fPIC is not harmful to use for objects destined for static
13793 # libraries. In addition, using -fPIC will allow the use of static
13794 # libgphobos.a in the creation of other D shared libraries.
13795 if test "$enable_shared" = yes; then
13796 phobos_compiler_pic_flag
="$lt_prog_compiler_pic_D"
13797 phobos_compiler_shared_flag
="-fversion=Shared"
13799 phobos_compiler_pic_flag
=
13800 phobos_compiler_shared_flag
=
13805 # Override the libtool's pic_flag and pic_mode.
13806 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13807 # NB: this impacts --with-pic and --without-pic.
13808 lt_prog_compiler_pic_D
="$phobos_compiler_shared_flag"
13811 # Determine what GCC version number to use in filesystem paths.
13813 get_gcc_base_ver
="cat"
13815 # Check whether --with-gcc-major-version-only was given.
13816 if test "${with_gcc_major_version_only+set}" = set; then :
13817 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13818 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13826 # libphobos/libdruntime specific options and feature detection
13828 # These need to be absolute paths, yet at the same time need to
13829 # canonicalize only relative paths, because then amd will not unmount
13830 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13831 libphobos_builddir
=`${PWDCMD-pwd}`
13833 \\/$
* | ?
:\\/*) libphobos_srcdir
=${srcdir} ;;
13834 *) libphobos_srcdir
=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13840 if test ${multilib} = yes; then
13841 multilib_arg
="--enable-multilib"
13847 # Check whether --enable-werror was given.
13848 if test "${enable_werror+set}" = set; then :
13849 enableval
=$enable_werror;
13853 if test "x$enable_werror" = "xyes"; then
13854 WERROR_FLAG
="-Werror"
13858 # Check whether --enable-druntime-gc was given.
13859 if test "${enable_druntime_gc+set}" = set; then :
13860 enableval
=$enable_druntime_gc; enable_druntime_gc
=no
13862 enable_druntime_gc
=yes
13866 if test "$enable_druntime_gc" = "yes"; then
13867 DRUNTIME_GC_ENABLE_TRUE
=
13868 DRUNTIME_GC_ENABLE_FALSE
='#'
13870 DRUNTIME_GC_ENABLE_TRUE
='#'
13871 DRUNTIME_GC_ENABLE_FALSE
=
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
13877 $as_echo_n "checking for target OS... " >&6; }
13878 if ${druntime_cv_target_os+:} false
; then :
13879 $as_echo_n "(cached) " >&6
13881 druntime_cv_target_os
=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
13884 $as_echo "$druntime_cv_target_os" >&6; }
13885 if test -z "$druntime_cv_target_os"; then :
13886 as_fn_error $?
"can't detect target OS" "$LINENO" 5
13891 # Check whether --enable-unix was given.
13892 if test "${enable_unix+set}" = set; then :
13893 enableval
=$enable_unix; :
13899 case "$druntime_cv_target_os" in
13900 aix
*|
*bsd
*|cygwin
*|darwin
*|gnu
*|linux
*|skyos
*|
*solaris
*|sysv
*) d_have_unix
=1 ;;
13902 if test -n "$d_have_unix" && test "$enable_unix" = auto
; then
13905 if test "$enable_unix" = "yes"; then
13906 DRUNTIME_OS_UNIX_TRUE
=
13907 DRUNTIME_OS_UNIX_FALSE
='#'
13909 DRUNTIME_OS_UNIX_TRUE
='#'
13910 DRUNTIME_OS_UNIX_FALSE
=
13917 druntime_target_os_parsed
=""
13918 case "$druntime_cv_target_os" in
13919 aix
*) druntime_target_os_parsed
="aix"
13922 druntime_target_os_parsed
="android"
13924 darwin
*) druntime_target_os_parsed
="darwin"
13927 druntime_target_os_parsed
="dragonflybsd"
13929 freebsd
*|k
*bsd
*-gnu)
13930 druntime_target_os_parsed
="freebsd"
13933 druntime_target_os_parsed
="openbsd"
13936 druntime_target_os_parsed
="netbsd"
13938 linux
*) druntime_target_os_parsed
="linux"
13940 mingw
*) druntime_target_os_parsed
="mingw"
13942 *solaris
*) druntime_target_os_parsed
="solaris"
13944 if test "$druntime_target_os_parsed" = "aix"; then
13945 DRUNTIME_OS_AIX_TRUE
=
13946 DRUNTIME_OS_AIX_FALSE
='#'
13948 DRUNTIME_OS_AIX_TRUE
='#'
13949 DRUNTIME_OS_AIX_FALSE
=
13952 if test "$druntime_target_os_parsed" = "android"; then
13953 DRUNTIME_OS_ANDROID_TRUE
=
13954 DRUNTIME_OS_ANDROID_FALSE
='#'
13956 DRUNTIME_OS_ANDROID_TRUE
='#'
13957 DRUNTIME_OS_ANDROID_FALSE
=
13960 if test "$druntime_target_os_parsed" = "darwin"; then
13961 DRUNTIME_OS_DARWIN_TRUE
=
13962 DRUNTIME_OS_DARWIN_FALSE
='#'
13964 DRUNTIME_OS_DARWIN_TRUE
='#'
13965 DRUNTIME_OS_DARWIN_FALSE
=
13968 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
13969 DRUNTIME_OS_DRAGONFLYBSD_TRUE
=
13970 DRUNTIME_OS_DRAGONFLYBSD_FALSE
='#'
13972 DRUNTIME_OS_DRAGONFLYBSD_TRUE
='#'
13973 DRUNTIME_OS_DRAGONFLYBSD_FALSE
=
13976 if test "$druntime_target_os_parsed" = "freebsd"; then
13977 DRUNTIME_OS_FREEBSD_TRUE
=
13978 DRUNTIME_OS_FREEBSD_FALSE
='#'
13980 DRUNTIME_OS_FREEBSD_TRUE
='#'
13981 DRUNTIME_OS_FREEBSD_FALSE
=
13984 if test "$druntime_target_os_parsed" = "netbsd"; then
13985 DRUNTIME_OS_NETBSD_TRUE
=
13986 DRUNTIME_OS_NETBSD_FALSE
='#'
13988 DRUNTIME_OS_NETBSD_TRUE
='#'
13989 DRUNTIME_OS_NETBSD_FALSE
=
13992 if test "$druntime_target_os_parsed" = "openbsd"; then
13993 DRUNTIME_OS_OPENBSD_TRUE
=
13994 DRUNTIME_OS_OPENBSD_FALSE
='#'
13996 DRUNTIME_OS_OPENBSD_TRUE
='#'
13997 DRUNTIME_OS_OPENBSD_FALSE
=
14000 if test "$druntime_target_os_parsed" = "linux"; then
14001 DRUNTIME_OS_LINUX_TRUE
=
14002 DRUNTIME_OS_LINUX_FALSE
='#'
14004 DRUNTIME_OS_LINUX_TRUE
='#'
14005 DRUNTIME_OS_LINUX_FALSE
=
14008 if test "$druntime_target_os_parsed" = "mingw"; then
14009 DRUNTIME_OS_MINGW_TRUE
=
14010 DRUNTIME_OS_MINGW_FALSE
='#'
14012 DRUNTIME_OS_MINGW_TRUE
='#'
14013 DRUNTIME_OS_MINGW_FALSE
=
14016 if test "$druntime_target_os_parsed" = "solaris"; then
14017 DRUNTIME_OS_SOLARIS_TRUE
=
14018 DRUNTIME_OS_SOLARIS_FALSE
='#'
14020 DRUNTIME_OS_SOLARIS_TRUE
='#'
14021 DRUNTIME_OS_SOLARIS_FALSE
=
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14028 $as_echo_n "checking for thread model used by GDC... " >&6; }
14029 d_thread_model
=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14031 $as_echo "$d_thread_model" >&6; }
14033 # Map from thread model to thread interface.
14035 case $d_thread_model in
14036 aix
) DCFG_THREAD_MODEL
="Posix" ;;
14037 lynx
) DCFG_THREAD_MODEL
="Posix" ;;
14038 posix
) DCFG_THREAD_MODEL
="Posix" ;;
14039 single
) DCFG_THREAD_MODEL
="Single" ;;
14040 win32
) DCFG_THREAD_MODEL
="Win32" ;;
14041 # TODO: These targets need porting.
14042 dce|mipssde|rtems|tpf|vxworks
)
14043 DCFG_THREAD_MODEL
="Single" ;;
14044 *) as_fn_error
"Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14051 ac_cpp
='$CPP $CPPFLAGS'
14052 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14053 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14054 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14057 $as_echo_n "checking for ARM unwinder... " >&6; }
14058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14059 /* end confdefs.h. */
14060 #include <unwind.h>
14065 #if __ARM_EABI_UNWINDER__
14073 if ac_fn_c_try_compile
"$LINENO"; then :
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14075 $as_echo "no" >&6; }
14076 DCFG_ARM_EABI_UNWINDER
=false
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14079 $as_echo "yes" >&6; }
14080 DCFG_ARM_EABI_UNWINDER
=true
14082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14084 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14085 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
=
14086 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
='#'
14088 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
='#'
14089 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
=
14093 ac_cpp
='$CPP $CPPFLAGS'
14094 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14095 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14096 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14101 ac_cpp
='$CPP $CPPFLAGS'
14102 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14103 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14104 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14107 $as_echo_n "checking for minfo section bracketing... " >&6; }
14108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14109 /* end confdefs.h. */
14111 void* module_info_ptr __attribute__((section ("minfo")));
14112 extern void* __start_minfo __attribute__((visibility ("hidden")));
14113 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14117 // Never run, just to prevent compiler from optimizing access
14118 return &__start_minfo == &__stop_minfo;
14122 if ac_fn_c_try_link
"$LINENO"; then :
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14124 $as_echo "yes" >&6; }
14125 DCFG_MINFO_BRACKETING
=true
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128 $as_echo "no" >&6; }
14129 DCFG_MINFO_BRACKETING
=false
14131 rm -f core conftest.err conftest.
$ac_objext \
14132 conftest
$ac_exeext conftest.
$ac_ext
14135 ac_cpp
='$CPP $CPPFLAGS'
14136 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14137 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14138 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14144 gdc_save_DFLAGS
=$GDCFLAGS
14145 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14148 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14149 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14150 ac_compiler_gnu
=yes
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14153 $as_echo_n "checking for library containing malloc... " >&6; }
14154 if ${ac_cv_search_malloc+:} false
; then :
14155 $as_echo_n "(cached) " >&6
14157 ac_func_search_save_LIBS
=$LIBS
14158 cat > conftest.
$ac_ext <<_ACEOF
14160 extern(C) int malloc();
14162 extern(C) int main() {
14163 malloc(); return 0;
14166 for ac_lib
in '' c
; do
14167 if test -z "$ac_lib"; then
14168 ac_res
="none required"
14171 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14173 if ac_fn_d_try_link
"$LINENO"; then :
14174 ac_cv_search_malloc
=$ac_res
14176 rm -f core conftest.err conftest.
$ac_objext \
14178 if ${ac_cv_search_malloc+:} false
; then :
14182 if ${ac_cv_search_malloc+:} false
; then :
14185 ac_cv_search_malloc
=no
14187 rm conftest.
$ac_ext
14188 LIBS
=$ac_func_search_save_LIBS
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14191 $as_echo "$ac_cv_search_malloc" >&6; }
14192 ac_res
=$ac_cv_search_malloc
14193 if test "$ac_res" != no
; then :
14194 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14199 enable_thread_lib
=yes
14200 # Check whether --enable-thread-lib was given.
14201 if test "${enable_thread_lib+set}" = set; then :
14202 enableval
=$enable_thread_lib;
14206 if test "x$enable_thread_lib" = "xyes"; then :
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14209 $as_echo_n "checking for library containing pthread_create... " >&6; }
14210 if ${ac_cv_search_pthread_create+:} false
; then :
14211 $as_echo_n "(cached) " >&6
14213 ac_func_search_save_LIBS
=$LIBS
14214 cat > conftest.
$ac_ext <<_ACEOF
14216 extern(C) int pthread_create();
14218 extern(C) int main() {
14219 pthread_create(); return 0;
14222 for ac_lib
in '' pthread
; do
14223 if test -z "$ac_lib"; then
14224 ac_res
="none required"
14227 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14229 if ac_fn_d_try_link
"$LINENO"; then :
14230 ac_cv_search_pthread_create
=$ac_res
14232 rm -f core conftest.err conftest.
$ac_objext \
14234 if ${ac_cv_search_pthread_create+:} false
; then :
14238 if ${ac_cv_search_pthread_create+:} false
; then :
14241 ac_cv_search_pthread_create
=no
14243 rm conftest.
$ac_ext
14244 LIBS
=$ac_func_search_save_LIBS
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14247 $as_echo "$ac_cv_search_pthread_create" >&6; }
14248 ac_res
=$ac_cv_search_pthread_create
14249 if test "$ac_res" != no
; then :
14250 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14257 if test "x$enable_thread_lib" = "xno"; then :
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14260 $as_echo_n "checking for thread library... " >&6; }
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14262 $as_echo "disabled" >&6; }
14266 as_ac_Lib
=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14268 $as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
14269 if eval \
${$as_ac_Lib+:} false
; then :
14270 $as_echo_n "(cached) " >&6
14272 ac_check_lib_save_LIBS
=$LIBS
14273 LIBS
="-l$enable_thread_lib $LIBS"
14274 cat > conftest.
$ac_ext <<_ACEOF
14276 extern(C) int pthread_create();
14278 extern(C) int main() {
14279 pthread_create(); return 0;
14282 if ac_fn_d_try_link
"$LINENO"; then :
14283 eval "$as_ac_Lib=yes"
14285 eval "$as_ac_Lib=no"
14287 rm -f core conftest.err conftest.
$ac_objext \
14288 conftest
$ac_exeext conftest.
$ac_ext
14289 LIBS
=$ac_check_lib_save_LIBS
14291 eval ac_res
=\$
$as_ac_Lib
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14293 $as_echo "$ac_res" >&6; }
14294 if eval test \"x\$
"$as_ac_Lib"\" = x
"yes"; then :
14295 cat >>confdefs.h
<<_ACEOF
14296 #define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14299 LIBS
="-l$enable_thread_lib $LIBS"
14303 as_fn_error $?
"Thread library not found" "$LINENO" 5
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14313 $as_echo_n "checking for library containing cosf... " >&6; }
14314 if ${ac_cv_search_cosf+:} false
; then :
14315 $as_echo_n "(cached) " >&6
14317 ac_func_search_save_LIBS
=$LIBS
14318 cat > conftest.
$ac_ext <<_ACEOF
14320 extern(C) int cosf();
14322 extern(C) int main() {
14326 for ac_lib
in '' m
; do
14327 if test -z "$ac_lib"; then
14328 ac_res
="none required"
14331 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14333 if ac_fn_d_try_link
"$LINENO"; then :
14334 ac_cv_search_cosf
=$ac_res
14336 rm -f core conftest.err conftest.
$ac_objext \
14338 if ${ac_cv_search_cosf+:} false
; then :
14342 if ${ac_cv_search_cosf+:} false
; then :
14345 ac_cv_search_cosf
=no
14347 rm conftest.
$ac_ext
14348 LIBS
=$ac_func_search_save_LIBS
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14351 $as_echo "$ac_cv_search_cosf" >&6; }
14352 ac_res
=$ac_cv_search_cosf
14353 if test "$ac_res" != no
; then :
14354 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14359 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14360 if ${ac_cv_search_clock_gettime+:} false
; then :
14361 $as_echo_n "(cached) " >&6
14363 ac_func_search_save_LIBS
=$LIBS
14364 cat > conftest.
$ac_ext <<_ACEOF
14366 extern(C) int clock_gettime();
14368 extern(C) int main() {
14369 clock_gettime(); return 0;
14372 for ac_lib
in '' rt
; do
14373 if test -z "$ac_lib"; then
14374 ac_res
="none required"
14377 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14379 if ac_fn_d_try_link
"$LINENO"; then :
14380 ac_cv_search_clock_gettime
=$ac_res
14382 rm -f core conftest.err conftest.
$ac_objext \
14384 if ${ac_cv_search_clock_gettime+:} false
; then :
14388 if ${ac_cv_search_clock_gettime+:} false
; then :
14391 ac_cv_search_clock_gettime
=no
14393 rm conftest.
$ac_ext
14394 LIBS
=$ac_func_search_save_LIBS
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14397 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14398 ac_res
=$ac_cv_search_clock_gettime
14399 if test "$ac_res" != no
; then :
14400 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14405 # This checks to see if the host supports the compiler-generated builtins
14406 # for atomic operations for various integral sizes. Note, this is intended
14407 # to be an all-or-nothing switch, so all the atomic operations that are
14408 # used should be checked.
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14410 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14411 if ${druntime_cv_atomic_byte+:} false
; then :
14412 $as_echo_n "(cached) " >&6
14415 cat > conftest.
$ac_ext <<_ACEOF
14417 import gcc.builtins;
14419 extern(C) int main() {
14423 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14424 __atomic_load_1(&c1, 5);
14425 __atomic_store_1(&c1, c2, 5);
14430 if ac_fn_d_try_link
"$LINENO"; then :
14431 druntime_cv_atomic_byte
=yes
14433 druntime_cv_atomic_byte
=no
14435 rm -f core conftest.err conftest.
$ac_objext \
14436 conftest
$ac_exeext conftest.
$ac_ext
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14441 $as_echo "$druntime_cv_atomic_byte" >&6; }
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14444 $as_echo_n "checking for atomic builtins for short... " >&6; }
14445 if ${druntime_cv_atomic_short+:} false
; then :
14446 $as_echo_n "(cached) " >&6
14449 cat > conftest.
$ac_ext <<_ACEOF
14451 import gcc.builtins;
14453 extern(C) int main() {
14457 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14458 __atomic_load_2(&c1, 5);
14459 __atomic_store_2(&c1, c2, 5);
14464 if ac_fn_d_try_link
"$LINENO"; then :
14465 druntime_cv_atomic_short
=yes
14467 druntime_cv_atomic_short
=no
14469 rm -f core conftest.err conftest.
$ac_objext \
14470 conftest
$ac_exeext conftest.
$ac_ext
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14475 $as_echo "$druntime_cv_atomic_short" >&6; }
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14478 $as_echo_n "checking for atomic builtins for int... " >&6; }
14479 if ${druntime_cv_atomic_int+:} false
; then :
14480 $as_echo_n "(cached) " >&6
14483 cat > conftest.
$ac_ext <<_ACEOF
14485 import gcc.builtins;
14487 extern(C) int main() {
14491 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14492 __atomic_load_4(&c1, 5);
14493 __atomic_store_4(&c1, c2, 5);
14498 if ac_fn_d_try_link
"$LINENO"; then :
14499 druntime_cv_atomic_int
=yes
14501 druntime_cv_atomic_int
=no
14503 rm -f core conftest.err conftest.
$ac_objext \
14504 conftest
$ac_exeext conftest.
$ac_ext
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14509 $as_echo "$druntime_cv_atomic_int" >&6; }
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14512 $as_echo_n "checking for atomic builtins for long... " >&6; }
14513 if ${druntime_cv_atomic_long+:} false
; then :
14514 $as_echo_n "(cached) " >&6
14517 cat > conftest.
$ac_ext <<_ACEOF
14519 import gcc.builtins;
14521 extern(C) int main() {
14525 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14526 __atomic_load_8(&c1, 5);
14527 __atomic_store_8(&c1, c2, 5);
14532 if ac_fn_d_try_link
"$LINENO"; then :
14533 druntime_cv_atomic_long
=yes
14535 druntime_cv_atomic_long
=no
14537 rm -f core conftest.err conftest.
$ac_objext \
14538 conftest
$ac_exeext conftest.
$ac_ext
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14543 $as_echo "$druntime_cv_atomic_long" >&6; }
14545 # Have atomic builtin support if all but the long test above passes.
14546 DCFG_HAVE_ATOMIC_BUILTINS
=false
14547 if test "$druntime_cv_atomic_byte" = yes \
14548 && test "$druntime_cv_atomic_short" = yes \
14549 && test "$druntime_cv_atomic_int" = yes; then \
14550 DCFG_HAVE_ATOMIC_BUILTINS
=true
14553 # Have 64-bit atomic support if the long test above passes.
14554 DCFG_HAVE_64BIT_ATOMICS
=false
14555 if test "$druntime_cv_atomic_long" = yes; then
14556 DCFG_HAVE_64BIT_ATOMICS
=true
14563 ac_cpp
='$CPP $CPPFLAGS'
14564 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14565 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14566 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14569 GDCFLAGS
=$gdc_save_DFLAGS
14574 # Check whether --with-libatomic was given.
14575 if test "${with_libatomic+set}" = set; then :
14576 withval
=$with_libatomic;
14580 DCFG_HAVE_LIBATOMIC
=false
14582 if test "x$with_libatomic" != "xno"; then :
14584 DCFG_HAVE_LIBATOMIC
=true
14585 LIBATOMIC
=..
/..
/libatomic
/libatomic_convenience.la
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14590 $as_echo_n "checking for libatomic... " >&6; }
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14592 $as_echo "disabled" >&6; }
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
14606 BACKTRACE_SUPPORTED
=false
14607 BACKTRACE_USES_MALLOC
=false
14608 BACKTRACE_SUPPORTS_THREADS
=false
14612 # Check whether --with-libbacktrace was given.
14613 if test "${with_libbacktrace+set}" = set; then :
14614 withval
=$with_libbacktrace;
14618 if test "x$with_libbacktrace" != "xno"; then :
14620 LIBBACKTRACE
=..
/..
/libbacktrace
/libbacktrace.la
14622 gdc_save_CPPFLAGS
=$CPPFLAGS
14623 CPPFLAGS
+=" -I../libbacktrace "
14625 ac_fn_c_check_header_mongrel
"$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14626 if test "x$ac_cv_header_backtrace_supported_h" = xyes
; then :
14627 have_libbacktrace_h
=true
14629 have_libbacktrace_h
=false
14634 if $have_libbacktrace_h; then
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14636 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14638 /* end confdefs.h. */
14640 #include <backtrace-supported.h>
14641 #if BACKTRACE_SUPPORTED
14642 FOUND_LIBBACKTRACE_RESULT_GDC
14646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14647 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14648 BACKTRACE_SUPPORTED
=true
14650 BACKTRACE_SUPPORTED
=false
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14655 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14658 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14660 /* end confdefs.h. */
14662 #include <backtrace-supported.h>
14663 #if BACKTRACE_USES_MALLOC
14664 FOUND_LIBBACKTRACE_RESULT_GDC
14668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14669 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14670 BACKTRACE_USES_MALLOC
=true
14672 BACKTRACE_USES_MALLOC
=false
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14677 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14680 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14682 /* end confdefs.h. */
14684 #include <backtrace-supported.h>
14685 #if BACKTRACE_SUPPORTS_THREADS
14686 FOUND_LIBBACKTRACE_RESULT_GDC
14690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14691 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14692 BACKTRACE_SUPPORTS_THREADS
=true
14694 BACKTRACE_SUPPORTS_THREADS
=false
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14699 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14701 CPPFLAGS
=$gdc_save_CPPFLAGS
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14706 $as_echo_n "checking for libbacktrace... " >&6; }
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14708 $as_echo "disabled" >&6; }
14717 ac_cpp
='$CPP $CPPFLAGS'
14718 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14719 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14720 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14724 # Libtool has already checked this, so re-use the inferred dlopen lib.
14725 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14727 LIBS
="$LIBS $lt_cv_dlopen_libs"
14733 # Check whether --with-target-system-zlib was given.
14734 if test "${with_target_system_zlib+set}" = set; then :
14735 withval
=$with_target_system_zlib;
14740 if test "x$with_target_system_zlib" = "xyes"; then :
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
14743 $as_echo_n "checking for deflate in -lz... " >&6; }
14744 if ${ac_cv_lib_z_deflate+:} false
; then :
14745 $as_echo_n "(cached) " >&6
14747 ac_check_lib_save_LIBS
=$LIBS
14749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14750 /* end confdefs.h. */
14752 /* Override any GCC internal prototype to avoid an error.
14753 Use char because int might match the return type of a GCC
14754 builtin and then its argument prototype would still apply. */
14767 if ac_fn_c_try_link
"$LINENO"; then :
14768 ac_cv_lib_z_deflate
=yes
14770 ac_cv_lib_z_deflate
=no
14772 rm -f core conftest.err conftest.
$ac_objext \
14773 conftest
$ac_exeext conftest.
$ac_ext
14774 LIBS
=$ac_check_lib_save_LIBS
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
14777 $as_echo "$ac_cv_lib_z_deflate" >&6; }
14778 if test "x$ac_cv_lib_z_deflate" = xyes
; then :
14784 as_fn_error $?
"System zlib not found" "$LINENO" 5
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
14792 $as_echo_n "checking for zlib... " >&6; }
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14794 $as_echo "just compiled" >&6; }
14798 if test "$with_target_system_zlib" = yes; then
14799 DRUNTIME_ZLIB_SYSTEM_TRUE
=
14800 DRUNTIME_ZLIB_SYSTEM_FALSE
='#'
14802 DRUNTIME_ZLIB_SYSTEM_TRUE
='#'
14803 DRUNTIME_ZLIB_SYSTEM_FALSE
=
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
14811 $as_echo_n "checking D GCC version... " >&6; }
14812 gcc_version
=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
14814 $as_echo "$gcc_version" >&6; }
14818 # Check whether --with-cross-host was given.
14819 if test "${with_cross_host+set}" = set; then :
14820 withval
=$with_cross_host;
14824 libphobos_toolexecdir
=no
14825 libphobos_toolexeclibdir
=no
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
14828 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
14829 # Check whether --enable-version-specific-runtime-libs was given.
14830 if test "${enable_version_specific_runtime_libs+set}" = set; then :
14831 enableval
=$enable_version_specific_runtime_libs; case "$enableval" in
14832 yes) version_specific_libs
=yes ;;
14833 no
) version_specific_libs
=no
;;
14834 *) as_fn_error $?
"Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
14837 version_specific_libs
=no
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
14841 $as_echo "$version_specific_libs" >&6; }
14843 # Version-specific runtime libs processing.
14844 if test $version_specific_libs = yes; then
14845 libphobos_toolexecdir
='${libdir}/gcc/${host_alias}'
14846 libphobos_toolexeclibdir
='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
14848 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
14849 # Install a library built with a cross compiler in tooldir, not libdir.
14850 if test -n "$with_cross_host" && test x
"$with_cross_host" != x
"no"; then
14851 libphobos_toolexecdir
='${exec_prefix}/${host_alias}'
14852 libphobos_toolexeclibdir
='${toolexecdir}/lib'
14854 libphobos_toolexecdir
='${libdir}/gcc/${host_alias}'
14855 libphobos_toolexeclibdir
='${libdir}'
14857 multi_os_directory
=`$GDC -print-multi-os-directory`
14858 case $multi_os_directory in
14859 .
) ;; # Avoid trailing /.
14860 *) libphobos_toolexeclibdir
=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
14866 # Default case for install directory for D sources files.
14867 gdc_include_dir
='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
14871 # Add dependencies for libgphobos.spec file
14872 SPEC_PHOBOS_DEPS
="$LIBS"
14875 # Libdruntime / phobos soname version
14876 libtool_VERSION
=76:3:0
14879 # Set default flags (after DRUNTIME_WERROR!)
14880 if test -z "$GDCFLAGS"; then
14881 GDCFLAGS
="-Wall $WERROR_FLAG -g -frelease -O2"
14885 if test -z "$GDCFLAGSX"; then
14886 GDCFLAGSX
="-Wall $WERROR_FLAG -g -fno-release -funittest"
14890 # Sanity check for the cross-compilation case:
14891 ac_fn_c_check_header_mongrel
"$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
14892 if test "x$ac_cv_header_stdio_h" = xyes
; then :
14895 as_fn_error $?
"cannot find stdio.h." "$LINENO" 5
14900 ac_config_files
="$ac_config_files Makefile"
14903 ac_config_files
="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
14905 ac_config_files
="$ac_config_files src/libgphobos.spec"
14907 ac_config_files
="$ac_config_files testsuite/testsuite_flags"
14910 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
14911 # that multilib installs will end up installed in the correct place.
14912 # The testsuite needs it for multilib-aware ABI baseline files.
14913 # To work around this not being passed down from config-ml.in ->
14914 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
14915 # append it here. Only modify Makefiles that have just been created.
14917 # Also, get rid of this simulated-VPATH thing that automake does.
14918 ac_config_files
="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
14921 cat >confcache
<<\_ACEOF
14922 # This file is a shell script that caches the results of configure
14923 # tests run on this system so they can be shared between configure
14924 # scripts and configure runs, see configure's option --config-cache.
14925 # It is not useful on other systems. If it contains results you don't
14926 # want to keep, you may remove or edit it.
14928 # config.status only pays attention to the cache file if you give it
14929 # the --recheck option to rerun configure.
14931 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14932 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14933 # following values.
14937 # The following way of writing the cache mishandles newlines in values,
14938 # but we know of no workaround that is simple, portable, and efficient.
14939 # So, we kill variables containing newlines.
14940 # Ultrix sh set writes to stderr and can't be redirected directly,
14941 # and sets the high bit in the cache file unless we assign to the vars.
14943 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14944 eval ac_val
=\$
$ac_var
14948 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14949 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14952 _ | IFS | as_nl
) ;; #(
14953 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14954 *) { eval $ac_var=; unset $ac_var;} ;;
14960 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14961 *${as_nl}ac_space
=\
*)
14962 # `set' does not quote correctly, so add quotes: double-quote
14963 # substitution turns \\\\ into \\, and sed turns \\ into \.
14966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14969 # `set' quotes correctly as required by POSIX, so do not add quotes.
14970 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14979 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14981 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14983 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14984 if test -w "$cache_file"; then
14985 if test "x$cache_file" != "x/dev/null"; then
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14987 $as_echo "$as_me: updating cache $cache_file" >&6;}
14988 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
14989 cat confcache
>"$cache_file"
14991 case $cache_file in #(
14993 mv -f confcache
"$cache_file"$$
&&
14994 mv -f "$cache_file"$$
"$cache_file" ;; #(
14996 mv -f confcache
"$cache_file" ;;
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15002 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15007 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15008 # Let make expand exec_prefix.
15009 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15011 DEFS
=-DHAVE_CONFIG_H
15016 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15017 # 1. Remove the extension, and $U if already installed.
15018 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15019 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15020 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15021 # will be set to the directory where LIBOBJS objects are built.
15022 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15023 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15025 LIBOBJS
=$ac_libobjs
15027 LTLIBOBJS
=$ac_ltlibobjs
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15031 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15032 if test -n "$am_sleep_pid"; then
15033 # Hide warnings about reused PIDs.
15034 wait $am_sleep_pid 2>/dev
/null
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15037 $as_echo "done" >&6; }
15038 if test -n "$EXEEXT"; then
15040 am__EXEEXT_FALSE
='#'
15042 am__EXEEXT_TRUE
='#'
15046 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15047 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
15048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15050 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
15051 as_fn_error $?
"conditional \"ENABLE_SHARED\" was never defined.
15052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15054 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
15055 as_fn_error $?
"conditional \"ENABLE_STATIC\" was never defined.
15056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15058 if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
15059 as_fn_error $?
"conditional \"DRUNTIME_GC_ENABLE\" was never defined.
15060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15062 if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
15063 as_fn_error $?
"conditional \"DRUNTIME_OS_UNIX\" was never defined.
15064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15066 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15067 as_fn_error $?
"conditional \"DRUNTIME_OS_AIX\" was never defined.
15068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15070 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15071 as_fn_error $?
"conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15074 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15075 as_fn_error $?
"conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15078 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15079 as_fn_error $?
"conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15082 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15083 as_fn_error $?
"conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15086 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15087 as_fn_error $?
"conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15090 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15091 as_fn_error $?
"conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15094 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15095 as_fn_error $?
"conditional \"DRUNTIME_OS_LINUX\" was never defined.
15096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15098 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15099 as_fn_error $?
"conditional \"DRUNTIME_OS_MINGW\" was never defined.
15100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15102 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15103 as_fn_error $?
"conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15106 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15107 as_fn_error $?
"conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15110 if test -z "${DRUNTIME_ZLIB_SYSTEM_TRUE}" && test -z "${DRUNTIME_ZLIB_SYSTEM_FALSE}"; then
15111 as_fn_error $?
"conditional \"DRUNTIME_ZLIB_SYSTEM\" was never defined.
15112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15115 : "${CONFIG_STATUS=./config.status}"
15117 ac_clean_files_save
=$ac_clean_files
15118 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15120 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15122 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15124 # Generated by $as_me.
15125 # Run this file to recreate the current configuration.
15126 # Compiler output produced by configure, useful for debugging
15127 # configure, is in config.log if it exists.
15130 ac_cs_recheck=false
15133 SHELL=\${CONFIG_SHELL-$SHELL}
15136 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15137 ## -------------------- ##
15138 ## M4sh Initialization. ##
15139 ## -------------------- ##
15141 # Be more Bourne compatible
15142 DUALCASE
=1; export DUALCASE
# for MKS sh
15143 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15146 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15147 # is contrary to our usage. Disable this feature.
15148 alias -g '${1+"$@"}'='"$@"'
15149 setopt NO_GLOB_SUBST
15151 case `(set -o) 2>/dev/null` in #(
15163 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15164 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15165 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15166 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15167 # Prefer a ksh shell builtin over an external printf program on Solaris,
15168 # but without wasting forks for bash or zsh.
15169 if test -z "$BASH_VERSION$ZSH_VERSION" \
15170 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15171 as_echo='print
-r --'
15172 as_echo_n='print
-rn --'
15173 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15174 as_echo='printf %s
\n'
15175 as_echo_n='printf %s
'
15177 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15178 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15179 as_echo_n='/usr
/ucb
/echo -n'
15181 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15182 as_echo_n_body='eval
15186 expr "X$arg" : "X\\(.*\\)$as_nl";
15187 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15189 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15191 export as_echo_n_body
15192 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15194 export as_echo_body
15195 as_echo='sh
-c $as_echo_body as_echo
'
15198 # The user is always right.
15199 if test "${PATH_SEPARATOR+set}" != set; then
15201 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15202 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15209 # We need space, tab and new line, in precisely that order. Quoting is
15210 # there to prevent editors from complaining about space-tab.
15211 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15212 # splitting by setting IFS to empty value.)
15215 # Find who we are. Look in the path if we contain no directory separator.
15218 *[\\/]* ) as_myself=$0 ;;
15219 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15220 for as_dir in $PATH
15223 test -z "$as_dir" && as_dir=.
15224 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15230 # We did not find ourselves, most probably we were run as `sh COMMAND'
15231 # in which case we are not to be found in the path.
15232 if test "x$as_myself" = x
; then
15235 if test ! -f "$as_myself"; then
15236 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15240 # Unset variables that we do not need and which cause bugs (e.g. in
15241 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15242 # suppresses any "Segmentation fault" message there. '((' could
15243 # trigger a bug in pdksh 5.2.14.
15244 for as_var
in BASH_ENV ENV MAIL MAILPATH
15245 do eval test x\
${$as_var+set} = xset \
15246 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15259 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15262 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15263 # ----------------------------------------
15264 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15265 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15266 # script with STATUS, using 1 if that was 0.
15269 as_status
=$1; test $as_status -eq 0 && as_status
=1
15271 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15272 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15274 $as_echo "$as_me: error: $2" >&2
15275 as_fn_exit
$as_status
15279 # as_fn_set_status STATUS
15280 # -----------------------
15281 # Set $? to STATUS, without forking.
15282 as_fn_set_status
()
15285 } # as_fn_set_status
15287 # as_fn_exit STATUS
15288 # -----------------
15289 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15293 as_fn_set_status
$1
15299 # Portably unset VAR.
15302 { eval $1=; unset $1;}
15304 as_unset
=as_fn_unset
15305 # as_fn_append VAR VALUE
15306 # ----------------------
15307 # Append the text in VALUE to the end of the definition contained in VAR. Take
15308 # advantage of any shell optimizations that allow amortized linear growth over
15309 # repeated appends, instead of the typical quadratic growth present in naive
15311 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15312 eval 'as_fn_append ()
15323 # as_fn_arith ARG...
15324 # ------------------
15325 # Perform arithmetic evaluation on the ARGs, and store the result in the
15326 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15327 # must be portable across $(()) and expr.
15328 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15329 eval 'as_fn_arith ()
15336 as_val
=`expr "$@" || test $? -eq 1`
15341 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15342 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15348 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15349 as_basename
=basename
15354 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15360 as_me
=`$as_basename -- "$0" ||
15361 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15362 X"$0" : 'X\(//\)$' \| \
15363 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15365 sed '/^.*\/\([^/][^/]*\)\/*$/{
15379 # Avoid depending upon Character Ranges.
15380 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15381 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15382 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15383 as_cr_digits
='0123456789'
15384 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15386 ECHO_C
= ECHO_N
= ECHO_T
=
15387 case `echo -n x` in #(((((
15389 case `echo 'xy\c'` in
15390 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15392 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15399 rm -f conf$$ conf$$.exe conf$$.
file
15400 if test -d conf$$.dir
; then
15401 rm -f conf$$.dir
/conf$$.
file
15404 mkdir conf$$.dir
2>/dev
/null
15406 if (echo >conf$$.
file) 2>/dev
/null
; then
15407 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15409 # ... but there are two gotchas:
15410 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15411 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15412 # In both cases, we have to default to `cp -pR'.
15413 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15415 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15423 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15424 rmdir conf$$.dir
2>/dev
/null
15429 # Create "$as_dir" as a directory, including parents if necessary.
15434 -*) as_dir
=.
/$as_dir;;
15436 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15440 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15441 *) as_qdir
=$as_dir;;
15443 as_dirs
="'$as_qdir' $as_dirs"
15444 as_dir
=`$as_dirname -- "$as_dir" ||
15445 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15446 X"$as_dir" : 'X\(//\)[^/]' \| \
15447 X"$as_dir" : 'X\(//\)$' \| \
15448 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15449 $as_echo X"$as_dir" |
15450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15454 /^X\(\/\/\)[^/].*/{
15467 test -d "$as_dir" && break
15469 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15470 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15474 if mkdir
-p .
2>/dev
/null
; then
15475 as_mkdir_p
='mkdir -p "$as_dir"'
15477 test -d .
/-p && rmdir .
/-p
15482 # as_fn_executable_p FILE
15483 # -----------------------
15484 # Test if FILE is an executable regular file.
15485 as_fn_executable_p
()
15487 test -f "$1" && test -x "$1"
15488 } # as_fn_executable_p
15489 as_test_x
='test -x'
15490 as_executable_p
=as_fn_executable_p
15492 # Sed expression to map a string onto a valid CPP name.
15493 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15495 # Sed expression to map a string onto a valid variable name.
15496 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15500 ## ----------------------------------- ##
15501 ## Main body of $CONFIG_STATUS script. ##
15502 ## ----------------------------------- ##
15504 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15507 # Save the log message, to keep $0 and so on meaningful, and to
15508 # report actual input values of CONFIG_FILES etc. instead of their
15509 # values after options handling.
15511 This file was extended by package-unused $as_me version-unused, which was
15512 generated by GNU Autoconf 2.69. Invocation command line was
15514 CONFIG_FILES = $CONFIG_FILES
15515 CONFIG_HEADERS = $CONFIG_HEADERS
15516 CONFIG_LINKS = $CONFIG_LINKS
15517 CONFIG_COMMANDS = $CONFIG_COMMANDS
15520 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15525 case $ac_config_files in *"
15526 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15529 case $ac_config_headers in *"
15530 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15535 # Files that config.status was made for.
15536 config_files="$ac_config_files"
15537 config_headers="$ac_config_headers"
15538 config_commands="$ac_config_commands"
15542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15544 \`$as_me' instantiates files and other configuration actions
15545 from templates according to the current configuration. Unless the files
15546 and actions are specified as TAGs, all are instantiated by default.
15548 Usage: $0 [OPTION]... [TAG]...
15550 -h, --help print this help, then exit
15551 -V, --version print version number and configuration settings, then exit
15552 --config print configuration, then exit
15553 -q, --quiet, --silent
15554 do not print progress messages
15555 -d, --debug don't remove temporary files
15556 --recheck update $as_me by reconfiguring in the same conditions
15557 --file=FILE[:TEMPLATE]
15558 instantiate the configuration file FILE
15559 --header=FILE[:TEMPLATE]
15560 instantiate the configuration header FILE
15562 Configuration files:
15565 Configuration headers:
15568 Configuration commands:
15571 Report bugs to the package provider."
15574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15575 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15577 package-unused config.status version-unused
15578 configured by $0, generated by GNU Autoconf 2.69,
15579 with options \\"\$ac_cs_config\\"
15581 Copyright (C) 2012 Free Software Foundation, Inc.
15582 This config.status script is free software; the Free Software Foundation
15583 gives unlimited permission to copy, distribute and modify it."
15590 test -n "\$AWK" || AWK=awk
15593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15594 # The default lists apply if the user does not specify any file.
15600 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15601 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15605 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15617 # Handling of the options.
15618 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15620 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15621 $as_echo "$ac_cs_version"; exit ;;
15622 --config |
--confi |
--conf |
--con |
--co |
--c )
15623 $as_echo "$ac_cs_config"; exit ;;
15624 --debug |
--debu |
--deb |
--de |
--d |
-d )
15626 --file |
--fil |
--fi |
--f )
15629 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15630 '') as_fn_error $?
"missing file argument" ;;
15632 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15633 ac_need_defaults
=false
;;
15634 --header |
--heade |
--head |
--hea )
15637 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15639 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15640 ac_need_defaults
=false
;;
15642 # Conflict between --help and --header
15643 as_fn_error $?
"ambiguous option: \`$1'
15644 Try \`$0 --help' for more information.";;
15645 --help |
--hel |
-h )
15646 $as_echo "$ac_cs_usage"; exit ;;
15647 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15648 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15651 # This is an error.
15652 -*) as_fn_error $?
"unrecognized option: \`$1'
15653 Try \`$0 --help' for more information." ;;
15655 *) as_fn_append ac_config_targets
" $1"
15656 ac_need_defaults
=false
;;
15662 ac_configure_extra_args
=
15664 if $ac_cs_silent; then
15666 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15671 if \$ac_cs_recheck; then
15672 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15674 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15675 CONFIG_SHELL='$SHELL'
15676 export CONFIG_SHELL
15681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15685 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15686 ## Running $as_me. ##
15692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15700 with_multisubdir="$with_multisubdir"
15701 with_multisrctop="$with_multisrctop"
15702 with_target_subdir="$with_target_subdir"
15703 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15704 multi_basedir="$multi_basedir"
15705 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15708 GFORTRAN="$GFORTRAN"
15712 # The HP-UX ksh and POSIX shell print the target directory to stdout
15713 # if CDPATH is set.
15714 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15716 sed_quote_subst='$sed_quote_subst'
15717 double_quote_subst='$double_quote_subst'
15718 delay_variable_subst='$delay_variable_subst'
15719 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15720 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15721 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15722 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15723 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15724 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15725 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15726 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15727 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15728 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15729 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15730 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15731 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15732 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15733 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15734 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15735 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15736 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15737 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15738 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15739 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15740 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15741 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15742 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15743 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15744 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15745 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15746 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15747 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15748 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15749 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15750 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15751 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15752 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15753 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15754 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15755 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15756 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15757 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15758 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15759 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15760 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15761 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15762 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15763 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15764 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15765 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15766 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15767 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"`'
15768 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15769 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15770 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15771 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15772 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15773 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15774 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15775 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15776 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15777 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15778 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15779 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15780 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15781 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15782 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15783 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15784 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15785 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15786 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15787 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15788 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15789 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15790 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15791 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15792 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15793 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15794 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15795 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15796 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15797 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15798 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15799 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15800 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15801 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15802 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15803 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15804 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15805 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15806 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15807 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15808 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15809 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15810 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15811 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15812 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15813 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15814 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15815 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15816 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15817 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15818 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15819 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15820 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15821 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15822 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15823 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15824 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15825 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15826 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15827 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15828 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15829 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15830 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15831 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15832 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15833 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15834 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15835 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15836 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15837 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15838 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15839 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
15840 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
15841 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
15842 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15843 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
15844 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
15845 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
15846 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
15847 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
15848 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
15849 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
15850 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
15851 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
15852 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15853 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15854 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
15855 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
15856 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
15857 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15858 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15859 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
15860 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15861 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
15862 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15863 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15864 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15865 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
15866 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
15867 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
15868 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
15869 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
15870 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
15871 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
15872 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
15873 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
15874 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
15875 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
15876 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
15877 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
15878 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
15879 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
15880 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
15881 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
15884 LTCFLAGS='$LTCFLAGS'
15885 compiler='$compiler_DEFAULT'
15887 # A function that is used when there is no print builtin or printf.
15888 func_fallback_echo ()
15890 eval 'cat <<_LTECHO_EOF
15895 # Quote evaled strings.
15909 deplibs_check_method \
15918 lt_cv_sys_global_symbol_pipe \
15919 lt_cv_sys_global_symbol_to_cdecl \
15920 lt_cv_sys_global_symbol_to_c_name_address \
15921 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15922 lt_prog_compiler_no_builtin_flag \
15923 lt_prog_compiler_wl \
15924 lt_prog_compiler_pic \
15925 lt_prog_compiler_static \
15926 lt_cv_prog_compiler_c_o \
15934 export_dynamic_flag_spec \
15935 whole_archive_flag_spec \
15936 compiler_needs_object \
15938 allow_undefined_flag \
15939 no_undefined_flag \
15940 hardcode_libdir_flag_spec \
15941 hardcode_libdir_flag_spec_ld \
15942 hardcode_libdir_separator \
15947 variables_saved_for_relink \
15949 library_names_spec \
15951 install_override_mode \
15958 lt_prog_compiler_no_builtin_flag_D \
15959 lt_prog_compiler_wl_D \
15960 lt_prog_compiler_pic_D \
15961 lt_prog_compiler_static_D \
15962 lt_cv_prog_compiler_c_o_D \
15963 export_dynamic_flag_spec_D \
15964 whole_archive_flag_spec_D \
15965 compiler_needs_object_D \
15967 allow_undefined_flag_D \
15968 no_undefined_flag_D \
15969 hardcode_libdir_flag_spec_D \
15970 hardcode_libdir_flag_spec_ld_D \
15971 hardcode_libdir_separator_D \
15972 fix_srcfile_path_D \
15973 exclude_expsyms_D \
15974 include_expsyms_D \
15975 file_list_spec_D; do
15976 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15977 *[\\\\\\\`\\"\\\$]*)
15978 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15981 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15986 # Double-quote double-evaled strings.
15987 for var in reload_cmds \
15988 old_postinstall_cmds \
15989 old_postuninstall_cmds \
15991 extract_expsyms_cmds \
15992 old_archive_from_new_cmds \
15993 old_archive_from_expsyms_cmds \
15995 archive_expsym_cmds \
15997 module_expsym_cmds \
15998 export_symbols_cmds \
16001 postuninstall_cmds \
16003 sys_lib_search_path_spec \
16004 sys_lib_dlsearch_path_spec \
16006 old_archive_cmds_D \
16007 old_archive_from_new_cmds_D \
16008 old_archive_from_expsyms_cmds_D \
16010 archive_expsym_cmds_D \
16012 module_expsym_cmds_D \
16013 export_symbols_cmds_D \
16015 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16016 *[\\\\\\\`\\"\\\$]*)
16017 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16020 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16025 ac_aux_dir='$ac_aux_dir'
16026 xsi_shell='$xsi_shell'
16027 lt_shell_append='$lt_shell_append'
16029 # See if we are running on zsh, and set the options which allow our
16030 # commands through without removal of \ escapes INIT.
16031 if test -n "\${ZSH_VERSION+set}" ; then
16032 setopt NO_GLOB_SUBST
16038 TIMESTAMP='$TIMESTAMP'
16049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16051 # Handling of arguments.
16052 for ac_config_target
in $ac_config_targets
16054 case $ac_config_target in
16055 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
16056 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
16057 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
16058 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16059 "libdruntime/gcc/config.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16060 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16061 "src/libgphobos.spec") CONFIG_FILES
="$CONFIG_FILES src/libgphobos.spec" ;;
16062 "testsuite/testsuite_flags") CONFIG_FILES
="$CONFIG_FILES testsuite/testsuite_flags" ;;
16063 "libdruntime/Makefile") CONFIG_FILES
="$CONFIG_FILES libdruntime/Makefile" ;;
16064 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
16065 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
16067 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16072 # If the user did not use the arguments to specify the items to instantiate,
16073 # then the envvar interface is used. Set only those that are not.
16074 # We use the long form for the default assignment because of an extremely
16075 # bizarre bug on SunOS 4.1.3.
16076 if $ac_need_defaults; then
16077 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16078 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16079 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16082 # Have a temporary directory for convenience. Make it in the build tree
16083 # simply because there is no reason against having it here, and in addition,
16084 # creating and moving files from /tmp can sometimes cause problems.
16085 # Hook for its removal unless debugging.
16086 # Note that there is a small window in which the directory will not be cleaned:
16087 # after its creation but before its name has been assigned to `$tmp'.
16091 trap 'exit_status=$?
16092 : "${ac_tmp:=$tmp}"
16093 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16095 trap 'as_fn_exit 1' 1 2 13 15
16097 # Create a (secure) tmp directory for tmp files.
16100 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16104 tmp
=.
/conf$$
-$RANDOM
16105 (umask 077 && mkdir
"$tmp")
16106 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16109 # Set up the scripts for CONFIG_FILES section.
16110 # No need to generate them if there are no CONFIG_FILES.
16111 # This happens for instance with `./config.status config.h'.
16112 if test -n "$CONFIG_FILES"; then
16115 ac_cr
=`echo X | tr X '\015'`
16116 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16117 # But we know of no other shell where ac_cr would be empty at this
16118 # point, so we can use a bashism as a fallback.
16119 if test "x$ac_cr" = x
; then
16120 eval ac_cr
=\$
\'\\r
\'
16122 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16123 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16126 ac_cs_awk_cr
=$ac_cr
16129 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16134 echo "cat >conf$$subs.awk <<_ACEOF" &&
16135 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16137 } >conf$$subs.sh ||
16138 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16139 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16141 for ac_last_try in false false false false false :; do
16142 . ./conf$$subs.sh ||
16143 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16145 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16146 if test $ac_delim_n = $ac_delim_num; then
16148 elif $ac_last_try; then
16149 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16151 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16154 rm -f conf$$subs.sh
16156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16157 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16161 s/^/S["/; s
/!.
*/"]=/
16171 s/\(.\{148\}\)..*/\1/
16173 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16178 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16185 s/\(.\{148\}\)..*/\1/
16187 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16191 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16196 ' <conf$$subs.awk | sed '
16201 ' >>$CONFIG_STATUS || ac_write_fail=1
16202 rm -f conf$$subs.awk
16203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16205 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16206 for (key in S) S_is_set[key] = 1
16212 nfields = split(line, field, "@
")
16214 len = length(field[1])
16215 for (i = 2; i < nfields; i++) {
16217 keylen = length(key)
16218 if (S_is_set[key]) {
16220 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16221 len += length(value) + length(field[++i])
16232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16233 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16234 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16237 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16238 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16241 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16242 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16243 # trailing colons and then remove the whole line if VPATH becomes empty
16244 # (actually we leave an empty line to preserve line numbers).
16245 if test "x
$srcdir" = x.; then
16246 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16265 fi # test -n "$CONFIG_FILES"
16267 # Set up the scripts for CONFIG_HEADERS section.
16268 # No need to generate them if there are no CONFIG_HEADERS.
16269 # This happens for instance with `./config.status Makefile'.
16270 if test -n "$CONFIG_HEADERS"; then
16271 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16275 # Transform confdefs.h into an awk script `defines.awk', embedded as
16276 # here-document in config.status, that substitutes the proper values into
16277 # config.h.in to produce config.h.
16279 # Create a delimiter string that does not exist in confdefs.h, to ease
16280 # handling of long lines.
16282 for ac_last_try in false false :; do
16283 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16284 if test -z "$ac_tt"; then
16286 elif $ac_last_try; then
16287 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16289 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16293 # For the awk script, D is an array of macro values keyed by name,
16294 # likewise P contains macro parameters if any. Preserve backslash
16295 # newline sequences.
16297 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16299 s/.\{148\}/&'"$ac_delim"'/g
16302 s/^[ ]*#[ ]*define[ ][ ]*/ /
16309 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16311 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16315 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16316 D["\
1"]=" \
3\\\\\\n
"\\/p
16318 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16323 s/.\{148\}/&'"$ac_delim"'/g
16328 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16331 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16333 ' <confdefs.h | sed '
16334 s/'"$ac_delim"'/"\\\
16335 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16338 for (key in D) D_is_set[key] = 1
16341 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16343 split(line, arg, " ")
16344 if (arg[1] == "#") {
16348 defundef
= substr
(arg
[1], 2)
16351 split(mac1
, mac2
, "(") #)
16353 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16354 if (D_is_set
[macro
]) {
16355 # Preserve the white space surrounding the "#".
16356 print prefix
"define", macro P
[macro
] D
[macro
]
16359 # Replace #undef with comments. This is necessary, for example,
16360 # in the case of _POSIX_SOURCE, which is predefined and required
16361 # on some systems where configure will not decide to define it.
16362 if (defundef
== "undef") {
16363 print
"/*", prefix defundef
, macro
, "*/"
16371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16372 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16373 fi # test -n "$CONFIG_HEADERS"
16376 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16381 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16383 case $ac_mode$ac_tag in
16385 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16386 :[FH
]-) ac_tag
=-:-;;
16387 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16404 -) ac_f
="$ac_tmp/stdin";;
16405 *) # Look for the file first in the build tree, then in the source tree
16406 # (if the path is not absolute). The absolute path cannot be DOS-style,
16407 # because $ac_f cannot contain `:'.
16411 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16413 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16415 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16416 as_fn_append ac_file_inputs
" '$ac_f'"
16419 # Let's still pretend it is `configure' which instantiates (i.e., don't
16420 # use $as_me), people would be surprised to read:
16421 # /* config.h. Generated by config.status. */
16422 configure_input
='Generated from '`
16423 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16425 if test x
"$ac_file" != x-
; then
16426 configure_input
="$ac_file. $configure_input"
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16428 $as_echo "$as_me: creating $ac_file" >&6;}
16430 # Neutralize special characters interpreted by sed in replacement strings.
16431 case $configure_input in #(
16432 *\
&* |
*\|
* |
*\\* )
16433 ac_sed_conf_input
=`$as_echo "$configure_input" |
16434 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16435 *) ac_sed_conf_input
=$configure_input;;
16439 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16440 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16445 ac_dir
=`$as_dirname -- "$ac_file" ||
16446 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16447 X"$ac_file" : 'X\(//\)[^/]' \| \
16448 X"$ac_file" : 'X\(//\)$' \| \
16449 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16450 $as_echo X"$ac_file" |
16451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16455 /^X\(\/\/\)[^/].*/{
16468 as_dir
="$ac_dir"; as_fn_mkdir_p
16472 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16474 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16475 # A ".." for each directory in $ac_dir_suffix.
16476 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16477 case $ac_top_builddir_sub in
16478 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16479 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16482 ac_abs_top_builddir
=$ac_pwd
16483 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16484 # for backward compatibility:
16485 ac_top_builddir
=$ac_top_build_prefix
16488 .
) # We are building in place.
16490 ac_top_srcdir
=$ac_top_builddir_sub
16491 ac_abs_top_srcdir
=$ac_pwd ;;
16492 [\\/]* | ?
:[\\/]* ) # Absolute name.
16493 ac_srcdir
=$srcdir$ac_dir_suffix;
16494 ac_top_srcdir
=$srcdir
16495 ac_abs_top_srcdir
=$srcdir ;;
16496 *) # Relative name.
16497 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16498 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16499 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16501 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16511 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16512 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16514 ac_MKDIR_P
=$MKDIR_P
16516 [\\/$
]* | ?
:[\\/]* ) ;;
16517 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
16521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16522 # If the template does not know about datarootdir, expand it.
16523 # FIXME: This hack should be removed a few years after 2.60.
16524 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16535 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16536 *datarootdir
*) ac_datarootdir_seen
=yes;;
16537 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16539 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16542 ac_datarootdir_hack='
16543 s&@datadir@&$datadir&g
16544 s&@docdir@&$docdir&g
16545 s&@infodir@&$infodir&g
16546 s&@localedir@&$localedir&g
16547 s&@mandir@&$mandir&g
16548 s&\\\${datarootdir}&$datarootdir&g' ;;
16552 # Neutralize VPATH when `$srcdir' = `.'.
16553 # Shell code in configure.ac might set extrasub.
16554 # FIXME: do we really want to maintain this feature?
16555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16556 ac_sed_extra="$ac_vpsub
16559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16561 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16562 s|@configure_input@|
$ac_sed_conf_input|
;t t
16563 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16564 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16565 s
&@srcdir@
&$ac_srcdir&;t t
16566 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16567 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16568 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16569 s
&@builddir@
&$ac_builddir&;t t
16570 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16571 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16572 s
&@INSTALL@
&$ac_INSTALL&;t t
16573 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
16574 $ac_datarootdir_hack
16576 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16577 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16579 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16580 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16581 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16582 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16584 which seems to be undefined. Please make sure it is defined" >&5
16585 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16586 which seems to be undefined. Please make sure it is defined" >&2;}
16588 rm -f "$ac_tmp/stdin"
16590 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16591 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16593 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16599 if test x"$ac_file" != x-; then
16601 $as_echo "/* $configure_input */" \
16602 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16603 } >"$ac_tmp/config.h" \
16604 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16605 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16607 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16610 mv "$ac_tmp/config.h" "$ac_file" \
16611 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16614 $as_echo "/* $configure_input */" \
16615 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16616 || as_fn_error $? "could not create -" "$LINENO" 5
16618 # Compute "$ac_file"'s index
in $config_headers.
16621 for _am_header
in $config_headers :; do
16622 case $_am_header in
16623 $_am_arg |
$_am_arg:* )
16626 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
16629 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16630 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16631 X"$_am_arg" : 'X\(//\)[^/]' \| \
16632 X"$_am_arg" : 'X\(//\)$' \| \
16633 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16634 $as_echo X"$_am_arg" |
16635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16639 /^X\(\/\/\)[^/].*/{
16651 s/.*/./; q'`/stamp-h
$_am_stamp_count
16654 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16655 $as_echo "$as_me: executing $ac_file commands" >&6;}
16660 case $ac_file$ac_mode in
16662 # Only add multilib support code if we just rebuilt the top-level
16664 case " $CONFIG_FILES " in
16666 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
16671 # See if we are running on zsh, and set the options which allow our
16672 # commands through without removal of \ escapes.
16673 if test -n "${ZSH_VERSION+set}" ; then
16674 setopt NO_GLOB_SUBST
16677 cfgfile
="${ofile}T"
16678 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16681 cat <<_LT_EOF >> "$cfgfile"
16684 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16685 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16686 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16687 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16689 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16690 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16691 # Written by Gordon Matzigkeit, 1996
16693 # This file is part of GNU Libtool.
16695 # GNU Libtool is free software; you can redistribute it and/or
16696 # modify it under the terms of the GNU General Public License as
16697 # published by the Free Software Foundation; either version 2 of
16698 # the License, or (at your option) any later version.
16700 # As a special exception to the GNU General Public License,
16701 # if you distribute this file as part of a program or library that
16702 # is built using GNU Libtool, you may include this file under the
16703 # same distribution terms that you use for the rest of that program.
16705 # GNU Libtool is distributed in the hope that it will be useful,
16706 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16707 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16708 # GNU General Public License for more details.
16710 # You should have received a copy of the GNU General Public License
16711 # along with GNU Libtool; see the file COPYING. If not, a copy
16712 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16713 # obtained by writing to the Free Software Foundation, Inc.,
16714 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16717 # The names of the tagged configurations supported by this script.
16718 available_tags="D "
16720 # ### BEGIN LIBTOOL CONFIG
16722 # Which release of libtool.m4 was used?
16723 macro_version=$macro_version
16724 macro_revision=$macro_revision
16726 # Whether or not to build shared libraries.
16727 build_libtool_libs=$enable_shared
16729 # Whether or not to build static libraries.
16730 build_old_libs=$enable_static
16732 # What type of objects to build.
16735 # Whether or not to optimize for fast installation.
16736 fast_install=$enable_fast_install
16738 # Shell to use when invoking shell scripts.
16741 # An echo program that protects backslashes.
16745 host_alias=$host_alias
16749 # The build system.
16750 build_alias=$build_alias
16754 # A sed program that does not truncate output.
16757 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16758 Xsed="\$SED -e 1s/^X//"
16760 # A grep program that handles long lines.
16766 # A literal string matcher.
16769 # A BSD- or MS-compatible name lister.
16772 # Whether we need soft or hard links.
16775 # What is the maximum length of a command?
16776 max_cmd_len=$max_cmd_len
16778 # Object file suffix (normally "o").
16781 # Executable file suffix (normally "").
16784 # whether the shell understands "unset".
16787 # turn spaces into newlines.
16790 # turn newlines into spaces.
16793 # An object symbol dumper.
16794 OBJDUMP=$lt_OBJDUMP
16796 # Method to check whether dependent libraries are shared objects.
16797 deplibs_check_method=$lt_deplibs_check_method
16799 # Command to use when deplibs_check_method == "file_magic".
16800 file_magic_cmd=$lt_file_magic_cmd
16804 AR_FLAGS=$lt_AR_FLAGS
16806 # A symbol stripping program.
16809 # Commands used to install an old-style archive.
16811 old_postinstall_cmds=$lt_old_postinstall_cmds
16812 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16814 # Whether to use a lock for old archive extraction.
16815 lock_old_archive_extraction=$lock_old_archive_extraction
16820 # LTCC compiler flags.
16821 LTCFLAGS=$lt_CFLAGS
16823 # Take the output of nm and produce a listing of raw symbols and C names.
16824 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16826 # Transform the output of nm in a proper C declaration.
16827 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16829 # Transform the output of nm in a C name address pair.
16830 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16832 # Transform the output of nm in a C name address pair when lib prefix is needed.
16833 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16835 # The name of the directory that contains temporary libtool files.
16838 # Used to examine libraries when file_magic_cmd begins with "file".
16839 MAGIC_CMD=$MAGIC_CMD
16841 # Must we lock files when doing compilation?
16842 need_locks=$lt_need_locks
16844 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16845 DSYMUTIL=$lt_DSYMUTIL
16847 # Tool to change global to local symbols on Mac OS X.
16850 # Tool to manipulate fat objects and archives on Mac OS X.
16853 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16856 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16857 OTOOL64=$lt_OTOOL64
16859 # Old archive suffix (normally "a").
16862 # Shared library suffix (normally ".so").
16863 shrext_cmds=$lt_shrext_cmds
16865 # The commands to extract the exported symbol list from a shared archive.
16866 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16868 # Variables whose values should be saved in libtool wrapper scripts and
16869 # restored at link time.
16870 variables_saved_for_relink=$lt_variables_saved_for_relink
16872 # Do we need the "lib" prefix for modules?
16873 need_lib_prefix=$need_lib_prefix
16875 # Do we need a version for libraries?
16876 need_version=$need_version
16878 # Library versioning type.
16879 version_type=$version_type
16881 # Shared library runtime path variable.
16882 runpath_var=$runpath_var
16884 # Shared library path variable.
16885 shlibpath_var=$shlibpath_var
16887 # Is shlibpath searched before the hard-coded library search path?
16888 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16890 # Format of library name prefix.
16891 libname_spec=$lt_libname_spec
16893 # List of archive names. First name is the real one, the rest are links.
16894 # The last name is the one that the linker finds with -lNAME
16895 library_names_spec=$lt_library_names_spec
16897 # The coded name of the library, if different from the real name.
16898 soname_spec=$lt_soname_spec
16900 # Permission mode override for installation of shared libraries.
16901 install_override_mode=$lt_install_override_mode
16903 # Command to use after installation of a shared archive.
16904 postinstall_cmds=$lt_postinstall_cmds
16906 # Command to use after uninstallation of a shared archive.
16907 postuninstall_cmds=$lt_postuninstall_cmds
16909 # Commands used to finish a libtool library installation in a directory.
16910 finish_cmds=$lt_finish_cmds
16912 # As "finish_cmds", except a single script fragment to be evaled but
16914 finish_eval=$lt_finish_eval
16916 # Whether we should hardcode library paths into libraries.
16917 hardcode_into_libs=$hardcode_into_libs
16919 # Compile-time system search path for libraries.
16920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16922 # Run-time system search path for libraries.
16923 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16925 # Whether dlopen is supported.
16926 dlopen_support=$enable_dlopen
16928 # Whether dlopen of programs is supported.
16929 dlopen_self=$enable_dlopen_self
16931 # Whether dlopen of statically linked programs is supported.
16932 dlopen_self_static=$enable_dlopen_self_static
16934 # Commands to strip libraries.
16935 old_striplib=$lt_old_striplib
16936 striplib=$lt_striplib
16939 # The linker used to build libraries.
16942 # How to create reloadable object files.
16943 reload_flag=$lt_reload_flag
16944 reload_cmds=$lt_reload_cmds
16946 # Commands used to build an old-style archive.
16947 old_archive_cmds=$lt_old_archive_cmds
16949 # A language specific compiler.
16952 # Is the compiler the GNU compiler?
16955 # Compiler flag to turn off builtin functions.
16956 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16958 # How to pass a linker flag through the compiler.
16959 wl=$lt_lt_prog_compiler_wl
16961 # Additional compiler flags for building library objects.
16962 pic_flag=$lt_lt_prog_compiler_pic
16964 # Compiler flag to prevent dynamic linking.
16965 link_static_flag=$lt_lt_prog_compiler_static
16967 # Does compiler simultaneously support -c and -o options?
16968 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16970 # Whether or not to add -lc for building shared libraries.
16971 build_libtool_need_lc=$archive_cmds_need_lc
16973 # Whether or not to disallow shared libs when runtime libs are static.
16974 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16976 # Compiler flag to allow reflexive dlopens.
16977 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16979 # Compiler flag to generate shared objects directly from archives.
16980 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16982 # Whether the compiler copes with passing no objects directly.
16983 compiler_needs_object=$lt_compiler_needs_object
16985 # Create an old-style archive from a shared archive.
16986 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16988 # Create a temporary old-style archive to link instead of a shared archive.
16989 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16991 # Commands used to build a shared archive.
16992 archive_cmds=$lt_archive_cmds
16993 archive_expsym_cmds=$lt_archive_expsym_cmds
16995 # Commands used to build a loadable module if different from building
16996 # a shared archive.
16997 module_cmds=$lt_module_cmds
16998 module_expsym_cmds=$lt_module_expsym_cmds
17000 # Whether we are building with GNU ld or not.
17001 with_gnu_ld=$lt_with_gnu_ld
17003 # Flag that allows shared libraries with undefined symbols to be built.
17004 allow_undefined_flag=$lt_allow_undefined_flag
17006 # Flag that enforces no undefined symbols.
17007 no_undefined_flag=$lt_no_undefined_flag
17009 # Flag to hardcode \$libdir into a binary during linking.
17010 # This must work even if \$libdir does not exist
17011 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17013 # If ld is used when linking, flag to hardcode \$libdir into a binary
17014 # during linking. This must work even if \$libdir does not exist.
17015 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17017 # Whether we need a single "-rpath" flag with a separated argument.
17018 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17020 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17021 # DIR into the resulting binary.
17022 hardcode_direct=$hardcode_direct
17024 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17025 # DIR into the resulting binary and the resulting library dependency is
17026 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17027 # library is relocated.
17028 hardcode_direct_absolute=$hardcode_direct_absolute
17030 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17031 # into the resulting binary.
17032 hardcode_minus_L=$hardcode_minus_L
17034 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17035 # into the resulting binary.
17036 hardcode_shlibpath_var=$hardcode_shlibpath_var
17038 # Set to "yes" if building a shared library automatically hardcodes DIR
17039 # into the library and all subsequent libraries and executables linked
17041 hardcode_automatic=$hardcode_automatic
17043 # Set to yes if linker adds runtime paths of dependent libraries
17044 # to runtime path list.
17045 inherit_rpath=$inherit_rpath
17047 # Whether libtool must link a program against all its dependency libraries.
17048 link_all_deplibs=$link_all_deplibs
17050 # Fix the shell variable \$srcfile for the compiler.
17051 fix_srcfile_path=$lt_fix_srcfile_path
17053 # Set to "yes" if exported symbols are required.
17054 always_export_symbols=$always_export_symbols
17056 # The commands to list exported symbols.
17057 export_symbols_cmds=$lt_export_symbols_cmds
17059 # Symbols that should not be listed in the preloaded symbols.
17060 exclude_expsyms=$lt_exclude_expsyms
17062 # Symbols that must always be exported.
17063 include_expsyms=$lt_include_expsyms
17065 # Commands necessary for linking programs (against libraries) with templates.
17066 prelink_cmds=$lt_prelink_cmds
17068 # Specify filename containing input files.
17069 file_list_spec=$lt_file_list_spec
17071 # How to hardcode a shared library path into an executable.
17072 hardcode_action=$hardcode_action
17074 # ### END LIBTOOL CONFIG
17080 cat <<\_LT_EOF
>> "$cfgfile"
17081 # AIX sometimes has problems with the GCC collect2 program. For some
17082 # reason, if we set the COLLECT_NAMES environment variable, the problems
17083 # vanish in a puff of smoke.
17084 if test "X${COLLECT_NAMES+set}" != Xset
; then
17086 export COLLECT_NAMES
17093 ltmain
="$ac_aux_dir/ltmain.sh"
17096 # We use sed instead of cat because bash on DJGPP gets confused if
17097 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17098 # text mode, it properly converts lines to CR/LF. This bash problem
17099 # is reportedly fixed, but why not run on old versions too?
17100 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17101 ||
(rm -f "$cfgfile"; exit 1)
17105 cat << \_LT_EOF
>> "$cfgfile"
17107 # func_dirname file append nondir_replacement
17108 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17109 # otherwise set result to NONDIR_REPLACEMENT.
17113 */*) func_dirname_result
="${1%/*}${2}" ;;
17114 * ) func_dirname_result
="${3}" ;;
17118 # func_basename file
17121 func_basename_result
="${1##*/}"
17124 # func_dirname_and_basename file append nondir_replacement
17125 # perform func_basename and func_dirname in a single function
17127 # dirname: Compute the dirname of FILE. If nonempty,
17128 # add APPEND to the result, otherwise set result
17129 # to NONDIR_REPLACEMENT.
17130 # value returned in "$func_dirname_result"
17131 # basename: Compute filename of FILE.
17132 # value retuned in "$func_basename_result"
17133 # Implementation must be kept synchronized with func_dirname
17134 # and func_basename. For efficiency, we do not delegate to
17135 # those functions but instead duplicate the functionality here.
17136 func_dirname_and_basename
()
17139 */*) func_dirname_result
="${1%/*}${2}" ;;
17140 * ) func_dirname_result
="${3}" ;;
17142 func_basename_result
="${1##*/}"
17145 # func_stripname prefix suffix name
17146 # strip PREFIX and SUFFIX off of NAME.
17147 # PREFIX and SUFFIX must not contain globbing or regex special
17148 # characters, hashes, percent signs, but SUFFIX may contain a leading
17149 # dot (in which case that matches only a dot).
17152 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17153 # positional parameters, so assign one to ordinary parameter first.
17154 func_stripname_result
=${3}
17155 func_stripname_result
=${func_stripname_result#"${1}"}
17156 func_stripname_result
=${func_stripname_result%"${2}"}
17162 func_opt_split_opt
=${1%%=*}
17163 func_opt_split_arg
=${1#*=}
17170 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
17171 *) func_lo2o_result
=${1} ;;
17175 # func_xform libobj-or-source
17178 func_xform_result
=${1%.*}.lo
17181 # func_arith arithmetic-term...
17184 func_arith_result
=$
(( $
* ))
17188 # STRING may not start with a hyphen.
17191 func_len_result
=${#1}
17196 *) # Bourne compatible functions.
17197 cat << \_LT_EOF
>> "$cfgfile"
17199 # func_dirname file append nondir_replacement
17200 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17201 # otherwise set result to NONDIR_REPLACEMENT.
17204 # Extract subdirectory from the argument.
17205 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
17206 if test "X$func_dirname_result" = "X${1}"; then
17207 func_dirname_result
="${3}"
17209 func_dirname_result
="$func_dirname_result${2}"
17213 # func_basename file
17216 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
17220 # func_stripname prefix suffix name
17221 # strip PREFIX and SUFFIX off of NAME.
17222 # PREFIX and SUFFIX must not contain globbing or regex special
17223 # characters, hashes, percent signs, but SUFFIX may contain a leading
17224 # dot (in which case that matches only a dot).
17225 # func_strip_suffix prefix name
17229 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17230 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17235 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
17236 my_sed_long_arg
='1s/^-[^=]*=//'
17241 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17242 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17248 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
17251 # func_xform libobj-or-source
17254 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17257 # func_arith arithmetic-term...
17260 func_arith_result
=`expr "$@"`
17264 # STRING may not start with a hyphen.
17267 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17273 case $lt_shell_append in
17275 cat << \_LT_EOF
>> "$cfgfile"
17277 # func_append var value
17278 # Append VALUE to the end of shell variable VAR.
17286 cat << \_LT_EOF
>> "$cfgfile"
17288 # func_append var value
17289 # Append VALUE to the end of shell variable VAR.
17300 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17301 ||
(rm -f "$cfgfile"; exit 1)
17303 mv -f "$cfgfile" "$ofile" ||
17304 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17308 cat <<_LT_EOF >> "$ofile"
17310 # ### BEGIN LIBTOOL TAG CONFIG: D
17312 # The linker used to build libraries.
17315 # How to create reloadable object files.
17316 reload_flag=$lt_reload_flag_D
17317 reload_cmds=$lt_reload_cmds_D
17319 # Commands used to build an old-style archive.
17320 old_archive_cmds=$lt_old_archive_cmds_D
17322 # A language specific compiler.
17325 # Is the compiler the GNU compiler?
17328 # Compiler flag to turn off builtin functions.
17329 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17331 # How to pass a linker flag through the compiler.
17332 wl=$lt_lt_prog_compiler_wl_D
17334 # Additional compiler flags for building library objects.
17335 pic_flag=$lt_lt_prog_compiler_pic_D
17337 # Compiler flag to prevent dynamic linking.
17338 link_static_flag=$lt_lt_prog_compiler_static_D
17340 # Does compiler simultaneously support -c and -o options?
17341 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17343 # Whether or not to add -lc for building shared libraries.
17344 build_libtool_need_lc=$archive_cmds_need_lc_D
17346 # Whether or not to disallow shared libs when runtime libs are static.
17347 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17349 # Compiler flag to allow reflexive dlopens.
17350 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17352 # Compiler flag to generate shared objects directly from archives.
17353 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17355 # Whether the compiler copes with passing no objects directly.
17356 compiler_needs_object=$lt_compiler_needs_object_D
17358 # Create an old-style archive from a shared archive.
17359 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17361 # Create a temporary old-style archive to link instead of a shared archive.
17362 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17364 # Commands used to build a shared archive.
17365 archive_cmds=$lt_archive_cmds_D
17366 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17368 # Commands used to build a loadable module if different from building
17369 # a shared archive.
17370 module_cmds=$lt_module_cmds_D
17371 module_expsym_cmds=$lt_module_expsym_cmds_D
17373 # Whether we are building with GNU ld or not.
17374 with_gnu_ld=$lt_with_gnu_ld_D
17376 # Flag that allows shared libraries with undefined symbols to be built.
17377 allow_undefined_flag=$lt_allow_undefined_flag_D
17379 # Flag that enforces no undefined symbols.
17380 no_undefined_flag=$lt_no_undefined_flag_D
17382 # Flag to hardcode \$libdir into a binary during linking.
17383 # This must work even if \$libdir does not exist
17384 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17386 # If ld is used when linking, flag to hardcode \$libdir into a binary
17387 # during linking. This must work even if \$libdir does not exist.
17388 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17390 # Whether we need a single "-rpath" flag with a separated argument.
17391 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17393 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17394 # DIR into the resulting binary.
17395 hardcode_direct=$hardcode_direct_D
17397 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17398 # DIR into the resulting binary and the resulting library dependency is
17399 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17400 # library is relocated.
17401 hardcode_direct_absolute=$hardcode_direct_absolute_D
17403 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17404 # into the resulting binary.
17405 hardcode_minus_L=$hardcode_minus_L_D
17407 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17408 # into the resulting binary.
17409 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17411 # Set to "yes" if building a shared library automatically hardcodes DIR
17412 # into the library and all subsequent libraries and executables linked
17414 hardcode_automatic=$hardcode_automatic_D
17416 # Set to yes if linker adds runtime paths of dependent libraries
17417 # to runtime path list.
17418 inherit_rpath=$inherit_rpath_D
17420 # Whether libtool must link a program against all its dependency libraries.
17421 link_all_deplibs=$link_all_deplibs_D
17423 # Fix the shell variable \$srcfile for the compiler.
17424 fix_srcfile_path=$lt_fix_srcfile_path_D
17426 # Set to "yes" if exported symbols are required.
17427 always_export_symbols=$always_export_symbols_D
17429 # The commands to list exported symbols.
17430 export_symbols_cmds=$lt_export_symbols_cmds_D
17432 # Symbols that should not be listed in the preloaded symbols.
17433 exclude_expsyms=$lt_exclude_expsyms_D
17435 # Symbols that must always be exported.
17436 include_expsyms=$lt_include_expsyms_D
17438 # Commands necessary for linking programs (against libraries) with templates.
17439 prelink_cmds=$lt_prelink_cmds_D
17441 # Specify filename containing input files.
17442 file_list_spec=$lt_file_list_spec_D
17444 # How to hardcode a shared library path into an executable.
17445 hardcode_action=$hardcode_action_D
17447 # ### END LIBTOOL TAG CONFIG: D
17451 "testsuite/testsuite_flags":F
) chmod +x testsuite
/testsuite_flags
;;
17452 "libdruntime/Makefile":F
) cat > vpsed$$
<< \_EOF
17453 s
!`test -f '$<' || echo '$(srcdir)/'`!!
17455 sed -f vpsed$$
$ac_file > tmp$$
17458 echo 'MULTISUBDIR =' >> $ac_file
17460 .
${multi_basedir}/config-ml.
in
17461 { ml_norecursion
=; unset ml_norecursion
;}
17463 "src/Makefile":F
) cat > vpsed$$
<< \_EOF
17464 s
!`test -f '$<' || echo '$(srcdir)/'`!!
17466 sed -f vpsed$$
$ac_file > tmp$$
17469 echo 'MULTISUBDIR =' >> $ac_file
17471 .
${multi_basedir}/config-ml.
in
17472 { ml_norecursion
=; unset ml_norecursion
;}
17474 "testsuite/Makefile":F
) cat > vpsed$$
<< \_EOF
17475 s
!`test -f '$<' || echo '$(srcdir)/'`!!
17477 sed -f vpsed$$
$ac_file > tmp$$
17480 echo 'MULTISUBDIR =' >> $ac_file
17482 .
${multi_basedir}/config-ml.
in
17483 { ml_norecursion
=; unset ml_norecursion
;}
17492 ac_clean_files
=$ac_clean_files_save
17494 test $ac_write_fail = 0 ||
17495 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17498 # configure is writing to config.log, and then calls config.status.
17499 # config.status does its own redirection, appending to config.log.
17500 # Unfortunately, on DOS this fails, as config.log is still kept open
17501 # by configure, so config.status won't be able to write to it; its
17502 # output is simply discarded. So we exec the FD to /dev/null,
17503 # effectively closing config.log, so it can be properly (re)opened and
17504 # appended to by config.status. When coming back to configure, we
17505 # need to make the FD available again.
17506 if test "$no_create" != yes; then
17508 ac_config_status_args
=
17509 test "$silent" = yes &&
17510 ac_config_status_args
="$ac_config_status_args --quiet"
17512 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17514 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17515 # would make configure fail if this is the last instruction.
17516 $ac_cs_success || as_fn_exit
1
17518 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17520 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}